:root{
  --blue:#020659;
  --petrol:#0C2C40;
  --offwhite:#F2F1F0;
  --orange:#F26B1D;
  --red:#F23005;

  --text:#0f172a;
  --muted:#475569;
  --border:rgba(12,44,64,.14);

  --container:1120px;
  --pad:24px;

  --r:18px;
  --shadow-soft:0 14px 40px rgba(2,6,23,.08);
  --shadow-strong:0 32px 80px rgba(2,6,23,.22);

  /* Header */
  --header-top-h: 74px;  /* fila 1 */
  --header-sub-h: 48px;  /* fila 2 */
  --header-h: calc(var(--header-top-h) + var(--header-sub-h));
}

/* Reset */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--offwhite);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}

.container{
  width:min(var(--container), 100% - (var(--pad)*2));
  margin-inline:auto;
}
.header .container{
  width: 100%;
  margin-inline: 0;
  padding-inline: var(--pad);
}

/* ================= HEADER (integrado al hero) ================= */
.header{
  position:absolute;
  top:0; left:0;
  width:100%;
  z-index:200;
  border-bottom:1px solid rgba(255,255,255,.08);

  /* Base transparente: la integración la hace el "scrim" */
  background:transparent;
}

/* scrim = capa que unifica header + hero (NO parece “pegado encima”) */
.header::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.06) 0%,
      rgba(0,0,0,.03) 55%,
      rgba(0,0,0,.00) 100%
    );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* fade hacia el hero (para que no se note el corte) */
.header::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height:34px;
  background:linear-gradient(to bottom, rgba(0,0,0,.20), transparent);
  pointer-events:none;
}

/* contenido del header por arriba del scrim */
.header__inner{
  position:relative;
  z-index:1;
}

/* fila 1 */
.header__top{
  height:var(--header-top-h);
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 0 10px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.logo{
  height:150px;
  margin-top:15px;
  width:auto;
  display:block;
}

/* Buscador */
.search{
  flex:0;
  width:380px;
  display:flex;
  align-items:center;
  gap:10px;
  height:44px;
  padding:0 12px 0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
}

.search__input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  font-size:14px;
}
.search__input::placeholder{color:rgba(255,255,255,.78)}

.search__btn{
  border:none;
  cursor:pointer;
  height:34px;
  padding:0 16px;
  border-radius:999px;
  background:var(--orange);
  color:#111;
  font-weight:900;
  transition:filter .15s ease, transform .15s ease;
}
.search__btn:hover{filter:brightness(1.08); transform:translateY(-1px);}

/* Auth derecha */
.auth{
  display:flex;
  margin-left:auto;
  align-items:center;
  gap:14px;
  flex:0 0 auto;
}
.auth__link{
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:14px;
}
.auth__link:hover{color:rgba(255,255,255,.72)}

.auth__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:38px;
  padding:0 18px;
  border-radius:999px;
  background:var(--orange);
  color:#111;
  font-weight:900;
  white-space:nowrap;
  border:1px solid rgba(242,107,29,.45);
}
.auth__btn:hover{filter:brightness(1.08)}

/* fila 2 */
.header__subnav{
  height:var(--header-sub-h);
  display:flex;
  align-items:center;
  padding:0 0 12px;
}

.subnav{
  display:flex;
  gap:18px;
  align-items:center;
  overflow:auto;
  scrollbar-width:none;
}
.subnav::-webkit-scrollbar{display:none}

.subnav__item{
  color:#fff;
  font-weight:600;
  font-size:15px;
  line-height:1;
  padding: 6px 2px;
  text-shadow:0 4px 12px rgba(0,0,0,.35);
}
.subnav__item:hover{color:rgba(255,255,255,.70)}
.subnav__caret{opacity:.8}

