/* ============================================
   MILAGROS CRISTO REY — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --white: #FAFAF8;
  --black: #1a1a1a;
  --black-soft: #2a2a28;
  --beige: #F5F0EB;
  --beige-dark: #E8E0D8;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dim: rgba(196,162,101,0.15);
  --gray-warm: #8A8580;
  --gray-light: #E8E4E0;
  --overlay: rgba(20,18,15,0.55);
  --overlay-card: rgba(20,18,15,0.45);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --nav-height: 72px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); letter-spacing: 0.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--gray-warm);
  line-height: 1.8;
  max-width: 620px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,162,101,0.3);
}
.btn-ghost {
  border: 1px solid var(--gray-warm);
  color: var(--black);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-white {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
  backdrop-filter: blur(4px);
}
.btn-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-small {
  padding: 10px 24px;
  font-size: 0.75rem;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.container-narrow {
  max-width: 900px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.4s var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--gray-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}
.nav-logo {
  margin-right: 20px;
  flex-shrink: 0;
}
.nav-logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  transition: box-shadow 0.3s;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.nav:not(.scrolled) .nav-logo img {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3), 0 2px 12px rgba(0,0,0,0.3);
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--black);
  transition: color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav:not(.scrolled) .nav-links a {
  color: rgba(255,255,255,0.85);
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.nav:not(.scrolled) .nav-hamburger span {
  background: var(--white);
}
.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  transition: right 0.5s var(--ease-out);
  z-index: 999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 80px 20px 40px;
  box-sizing: border-box;
}
.nav-mobile.open { right: 0; }
.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--black);
  transition: color 0.3s;
  flex-shrink: 0;
}
.nav-mobile a:hover { color: var(--gold); }
@media (max-height: 500px) {
  .nav-mobile {
    justify-content: flex-start;
    gap: 14px;
    padding: 70px 20px 30px;
  }
  .nav-mobile a {
    font-size: 1.1rem;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.7;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.35) 0%, rgba(20,18,15,0.5) 50%, rgba(20,18,15,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}
.hero-title {
  margin-bottom: 24px;
}
.hero-title .light {
  display: block;
  font-weight: 400;
  font-style: italic;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.3s forwards;
}
.hero-title .bold {
  display: block;
  font-weight: 700;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.6s forwards;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 0.9s forwards;
}
.hero .btn {
  opacity: 0;
  animation: fadeInUp 1s var(--ease-out) 1.2s forwards;
}

/* ============================================
   SECTION — QUICK ACCESS CARDS
   ============================================ */
.section-cards {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--white);
}
.section-cards .section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-cards .section-header h2 {
  max-width: 800px;
  margin: 0 auto 20px;
}
.section-cards .section-header .subtitle {
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Individual Card */
.card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  group: card;
}
.card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20,18,15,0.75) 100%);
  transition: background 0.4s var(--ease);
}
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 28px;
  color: var(--white);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-content .card-sub {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}
.card-hover-text {
  font-size: 0.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
  max-height: 0;
  overflow: hidden;
}
.card .btn-small {
  align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  transition: all 0.4s var(--ease);
}

/* Card Hover */
.card:hover .card-img {
  transform: scale(1.08);
}
.card:hover .card-overlay {
  background: linear-gradient(180deg, rgba(20,18,15,0.2) 0%, rgba(20,18,15,0.85) 100%);
}
.card:hover .card-hover-text {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
}
.card:hover .btn-small {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 4px 20px rgba(196,162,101,0.2);
}

/* ============================================
   EMOTIONAL SECTIONS
   ============================================ */
