/* ────────────────────────────────────────────────────────────── */
/* FE Y TRADICIÓN — Estética moderna                              */
/* ────────────────────────────────────────────────────────────── */

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

:root {
  --gold:         #d4a574;
  --gold-light:   #e8dcc8;
  --gold-mid:     #dab896;
  --gold-dark:    #9d7e52;
  --gold-rgb:     212, 165, 116;
  --dark:         #1a1410;
  --dark-rgb:     26, 20, 16;
  --dark-nav:     #241c14;
  --text-primary: #2a1810;
  --text-muted:   #6b5a50;
  --text-dim:     #9b8a7e;
  --border:       #e4d4c4;
  --bg:           #ffffff;
  --bg-soft:      #f7ede4;
  --bg-dark:      #1a1410;
  --font-display: 'Cinzel', serif;
  --font-body:    'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* Scroll lock for iOS Safari — using class avoids the overflow:hidden bug */
body.no-scroll {
  overflow: hidden;
  height: 100dvh;
}

/* ────────────────────────────────────────────────────────────── */
/* SCROLL REVEAL ANIMATIONS                                        */
/* ────────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ────────────────────────────────────────────────────────────── */
/* HEADER & NAV                                                    */
/* ────────────────────────────────────────────────────────────── */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 68px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

/* backdrop-filter en ::before evita que sea containing block para position:fixed hijos (nav ul) */
header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}

.logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dark);
  text-decoration: none;
}

.logo a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

header.scrolled .logo {
  color: var(--dark);
}

header.hero-mode .logo {
  color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav {
  flex: 1;
}

/* ─── LANG DROPDOWN ──────────────────────────────────────────── */

.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid rgba(var(--gold-rgb), 0.55);
  color: #1a1410;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.07em;
  transition: border-color 0.22s, color 0.22s;
  white-space: nowrap;
}

.lang-dropdown-trigger:hover {
  border-color: var(--gold);
  color: var(--gold);
}

header.hero-mode .lang-dropdown-trigger {
  color: #ffffff;
  border-color: rgba(var(--gold-rgb), 0.55);
}

.lang-flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.lang-arrow {
  transition: transform 0.25s ease;
  opacity: 0.7;
  flex-shrink: 0;
  stroke: currentColor;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #110c07;
  border: 1px solid rgba(var(--gold-rgb), 0.3);
  border-radius: 10px;
  padding: 6px;
  width: 230px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.78);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  text-align: left;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.lang-option:hover {
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
}

.lang-option.active {
  color: var(--gold);
  font-weight: 600;
}

.lang-option img {
  display: inline-block;
  width: 22px;
  min-width: 22px;
  max-width: 22px;
  height: 15px;
  min-height: 15px;
  max-height: 15px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}


/* Scrolled header overrides */
header.hero-mode.scrolled .logo,
header.hero-mode.scrolled nav a {
  color: var(--text-primary);
}

header.scrolled .lang-dropdown-trigger,
header.hero-mode.scrolled .lang-dropdown-trigger {
  border-color: rgba(180, 130, 70, 0.7);
  color: #1a1410;
}

header.scrolled .lang-dropdown-trigger:hover,
header.hero-mode.scrolled .lang-dropdown-trigger:hover {
  border-color: var(--gold);
  color: var(--gold);
}

header.hero-mode.scrolled nav a:hover {
  color: var(--text-primary);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}

nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  transform: scaleX(1);
}

header.hero-mode nav a {
  color: rgba(255, 255, 255, 0.65);
}

header.hero-mode nav a:hover {
  color: #fff;
}

nav a.active {
  color: var(--gold);
}

nav a.active::after {
  transform: scaleX(1);
}

