/* /assets/css/styles.css */
:root{
  --header-h: 64px;
  --max-w: 1120px;
  --pad-x: clamp(18px, 5vw, 32px);

  --bg-dark: #0b0b0b;
  --bg-night: #0b1c2d;
  --bg-topbar: #081726;
  --panel-alt: #0e2538;

  --gold: #d6b25e;

  --text: rgba(241,245,249,0.90);
  --muted: rgba(203,213,225,0.90);
  --muted-2: rgba(241,245,249,0.78);

  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.08);

  --glass: rgba(255,255,255,0.03);
  --glass-2: rgba(255,255,255,0.02);

  --shadow: 0 18px 45px rgba(0,0,0,0.35);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
}

@media (max-width: 640px){
  :root{ --header-h: 72px; }
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }

:focus-visible{
  outline: 3px solid rgba(214,178,94,0.55);
  outline-offset: 3px;
}

[data-header] + main section[id],
section[id]{ scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  background: var(--bg-topbar);
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* lock scroll when menu open */
html.is-locked,
body.is-locked{
  overflow: hidden;
}

/* header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-topbar);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.header-bar{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.brand:hover{
  border-color: rgba(214,178,94,0.18);
  background: rgba(214,178,94,0.06);
}
.brand-name{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214,178,94,0.92);
}

/* desktop nav */
.nav--desktop{
  display:flex;
  align-items:center;
  gap: 12px;
}

.nav-link{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(241,245,249,0.86);
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav-link:hover{
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* burger */
.nav-toggle{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
}
.nav-toggle:hover{ background: rgba(255,255,255,0.04); }

.nav-toggle-lines{
  display:block;
  width: 18px;
  margin: 0 auto;
}
.nav-toggle-lines span{
  display:block;
  height: 2px;
  margin: 4px 0;
  border-radius: 99px;
  background: rgba(241,245,249,0.86);
}

/* mobile menu */
.mobile[hidden]{ display:none; }
.mobile{
  position: fixed;
  inset: 0;
  z-index: 80;
}

.mobile-overlay{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}

.mobile-drawer{
  position:absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 92vw);
  background: var(--bg-topbar);
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
  display:flex;
  flex-direction:column;
}

.mobile.is-open .mobile-drawer{ transform: translateX(0); }

.mobile-top{
  height: var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.mobile-title{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214,178,94,0.90);
}

.mobile-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  color: rgba(241,245,249,0.92);
  font-size: 22px;
  line-height: 1;
}
.mobile-close:hover{ background: rgba(255,255,255,0.04); }

.mobile-nav{
  padding: 14px;
  display:grid;
  gap: 10px;
}

.mobile-link{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  font-weight: 700;
  font-size: 14px;
  color: rgba(241,245,249,0.90);
}
.mobile-link:hover{ background: rgba(255,255,255,0.04); }

/* hero */
.hero{
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(214, 178, 94, 0.22), transparent 65%),
    linear-gradient(180deg, var(--bg-topbar) 0%, var(--bg-night) 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.hero::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height: 56px;
  background: linear-gradient(
    to bottom,
    rgba(11, 28, 45, 0) 0%,
    rgba(11, 28, 45, 0.75) 55%,
    rgba(11, 28, 45, 1) 100%
  );
  pointer-events:none;
}

.hero-inner{
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(48px, 7vw, 84px);
  display:flex;
  justify-content:center;
}

.hero-content{
  max-width: 860px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero-logo{
  width: 120px;
  margin: 0 0 10px;
  filter: drop-shadow(0 10px 22px rgba(214, 178, 94, 0.18));
}

.hero-kicker{
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 178, 94, 0.90);
  margin-bottom: 10px;
}

.hero-title{
  margin: 0;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: rgba(214, 178, 94, 0.96);
  max-width: 28ch;
}

.hero-text{
  margin-top: 16px;
  max-width: 82ch;
}

.hero-text p{
  margin: 12px 0 0;
  font-size: clamp(15.5px, 1.55vw, 18px);
  line-height: 1.75;
  color: rgba(203,213,225,0.98);
}

.hero-lead{
  margin-top: 0;
  color: rgba(241,245,249,0.92);
  font-size: clamp(16px, 1.75vw, 20px);
}

/* content */
.content{
  background: var(--bg-night);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.stack{
  padding-top: clamp(40px, 5.5vw, 76px);
  padding-bottom: clamp(40px, 5.5vw, 76px);
  display:grid;
  gap: clamp(18px, 3vw, 26px);
}

/* panels */
.panel{
  border-radius: var(--r-lg);
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.panel--alt{
  background: var(--panel-alt);
  border-color: rgba(255,255,255,0.06);
}

.panel-head{
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 28px) 0;
}

.panel-title{
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--gold);
}

.panel-body{
  padding: 14px clamp(18px, 3vw, 28px) clamp(20px, 3vw, 28px);
}

/* prose */
.prose{
  max-width: 860px;
}

.prose p{
  margin: 12px 0 0;
  font-size: clamp(15.5px, 1.35vw, 17px);
  line-height: 1.75;
  color: rgba(203,213,225,0.98);
}

.prose p:first-child{ margin-top: 0; }

.prose .lead{
  font-size: clamp(16.5px, 1.7vw, 20px);
  color: rgba(229,231,235,0.98);
}

/* subhead */
.subhead{
  margin: 26px 0 14px;
  font-size: clamp(21px, 2.2vw, 27px);
  color: var(--gold);
  font-weight: 650;
}

/* checklist */
.checklist{
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display:grid;
  gap: 10px;
  max-width: 620px;
}

.checklist li{
  position: relative;
  padding-left: 38px;
  line-height: 1.8;
  color: rgba(226,232,240,0.98);
  font-size: 16.5px;
}

.checklist li::before{
  content:"";
  position:absolute;
  left:0;
  top:6px;
  width:18px;
  height:18px;
  border-radius: 50%;
  background: rgba(214,178,94,0.18);
  border: 1px solid rgba(214,178,94,0.55);
  box-shadow: 0 0 10px rgba(214,178,94,0.35);
}

.checklist li::after{
  content:"";
  position:absolute;
  left: 5px;
  top: 10px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
}

/* cards (modules) */
.cards{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--glass);
  overflow: hidden;
}

