/* ===========================
   Altitud 100K — Infografía Bootcamp + Insight AI
   =========================== */

/* ====== Paleta y base ====== */
:root{
  --bg:#02183D;
  --ink:#FFFFFF;
  --muted:#9FB3D1;
  --brand:#F21651;
  --brand-2:#F9921C;
  --surface:#0B1430;
  --outline:#ffffff22;
  --radius:14px;

  --hero-left:#06223e;
  --hero-right:#ffa17f;

  --tb-glow-size: 520px;
  --tb-glow-color: rgba(242,22,81,.55);

  --topbar-h: 64px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: system-ui, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  line-height:1.5;
}
h1,h2,h3{ font-weight:800; margin:0 0 10px; letter-spacing:.2px; }
h1{ font-size:clamp(32px,6vw,64px); line-height:1.1; }
h2{ font-size:clamp(22px,3.5vw,34px); }
h3{ font-size:clamp(18px,2.2vw,22px); }
p{ margin:0 0 10px; }
.muted{ color:var(--muted); }
.wrap{ max-width:1100px; margin:0 auto; padding:0 20px; }

/* Utils */
.mt-1{ margin-top:8px; }
.mt-2{ margin-top:16px; }
.mt-3{ margin-top:24px; }
.center{ text-align:center; }

/* ====== Botones ====== */
.btn{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
  border:1px solid transparent;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover{
  transform:translateY(-1px);
  filter:brightness(1.05);
}
.btn.small{ padding:8px 12px; font-size:12px; }
.btn.ghost{
  background:transparent;
  color:#fff;
  border-color:#ffffff55;
}
.btn.portal{
  background:#fff;
  color:#02183D;
}

/* ====== Topbar ====== */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg,#020a1dcc,#020a1d99 70%,transparent);
  border-bottom:1px solid var(--outline);
  backdrop-filter: blur(6px);
}
.topbar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
}
.brand-logo{ width:36px; height:36px; object-fit:contain; }
.brand-text{ font-weight:900; letter-spacing:1px; }
.brand-text span{ color:var(--brand); }
.mainnav{
  display:flex;
  gap:18px;
  align-items:center;
}
.mainnav a{
  color:#fff;
  opacity:.9;
  text-decoration:none;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:12px;
}
.mainnav a:hover{ opacity:1; color:var(--brand); }

/* ====== HERO ====== */
.hero-bootcamp{
  position:relative;
  min-height: calc(100svh - var(--topbar-h));
  min-height: calc(100vh - var(--topbar-h));
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--outline);
  overflow:hidden;
  background: linear-gradient(90deg, var(--hero-left) 0%, var(--hero-right) 100%);
  isolation:isolate;
}

.hero-bootcamp::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 600px at 15% 40%, rgba(2,24,61,.75), rgba(2,24,61,.35) 60%, rgba(2,24,61,.25) 75%, rgba(2,24,61,.15) 100%),
    linear-gradient(90deg, rgba(2,24,61,.85) 0%, rgba(2,24,61,.55) 40%, rgba(2,24,61,.35) 100%);
  z-index:0;
}

/* Estrellas */
#universe{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  mix-blend-mode:screen;
}
.star0,.star1,.star2,.star3{
  position:absolute;
  background:#fff;
  border-radius:50%;
  opacity:.9;
  filter: drop-shadow(0 0 6px rgba(255,255,255,.35));
}
.star0{ width:1px; height:1px; opacity:.8; }
.star1{ width:2px; height:2px; }
.star2{ width:3px; height:3px; }
.star3{ width:4px; height:4px; }

/* Hero contenido */
.hero-grid{
  position:relative;
  z-index:3;
  display:grid;
  gap:28px;
  grid-template-columns:1.2fr .8fr;
  padding:64px 0;
}
.hero-content{
  max-width:800px;
  text-shadow:0 2px 12px rgba(0,0,0,.55);
}
.subtitle{
  color:var(--brand-2);
  margin-top:6px;
}
.lead{
  color:var(--muted);
  margin-top:10px;
  max-width:760px;
}
.cta-row{
  display:flex;
  gap:12px;
  margin-top:16px;
}