/* ────────────────────────────────────────────────────────────── */
/* HERO SECTION                                                    */
/* ────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-nav);
  margin-top: 68px;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.active {
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg,
    rgba(var(--dark-rgb), 0.75) 0%,
    rgba(var(--dark-rgb), 0.45) 55%,
    rgba(var(--dark-rgb), 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease 0.2s both;
}

.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 700;
  line-height: 0.92;
  color: #fff;
  margin-bottom: 14px;
  animation: fadeUp 0.8s ease 0.35s both;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  max-width: 460px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.65s both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  text-decoration: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background-color 0.25s, transform 0.25s;
}

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

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s;
}

.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeUp 1s ease 1.1s both;
}

.scroll-bar {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: pulse 2s ease infinite;
}

.scroll-txt {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  writing-mode: vertical-rl;
}

/* ────────────────────────────────────────────────────────────── */
/* KEYFRAMES                                                       */
/* ────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ────────────────────────────────────────────────────────────── */
/* MAIN CONTENT                                                    */
/* ────────────────────────────────────────────────────────────── */

main {
  margin-top: 0;
}

section {
  scroll-margin-top: 68px;
}

.gallery-section {
  padding: 120px 0;
  background: var(--bg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 56px;
  text-align: center;
}

.grid-gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
}

/* ────────────────────────────────────────────────────────────── */
/* ARTICLES SECTION — Apologetics Education                        */
/* ────────────────────────────────────────────────────────────── */

.articles-section {
  padding: 120px 0;
  background: var(--bg);
}

.articles-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.sec-eye {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sec-eye-line {
  width: 28px;
  height: 1.5px;
  background: var(--gold);
}

.sec-eye-txt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.articles-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 0 56px;
  line-height: 1.8;
}


.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

/* Efecto de resaltado: opaca las tarjetas no seleccionadas */
.articles-grid:has(.article-card:hover) .article-card:not(:hover) {
  opacity: 0.5;
  filter: grayscale(40%);
}

.article-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--gold-light);
  transform: translateY(-6px);
}

.article-card:hover::before {
  transform: scaleX(1);
}

.article-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.article-category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 4px 10px;
  border-radius: 2px;
}

.article-date {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.article-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  flex-grow: 1;
}

.article-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.read-time {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.article-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.2s;
  display: inline-flex;
  align-items: center;
}

/* ARTICLE PAGE */
.article-hero {
  position: relative;
  overflow: hidden;
  min-height: 56vh;
  padding: 120px 0 80px;
  background: #14100d;
  color: #fff;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--dark-rgb), 0.75) 0%, rgba(var(--dark-rgb), 0.65) 65%);
  z-index: 1;
}
.article-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 56px;
}
.article-hero .eyebrow-text {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.article-hero h1 {
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.02;
  margin: 30px 0 18px;
}
.article-hero p {
  font-size: 18px;
  line-height: 1.9;
  max-width: 760px;
  color: rgba(255,255,255,0.92);
}
.article-hero .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  margin-top: 18px;
}
.article-hero .article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.04em;
}
.article-hero .btn-outline-white {
  margin-top: 36px;
}
.article-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.article-nav-card {
  display: block;
  padding: 28px 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.article-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  border-color: transparent;
}
.article-nav-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.article-nav-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
.article-nav-card.next {
  text-align: right;
}
@media (max-width: 860px) {
  .article-hero,
  .article-page {
    padding: 80px 0 60px;
  }
  .article-hero-inner,
  .article-page-inner {
    padding: 0 24px;
  }
  .article-body {
    padding: 32px;
  }
  .article-navigation {
    grid-template-columns: 1fr;
  }
  .article-nav-card.next {
    text-align: left;
  }
}
.provisional-notice {
  background: rgba(180, 20, 20, 0.07);
  border: 1px solid rgba(160, 20, 20, 0.35);
  border-left: 3px solid #b91c1c;
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.provisional-notice p {
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.65;
  margin: 0;
}

.preliminary-warning {
  background: #7f1d1d;
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 7px 18px;
  margin: 0 auto 45px auto;
  max-width: 680px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 16px;
}

.preliminary-warning::before {
  content: '†';
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--gold);
  flex-shrink: 0;
  opacity: 0.9;
  position: relative;
  top: 1px; /* Ajuste óptico para centrar la cruz de Cinzel con el texto Montserrat */
}