/* ================= BUTTONS ================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.10);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease;
}
.btn:hover{transform:translateY(-2px); filter:brightness(1.05)}

.btn--primary{
  background:var(--orange);
  border-color:rgba(242,107,29,.55);
  color:#111;
}
.btn--ghost{
  background:transparent;
  color:#fff;
  border-color:rgba(255,255,255,.25);
}
.btn--full{width:100%}

/* ================= HERO ================= */
.hero{
  position:relative;
  color:#fff;

  /* Más alto + más aire (header es fijo) */
  min-height:96vh;
  display:flex;
  align-items:flex-start;
  overflow:hidden;

  /* fallback */
  background:
    radial-gradient(900px 500px at 12% 18%, rgba(242,107,29,.22), transparent 65%),
    radial-gradient(800px 460px at 88% 30%, rgba(242,48,5,.16), transparent 70%),
    linear-gradient(135deg,var(--blue),var(--petrol));
}

/* Carrusel */
.hero__background{
  position:absolute;
  inset:0;
  z-index:1;
}
.hero__slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity 1.2s ease-in-out;
}
.hero__slide.active,
.hero__slide.is-active{
  opacity:1;
}

/* Overlay unificado (la clave para que NO se vea “dos cosas distintas”) */
.hero__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.55) 0%,
      rgba(0,0,0,.45) 38%,
      rgba(0,0,0,.52) 100%
    );
  z-index:2;
}

/* Contenido */
.hero__grid{
  position:relative;
  z-index:3;
  padding-top: calc(var(--header-h) + 86px);
  padding-bottom: 96px;
}

.kicker{
  margin:0 0 10px;
  font-size:20px;
  letter-spacing:.16em;
  text-shadow:0 8px 18px rgba(0,0,0,.45);
  color:rgba(255,255,255,.90);
}

.h1{
  font-size:clamp(44px,5.2vw,76px);
  line-height:1.02;
  max-width:22ch;
  margin:8px 0 14px;
  text-shadow:0 14px 34px rgba(0,0,0,.35);
}

.lead{
  font-size:clamp(16px,1.55vw,21px);
  color:rgba(255,255,255,.92);
  max-width:70ch;
  margin:0 0 18px;
  text-shadow:0 14px 30px rgba(0,0,0,.28);
}

.hero__actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* ================= SECTIONS ================= */
.section{padding:72px 0}
.section--soft{background:#fff}

.h2{
  font-size:clamp(26px,2.4vw,36px);
  color:var(--petrol);
  margin:0 0 10px;
}
.sublead{
  margin:0 0 18px;
  color:var(--muted);
  max-width:80ch;
  font-size:16px;
}

/* About / Features */
.features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-top:24px;
}
.feature{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.feature__h{
  font-weight:900;
  color:var(--blue);
  margin:0 0 6px;
}
.feature__p{margin:0;color:var(--muted);font-size:14px}

/* Bullets */
.bullets{
  list-style:none;
  padding-left:0;
  margin:18px 0 0;
  max-width:80ch;
  color:var(--muted);
}
.bullets li{
  position:relative;
  padding-left:22px;
  margin:8px 0;
}
.bullets li::before{
  content:"•";
  position:absolute;
  left:0;
  top:0;
  color:var(--petrol);
  font-weight:900;
}

/* Cómo funciona */
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:28px;
}
.step{
  background:transparent;
  border:1px dashed rgba(12,44,64,.25);
  border-radius:16px;
  padding:22px;
}
.step__n{
  margin:0 0 6px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(12,44,64,.55);
}
.step__h{
  margin:0 0 6px;
  font-weight:900;
  color:var(--petrol);
}
.step__p{margin:0;color:var(--muted);font-size:14px}

/* Roles */
#roles{
  background:linear-gradient(180deg, rgba(2,6,89,.03), rgba(12,44,64,.06));
}
.cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:28px;
}
.card{
  background:#fff;
  border-radius:var(--r);
  padding:22px;
  border:1px solid rgba(12,44,64,.14);
  border-top:4px solid rgba(242,107,29,.8);
  box-shadow:var(--shadow-strong);
  transition:transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 36px 90px rgba(2,6,23,.28);
}
.card__h{
  margin:0 0 8px;
  font-weight:900;
  color:var(--petrol);
}
.card__p{
  margin:0 0 18px;
  color:var(--muted);
  font-size:14px;
}

