/* ================================================================
   Andrés Arango — Estilo base
   Cinematográfico · Elegante · Editorial
   ================================================================ */

:root {
  /* Acento (cambiable por Tweaks) */
  --accent: #c9a961;
  --accent-soft: rgba(201, 169, 97, 0.14);

  /* Tema oscuro (default) */
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-soft: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ececec;
  --text-muted: rgba(236, 236, 236, 0.62);
  --text-dim: rgba(236, 236, 236, 0.42);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);

  /* Tipografía (cambiable por Tweaks) */
  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Escala */
  --container: 1280px;
  --container-wide: 1480px;
  --radius: 2px;
  --radius-lg: 6px;
}

html[data-mode="light"] {
  --bg: #f6f3ee;
  --bg-elev: #ffffff;
  --bg-soft: #efeae3;
  --line: rgba(20, 18, 14, 0.10);
  --line-strong: rgba(20, 18, 14, 0.22);
  --text: #14120e;
  --text-muted: rgba(20, 18, 14, 0.62);
  --text-dim: rgba(20, 18, 14, 0.42);
  --shadow: 0 30px 80px rgba(20, 18, 14, 0.10);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
}

.brand-name {
  font-weight: 500;
}

.brand-name em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  padding: 11px 22px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s ease-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,12,0.45) 0%, rgba(10,10,12,0.55) 40%, rgba(10,10,12,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,12,0.75) 0%, rgba(10,10,12,0.25) 60%, rgba(10,10,12,0) 100%);
}

html[data-mode="light"] .hero-bg::after {
  background:
    linear-gradient(180deg, rgba(246,243,238,0.30) 0%, rgba(246,243,238,0.50) 50%, rgba(246,243,238,0.95) 100%),
    linear-gradient(90deg, rgba(246,243,238,0.85) 0%, rgba(246,243,238,0.35) 60%, rgba(246,243,238,0) 100%);
}

@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.15) translate(-2%, -1%); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(48px, 7.5vw, 112px);
  line-height: 0.96;
  margin: 24px 0 28px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero-lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 80px;
}

.hero-meta {
  position: absolute;
  bottom: 60px;
  left: 32px;
  right: 32px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  max-width: var(--container-wide);
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  gap: 56px;
}

.hero-stat {
  border-left: 1px solid var(--line-strong);
  padding-left: 18px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text);
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

.hero-scroll {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollHint 2.4s ease-in-out infinite;
}

@keyframes scrollHint {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid currentColor;
}

.btn-text:hover {
  letter-spacing: 0.22em;
}

.btn .arrow {
  width: 14px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.3s ease;
}

.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover .arrow {
  width: 22px;
}

/* ============ SECTIONS ============ */
section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  margin-bottom: 70px;
  max-width: 720px;
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 70px;
  gap: 40px;
  flex-wrap: wrap;
}

.section-head-row .section-head {
  margin-bottom: 0;
}

/* ============ ABOUT INTRO ============ */
.about-intro {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 90px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
}

.about-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15) contrast(1.05);
}

.about-img-frame {
  position: absolute;
  inset: -22px -22px 22px 22px;
  border: 1px solid var(--accent);
  z-index: -1;
  opacity: 0.55;
}

.about-badge {
  position: absolute;
  bottom: -28px;
  right: -28px;
  background: var(--accent);
  color: var(--bg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  text-align: center;
}

.about-badge-num {
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
}

.about-badge-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 500;
}

.about-text h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  margin-bottom: 28px;
}

.about-text h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.about-text .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.65;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-quote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  line-height: 1.4;
}

.signature {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.signature-line {
  font-family: "Dancing Script", "Brush Script MT", cursive;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
}

.signature-meta {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-left: 1px solid var(--line-strong);
  padding-left: 18px;
}

/* ============ BOOKS ============ */
.books {
  background: var(--bg-soft);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.book {
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.book:hover {
  transform: translateY(-8px);
}

.book-cover {
  aspect-ratio: 2 / 3;
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.book:hover .book-cover img {
  transform: scale(1.04);
}

.book-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
  z-index: 2;
}

.book-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.book-title {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.book-meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* ============ BOOKS ACCORDION (Home) ============ */
.books-accordion {
  display: flex;
  gap: 6px;
  height: 600px;
  width: 100%;
  overflow: hidden;
}

.acc-book {
  position: relative;
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  transition: flex 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  color: #fff;
  background: var(--bg-elev);
  min-width: 0;
}

.acc-book:hover {
  flex: 4;
}

.acc-book-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: brightness(0.55) saturate(0.9);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 1.2s ease;
}

.acc-book:hover .acc-book-bg {
  transform: scale(1);
  filter: brightness(0.7) saturate(1);
}

.acc-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
  transition: opacity 0.8s ease;
}

.acc-book-collapsed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  transition: opacity 0.5s ease;
}

.acc-book-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}

.acc-book-collapsed h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.acc-book-cat {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.acc-book:hover .acc-book-collapsed {
  opacity: 0;
}

.acc-book-expanded {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease 0.2s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  pointer-events: none;
}

.acc-book:hover .acc-book-expanded {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.acc-book-expanded .acc-book-cat-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid var(--accent);
  margin-bottom: 18px;
  align-self: flex-start;
}

.acc-book-expanded h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  margin-bottom: 14px;
  max-width: 480px;
}

.acc-book-expanded p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 480px;
}

.acc-book-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.acc-book-meta span + span::before {
  content: "·";
  margin-right: 20px;
  color: var(--accent);
}

