/* ============================================================
   EL SABER INVISIBLE — style.css
   CSS compartido para todas las páginas (ES + EN)
   Rutas de assets siempre absolutas desde la raíz /
   ============================================================ */

/* ── FUENTES LOCALES ────────────────────────────────────────── */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/raleway-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/raleway-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/raleway-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/raleway-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-600-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/spectral-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/spectral-latin-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/spectral-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/spectral-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/spectral-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/spectral-latin-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/spectral-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/spectral-latin-600-italic.woff2') format('woff2');
}

/* ── RESET & BOX MODEL ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  --black:      #08080c;
  --navy:       #0c1420;
  --navy-mid:   #0f1622;
  --blue-flame: #4a9ece;
  --gold:       #c8a040;
  --gold-light: #e0b84a;
  --gold-pale:  #f0d890;
  --white-warm: #e8e0d5;
  --text:       #ccdae6;
  --text-dim:   #6a8aa8;
  --border:     rgba(74,158,206,0.13);
}

/* ── BASE ──────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'Spectral', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ── LANG SELECTOR ─────────────────────────────────────────── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 1rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.nav-lang span { color: var(--border); }
.nav-lang a { color: var(--text-dim); text-decoration: none; transition: color 0.25s; }
.nav-lang a:hover { color: #fff; }
.nav-lang a.lang-active { color: #fff; }
.nav-lang-mobile,
nav ul .nav-lang-mobile,
.nav-links .nav-lang-mobile { display: none !important; }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: var(--black);
  border-bottom: 1px solid rgba(74,158,206,0.1);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0; }
.nav-right a {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); text-decoration: none; transition: color 0.25s;
}
.nav-right a:hover { color: var(--blue-flame); }
.nav-right svg { width: 17px; height: 17px; fill: currentColor; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-dim); }

/* ── PAGE HEADER (páginas legales y de sección) ────────────── */
.page-header {
  padding: 140px 2rem 4rem;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}
.page-header-inner { max-width: 760px; margin: 0 auto; }

.page-eyebrow {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--blue-flame);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white-warm);
  text-transform: uppercase;
  line-height: 1.1;
}

/* ── SECTION LABEL (etiqueta itálica azul) ─────────────────── */
.section-label {
  display: block;
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--blue-flame);
  opacity: 0.85;
  margin-bottom: 0.8rem;
}

/* ── HERO COMPARTIDO (páginas de sección) ──────────────────── */
.hero {
  position: relative;
  height: 65vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 72px;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.hero-overlay { position: absolute; inset: 0; background: rgba(8,8,12,0.55); }
.hero-bottom-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--navy));
  pointer-events: none; z-index: 5;
}
.hero-content {
  position: relative; z-index: 10;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 0 4rem 3.5rem;
  animation: fadeUp 1.1s ease both;
}
.hero-eyebrow {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--blue-flame);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.6rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.06em;
  color: var(--white-warm);
  text-transform: uppercase;
}

/* ── BOTONES ────────────────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.9rem 2.4rem;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.9rem 2.4rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* Alias — mismos estilos, nombres alternativos */
.btn-primary { display: inline-block; font-family: 'Raleway', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 0.9rem 2.4rem; text-decoration: none; transition: background 0.3s; }
.btn-primary:hover { background: var(--gold-light); color: var(--navy); }
.btn-secondary { display: inline-block; font-family: 'Raleway', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,0.18); padding: 0.9rem 2.4rem; text-decoration: none; transition: all 0.3s; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── LEGAL CONTENT ──────────────────────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.legal-content p {
  color: var(--text-dim);
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
  line-height: 1.85;
}
.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin: 2.5rem 0 0.8rem;
  letter-spacing: 0.03em;
}
.legal-meta {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-dim);
  opacity: 0.6;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-datos {
  background: var(--black);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
  font-size: 0.92rem;
  line-height: 2;
}
.legal-datos strong { color: var(--white-warm); font-weight: 600; }
.legal-highlight {
  background: var(--black);
  border-left: 2px solid var(--gold);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* ── BACK TO TOP ────────────────────────────────────────────── */
#backTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 800;
  width: 44px; height: 44px;
  background: var(--black);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, color 0.25s, border-color 0.25s;
  pointer-events: none;
}
#backTop.shown { opacity: 1; transform: none; pointer-events: auto; }
#backTop:hover { color: var(--gold); border-color: var(--gold); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--black);
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand-logo { margin-bottom: 0.8rem; }
.footer-brand-logo img { height: 38px; }
.footer-tagline {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); text-decoration: none; transition: color 0.25s;
}
.footer-social a:hover { color: var(--blue-flame); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-flame);
  margin-bottom: 1rem;
  opacity: 0.85;
}
.footer-col a {
  display: block;
  font-family: 'Spectral', serif;
  font-size: 0.9rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.22rem 0;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-family: 'Spectral', serif; font-size: 0.78rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a {
  font-family: 'Spectral', serif;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-legal a:hover { color: var(--gold); }

/* ── ANIMACIONES ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 1.2rem; }
  .nav-links, .nav-right { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--black);
    padding: 1.5rem 1.5rem 2rem;
    gap: 1.3rem;
    border-bottom: 1px solid var(--border);
    z-index: 899;
  }

  .hero { height: auto; min-height: 52vh; padding: 100px 0 2rem; }
  .hero-content { padding: 0 1.5rem 2.5rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 1rem; }

  .btn-gold, .btn-outline { width: 100%; max-width: 260px; text-align: center; }
}

@media (max-width: 768px) {
  .nav-lang-mobile,
  nav ul .nav-lang-mobile,
  .nav-links .nav-lang-mobile { display: flex !important; }
}