/* Footer */
.footer{
  background:#fff;
  border-top:1px solid var(--border);
  padding:22px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  font-size:13px;
  color:rgba(12,44,64,.75);
}
.footer__muted{color:rgba(12,44,64,.55);margin:0}

/* Misc */
.differentiator{
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  background:rgba(2,6,89,.03);
  border:1px solid rgba(12,44,64,.12);
}
.differentiator__title{
  margin:0 0 6px;
  font-weight:1000;
  color:var(--petrol);
  letter-spacing:.2px;
}
.differentiator__text{
  margin:0;
  color:var(--muted);
  max-width:80ch;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 980px){
  :root{
    --header-top-h: auto;
    --header-sub-h: auto;
    --header-h: auto;
  }

  .features,
  .steps,
  .cards{
    grid-template-columns: 1fr;
  }

  .header .container{
    padding-inline: 16px;
  }

  .header__top{
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0 8px;
  }

  .brand{
    justify-content: center;
  }

  .logo{
    height: 52px;
    margin-top: 0;
  }

  .auth{
    display: none;
  }

  .search{
    width: 100%;
    max-width: 100%;
    height: 42px;
    margin: 0;
  }

  .search__btn{
    display: none;
  }

  .header__subnav{
    height: auto;
    padding: 0 0 10px;
  }

  .subnav{
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .subnav__item{
    font-size: 14px;
    padding: 4px 0;
    flex: 0 0 auto;
  }

  .hero{
    min-height: auto;
  }

  .hero__grid{
    padding-top: 190px;
    padding-bottom: 32px;
  }

  .kicker{
    font-size: 14px;
    letter-spacing: .10em;
    margin-bottom: 8px;
  }

  .h1{
    font-size: clamp(26px, 9vw, 40px);
    line-height: 1.04;
    max-width: 12ch;
    margin: 0 0 12px;
  }

  .lead{
    font-size: 16px;
    line-height: 1.5;
    max-width: 34ch;
    margin: 0 0 22px;
  }

  .hero__actions{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero__actions .btn{
    width: 100%;
  }

  .section{
    padding: 56px 0;
  }

  .featured__grid{
    gap: 26px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .featured__item{
    width: 88px;
  }

  .featured__img{
    width: 88px;
    height: 88px;
  }

  .featured__name{
    font-size: 13px;
  }
}

@media (max-width: 640px){
  .container{
    width: min(var(--container), 100% - 24px);
  }

  .header .container{
    padding-inline: 12px;
  }

  .logo{
    height: 44px;
  }

  .search{
    height: 40px;
    padding: 0 10px 0 12px;
  }

  .search__input{
    font-size: 13px;
  }

  .header__subnav{
    padding: 4px 0 10px;
  }

  .subnav{
    gap: 12px;
  }

  .subnav__item{
    font-size: 13px;
  }

  .hero__grid{
    padding-top: 176px;
    padding-bottom: 28px;
  }

  .kicker{
    font-size: 13px;
  }

  .h1{
    font-size: clamp(26px, 9vw, 40px);
    line-height: 1.05;
    max-width: 11ch;
    margin: 0 0 14px;
  }

  .lead{
    font-size: 15px;
    max-width: 30ch;
    line-height: 1.45;
    margin: 0 0 18px;
  }

  .btn{
    padding: 11px 16px;
    font-size: 14px;
  }

  .catgrid{
    gap: 14px;
  }

  .catcard{
    grid-column: span 12;
    height: 150px;
  }

  .catcard__title{
    font-size: 17px;
  }

  .catcard__subtitle{
    font-size: 12px;
  }

  .featured{
    padding: 20px 0;
  }

  .featured__grid{
    gap: 18px;
  }

  .join__head{
    margin-bottom: 28px;
  }

  .join-item__title{
    font-size: 30px;
  }

  .join-item__text{
    font-size: 15px;
  }

  .footer__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__links{
    flex-wrap: wrap;
    gap: 12px;
  }
} 

/* ================= CATEGORÍAS ESTILO APP ================= */
.catgrid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.catcard{
  grid-column: span 4;
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  height: 170px;
  border: 1px solid rgba(12,44,64,.14);
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
}

.catcard__img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02);
}

.catcard__overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.55) 100%);
}