/* Logo flotante */
.hero-art{
  position:absolute;
  right: clamp(12px,3vw,40px);
  top: 50%;
  transform: translateY(-50%);
  z-index:2;
  pointer-events:none;
}
#heroLogo{
  width: clamp(260px, 14vw, 380px);
  height:auto;
  display:block;
  object-fit:contain;
  filter:
    drop-shadow(0 20px 48px rgba(242,22,81,.30))
    drop-shadow(0 0 64px   rgba(242,22,81,.35))
    drop-shadow(0 0 12px   rgba(255,255,255,.40));
}
.hero-art::after{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width: var(--tb-glow-size);
  height: var(--tb-glow-size);
  border-radius:50%;
  background: radial-gradient(
    circle,
    var(--tb-glow-color) 0%,
    rgba(242,22,81,.28) 30%,
    rgba(242,22,81,.12) 55%,
    rgba(242,22,81,0) 70%
  );
  filter: blur(24px);
  z-index:-1;
  transform: translate(18%, -6%);
  animation: tbGlowPulse 6s ease-in-out infinite alternate;
}
@keyframes tbGlowPulse{
  from{ opacity:.85; transform: translate(18%,-6%) scale(0.94); }
  to  { opacity:1;   transform: translate(18%,-6%) scale(1.04); }
}

/* ™ en Insight AI */
.insight-ai{
  position:relative;
  display:inline-block;
  padding-right:.15em;
}
.insight-ai::after{
  content:"™";
  position:absolute;
  top:.2em;
  right:-.6em;
  font-size:.6em;
  font-weight:800;
  line-height:1;
  color:currentColor;
  opacity:.95;
}

/* ====== Secciones ====== */
.section{ padding:64px 0; }
.section.alt{
  background:#ffffff08;
  border-top:1px solid var(--outline);
  border-bottom:1px solid var(--outline);
}
.split{
  display:grid;
  gap:24px;
  grid-template-columns:1.2fr .8fr;
  align-items:flex-start;
}
.grid-2{
  display:grid;
  gap:24px;
  grid-template-columns:1.1fr .9fr;
}
.grid-3{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(3,1fr);
}







/* Cards "Bootcamp + Insight AI en una mirada" */
.overview-cards{
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.info-card{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--outline);
  background: #0b1430; /* color de respaldo por si no carga la imagen */
  padding: 18px 18px 20px;
}

/* La imagen pasa a ser el fondo completo del card */
.info-card .info-img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* difuminado + oscurecido para que el texto se lea bien */
  filter: blur(0.4px) brightness(0.8);
  transform: scale(1.08); /* evita bordes blancos al hacer blur */
  z-index: 0;
}

/* Capa extra para degradado suave (opcional pero ayuda) */
.info-card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.25), rgba(0,0,0,0.7));
  z-index: 1;
}

/* El texto queda por encima de la imagen y del degradado */
.info-card h3,
.info-card p{
  position: relative;
  z-index: 2;
}

.info-card h3{
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 18px;
}

