:root{
  --bg:#070b14;
  --navy:#0b1b33;
  --navy2:#0a1630;
  --card:#0e1a33cc;
  --text:#f4f6fb;
  --muted:#b9c2d6;
  --gold:#d9b45b;
  --gold2:#f1d08a;
  --line:rgba(255,255,255,.10);
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  overflow-x:hidden;
}

/* Fondo */
.bg{
  position:fixed;
  inset:0;
  z-index:-3;
  background:
    radial-gradient(1200px 600px at 15% 20%, rgba(217,180,91,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 25%, rgba(80,120,255,.14), transparent 60%),
    radial-gradient(1000px 700px at 60% 80%, rgba(217,180,91,.10), transparent 60%),
    linear-gradient(180deg, #050712 0%, #070b14 30%, #050712 100%);
}
.bg-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.65));
}
.bg-grid{
  position:absolute;
  inset:-10%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: rotate(-8deg);
  opacity:.25;
  filter: blur(.2px);
}

/* Layout */
.container{
  width:min(1120px, 92vw);
  margin:0 auto;
}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(7,11,20,.55);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand-badge{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  color: var(--gold2);
  background: linear-gradient(145deg, rgba(217,180,91,.25), rgba(12,24,46,.65));
  border: 1px solid rgba(217,180,91,.35);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  font-size: 18px;
}
.brand-title{
  font-family: Cinzel, serif;
  letter-spacing:.6px;
  font-weight:700;
  font-size: 18px;
  line-height:1.1;
}
.brand-subtitle{
  color: var(--muted);
  font-size: 13px;
  margin-top:2px;
}

.topbar-right{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.pill{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15,25,45,.45);
  color: var(--muted);
}
.pill-gold{
  border-color: rgba(217,180,91,.35);
  color: #ffe8b7;
  background: rgba(217,180,91,.12);
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  padding: 44px 0 18px;
}
.kicker{
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.75);
  font-size: 12px;
  margin: 0 0 10px;
}
h1{
  font-family: Cinzel, serif;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.05;
  margin: 0 0 12px;
}
.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 56ch;
}

.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  text-decoration:none;
  color: var(--text);
  background: rgba(15,25,45,.35);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-weight: 600;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(15,25,45,.55);
}
.btn.primary{
  background: linear-gradient(145deg, rgba(217,180,91,.28), rgba(11,27,51,.45));
  border-color: rgba(217,180,91,.35);
  color: #fff3d2;
}
.btn.ghost{
  background: rgba(10,18,35,.20);
}
.btn.gold{
  background: linear-gradient(145deg, rgba(217,180,91,.32), rgba(241,208,138,.12));
  border-color: rgba(241,208,138,.35);
  color: #fff0c9;
}
.btn.small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.micro{
  display:flex;
  flex-wrap:wrap;
  gap: 12px;
  margin-top: 16px;
}
.micro-item{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(14,26,51,.35);
}
.micro-number{
  font-family: Cinzel, serif;
  font-weight: 700;
  color: #fff3d2;
  letter-spacing: .4px;
}
.micro-label{
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Cards */
.card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(14,26,51,.38);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.crest{
  position: relative;
}
.crest::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(800px 400px at 50% 0%, rgba(217,180,91,.18), transparent 60%);
  z-index:0;
}
.crest-inner{
  position: relative;
  z-index:1;
  padding: 22px;
}
.crest-top{
  text-align:center;
  padding: 6px 0 10px;
}
.crest-star{
  color: var(--gold2);
  font-size: 26px;
  margin-bottom: 6px;
}
.crest-title{
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: .8px;
  font-size: 34px;
}
.crest-years{
  color: rgba(255,255,255,.80);
  margin-top: 4px;
  letter-spacing: .12em;
  font-size: 12px;
  text-transform: uppercase;
}
.crest-ribbon{
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(217,180,91,.28);
  background: rgba(217,180,91,.10);
  color: #ffe9bd;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap:wrap;
  font-weight: 600;
  font-size: 13px;
}
.divider{
  height:1px;
  background: rgba(255,255,255,.10);
  margin: 14px 0;
}
.quote p{
  margin:0;
  color: rgba(244,246,251,.92);
  line-height: 1.7;
  font-size: 15px;
  text-align:center;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.note{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align:center;
}

/* Sections */
.section{
  padding: 34px 0 6px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap:wrap;
}
h2{
  margin:0;
  font-family: Cinzel, serif;
  letter-spacing: .3px;
  font-size: 24px;
}
.section-sub{
  margin:0;
  color: var(--muted);
}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.card-title{
  font-weight: 700;
  margin-bottom: 8px;
}
.card-text{
  margin:0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}
.card{
  padding: 16px;
}
.status{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  font-weight: 600;
}
.status.ok{
  border-color: rgba(100,220,140,.25);
  background: rgba(100,220,140,.10);
}
.status.building{
  border-color: rgba(217,180,91,.25);
  background: rgba(217,180,91,.10);
  color: #ffe9bd;
}

/* Timeline */
.timeline{
  margin-top: 10px;
  border-left: 1px solid rgba(255,255,255,.12);
  padding-left: 18px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.timeline-item{
  position: relative;
}
.dot{
  position:absolute;
  left:-26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(217,180,91,.22);
  border: 1px solid rgba(217,180,91,.45);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.timeline-content h3{
  margin:0 0 6px;
  font-size: 16px;
}
.timeline-content p{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
}

/* Callout */
.callout{
  margin-top: 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(217,180,91,.20);
  background: rgba(217,180,91,.08);
}
.callout h3{
  margin:0 0 6px;
  font-size: 16px;
}
.callout p{
  margin:0;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
}
.callout-right{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* Footer */
.footer{
  padding: 28px 0 38px;
}
.footer-line{
  height:1px;
  background: rgba(255,255,255,.10);
  margin-bottom: 14px;
}
.footer-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.88);
}
.footer-small{
  color: var(--muted);
}
.muted{ color: var(--muted); }

/* Accesibilidad */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* Responsive */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; padding-top: 28px; }
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .grid{ grid-template-columns: 1fr; }
  .topbar-right{ justify-content:flex-start; }
}