.catcard__content{
  position:absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
  text-shadow: 0 10px 20px rgba(0,0,0,.35);
}

.catcard__title{
  margin:0;
  font-weight: 950;
  font-size: 18px;
  letter-spacing: .2px;
}

.catcard__subtitle{
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 13px;
  opacity: .90;
}

.catcard:hover{
  filter: brightness(1.03);
  transform: translateY(-2px);
  transition: transform .15s ease, filter .15s ease;
}

@media (max-width: 1024px){
  .catcard{ grid-column: span 6; }
}
@media (max-width: 640px){
  .catcard{ grid-column: span 12; height: 160px; }
}
/* ================= DESTACADOS ================= */
.featured{
  padding: 26px 0;
}

.featured__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.featured__grid{
  display:flex;
  flex-wrap:nowrap;
  gap:50px;
  overflow-x:auto;
  padding-left:40px;
  padding-right:40px;
  padding-bottom:8px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.featured__grid::-webkit-scrollbar{
  display:none;
}

.featured__item{
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  color:inherit;
  width:110px;
}

.featured__img{
  width:125px;
  height:125px;
  border-radius:50%;
  object-fit:cover;
  display:block;
  box-shadow:var(--shadow-soft);
}

.featured__name{
  margin-top:8px;
  font-size:15px;
  font-weight:600;
  text-align:center;
  line-height:1.15;
  color:#0C2C40;
}

/* ================= SUMATE ================= */
.join{
  background: linear-gradient(180deg, rgba(2,6,89,.03), rgba(12,44,64,.05));
}

.join__head{
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.join__eyebrow{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #0C2C40;
  text-transform: uppercase;
}

.join__sublead{
  margin: 0 auto;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--petrol);
  font-weight: 600;
}

.join__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.join-item{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.join-item__media{
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-item__blob{
  position: absolute;
  inset: 0;
  background: var(--orange);
  border-radius: 58% 42% 50% 50% / 44% 56% 44% 56%;
  transform: rotate(-8deg);
}

.join-item__img{
  position: relative;
  width: 82%;
  height: 82%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
}

.join-item__title{
  margin: 0 0 12px;
  font-size: clamp(28px, 2.2vw, 42px);
  line-height: 1.05;
  color: var(--petrol);
}

.join-item__text{
  margin: 0 auto 24px;
  max-width: 28ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
  flex-grow: 1;
}

.join-item__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 10px 24px rgba(242,107,29,.25);
  margin-top: auto;
}

.join-item__btn:hover{
  transform: translateY(-2px);
  background: #d85e17;
  box-shadow: 0 14px 28px rgba(242,107,29,.35);
}

@media (max-width: 1100px){
  .join__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .join__grid{
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .join-item__media{
    max-width: 250px;
  }

  .join-item__title{
    font-size: 34px;
  }

  .join-item__text{
    max-width: 30ch;
  }
}

/* ================= FOOTER ================= */
.footer{
  background:#fff;
  border-top:1px solid var(--border);
  padding:28px 0;
  margin-top:40px;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
  font-size:14px;
  color:var(--muted);
}

.footer__links{
  display:flex;
  gap:18px;
}

.footer__links a{
  color:var(--muted);
  font-weight:600;
}

.footer__links a:hover{
  color:var(--petrol);
}

.footer__copy{
  font-size:13px;
  opacity:.8;
}