.section-emotional {
  padding: clamp(100px, 14vw, 200px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-emotional--mid {
  background: var(--beige);
}
.section-emotional--final {
  background: var(--black);
  color: var(--white);
}
.section-emotional h2 {
  font-style: italic;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.4;
}
.section-emotional p {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 300;
  color: var(--gray-warm);
  max-width: 550px;
  margin: 0 auto 16px;
  line-height: 1.9;
}
.section-emotional--final p {
  color: rgba(255,255,255,0.5);
}
.section-emotional .accent-line {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-top: 8px;
  margin-bottom: 32px;
}
.section-emotional .btn {
  margin-top: 12px;
}

/* Gold decorative line */
.gold-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 40px;
  font-size: 0.85rem;
  line-height: 1.8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  max-width: 380px;
  margin-top: 20px;
}
.footer-brand img {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-contact a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: var(--gold); }

/* ============================================
   PRIVACY PAGE
   ============================================ */
.page-privacy {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
}
.page-privacy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.page-privacy .subtitle { margin-bottom: 48px; }
.page-privacy h2 {
  font-size: 1.4rem;
  margin-top: 40px;
  margin-bottom: 12px;
}
.page-privacy p, .page-privacy li {
  font-size: 0.95rem;
  color: var(--gray-warm);
  margin-bottom: 12px;
}
.page-privacy ul { padding-left: 20px; }
.page-privacy li { list-style: disc; margin-bottom: 8px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   SHARE BUTTON ON CARDS
   ============================================ */
.card-share {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.4s var(--ease);
  cursor: pointer;
}
.card:hover .card-share { opacity: 1; transform: translateY(0); }
.card-share:hover { background: var(--gold); }

/* ============================================
   SUB-PAGE HERO BANNER
   ============================================ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--black);
  padding-top: var(--nav-height);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,15,0.4) 0%, rgba(20,18,15,0.7) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 60px 20px;
  max-width: 800px;
}
.page-hero-content .section-label { color: var(--gold-light); }
.page-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s forwards;
}
.page-hero-content p {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.5s forwards;
}
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-out) 0.1s forwards;
}
.breadcrumb a { color: var(--gold-light); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* ============================================
   CONTENT SECTIONS (Sub-pages)
   ============================================ */
.section-content {
  padding: clamp(60px, 8vw, 120px) 0;
}
.section-content.alt { background: var(--beige); }
.section-content.dark { background: var(--black); color: var(--white); }

.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block h2 {
  margin-bottom: 16px;
}
.content-block h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--gold);
}
.content-block p {
  font-size: 0.95rem;
  color: var(--gray-warm);
  margin-bottom: 16px;
  line-height: 1.9;
}
.content-block ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.content-block li {
  list-style: disc;
  font-size: 0.95rem;
  color: var(--gray-warm);
  margin-bottom: 8px;
  line-height: 1.7;
}
.content-block .btn { margin-top: 20px; }

/* ============================================
   MILAGROS CAROUSEL (Netflix-style)
   ============================================ */