.info-card p{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Responsive: en móvil las 3 cards una debajo de otra */
@media (max-width: 900px){
  .overview-cards{
    grid-template-columns: 1fr;
  }
}


















/* Panel genérico */
.panel{
  background:var(--surface);
  border:1px solid var(--outline);
  border-radius:var(--radius);
  padding:18px;
}
.panel.right{ align-self:start; }

/* Chips / pills */
.chip{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#0f1a3b;
  border:1px solid var(--outline);
  color:#fff;
}
.chip.dark{
  background:#020a1f;
}
.chips{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:6px;
}
.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.pill-list{
  list-style:none;
  padding:0;
  margin:10px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pill-list li{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:#0f1a3b;
  border:1px solid var(--outline);
}

/* Lista check */
.check{
  margin:10px 0 0;
  padding-left:18px;
}
.check li{ margin:6px 0; }

/* Pain / resumen */
.pain h2{ max-width:520px; }
.resumen .card h3{ font-size:18px; }

/* Insight AI value grid */
.lead-ia{
  max-width:850px;
  margin:0 auto 14px;
  font-size:18px;
}
.value-grid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(4,1fr);
  margin:16px auto 8px;
}
.value-card{
  position:relative;
  background:var(--surface);
  border:1px solid var(--outline);
  border-radius:12px;
  padding:14px 16px;
}
.value-card::before{
  content:"";
  position:absolute;
  left:-1px; right:-1px; top:-1px;
  height:3px;
  border-radius:12px 12px 0 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.value-card h4{ margin:0 0 6px; font-size:16px; }
.value-card p{ margin:0; color:var(--muted); }

/* Panel metrics con fondo */
.panel.metrics{
  position:relative;
  overflow:hidden;
  border:1px solid #ffffff2a;
  background:
    linear-gradient(135deg, rgba(2,24,61,.86), rgba(2,24,61,.70)),
    url("assets/bg-kpis.jpg");
  background-size:cover;
  background-position:center;
}
.panel.metrics > *{ position:relative; z-index:1; }
.panel.metrics::after{
  content:"";
  position:absolute;
  inset:0;
  box-shadow: inset 0 0 140px rgba(0,0,0,.25);
  z-index:0;
}
.panel.metrics h3{ color:#fff; }

/* Timeline */
.timeline{
  list-style:none;
  padding:0;
  margin:12px 0 0;
  border-left:2px dashed var(--outline);
}
.t-item{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:14px;
  padding:14px 0 14px 14px;
  position:relative;
}
.t-item::before{
  content:"";
  position:absolute;
  left:-7px;
  top:24px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--brand);
  box-shadow:0 0 0 6px rgba(242,22,81,.18);
}
.t-time{
  font-weight:800;
  color:var(--muted);
}
.t-body h3{ margin-bottom:6px; }

/* Statbox */
.statbox{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:14px;
  background:#0f1a3b;
  border:1px solid var(--outline);
  border-radius:12px;
  padding:10px;
}
.statbox div{ text-align:center; }
.statbox strong{
  font-size:22px;
  display:block;
}
.statbox span{
  font-size:12px;
  color:var(--muted);
}

/* Pricing / planes */
.plans{
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,.04), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
}
.price-cards{ align-items:stretch; }
.price-card{
  position:relative;
  background: linear-gradient(180deg, rgba(11,20,48,.9), rgba(11,20,48,.86));
  border:1px solid #ffffff1f;
  border-radius:20px;
  padding:22px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.price-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
  border-color:#ffffff33;
}
.pc-ribbon{
  position:absolute;
  top:12px; left:12px;
  font-size:12px;
  letter-spacing:.04em;
  padding:6px 10px;
  border-radius:999px;
  background:#0f1a3b;
  border:1px solid #ffffff2c;
  color:#fff;
}
.pc-ribbon.hit{
  background: linear-gradient(135deg, #F21651, #ff4d7e);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(242,22,81,.35);
}
.pc-head{
  font-weight:900;
  letter-spacing:.04em;
  margin-bottom:6px;
  background: linear-gradient(135deg, #fff, #cfe1ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.pc-price{
  margin:8px 0 10px;
  display:flex;
  align-items:end;
  gap:8px;
  flex-wrap:wrap;
}
.pc-price span{ color:var(--muted); font-weight:700; }
.pc-price strong{ font-size:28px; line-height:1; color:#fff; }
.pc-price small{ color:var(--muted); }
.pc-list{
  margin:0 0 14px;
  padding-left:18px;
}
.pc-list li{ margin:6px 0; }
.pc-lite { background: linear-gradient(180deg, rgba(11,20,48,.92), rgba(11,20,48,.86)); }
.pc-full { background: linear-gradient(180deg, rgba(20,25,60,.96), rgba(20,25,60,.88)); }
.pc-elite{ background: linear-gradient(180deg, rgba(14,18,46,.96), rgba(14,18,46,.88)); }
.pc-pop{
  outline: 2px solid transparent;
  box-shadow:
    0 10px 28px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 0 6px rgba(242,22,81,.08);
  transform: translateY(-3px);
}

/* Quotes */
.quote{
  background:var(--surface);
  border:1px solid var(--outline);
  border-radius:var(--radius);
  padding:18px;
  font-style:italic;
}
.quote cite{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-style:normal;
}

/* FAQ */
.faq details{
  background:var(--surface);
  border:1px solid var(--outline);
  border-radius:12px;
  padding:12px 14px;
  margin:10px 0;
}
.faq summary{
  cursor:pointer;
  font-weight:700;
}
.faq p{ margin-top:8px; }

/* CTA final + sticky */
.cta-final .cta-row{
  justify-content:center;
}
.cta-sticky{
  position:fixed;
  left:0; right:0; bottom:10px;
  z-index:30;
  display:none;
  gap:10px;
  justify-content:center;
}
.cta-sticky .btn{ flex:1; }

/* Footer */
.foot{
  border-top:1px solid var(--outline);
  padding:20px 0;
  color:var(--muted);
}
.foot-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.foot-nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.foot-nav a{
  color:var(--muted);
  text-decoration:none;
}
.foot-nav a:hover{ color:#fff; }
.foot-copy{
  display:flex;
  align-items:center;
  gap:0;
  color: var(--muted);
  opacity:.92;
}
.foot-copy .sig{
  margin-left:12px;
  padding-left:12px;
  border-left:1px dashed var(--outline);
  opacity:.85;
  white-space:nowrap;
}
.foot-copy .sig a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px dotted currentColor;
}
.foot-copy .sig a:hover{
  color: var(--ink);
  border-bottom-color: transparent;
}

/* Reveal animation */
[data-reveal]{
  opacity:0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
[data-reveal].revealed{
  opacity:1;
  transform: translateY(0);
}

/* ====== Responsivo ====== */
@media (max-width:1080px){
  .hero-grid{
    grid-template-columns:1fr;
    padding:48px 0 56px;
  }
}

@media (max-width:980px){
  .grid-3{ grid-template-columns:repeat(2,1fr); }
  .value-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:880px){
  :root{ --tb-glow-size: 420px; }
}

@media (max-width:720px){

  .wrap{ padding:0 16px; }
  h1{ font-size: clamp(28px, 8vw, 36px); }
  h2{ font-size: clamp(20px, 5.2vw, 26px); }
  h3{ font-size: clamp(18px, 4.6vw, 22px); }
  p, .muted{ font-size:15px; }

  .topbar .wrap{ height:52px; }
  .brand-logo{ width:30px; height:30px; }
  .mainnav a{ display:none; }
  .mainnav .btn.small{ display:inline-block; }

  .hero-bootcamp{
    padding:72px 0 260px;
  }
  .hero-grid{
    grid-template-columns:1fr;
    gap:18px;
    padding:36px 0 12px;
  }
  .hero-content .cta-row{
    flex-direction:column;
    align-items:stretch;
    margin-top:18px;
    margin-bottom:24px;
  }
  .hero-content .btn,
  .hero-content .btn.ghost{
    width:100%;
    text-align:center;
  }

  .hero-art{
    position:absolute;
    left:50%;
    right:auto;
    top:auto;
    bottom:8px;
    transform:translateX(-50%);
  }
  #heroLogo{
    width: clamp(180px, 54vw, 230px);
  }

  #universe{
    mix-blend-mode:normal;
    opacity:.7;
  }

  .split,
  .grid-2,
  .grid-3{
    grid-template-columns:1fr;
  }
  .value-grid{
    grid-template-columns:1fr;
  }

  .timeline{
    border-left:none;
    margin-top:8px;
  }
  .t-item{
    grid-template-columns:70px 1fr;
    padding-left:0;
  }

  .statbox{
    grid-template-columns:1fr;
  }

  .price-cards{
    grid-template-columns:1fr;
  }
  .price-card .btn{
    width:100%;
    text-align:center;
  }

  .cta-sticky{
    display:flex;
    bottom:12px;
    gap:12px;
    padding:0 12px;
  }

  .foot-flex{
    flex-direction:column;
    gap:10px;
    text-align:center;
  }
  .foot-copy .sig{
    margin-left:10px;
    padding-left:10px;
    border-left-color:transparent;
    border-top:1px dashed var(--outline);
    margin-top:6px;
    padding-top:6px;
  }

  .insight-ai::after{
    font-size:.4em;
    top:-.55em;
    right:-.06em;
  }
}

@media (max-width:480px){
  .lead{ font-size:14.5px; }
  .quote{ font-size:14.5px; padding:14px; }
  .faq details{ padding:10px 12px; }
}

/* Touch targets cómodos */
@media (max-width:720px){
  a, button, .btn, summary{ min-height:44px; }
}










/* Timeline en pantallas chicas: que se vea claramente como línea de tiempo */
@media (max-width: 720px){
  .timeline{
    border-left: 2px dashed var(--outline);   /* volvemos a dibujar la línea */
    margin-top: 12px;
    margin-left: 10px;                        /* separada del borde */
    padding-left: 4px;
  }

  .t-item{
    grid-template-columns: 1fr;               /* texto en una sola columna */
    gap: 8px;
    padding: 12px 0 12px 18px;                /* espacio para la línea y el punto */
    position: relative;
  }

  .t-item::before{
    left: -7px;                               /* centrado sobre la línea */
    top: 24px;                                /* a media altura del texto */
  }

  .t-time{
    order: -1;                                /* “Etapa 1, Etapa 2…” arriba */
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
  }
}







