:root{
  /* PALETA (OBLIGATORIA) */
  --yellow:#FDC500;
  --navy:#013A63;
  --sky:#3FA9F5;
  --teal:#0B9B9A;

  /* neutrales */
  --bg:#ffffff;
  --text:#0b1220;
  --muted:#5b667a;
  --line:rgba(1,58,99,.14);

  /* sombras / radios */
  --radius:18px;
  --shadow:0 18px 45px rgba(1,58,99,.18);
  --shadow-soft:0 10px 25px rgba(1,58,99,.12);

  /* header */
  --topbar-h:44px;
  --mainbar-h:78px;
  --mainbar-h-compact:62px;
  --z-header:999;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit}

/* ✅ FULL WIDTH: ya no queda angosto */
.container{
  width:100%;
  max-width:100%;
  margin-inline:auto;
  padding-inline:64px; /* aire lateral */
}

/* ===================== HEADER ===================== */
.site-header{
  position:sticky;
  top:0;
  z-index:var(--z-header);
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease;
}

/* Topbar */
.topbar{
  height:var(--topbar-h);
  background:var(--navy);
  color:#fff;
  display:flex;
  align-items:center;
}
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.topnav{
  display:flex;
  align-items:center;
  gap:18px;
  font-weight:600;
  font-size:14px;
  opacity:.95;
}
.topnav a{
  padding:8px 6px;
  border-radius:10px;
  transition: background .2s ease, color .2s ease;
}
.topnav a:hover{
  background:rgba(253,197,0,.14);
  color:var(--yellow);
}
.btn-login{
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color:#fff;
  border:0;
  padding:10px 16px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(63,169,245,.22);
  transition: transform .2s ease, filter .2s ease;
  white-space:nowrap;
}
.btn-login:hover{ transform: translateY(-1px); filter:saturate(1.05); }

/* Mainbar */
.mainbar{
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow: 0 10px 22px rgba(1,58,99,.08);
}
.mainbar-inner{
  height:var(--mainbar-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  position:relative;
}

/* Bloque marca (más ancho para que no apriete) */
.brand-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:360px;
  position:relative;
  height:100%;
  padding-left:12px;
}
.brand-bg{
  position:absolute;
  inset:0 auto 0 0;
  width:520px;
  background:
    linear-gradient(90deg, rgba(11,155,154,.16), rgba(63,169,245,.12)),
    linear-gradient(135deg, var(--teal), var(--navy));
  clip-path: polygon(0 0, 86% 0, 100% 100%, 0 100%);
  border-bottom-right-radius: 22px;
  border-top-right-radius: 22px;
  opacity:.95;
}
.brand{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-weight:900;
  letter-spacing:.2px;
  text-transform:uppercase;
}
.brand .logo{
  width:42px;height:42px;border-radius:14px;
  background: rgba(253,197,0,.92);
  display:grid;place-items:center;
  box-shadow:0 12px 26px rgba(0,0,0,.18);
  color:var(--navy);
  font-weight:900;
}
.brand small{
  display:block;
  font-weight:700;
  opacity:.9;
  text-transform:none;
  letter-spacing:0;
}

/* Menú */
.menu{
  display:flex;
  align-items:center;
  gap:24px;
  font-weight:800;
  color:var(--navy);
}
.menu .item{
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 10px;
  border-radius:14px;
  transition: background .2s ease, transform .2s ease;
}
.menu .item:hover{
  background:rgba(63,169,245,.10);
  transform: translateY(-1px);
}
.chev{
  font-size:12px;
  opacity:.8;
}

/* Dropdown Servicios */
.item-dropdown{position:relative;}
.item-btn{
  all:unset;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 10px;
  border-radius:14px;
}
.item-btn:hover{ background:rgba(63,169,245,.10); }