.preliminary-warning p {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff !important;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .preliminary-warning {
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 30px;
  }
}

.article-page {
  padding: 90px 0 120px;
  background: var(--bg-soft);
}
.article-page-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 56px;
}
.article-body {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.08);
  padding: 56px;
}
.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
}
.article-body h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-top: 40px;
}
.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-top: 24px;
}
.article-body blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--gold);
  background: #faf1e4;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.9;
}
.article-body ul {
  margin: 24px 0 0 24px;
  list-style: disc;
  color: var(--text-muted);
  line-height: 1.9;
}
.article-body li {
  margin-bottom: 14px;
}
.article-page .btn-outline-white {
  margin-top: 26px;
}
.article-footer {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.article-footer a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 860px) {
  .article-hero,
  .article-page {
    padding: 80px 0 60px;
  }
  .article-hero-inner,
  .article-page-inner {
    padding: 0 24px;
  }
  .article-body {
    padding: 32px;
  }
}

.mission-section {
  padding: 120px 0;
  background: var(--bg);
}

.mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.mission-card {
  background: #fff;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.mission-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--gold-light);
  transform: translateY(-4px);
}

.mission-icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.mission-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ────────────────────────────────────────────────────────────── */
/* CONTACT SECTION                                                 */
/* ────────────────────────────────────────────────────────────── */

.contact-section {
  position: relative;
  padding: 140px 0;
  background: var(--dark-nav);
  text-align: center;
  overflow: hidden;
}

.contact-video-wrap {
  position: absolute;
  inset: 0;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg,
    rgba(var(--dark-rgb), 0.75) 0%,
    rgba(var(--dark-rgb), 0.45) 55%,
    rgba(var(--dark-rgb), 0.12) 100%);
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 56px;
}

.contact-section .section-title {
  color: #fff;
  margin-bottom: 28px;
}

.contact-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-section .btn-primary {
  margin-top: 24px;
  align-self: center;
}

.contact-success {
  text-align: center;
  padding: 48px 36px;
  animation: fadeUp 0.6s ease both;
  background: rgba(10, 7, 4, 0.88);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 4px;
  max-width: 460px;
  margin: 0 auto;
  color: #fff;
}

.contact-success-icon {
  font-size: 2.2rem;
  color: var(--gold) !important;
  margin-bottom: 18px;
  line-height: 1;
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: #fff !important;
  margin-bottom: 14px;
}

.contact-success p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.85;
  margin: 0 auto;
}

/* ────────────────────────────────────────────────────────────── */
/* ARTICLE HERO — fix crossfade para páginas de tema              */
/* ────────────────────────────────────────────────────────────── */

.article-hero .hero-video {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.article-hero .hero-video.active {
  opacity: 0.55;
}

/* ────────────────────────────────────────────────────────────── */
/* MEDITATION SECTION                                              */
/* ────────────────────────────────────────────────────────────── */

.meditacion-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meditacion-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meditacion-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 7, 4, 0.72);
}

.meditacion-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.meditacion-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.meditacion-quote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  color: #fff;
  font-weight: 400;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
  border: none;
  padding: 0;
  font-style: normal;
  transition: opacity 0.7s ease;
}

.meditacion-eyebrow {
  transition: opacity 0.7s ease;
}

.meditacion-fading .meditacion-quote,
.meditacion-fading .meditacion-eyebrow {
  opacity: 0;
}

/* ────────────────────────────────────────────────────────────── */
/* ARTICLE CARD — video preview on hover                           */
/* ────────────────────────────────────────────────────────────── */

.card-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 0;
  border-radius: 4px;
}

.article-card:hover .card-bg-video {
  opacity: 0.18;
}

@media (hover: none) {
  .card-bg-video {
    display: none;
  }
}

.article-card > *:not(.card-bg-video) {
  position: relative;
  z-index: 1;
}

/* ────────────────────────────────────────────────────────────── */
/* READING PROGRESS BAR                                            */
/* ────────────────────────────────────────────────────────────── */

