/* =====================================================================
   PAGE MODULE — en-san-miguel-photos
   Extracted verbatim from inline <style> of: fotos-san-miguel.html, en/san-miguel-photos.html
   Design unchanged; loaded via `pageCss` front-matter.
   ===================================================================== */

/* Hero 01: Animated Gradient */
.hero-gradient {
  position: relative;
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--secondary-teal) 100%);
  padding: 8rem 0 6rem;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://eluvia-marketing-cdn.b-cdn.net/icons/locations/icon-sma-parroquia.svg');
  background-size: 100px 100px;
  background-repeat: repeat;
  opacity: 0.08;
  z-index: 1;
  filter: brightness(0) invert(1);
  animation: driftBackground 60s linear infinite;
}

@keyframes driftBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.hero-gradient-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: white;
}

.hero-gradient-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: white;
}

.hero-gradient-content p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.hero-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-link {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-link:hover {
  background: white;
  color: var(--primary-magenta);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* License Intro Section */
.license-intro {
  background: white;
  padding: 6rem 0;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
}

.intro-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2rem;
  text-align: center;
}

.intro-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 3rem;
  text-align: center;
}

.attribution-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  border-radius: 12px;
  border: 2px solid rgba(23, 167, 175, 0.2);
}

.attribution-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
}

.attribution-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  text-align: center;
}

.attribution-box > p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  text-align: center;
}

.copy-wrapper {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.copy-wrapper input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
}

.btn-copy {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  background: var(--secondary-teal);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy:hover {
  background: var(--primary-magenta);
  transform: translateY(-2px);
}

.copy-note {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 1rem;
}

/* Photo Gallery Section */
.photo-gallery {
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  padding: 6rem 0;
}

.photo-gallery h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: 2rem;
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(23, 167, 175, 0.1);
}

.search-icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.125rem;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  background: white;
  border: 2px solid #ddd;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.filter-btn i {
  font-size: 0.875rem;
}