.mega{
  position:absolute;
  left:50%;
  top:100%;
  transform: translate(-50%, 12px);
  width:min(920px, calc(100vw - 80px));
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow: var(--shadow);
  padding:18px;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.mega.open{
  opacity:1;
  pointer-events:auto;
  transform: translate(-50%, 8px);
}
.mega-inner{
  display:grid;
  grid-template-columns: 1fr 1px 1fr;
  gap:18px;
}
.col h4{
  margin:6px 0 14px;
  color:var(--navy);
  font-size:18px;
}
.divider{
  background: rgba(1,58,99,.18);
  border-radius:10px;
}
.mega-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 10px;
  border-radius:14px;
  color:var(--text);
  font-weight:700;
  transition: background .2s ease, transform .2s ease;
}
.mega-link:hover{
  background: rgba(253,197,0,.18);
  transform: translateX(2px);
}
.icon{
  width:34px;height:34px;
  border-radius:12px;
  display:grid;place-items:center;
  color:var(--navy);
  background: linear-gradient(135deg, rgba(63,169,245,.20), rgba(11,155,154,.18));
  border:1px solid rgba(1,58,99,.12);
}
.icon svg{width:18px;height:18px}

/* Header compact on scroll */
body.scrolled .mainbar-inner{ height:var(--mainbar-h-compact); }
body.scrolled .brand-bg{ opacity:.92; }
body.scrolled .mainbar{ box-shadow: 0 14px 30px rgba(1,58,99,.14); }

/* ===================== HERO ===================== */
.hero{
  padding: 60px 0 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(63,169,245,.14), transparent 50%),
    radial-gradient(circle at 82% 30%, rgba(253,197,0,.20), transparent 55%);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:48px;
  align-items:center;
}
.hero-left h1{
  margin:0 0 22px;
  font-size: clamp(34px, 4vw, 60px);
  line-height:1.02;
  color:var(--teal);
  letter-spacing:-.5px;
}
.hero-left .bold{
  color:var(--navy);
  font-weight:900;
}
.cards-row{
  display:flex;
  gap:16px;
  align-items:stretch;
}
.mini-card{
  flex:1;
  min-width:180px;
  border:1px solid var(--line);
  border-radius: 18px;
  padding:18px 16px;
  background:#fff;
  box-shadow: 0 10px 20px rgba(1,58,99,.08);
  display:flex;
  flex-direction:column;
  gap:12px;
  font-weight:900;
  color:var(--navy);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(1,58,99,.14);
  background: rgba(63,169,245,.06);
}
.mini-card.is-active{
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color:#fff;
  border-color: transparent;
}
.mini-ic{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(253,197,0,.18);
  color: inherit;
}
.mini-card.is-active .mini-ic{
  background: rgba(253,197,0,.92);
  color: var(--navy);
}
.mini-ic svg{width:22px;height:22px}

/* Track */
.track-card{
  border-radius: 22px;
  padding:18px;
  border:1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background:#fff;
}
.track-card h3{
  margin:0 0 10px;
  color:var(--navy);
  font-size:26px;
}
.track-box{
  display:flex;
  gap:10px;
  background: linear-gradient(135deg, rgba(1,58,99,.88), rgba(11,155,154,.82));
  padding:10px;
  border-radius: 16px;
  align-items:center;
}
.track-box input{
  flex:1;
  height:44px;
  border-radius: 12px;
  border:0;
  padding:0 12px;
  outline:none;
  font-weight:700;
}
.track-box button{
  width:56px;height:44px;
  border-radius: 12px;
  border:0;
  cursor:pointer;
  background: var(--teal);
  color:#fff;
  font-weight:900;
  transition: transform .2s ease, filter .2s ease;
}
.track-box button:hover{ transform: translateY(-1px); filter:saturate(1.05); }
.help-link{
  display:inline-block;
  margin-top:10px;
  color: var(--navy);
  font-weight:700;
  opacity:.9;
}
.help-link:hover{ text-decoration:underline; }