#reading-progress,
#overlay-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, #c9956a, #d4a574, #c9956a);
  z-index: 2000;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ────────────────────────────────────────────────────────────── */
/* SCROLL TO TOP BUTTON                                            */
/* ────────────────────────────────────────────────────────────── */

#scroll-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 14, 10, 0.85);
  border: 1px solid rgba(212, 165, 116, 0.45);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s;
  pointer-events: none;
  z-index: 800;
  backdrop-filter: blur(6px);
  will-change: transform, opacity;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scroll-top:hover {
  background: rgba(30, 22, 14, 0.95);
  border-color: var(--gold);
}

/* ────────────────────────────────────────────────────────────── */
/* FOOTER                                                          */
/* ────────────────────────────────────────────────────────────── */

footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 32px;
  text-align: center;
  /* Fix para saltos visuales en Safari */
  position: relative;
  z-index: 5;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
}

/* ────────────────────────────────────────────────────────────── */
/* RESPONSIVE                                                      */
/* ────────────────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────────────── */
/* PRELOADER                                                       */
/* ────────────────────────────────────────────────────────────── */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.18em;
  color: var(--gold);
  animation: pulse 1.6s ease infinite;
}

/* ────────────────────────────────────────────────────────────── */
/* HAMBURGER MENU                                                  */
/* ────────────────────────────────────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

header.hero-mode .hamburger span {
  background: #fff;
}

header.scrolled .hamburger span {
  background: var(--dark);
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none;
}

/* ────────────────────────────────────────────────────────────── */
/* RESPONSIVE — 900px (tablet / mobile)                           */
/* ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hamburger {
    display: flex;
  }

  /* Cuando el menú está abierto, fuerza colores visibles sobre el overlay oscuro */
  header.nav-open .lang-dropdown-trigger,
  header.scrolled.nav-open .lang-dropdown-trigger {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(var(--gold-rgb), 0.55);
  }

  header.nav-open .hamburger span,
  header.scrolled.nav-open .hamburger span {
    background: #fff;
  }

  nav ul {
    position: fixed;
    inset: 0;
    background: rgba(20, 14, 10, 0.98);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
  }

  nav ul.open {
    transform: translateX(0);
  }

  header.nav-open nav a {
    font-size: 22px;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.75);
  }

  header.nav-open nav a:hover, 
  header.nav-open nav a.active {
    color: var(--gold);
  }

  .lang-dropdown {
    position: relative;
    z-index: 1100;
  }

  .section-title {
    padding: 0 24px;
  }

  .articles-wrap, .mission-inner, .contact-inner {
    padding: 0 24px;
  }

  .articles-section,
  .mission-section {
    padding: 72px 0;
  }

  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-gallery {
    padding: 0 24px;
  }

  .hero-scroll {
    left: 24px;
  }

  .hero {
    height: 85vh;
    min-height: 560px;
  }

  .meditacion-section {
    height: 80vh;
  }

  .meditacion-quote {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .article-hero {
    padding: 90px 0 56px;
  }

  .article-body {
    padding: 32px 24px;
  }
}

/* ────────────────────────────────────────────────────────────── */
/* RESPONSIVE — 600px (small phones)                              */
/* ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  #scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero {
    height: 75vh;
    min-height: 480px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 72px);
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .meditacion-section {
    height: 70vh;
  }

  .meditacion-quote {
    font-size: clamp(1.15rem, 6vw, 1.7rem);
  }

  .articles-section,
  .mission-section {
    padding: 56px 0;
  }

  .article-body {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .article-navigation {
    grid-template-columns: 1fr;
  }

  .article-nav-card.next {
    text-align: left;
  }

  .contact-section {
    padding: 90px 0;
  }

  footer {
    padding: 48px 0 24px;
  }
}

/* Móvil: solo el botón "Leer" es clickeable */
@media (max-width: 768px) {
  .article-card {
    pointer-events: none;
  }

  .article-card .article-link,
  .article-card a,
  .article-card button {
    pointer-events: auto;
  }
}