.card-media{
  padding: 12px;
}

.card-body{
  padding: 0 14px 14px;
}

.card-title{
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: rgba(241,245,249,0.92);
}

.card-text{
  margin: 0;
  color: rgba(203,213,225,0.98);
  line-height: 1.75;
}

/* video */
.video{
  width: 100%;
  border-radius: 14px;
  background: rgba(0,0,0,0.25);
  object-fit: contain;
}

.video--tall{
  aspect-ratio: 9 / 16;
  max-height: 520px;
}

@media (max-width: 860px){
  .video--tall{ max-height: 420px; }
}

/* route blocks */
.route{
  margin: 18px 0 22px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 860px;
}

.route-label{
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
}

.route-code{
  display:inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(214,178,94,0.10);
  border: 1px solid rgba(214,178,94,0.35);
  color: rgba(241,245,249,0.96);
}

.route-hint{
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(203,213,225,0.98);
}

/* alias block */
.alias{
  margin-top: 22px;
  padding: 20px;
  text-align:center;
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 860px;
}

.alias-code{
  display:inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(214,178,94,0.12);
  border: 1px solid rgba(214,178,94,0.45);
  color: rgba(241,245,249,0.96);
  letter-spacing: 0.02em;
}

.alias-hint{
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(203,213,225,0.98);
}

/* faq */
.faq{
  margin-top: 8px;
  max-width: 860px;
  display:grid;
  gap: 12px;
}

.faq-item{
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.20);
  overflow: hidden;
}

.faq-item summary{
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-size: 16.5px;
  font-weight: 650;
  color: rgba(229,231,235,0.98);
  position: relative;
}

.faq-item summary::-webkit-details-marker{ display:none; }

.faq-item summary::after{
  content:"+";
  position:absolute;
  right:18px;
  top:14px;
  font-size:20px;
  color: var(--gold);
  transition: transform 180ms ease;
}

.faq-item[open] summary::after{ transform: rotate(45deg); }

.faq-body{
  padding: 0 18px 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(203,213,225,0.98);
}

/* footer */
.site-footer{
  background: var(--bg-topbar);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer-bar{
  padding: 18px var(--pad-x);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy{
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-links{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a{
  font-size: 13px;
  font-weight: 800;
  color: rgba(214,178,94,0.90);
}
.footer-links a:hover{ color: rgba(241,230,176,0.96); }

/* responsive */
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  .nav--desktop{ display:none; }
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .mobile-drawer{ transition: none; }
}
/* añade esto AL FINAL de /assets/css/styles.css (opcional, para ajustar el hero legal sin alterar el de home) */
.hero--legal .hero-title{ max-width: 34ch; }
.hero--legal .hero-text{ max-width: 76ch; }
/* agrega esto AL FINAL de /assets/css/styles.css */
.back-btn{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214,178,94,0.22);
  background: rgba(214,178,94,0.06);
  color: rgba(214,178,94,0.92);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.back-btn:hover{
  background: rgba(214,178,94,0.10);
  border-color: rgba(214,178,94,0.30);
  color: rgba(241,230,176,0.96);
}
.back-btn:active{ transform: translateY(1px); }
/* ===== FOOTER PROFESIONAL ===== */

.site-footer{
  background: #081726;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 60px;
}

/* zona principal */
.footer-main{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 42px;
  padding: 42px var(--pad-x);
}

/* logo */
.footer-logo{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 14px;
}

/* descripción */
.footer-desc{
  margin: 0;
  max-width: 420px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(203,213,225,0.92);
}

/* volver arriba */
.footer-back{
  display: inline-block;
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(214,178,94,0.92);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(214,178,94,0.22);
  background: rgba(214,178,94,0.06);
  transition: .18s ease;
}
.footer-back:hover{
  background: rgba(214,178,94,0.10);
  border-color: rgba(214,178,94,0.30);
  color: #f1e6b0;
}

/* bloque enlaces */
.footer-links-title{
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(241,245,249,0.75);
  margin-bottom: 14px;
}

.footer-links{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a{
  font-size: 15px;
  font-weight: 700;
  color: rgba(214,178,94,0.92);
  transition: .18s ease;
}
.footer-links a:hover{
  color: #f1e6b0;
  transform: translateX(3px);
}

/* barra inferior */
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px 10px 22px;
  font-size: 13px;
  color: rgba(241,245,249,0.70);
}

/* responsive */
@media (max-width: 780px){
  .footer-main{
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-desc{
    margin: 0 auto;
  }

  .footer-links{
    align-items: center;
  }
}