.carousel-section {
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
}
.carousel-wrapper {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px clamp(20px, 4vw, 60px);
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 320px;
  height: 440px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.carousel-card:hover { transform: scale(1.03); }
.carousel-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease);
}
.carousel-card:hover .carousel-card-bg { transform: scale(1.08); }
.carousel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20,18,15,0.9) 100%);
}
.carousel-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  color: var(--white);
  z-index: 2;
}
.carousel-card-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.carousel-card-content .location {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.carousel-card-content .copy {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 16px;
}
.carousel-card-content .btn-small {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.72rem;
}
.carousel-card:hover .carousel-card-content .btn-small {
  border-color: var(--gold);
  color: var(--gold);
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.carousel-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  color: var(--black);
}
.carousel-nav button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   MILAGRO DETAIL PAGE
   ============================================ */
.milagro-detail {
  padding: clamp(60px, 8vw, 100px) 0;
}
.milagro-detail .content-block {
  max-width: 760px;
}
.milagro-detail .content-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--black);
}
.detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-light);
}
.detail-meta span {
  font-size: 0.82rem;
  color: var(--gray-warm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-meta .tag {
  background: var(--gold-dim);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}
.cross-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
  margin-top: 24px;
}
.cross-link:hover {
  background: var(--gold);
  color: var(--white);
}

/* ============================================
   REFUGIO — PRAYER CARDS
   ============================================ */
.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.prayer-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  transition: all 0.4s var(--ease);
  position: relative;
}
.prayer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--gold);
}
.prayer-card-img {
  height: 220px;
  overflow: hidden;
}
.prayer-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.prayer-card:hover .prayer-card-img img { transform: scale(1.06); }
.prayer-card-body {
  padding: 28px 24px;
}
.prayer-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--black);
}
.prayer-card-body p {
  font-size: 0.88rem;
  color: var(--gray-warm);
  line-height: 1.7;
  margin-bottom: 16px;
}
.prayer-card-hover {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.4s var(--ease);
  margin-bottom: 16px;
}
.prayer-card:hover .prayer-card-hover {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   OBRAS DE MISERICORDIA
   ============================================ */
.obras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.obra-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid var(--gray-light);
  text-align: center;
  transition: all 0.4s var(--ease);
}
.obra-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
  border-color: var(--gold);
}
.obra-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
}
.obra-card h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.obra-card p {
  font-size: 0.9rem;
  color: var(--gray-warm);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ============================================
   OBRA DETAIL CARDS
   ============================================ */
.obra-detail-card {
  position: relative;
  max-width: 760px;
}
.obra-detail-number {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(180,155,80,0.3);
}
.obra-detail-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--black);
  margin-bottom: 24px;
  padding-left: 40px;
}
.obra-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.obra-reflection,
.obra-practice {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--gray-light);
}
.obra-reflection {
  background: rgba(180,155,80,0.04);
  border-color: rgba(180,155,80,0.15);
}
.obra-practice {
  background: var(--offwhite);
}
.obra-reflection h3,
.obra-practice h3 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: var(--gold);
}
.obra-practice h3 {
  color: var(--gray-warm);
}
.obra-reflection p,
.obra-practice p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--gray-warm);
}
.obra-verse {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(180,155,80,0.06), rgba(180,155,80,0.02));
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin: 0;
}
.obra-verse p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 8px;
}
.obra-verse cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}
@media (max-width: 600px) {
  .obra-detail-body {
    grid-template-columns: 1fr;
  }
  .obra-detail-number {
    position: static;
    margin-bottom: 16px;
  }
  .obra-detail-card h2 {
    padding-left: 0;
  }
}

/* ============================================
   VERSICULOS — EMOTION CARDS
   ============================================ */
.emotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.emotion-card {
  padding: 28px 24px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  border: 1px solid var(--gray-light);
  background: var(--white);
}
.emotion-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}
.emotion-card.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.emotion-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.emotion-card h4 {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
}

.verses-display {
  margin-top: 48px;
  padding: 48px 40px;
  background: var(--beige);
  border-radius: 12px;
  min-height: 200px;
}
.verses-display h3 {
  text-align: center;
  margin-bottom: 32px;
  color: var(--black);
}
.verse-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--beige-dark);
}
.verse-item:last-child { border-bottom: none; }
.verse-item blockquote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--black);
  line-height: 1.7;
  margin-bottom: 8px;
}
.verse-item cite {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 500;
}

/* ============================================
   PALABRAS — IMAGE GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s var(--ease);
}
.gallery-item:hover .gallery-item-overlay { background: rgba(0,0,0,0.3); }
.gallery-share {
  color: var(--white);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
  padding: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
}
.gallery-item:hover .gallery-share { opacity: 1; transform: scale(1); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios-content {
  padding: clamp(60px, 8vw, 100px) 0;
}
.testimonios-content .content-block {
  text-align: center;
  max-width: 700px;
}
.testimonios-content .content-block p {
  text-align: left;
}
.testimonios-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold);
  text-align: center !important;
  margin: 32px 0;
  padding: 24px;
  border-left: 3px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 0 8px 8px 0;
}
.resource-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  justify-content: center;
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--black);
  transition: all 0.3s var(--ease);
}
.resource-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 3 / 4; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-content { padding: 0 16px; }
  .nav { height: 60px; }
  :root { --nav-height: 60px; }
  .carousel-card { flex: 0 0 280px; height: 380px; }
  .prayer-grid { grid-template-columns: 1fr; }
  .obras-grid { grid-template-columns: 1fr; }
  .emotions-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .verses-display { padding: 32px 20px; }
  .page-hero { min-height: 40vh; }
}
