/* Nova Desing · estilos
   Colores y medidas en variables: cámbialos aquí y se actualiza toda la página. */
:root {
  --ink: #00030f;
  --text: #3d4560;
  --muted: #5b6580;
  --blue: #2c7ff9;
  --blue-dark: #1a4fd6;
  --lila: #c9b8ff;
  --soft: #f4f6fa;
  --line: #e1e7f0;
  --white: #ffffff;
  --radius: 20px;
  --max: 1200px;
  --font: "Space Grotesk", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
svg { fill: currentColor; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.accent { color: var(--blue); }
.accent-lila { color: var(--lila); }

/* Tipografía */
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .25em; color: var(--text); }
h1 { font-size: clamp(30px, 5.6vw, 48px); line-height: 1.06; font-weight: 500; letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 4.2vw, 34px); line-height: 1.12; font-weight: 500; }
h3 { font-size: 17px; font-weight: 700; }
.lead { font-size: clamp(15px, 1.8vw, 17px); line-height: 1.6; color: var(--text); max-width: 560px; }
.text { font-size: 16px; line-height: 1.6; color: var(--text); }

/* Botones */
.btn { display: inline-block; text-decoration: none; padding: 16px 26px; border-radius: 14px; font-size: 15px; font-weight: 700; letter-spacing: .04em; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { box-shadow: 0 10px 24px rgba(44,127,249,.3); color: var(--white); }
.btn--white { background: var(--white); color: var(--blue-dark); border-radius: 999px; padding: 18px 30px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Menú */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid #e6ebf3; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.nav__logo img { height: 40px; width: auto; }
.nav__menu { list-style: none; display: flex; gap: 28px; }
.nav__menu a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav__menu a:hover, .nav__menu a.is-active { color: var(--blue); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Fondos */
.bg-ondas { background: var(--white) url("../img/ondas.jpg") no-repeat right -420px top -80px / auto 130%; }
.bg-azul { background: #1544b8 url("../img/azul-morado.jpg") center / cover; }
.on-dark, .on-dark .eyebrow, .on-dark h2 { color: var(--white); }
.on-dark .text { color: #e6ecff; }

/* Portada */
.hero__inner { padding-top: 112px; padding-bottom: 104px; }
.hero__text { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 500; color: var(--text); }
.chips li { display: flex; align-items: center; gap: 8px; }
.chips svg { width: 22px; height: 22px; color: var(--blue); }

/* Secciones */
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section__head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section__head--center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,3,15,.07); }
.card p { font-size: 15px; line-height: 1.6; color: var(--text); }
.card__icon { width: 60px; height: 60px; border-radius: 16px; background: #e8f1ff; display: grid; place-items: center; }
.card__icon svg { width: 32px; height: 32px; color: var(--blue); }

/* Portafolio */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.tab { min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid #c7d2e3; background: var(--white); color: var(--ink); font: 700 15px/1 var(--font); letter-spacing: .04em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tab:hover { border-color: var(--blue); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.carousel { position: relative; }
.carousel__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: #c7d2e3 transparent; }
.carousel__track:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 12px; }
.carousel__item { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.carousel__media { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.carousel__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.carousel__media:hover img { transform: scale(1.05); }
.carousel__item figcaption { font-size: 14px; font-weight: 500; color: var(--text); }
.carousel__nav { position: absolute; top: calc(50% - 22px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,3,15,.15); transition: background .2s, color .2s; }
.carousel__nav:hover { background: var(--blue); color: var(--white); }
.carousel__nav--prev { left: -14px; }
.carousel__nav--next { right: -14px; }
.carousel__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 500; border: 2px dashed #b9c6dc; border-radius: var(--radius); }
.carousel__empty svg { width: 44px; height: 44px; color: #9aa8c2; }
@media (max-width: 1000px) { .carousel__item { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .carousel__item { flex-basis: 80%; } .carousel__nav { display: none; } }
.tab:focus-visible, .carousel__nav:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Planes */
.plan { background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.35); border-radius: 24px; padding: 36px 32px; display: flex; flex-direction: column; gap: 16px; color: var(--white); }
.plan__icon { width: 44px; height: 44px; }
.plan h3 { font-size: 20px; }
.plan p { color: #e6ecff; font-size: 15px; line-height: 1.5; }
.plan ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; }

/* Wifi */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { flex: 1 1 320px; min-width: 0; }
.split > div:last-child { display: flex; flex-direction: column; gap: 20px; }
.wifi { position: relative; display: flex; justify-content: center; }
.wifi img { width: 100%; max-width: 460px; margin-top: 40px; }
.wifi__waves { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70%; max-width: 380px; fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round; }
.wifi__waves path:nth-child(1) { stroke-opacity: .95; }
.wifi__waves path:nth-child(2) { stroke-opacity: .65; }
.wifi__waves path:nth-child(3) { stroke-opacity: .35; }
@media (prefers-reduced-motion: no-preference) {
  .wifi__waves path { animation: senal 2.4s ease-in-out infinite; }
  .wifi__waves path:nth-child(2) { animation-delay: .25s; }
  .wifi__waves path:nth-child(3) { animation-delay: .5s; }
}
@keyframes senal { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; font-weight: 500; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { width: 26px; height: 26px; color: var(--blue); }

/* Proceso */
.steps { list-style: none; }
.step__n { font-size: 36px; font-weight: 700; line-height: 1; color: var(--blue); }

/* Contacto */
.cta { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.cta img { height: 56px; width: auto; object-fit: contain; }
.cta h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 700; }
.cta .btn--white:hover { box-shadow: 0 12px 28px rgba(0,0,0,.25); color: var(--blue-dark); }

/* Pie */
.footer { background: var(--ink); color: #c7cede; font-size: 15px; line-height: 1.6; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand img { height: 40px; width: auto; align-self: flex-start; object-fit: contain; }
.slogan { letter-spacing: .3em; font-size: 13px; font-weight: 500; color: var(--white); }
.footer h4 { color: var(--white); font-size: 15px; letter-spacing: .08em; margin-bottom: 6px; }
.footer a { color: #c7cede; text-decoration: none; }
.footer__legal { border-top: 1px solid #1d2440; padding: 18px 20px; text-align: center; font-size: 13px; color: #8f98b3; }

/* Visor */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1100px); }
.lightbox::backdrop { background: rgba(0,3,15,.85); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox p { color: var(--white); text-align: center; margin-top: 12px; font-size: 15px; }
.lightbox__close { position: fixed; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: var(--white); font-size: 30px; cursor: pointer; }

/* Animación al hacer scroll (la clase .is-visible la pone js/main.js) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Celular */
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid #e6ebf3; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav.is-open .nav__menu { max-height: 400px; }
  .nav__menu a { display: block; padding: 16px 20px; }
  .bg-ondas { background-size: auto 70%; background-position: right -260px top 0; }
  .hero__inner { padding-top: 56px; padding-bottom: 48px; }
  .section { padding: 56px 0; }
  .card, .plan { padding: 24px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; font-size: 13px; padding: 10px 16px; min-height: 44px; }
}

/* Enlace Creativo (19 nov 2026) */
.cta img { height: 120px; }
.footer__brand img { height: 48px; width: auto; }
.steps .card { display: flex; flex-direction: column; gap: 12px; }
.btn-row .btn:not(.btn--primary):hover { background: #e8f1ff; }