.filter-btn:hover {
  border-color: var(--secondary-teal);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: #A61963;
  background-image: linear-gradient(135deg, #A61963 0%, #17A7AF 100%);
  background-clip: padding-box;
  background-origin: padding-box;
  color: white !important;
  border: 2px solid transparent;
}

.filter-btn.active:hover {
  color: white !important;
  background-color: #A61963;
  background-image: linear-gradient(135deg, #A61963 0%, #17A7AF 100%);
  border: 2px solid transparent;
  transform: translateY(-2px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.photo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.photo-card.hidden {
  display: none;
}

.photo-thumbnail {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.photo-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  border-radius: 50px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.photo-badge i {
  font-size: 0.75rem;
}

.photo-badge-real {
  background: linear-gradient(135deg, #17A7AF, #0d7f85);
}

.photo-badge-ai {
  background: linear-gradient(135deg, #A61963, #7d1249);
}

.photo-badge-enhanced {
  background: linear-gradient(135deg, #9b51e0, #6e38a0);
}

.photo-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-thumbnail img {
  transform: scale(1.05);
}

.photo-info {
  padding: 1.5rem;
}

.photo-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.photo-category {
  font-size: 0.875rem;
  color: var(--secondary-teal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.photo-credit {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1rem;
  font-style: italic;
}

.photo-credit a {
  color: var(--secondary-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

.photo-credit a:hover {
  color: var(--primary-magenta);
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-download {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white !important;
  background-color: #A61963;
  background-image: linear-gradient(135deg, #A61963 0%, #17A7AF 100%);
  background-clip: padding-box;
  background-origin: padding-box;
  -webkit-background-clip: padding-box;
  border: 0 solid transparent;
  border-radius: 8px;
  text-align: center;
  text-decoration: none !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: 1.5;
  vertical-align: middle;
  user-select: none;
}

.btn-download:hover,
.btn-download:focus,
.btn-download:active,
.btn-download:visited {
  color: white !important;
  background-color: #A61963;
  background-image: linear-gradient(135deg, #A61963 0%, #17A7AF 100%);
  background-clip: padding-box;
  background-origin: padding-box;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(166, 25, 99, 0.3);
  text-decoration: none !important;
}

/* Charity Section */
.charity-section {
  background: white;
  padding: 6rem 0 4rem;
}

.charity-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: 1rem;
}

.charity-intro {
  font-size: 1.125rem;
  color: #555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.charity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.charity-card {
  padding: 2rem;
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  border-radius: 12px;
  border-left: 4px solid var(--secondary-teal);
}

.charity-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.charity-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.charity-links {
  display: flex;
  gap: 1rem;
}

.btn-charity-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: white !important;
  background: linear-gradient(135deg, var(--primary-magenta), var(--secondary-teal));
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-charity-primary:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(166, 25, 99, 0.3);
  text-decoration: none !important;
}

.btn-charity-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-navy);
  background: white;
  border: 2px solid var(--secondary-teal);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-charity-secondary:hover {
  background: var(--secondary-teal);
  color: white;
}

/* Charity Offer Section */
.charity-offer {
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  padding: 4rem 0 6rem;
}

.offer-card {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.offer-header {
  background: linear-gradient(135deg, var(--primary-magenta) 0%, var(--secondary-teal) 100%);
  padding: 3rem 2rem;
  text-align: center;
  color: white;
}

.offer-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.offer-header h2 i {
  margin-right: 0.5rem;
}

.offer-tagline {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0;
}

.offer-content {
  padding: 3rem;
}

.offer-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #333;
  text-align: center;
  margin-bottom: 3rem;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.offer-column h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.offer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offer-column li {
  font-size: 0.875rem;
  color: #555;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.6;
}

.offer-column li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-teal);
  font-weight: 700;
}

.offer-cta {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  border-radius: 12px;
}

.offer-cta-text {
  font-size: 1.125rem;
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.btn-offer {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white !important;
  background: linear-gradient(135deg, var(--primary-magenta), var(--secondary-teal));
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(166, 25, 99, 0.3);
}

.btn-offer:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 25, 99, 0.4);
  text-decoration: none !important;
}

.charity-organizer-notice {
  padding: 2rem 3rem 3rem;
  background: linear-gradient(135deg, rgba(23, 167, 175, 0.05) 0%, rgba(166, 25, 99, 0.05) 100%);
  text-align: center;
}

.charity-organizer-notice h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.charity-organizer-notice p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 700px;
}

.charity-organizer-notice a {
  color: var(--secondary-teal);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.charity-organizer-notice a:hover {
  color: var(--primary-magenta);
}

/* Resources Section */
.resources-section {
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  padding: 6rem 0;
}

.resources-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: 1rem;
}

.resources-intro {
  font-size: 1.125rem;
  color: #555;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.resource-card {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.resource-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.resource-card p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* Custom Services Section */
.custom-services {
  background: white;
  padding: 6rem 0;
}

.services-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem;
  background: linear-gradient(135deg, rgba(166, 25, 99, 0.05) 0%, rgba(23, 167, 175, 0.05) 100%);
  border-radius: 16px;
  border: 2px solid rgba(23, 167, 175, 0.2);
  text-align: center;
}

.services-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.services-card > p {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.services-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-option {
  padding: 2rem;
  background: white;
  border-radius: 12px;
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-magenta), var(--secondary-teal));
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.service-icon[data-icon="video"] {
  mask-image: url('https://cdn.emkt.mx/icons/services/icon-play-video.svg');
  -webkit-mask-image: url('https://cdn.emkt.mx/icons/services/icon-play-video.svg');
}

.service-icon[data-icon="camera"] {
  mask-image: url('https://cdn.emkt.mx/icons/services/icon-camera-lens.svg');
  -webkit-mask-image: url('https://cdn.emkt.mx/icons/services/icon-camera-lens.svg');
}

.service-icon[data-icon="ai"] {
  mask-image: url('https://cdn.emkt.mx/icons/services/icon-ai-neural.svg');
  -webkit-mask-image: url('https://cdn.emkt.mx/icons/services/icon-ai-neural.svg');
}

.service-option h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.service-option p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

.btn-services-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white !important;
  background: linear-gradient(135deg, var(--primary-magenta), var(--secondary-teal));
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(166, 25, 99, 0.3);
}

.btn-services-cta:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 25, 99, 0.4);
  text-decoration: none !important;
}

/* Photographer Invite Section */
.photographer-invite {
  background: linear-gradient(135deg, rgba(38, 49, 89, 0.95) 0%, rgba(166, 25, 99, 0.95) 100%),
              url('https://cdn.emkt.mx/images/sma/sma-parroquia-sunset-01-hero.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 0;
}

.invite-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.invite-card h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1.5rem;
}

.invite-card > p {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.invite-details {
  text-align: left;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
  border-radius: 12px;
}

.invite-details h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 1rem;
}

.invite-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.invite-details li {
  font-size: 1rem;
  color: #555;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.6;
}

.invite-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-teal);
  font-weight: 700;
}

.invite-cta-text {
  font-size: 1.125rem;
  color: var(--primary-navy);
  font-weight: 600;
  margin-bottom: 1rem;
}

.btn-invite {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: white !important;
  background: linear-gradient(135deg, var(--primary-magenta), var(--secondary-teal));
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(166, 25, 99, 0.3);
}

.btn-invite:hover {
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(166, 25, 99, 0.4);
  text-decoration: none !important;
}

.invite-note {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-gradient {
    padding: 5rem 0 4rem;
    min-height: auto;
  }
  
  .hero-gradient-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-gradient-content p {
    font-size: 1.125rem;
  }
  
  .hero-links {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-link {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .license-intro,
  .photo-gallery,
  .charity-section,
  .resources-section,
  .custom-services,
  .photographer-invite {
    padding: 4rem 0;
  }
  
  .photo-grid {
    grid-template-columns: 1fr;
  }
  
  .charity-grid {
    grid-template-columns: 1fr;
  }
  
  .offer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .offer-header h2 {
    font-size: 2rem;
  }
  
  .offer-content {
    padding: 2rem;
  }
  
  .charity-organizer-notice {
    padding: 2rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .services-card {
    padding: 2rem;
  }
  
  .invite-card {
    padding: 2rem;
  }
  
  .photographer-invite {
    background-attachment: scroll;
  }
  
  .category-filters {
    justify-content: flex-start;
  }
  
  .filter-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .filter-btn i {
    font-size: 0.75rem;
  }
  
  .charity-links {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-gradient-content h1 {
    font-size: 2rem;
  }
  
  .copy-wrapper {
    flex-direction: column;
  }
}