/* Visual decor */
.hero-right{ position:relative; }
.hero-visual{
  height:280px;
  position:relative;
  margin-top:18px;
}
.box-face{
  position:absolute;
  right:22%;
  bottom:18px;
  width:210px;
  height:210px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(253,197,0,.95), rgba(253,197,0,.65));
  box-shadow: 0 18px 40px rgba(1,58,99,.18);
}
.box-face:before{
  content:"";
  position:absolute;
  inset:22px;
  border-radius: 22px;
  background: rgba(1,58,99,.12);
  border:1px dashed rgba(1,58,99,.30);
}
.laptop{
  position:absolute;
  right:0;
  bottom:0;
  width:240px;
  height:160px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(63,169,245,.85), rgba(1,58,99,.85));
  transform: rotate(-10deg);
  box-shadow: 0 18px 40px rgba(1,58,99,.18);
}
.hat{
  position:absolute;
  right:33%;
  bottom:195px;
  width:150px;
  height:75px;
  border-radius: 70px 70px 26px 26px;
  background: rgba(11,155,154,.75);
  box-shadow: 0 18px 40px rgba(1,58,99,.18);
}

/* ===================== INFO BLOCK ===================== */
.info-block{
  padding:52px 0 40px;
  background:
    linear-gradient(180deg, rgba(63,169,245,.06), transparent 40%),
    radial-gradient(circle at 10% 30%, rgba(11,155,154,.12), transparent 55%);
}
.info-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:46px;
  align-items:center;
}
.info-illus{
  position:relative;
  height:300px;
}
.store{
  position:absolute;
  left:0; bottom:18px;
  width:300px; height:240px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(11,155,154,.22), rgba(63,169,245,.18));
  border:1px solid rgba(1,58,99,.12);
  box-shadow: var(--shadow-soft);
}
.person{
  position:absolute;
  left:220px; bottom:10px;
  width:120px; height:230px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(253,197,0,.75), rgba(253,197,0,.45));
  box-shadow: var(--shadow-soft);
}
.rings{
  position:absolute;
  left:-70px; top:10px;
  width:280px; height:280px;
  border-radius: 50%;
  border: 2px solid rgba(1,58,99,.14);
  box-shadow: inset 0 0 0 10px rgba(63,169,245,.05);
}

.info-text h2{
  margin:0 0 12px;
  font-size: 34px;
  color: var(--navy);
}
.info-text p{
  margin:0 0 10px;
  color: var(--muted);
  line-height:1.65;
  font-weight:600;
}
.btn-primary{
  margin-top:10px;
  border:0;
  border-radius: 14px;
  padding:12px 18px;
  font-weight:900;
  cursor:pointer;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color:#fff;
  box-shadow: 0 16px 30px rgba(1,58,99,.20);
  transition: transform .2s ease, filter .2s ease;
}
.btn-primary:hover{ transform: translateY(-1px); filter:saturate(1.05); }

.icon-features{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
  margin-top:30px;
}
.feature{
  text-align:center;
  padding:20px 16px;
  border-radius: 18px;
  border:1px solid rgba(1,58,99,.10);
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 20px rgba(1,58,99,.06);
}
.feature-ic{
  width:74px;height:74px;
  border-radius: 999px;
  margin:0 auto 12px;
  display:grid;place-items:center;
  font-size:26px;
  color: var(--navy);
  background: rgba(11,155,154,.14);
  border: 2px solid rgba(11,155,154,.18);
}
.feature h4{
  margin:0 0 6px;
  color: var(--navy);
  font-size:18px;
}
.feature p{
  margin:0;
  color: var(--muted);
  font-weight:600;
  line-height:1.5;
}