.acc-book-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .books-accordion {
    flex-direction: column;
    height: auto;
  }
  .acc-book {
    height: 200px;
    flex: 1 1 auto;
  }
  .acc-book:hover { flex: 1 1 auto; height: 460px; }
  .acc-book-collapsed h3,
  .acc-book-cat {
    writing-mode: horizontal-tb;
    transform: none;
  }
  .acc-book-expanded { padding: 28px; }
}

/* ============ YOUTUBE GALLERY (Home) ============ */
.yt-channel {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  margin-bottom: 32px;
}

.yt-channel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ff0033;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.yt-channel-avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.yt-channel-info {
  flex: 1;
}

.yt-channel-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}

.yt-channel-handle {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.yt-subscribe {
  padding: 10px 22px;
  background: #ff0033;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.25s ease;
}

.yt-subscribe:hover { opacity: 0.85; }

.yt-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.yt-featured {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.yt-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.yt-featured:hover img { transform: scale(1.04); }

.yt-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}

.yt-play-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 60px;
  background: rgba(255, 0, 51, 0.95);
  border-radius: 14px;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform 0.4s ease, background 0.3s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.yt-featured:hover .yt-play-large {
  transform: translate(-50%, -50%) scale(1.08);
  background: #ff0033;
}

.yt-play-large svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  margin-left: 3px;
}

.yt-featured-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  z-index: 2;
  color: #fff;
}

.yt-featured-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  margin-bottom: 8px;
}

.yt-featured-meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  display: flex;
  gap: 14px;
}

.yt-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yt-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 6px;
  margin: -6px;
}

.yt-item:hover {
  background: var(--bg-soft);
}

.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-thumb-duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.yt-item-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 2px;
}

.yt-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-item-meta {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .yt-gallery { grid-template-columns: 1fr; }
  .yt-item { grid-template-columns: 140px 1fr; }
}

/* ============ SERMONS / PRÉDICAS ============ */
.sermons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sermon {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elev);
}

.sermon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.sermon:hover img {
  transform: scale(1.06);
}

.sermon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.92) 100%);
}

.sermon-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px;
  z-index: 2;
  color: #fff;
}

.sermon-play {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

.sermon:hover .sermon-play {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.sermon-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  fill: #fff;
}

.sermon-duration {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.sermon-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.sermon-series {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============ EVENTS ============ */
.events-list {
  display: flex;
  flex-direction: column;
}

.event {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  transition: padding 0.3s ease;
}

.event:hover {
  padding-left: 12px;
}

.event:last-child {
  border-bottom: 1px solid var(--line);
}

.event-date {
  font-family: var(--font-display);
}

.event-day {
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
}

.event-month {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

.event-info h3 {
  font-size: 26px;
  margin-bottom: 6px;
}

.event-loc {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-type {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--bg);
}

.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial {
  padding: 36px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  position: relative;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 100px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  margin: 24px 0 28px;
  position: relative;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elev);
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 500;
  font-size: 15px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ============ PODCAST ============ */
.podcast {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.podcast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.podcast-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
}

.podcast-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.podcast-disc {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1a1d 30%, #0a0a0c 30.5%, #1a1a1d 70%, #0a0a0c 70.5%);
  z-index: -1;
  animation: spin 16s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.podcast-platforms {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.podcast-platform {
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.podcast-platform:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.episode-list {
  margin-top: 32px;
}

.episode {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.episode-num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
}

.episode-title {
  font-size: 16px;
  font-weight: 500;
}

.episode-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.06em;
}

.episode-dur {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ============ REFLEXIONES / BLOG ============ */
.reflexion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.reflexion {
  cursor: pointer;
}

.reflexion-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--bg-elev);
}

.reflexion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reflexion:hover .reflexion-img img {
  transform: scale(1.05);
}

.reflexion-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.reflexion-meta .cat {
  color: var(--accent);
}

.reflexion h3 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.reflexion:hover h3 {
  color: var(--accent);
}

.reflexion-excerpt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ============ NEWSLETTER ============ */
.newsletter {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 100px 0;
}

.newsletter-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  margin: 22px 0 16px;
}

.newsletter h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.newsletter p {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
  border-color: var(--accent);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 18px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--text-dim);
}

.newsletter-form button {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 18px 8px;
  cursor: pointer;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.socials {
  display: flex;
  gap: 14px;
}

.social {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============ PAGE HEADERS ============ */
.page-header {
  padding: 200px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-header-bg {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-header-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.page-header-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-header h1 {
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  margin: 18px 0 22px;
}

.page-header h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.page-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.55;
}

.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  color: var(--accent);
}

/* ============ FORM (Contacto) ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 120px;
}

.contact-info h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-detail:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.contact-detail-lbl {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.contact-detail-val {
  font-size: 15px;
  color: var(--text);
}

form.contact-form {
  background: var(--bg-soft);
  padding: 48px;
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 26px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 12px 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field select option {
  background: var(--bg-elev);
  color: var(--text);
}

/* ============ ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.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; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .podcast-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .books-grid { grid-template-columns: repeat(3, 1fr); }
  .sermons-grid { grid-template-columns: repeat(2, 1fr); }
  .reflexion-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .contact-info { position: static; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: 120px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta { display: none; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .sermons-grid { grid-template-columns: 1fr; }
  .reflexion-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 16px; }
  .event-type { justify-self: start; }
  .field-row { grid-template-columns: 1fr; }
  form.contact-form { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