/* ===================== SOLUTIONS (HOVER ZOOM) ===================== */
.solutions{
  padding:52px 0 64px;
}
.center{
  text-align:center;
  color: var(--teal);
  font-weight:1000;
  letter-spacing:.8px;
}
.solution-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}
.solution-card{
  position:relative;
  border-radius: 24px;
  overflow:hidden;
  border:1px solid rgba(1,58,99,.12);
  box-shadow: var(--shadow-soft);
  background:#fff;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease;
}
.solution-card:hover{
  transform: scale(1.03);
  box-shadow: 0 22px 50px rgba(1,58,99,.18);
}
.solution-photo{
  height:210px;
  background:
    radial-gradient(circle at 20% 30%, rgba(253,197,0,.40), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(63,169,245,.35), transparent 55%),
    linear-gradient(135deg, rgba(1,58,99,.25), rgba(11,155,154,.18));
}
.solution-panel{
  position:relative;
  margin: -44px 18px 18px;
  background:#fff;
  border-radius: 18px;
  padding:14px 14px 16px;
  box-shadow: 0 14px 30px rgba(1,58,99,.10);
  border:1px solid rgba(1,58,99,.10);
}
.solution-panel h3{
  margin:0 0 8px;
  color: var(--navy);
  font-size:18px;
}
.solution-panel ul{
  margin:0 0 14px;
  padding-left:18px;
  color: var(--muted);
  font-weight:650;
  line-height:1.55;
}
.btn-card{
  display:block;
  text-align:center;
  padding:12px 12px;
  border-radius: 14px;
  font-weight:900;
  color:#fff;
}
.btn-card.purple{ background: linear-gradient(135deg, #5e2a7a, #3a1b4d); }
.btn-card.dark{ background: linear-gradient(135deg, rgba(1,58,99,.92), rgba(11,155,154,.92)); }
.btn-card.teal{ background: linear-gradient(135deg, var(--teal), var(--sky)); }

/* ===================== FOOTER ===================== */
.footer{
  background: #2a2f35;
  color:#d8dee7;
  padding-top:40px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.1fr;
  gap:22px;
  align-items:start;
  padding-bottom:26px;
}
.foot-brand{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.foot-logo{
  width:46px;height:46px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--navy);
  display:grid;place-items:center;
  font-weight:1000;
  box-shadow: 0 16px 26px rgba(0,0,0,.18);
}
.foot-name{
  font-weight:1000;
  letter-spacing:.4px;
  margin-bottom:8px;
}
.foot-brand p{
  margin:0;
  color:#b8c2d3;
  line-height:1.55;
  font-weight:650;
  max-width:320px;
}
.foot-col h5, .foot-social h5{
  margin:6px 0 10px;
  font-size:14px;
  color:#fff;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.foot-col a{
  display:block;
  padding:6px 0;
  color:#b8c2d3;
  font-weight:650;
}
.foot-col a:hover{ color: var(--yellow); }
.social-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin:10px 0 14px;
}
.social{
  width:40px;height:40px;
  border-radius: 12px;
  display:grid;place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-weight:1000;
  transition: transform .2s ease, background .2s ease;
}
.social:hover{
  transform: translateY(-2px);
  background: rgba(253,197,0,.16);
  color: var(--yellow);
}
.btn-cta{
  width:100%;
  padding:12px 14px;
  border-radius: 14px;
  border:0;
  cursor:pointer;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color:#fff;
  font-weight:1000;
  box-shadow: 0 18px 30px rgba(0,0,0,.20);
}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  padding:14px 0;
  color:#a9b4c6;
  font-weight:650;
}

/* ===================== FLOATING BUTTONS ===================== */
.to-top{
  position:fixed;
  right:20px;
  bottom:92px;
  width:52px;height:52px;
  border-radius: 999px;
  border:0;
  cursor:pointer;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color:#fff;
  font-size:18px;
  font-weight:1000;
  box-shadow: 0 18px 40px rgba(1,58,99,.18);
  opacity:0;
  pointer-events:none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.to-top.show{
  opacity:1;
  pointer-events:auto;
  transform: translateY(0);
}
.chat-float{
  position:fixed;
  right:18px;
  bottom:22px;
  width:64px;height:64px;
  border-radius: 999px;
  border: 3px solid rgba(11,155,154,.5);
  background: #fff;
  box-shadow: 0 18px 45px rgba(1,58,99,.18);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.chat-dot{
  position:absolute;
  top:10px; right:10px;
  width:10px;height:10px;
  border-radius:999px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(253,197,0,.25);
}
.chat-face{
  font-size:24px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px){
  .container{ padding-inline:24px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .brand-wrap{ min-width: 280px; }
  .brand-bg{ width: 380px; }
  .menu{ gap:10px; flex-wrap:wrap; justify-content:flex-end; }
  .info-grid{ grid-template-columns: 1fr; }
  .icon-features{ grid-template-columns: repeat(2,1fr); }
  .solution-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .container{ padding-inline:16px; }
  .topnav{ gap:10px; flex-wrap:wrap; }
  .cards-row{ flex-direction:column; }
  .footer-grid{ grid-template-columns: 1fr; }
}
