/* ==========================================================================
   365 Internet — Hoja de estilos
   Paleta derivada del logo oficial (logo.jpeg)
   Azul eléctrico · cian · verde · naranja sobre base navy
   ========================================================================== */

:root {
  /* Marca */
  --navy-900: #04152E;
  --navy-800: #07203F;
  --navy-700: #0A2E63;
  --blue-800: #0A3B85;
  --blue-700: #0B4DA2;
  --blue-600: #1467C6;
  --blue-500: #1E88E5;
  --cyan-400: #29B6F6;
  --cyan-300: #5CC8F5;
  --cyan-200: #7FE3FF;
  --green-600: #2E7D32;
  --green-500: #5DBB46;
  --green-400: #8CD36B;
  --orange-600: #E07B0A;
  --orange-500: #F7941D;
  --orange-400: #FFB74D;

  /* Neutros */
  --ink: #0A1A2F;
  --body: #41536B;
  --muted: #7A8AA0;
  --line: #E2EAF5;
  --bg: #F5F9FF;
  --soft: #EAF2FC;
  --white: #FFFFFF;

  --grad-brand: linear-gradient(120deg, var(--blue-600), var(--cyan-400));
  --grad-warm: linear-gradient(120deg, var(--green-500), var(--orange-500));
  --grad-text: linear-gradient(100deg, var(--cyan-400), var(--blue-600) 55%, var(--blue-800));

  --shadow-sm: 0 2px 8px rgba(10, 46, 99, .06);
  --shadow-md: 0 12px 30px rgba(10, 46, 99, .10);
  --shadow-lg: 0 30px 60px rgba(4, 21, 46, .18);
  --shadow-glow: 0 20px 50px rgba(30, 136, 229, .28);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", var(--font-body);

  --container: 1180px;
  --header-h: 76px;
}

/* ------------------------------ Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .7rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 860px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------- Fondos multimedia tenues ------------------------- */
.section, .hero, .final-cta { position: relative; }

.media-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.bg-video, .bg-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-video { opacity: .4; filter: saturate(.9) contrast(.95); }
.bg-image { opacity: .5; filter: blur(1.5px) saturate(.95); transform: scale(1.04); }
.media-tint { position: absolute; inset: 0; }
.tint-dark { background: linear-gradient(180deg, rgba(4, 21, 46, .68), rgba(4, 21, 46, .86)); }
.tint-light { background: linear-gradient(180deg, rgba(245, 249, 255, .9), rgba(245, 249, 255, .95)); }

/* Hero: el video de inicio es el protagonista */
.hero .bg-video { opacity: .7; }
.hero .tint-dark { background: linear-gradient(180deg, rgba(4, 21, 46, .42), rgba(4, 21, 46, .78)); }

/* El contenido siempre por encima del fondo */
.section > .container, .final-cta > .container, .hero > .container { position: relative; z-index: 2; }

/* Rendimiento y elegancia en pantallas chicas: solo el hero conserva video */
@media (max-width: 700px) {
  .section .media-bg, .final-cta .media-bg { display: none; }
  .hero .bg-video { opacity: .4; }
}
@media (prefers-reduced-motion: reduce) { .bg-video { display: none; } }

/* ------------------------------ Botones --------------------------------- */
.btn {
  --btn-bg: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; font-weight: 700;
  font-size: .98rem; line-height: 1; letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .3s ease, background .3s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 24px rgba(30, 136, 229, .32); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(30, 136, 229, .45); }

.btn-outline { background: transparent; color: var(--blue-700); border: 2px solid var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: #fff; }

.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(4, 21, 46, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(127, 227, 255, .12);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(4, 21, 46, .96); box-shadow: 0 8px 30px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; }

.brand-logo { height: 52px; width: 52px; object-fit: cover; border-radius: 14px; background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }

.nav { display: none; }
.nav a { color: #D6E6FA; font-weight: 600; font-size: .95rem; padding: .4rem .1rem; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--grad-brand); transition: width .25s ease;
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; margin-inline: auto; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú mobile */
@media (max-width: 979px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    display: flex; flex-direction: column; gap: .25rem;
    background: rgba(4, 21, 46, .98); padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%); transition: transform .35s cubic-bezier(.4,0,.2,1);
    border-bottom: 1px solid rgba(127,227,255,.15);
  }
  .nav.open { transform: translateY(0); }
  .nav a { color: #EAF3FF; padding: .75rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
}

/* ------------------------------ Hero ------------------------------------ */
.hero { position: relative; background: var(--navy-900); color: #fff; padding: 3rem 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(30,136,229,.45), transparent 70%),
    radial-gradient(50% 50% at 5% 90%, rgba(93,187,70,.28), transparent 70%),
    radial-gradient(45% 45% at 95% 95%, rgba(247,148,29,.30), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2rem; padding-top: 1rem; }
.hero-copy h1 { color: #fff; }
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.22rem); color: #BFD4EE; max-width: 34rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(127, 227, 255, .1); border: 1px solid rgba(127,227,255,.28);
  color: var(--cyan-200); font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  padding: .45rem .9rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-400); box-shadow: 0 0 0 0 rgba(140,211,107,.7); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(140,211,107,.6); } 70% { box-shadow: 0 0 0 10px rgba(140,211,107,0); } 100% { box-shadow: 0 0 0 0 rgba(140,211,107,0); } }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.5rem; }
.hero-cta.center { justify-content: center; }

.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #9FB8D6; font-size: .92rem; }
.hero-points li { position: relative; padding-left: 1.4rem; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green-400); font-weight: 800;
}

/* Visual hero */
.hero-visual { position: relative; min-height: 280px; display: grid; place-items: center; }
.hero-logo-card {
  position: relative; z-index: 3; width: min(300px, 74vw); aspect-ratio: 1;
  border-radius: 30px; background: #fff; padding: 1.1rem; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-logo-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }
@keyframes float { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

.orbit { position: absolute; border-radius: 50%; border: 2px dashed rgba(127,227,255,.35); animation: spin 22s linear infinite; }
.orbit-1 { width: 78%; aspect-ratio: 1; }
.orbit-2 { width: 96%; aspect-ratio: 1; border-color: rgba(93,187,70,.28); animation-duration: 30s; animation-direction: reverse; }
.orbit-3 { width: 60%; aspect-ratio: 1; border-color: rgba(247,148,29,.30); animation-duration: 16s; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute; z-index: 4; background: rgba(255,255,255,.95); color: var(--blue-800);
  font-weight: 800; font-size: .85rem; padding: .5rem .9rem; border-radius: 999px;
  box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite;
}
.chip-a { top: 6%; left: 2%; animation-delay: .2s; }
.chip-b { bottom: 14%; right: 0; animation-delay: 1s; color: var(--green-600); }
.chip-c { bottom: 2%; left: 12%; animation-delay: 1.8s; color: var(--orange-600); }

.pulse-node { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan-200); box-shadow: 0 0 14px 4px rgba(127,227,255,.7); }
.node-1 { top: 20%; right: 12%; }
.node-2 { bottom: 28%; left: 6%; background: var(--orange-400); box-shadow: 0 0 14px 4px rgba(247,148,29,.6); }

/* Trust bar */
.trust-bar {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(127,227,255,.14); border: 1px solid rgba(127,227,255,.18);
  border-radius: var(--radius); margin: 2.5rem 0 3.5rem; overflow: hidden;
}
.trust-item { background: var(--navy-800); padding: 1.1rem 1.2rem; }
.trust-item strong { display: block; color: #fff; font-size: 1.05rem; font-family: var(--font-display); }
.trust-item span { color: #9FB8D6; font-size: .85rem; }

/* ------------------------------ Secciones ------------------------------- */
.section { padding: 4rem 0; }
.section-soft { background: var(--bg); }
.section-dark { background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); color: #C8DBF3; }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: #A9C1DD; }

.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head .section-sub { margin-inline: auto; }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: .7rem;
}
.section-dark .kicker { color: var(--cyan-300); }
.section-sub { font-size: 1.02rem; color: var(--body); }

/* --------------------- Planes (estilo comercial) ------------------------ */
.plans { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }

.plan {
  --p1: var(--blue-600);
  --p2: var(--cyan-400);
  --glow: rgba(30, 136, 229, .4);
  --tint: #EAF4FF;
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; z-index: 1;
  box-shadow: 0 12px 34px rgba(10, 46, 99, .08);
  transition: transform .35s cubic-bezier(.2, .85, .25, 1), box-shadow .35s ease, border-color .35s ease;
}
.plan:hover, .plan:focus-within {
  transform: translateY(-8px);
  border-color: var(--p1);
  box-shadow: 0 30px 58px -20px var(--glow);
  z-index: 5;
}

/* Encabezado: nombre + precio */
.plan-head {
  padding: 1.5rem 1.3rem 1.6rem; text-align: center;
  background: linear-gradient(180deg, var(--tint), #fff 94%);
  border-bottom: 1px solid var(--line);
}
.plan-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0 0 .6rem; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: .15rem; margin: 0; }
.plan-price .amount {
  font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-size: clamp(2.2rem, 8vw, 2.7rem); color: var(--p1);
}
.plan-price .per { color: var(--muted); font-size: .95rem; font-weight: 700; }

/* Banda "Incluye" */
.plan-incluye { background: #E9F5F9; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); text-align: center; }
.plan-incluye .incluye-label {
  display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-700); margin-bottom: .55rem;
}
.plan-incluye ul { display: grid; gap: .35rem; }
.plan-incluye li { position: relative; font-size: .9rem; font-weight: 600; color: var(--ink); padding-left: 1.1rem; text-align: left; }
.plan-incluye li::before { content: "✓"; position: absolute; left: 0; color: var(--p1); font-weight: 900; }

/* Cuerpo */
.plan-body { padding: 1.2rem 1.3rem; flex: 1; }
.plan-desc { font-size: .92rem; color: var(--body); margin: 0; }

/* Add-ons interactivos */
.plan-addons { border-top: 1px solid var(--line); }
.addon {
  width: 100%; display: flex; align-items: center; gap: .7rem;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: .75rem 1.3rem; font-family: inherit; text-align: left;
  transition: background .2s ease;
}
.addon:last-child { border-bottom: 0; }
.addon:hover { background: var(--soft); }
.addon-switch {
  position: relative; flex: none; width: 40px; height: 22px; border-radius: 999px;
  background: #CFD9E6; transition: background .25s ease;
}
.addon-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s ease;
}
.addon.active .addon-switch { background: var(--p1); }
.addon.active .addon-switch::after { transform: translateX(18px); }
.addon-name { flex: 1; font-size: .9rem; font-weight: 700; color: var(--ink); }
.addon-price { font-size: .88rem; font-weight: 800; color: var(--ink); }
.addon-price.free { color: var(--green-600); }

/* Acciones */
.plan-actions { padding: 1rem 1.3rem 1.3rem; display: grid; gap: .55rem; }
.plan-cta {
  width: 100%; background: linear-gradient(120deg, var(--p1), var(--p2)); color: #fff;
  box-shadow: 0 12px 24px -12px var(--glow);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
}
.plan-cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 30px -12px var(--glow); }
.plan-more { text-align: center; font-weight: 800; color: var(--p1); font-size: .92rem; }
.plan-more:hover { text-decoration: underline; }

/* Cinta del plan destacado */
.ribbon {
  display: block; z-index: 3; text-align: center;
  background: linear-gradient(120deg, var(--p1), var(--p2));
  color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: .45rem .9rem;
}

.plan-featured { border-color: transparent; box-shadow: 0 22px 50px -22px var(--glow); }

.plans-note { text-align: center; color: var(--muted); font-size: .82rem; margin-top: 1.6rem; }

/* ------------------------------ Configurador ---------------------------- */
.configurator { display: grid; gap: 1.25rem; }
.config-panel, .config-result {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(127,227,255,.18);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.config-panel h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.config-panel h3.mt { margin-top: 1.6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.18);
  color: #D6E6FA; border-radius: 999px; padding: .6rem 1rem; font-size: .9rem; font-weight: 600;
  transition: all .2s ease;
}
.chip:hover { border-color: var(--cyan-300); transform: translateY(-2px); }
.chip.active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(30,136,229,.4); }

.slider-row { display: flex; align-items: center; gap: 1rem; }
input[type="range"] { flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--cyan-400), var(--blue-600)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); box-shadow: 0 4px 12px rgba(0,0,0,.3); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); cursor: pointer; }
#deviceOut { color: #fff; font-size: .95rem; min-width: 8.5rem; text-align: right; }
#deviceOut strong { font-size: 1.25rem; color: var(--cyan-300); }

.config-result { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.result-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 800; color: var(--cyan-300); }
.result-speed { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 14vw, 5rem); color: #fff; line-height: 1; margin: .3rem 0; }
.result-speed small { font-size: 1.3rem; color: var(--cyan-300); }
.result-meter { width: 100%; height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin: .8rem 0 1rem; }
.result-meter-fill { height: 100%; width: 20%; border-radius: 999px; background: var(--grad-warm); transition: width .6s cubic-bezier(.4,0,.2,1); }
.result-text { color: #C8DBF3; font-size: .95rem; min-height: 3em; }
.result-price { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.2rem; margin-bottom: 1rem; }
.config-result .btn { width: 100%; }

/* ------------------------------ Beneficios ------------------------------ */
.benefits { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease;
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.benefit-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.5rem;
  border-radius: 16px; background: var(--soft); margin-bottom: 1rem;
}
.benefit h3 { margin-bottom: .35rem; }
.benefit p { font-size: .93rem; margin: 0; }

.editable-note { margin-top: 1.5rem; font-size: .8rem; color: var(--muted); text-align: center; font-style: italic; }

/* ------------------------------ Hogar conectado ------------------------- */
.home-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.home-card {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
  padding: 1.4rem; background: linear-gradient(140deg, var(--c1), var(--c2));
  min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .3s ease;
}
.home-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(4,21,46,.15); transition: opacity .3s ease;
}
.home-card:hover { transform: translateY(-5px) scale(1.01); }
.home-card:hover::after { opacity: 0; }

/* Video propio de cada tarjeta */
.card-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: .9;
  transition: transform .6s ease, opacity .4s ease;
}
.home-card:hover .card-video { transform: scale(1.06); opacity: 1; }
.card-tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,21,46,.1) 0%, rgba(4,21,46,.45) 55%, rgba(4,21,46,.85) 100%);
}

.home-emoji { position: relative; z-index: 2; font-size: 1.8rem; margin-bottom: .4rem; }
.home-card h3 { position: relative; z-index: 2; color: #fff; margin: 0 0 .25rem; }
.home-card p { position: relative; z-index: 2; margin: 0; font-size: .86rem; color: rgba(255,255,255,.88); }
.home-card-lg { grid-column: span 2; min-height: 200px; }
.home-card-wide { grid-column: span 2; }

/* ------------------------------ Cobertura ------------------------------- */
.cover-grid { display: grid; gap: 2rem; }
.cover-points { display: grid; gap: .6rem; margin-top: 1.2rem; }
.cover-points li { position: relative; padding-left: 1.6rem; font-weight: 600; color: var(--ink); }
.cover-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green-500); font-weight: 900; }

/* ------------------------------ Formularios ----------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-md);
}
.form-card h3 { margin-bottom: 1.2rem; }
.form-wide { max-width: 100%; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(30,136,229,.12);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #E53935; background: #FFF5F5; }
.form-row { display: grid; gap: 1rem; }
.form-msg { margin: .9rem 0 0; font-size: .9rem; font-weight: 700; min-height: 1.2rem; }
.form-msg.ok { color: var(--green-600); }
.form-msg.error { color: #D32F2F; }

/* ------------------------------ FAQ ------------------------------------- */
.faq { display: grid; gap: .7rem; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .3rem 1.2rem; box-shadow: var(--shadow-sm); transition: border-color .25s ease;
}
.faq-item[open] { border-color: var(--cyan-300); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 2rem 1rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--soft); color: var(--blue-600); font-size: 1.2rem; font-weight: 700;
  transition: transform .25s ease, background .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--blue-500); color: #fff; }
.faq-item p { padding-bottom: 1rem; margin: 0; font-size: .94rem; }

/* ------------------------------ CTA final ------------------------------- */
.final-cta { position: relative; padding: 5rem 0; text-align: center; overflow: hidden; background: var(--navy-900); color: #fff; }
.final-cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 80% at 20% 20%, rgba(30,136,229,.5), transparent 70%),
    radial-gradient(50% 80% at 80% 80%, rgba(247,148,29,.35), transparent 70%);
}
.final-cta-inner { position: relative; z-index: 2; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #C8DBF3; font-size: 1.1rem; margin-bottom: 1.6rem; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--navy-900); color: #9FB8D6; padding: 3rem 0 1.5rem; border-top: 1px solid rgba(127,227,255,.12); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { height: 64px; width: 64px; object-fit: cover; border-radius: 14px; background: #fff; padding: 3px; margin-bottom: .9rem; }
.footer-brand p { font-size: .9rem; max-width: 22rem; }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { font-size: .9rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--cyan-300); }
.footer-col .muted { font-size: .88rem; color: #6E86A6; }
.footer-bottom {
  display: flex; flex-direction: column; gap: .8rem; align-items: center; text-align: center;
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(127,227,255,.12); font-size: .82rem;
}
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.footer-bottom a:hover { color: var(--cyan-300); }

/* ------------------------------ WhatsApp flotante ----------------------- */
.whatsapp-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 120;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPing 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes waPing { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ------------------------------ Animaciones scroll ---------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESPONSIVE — mobile first
   ========================================================================== */
@media (min-width: 600px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .home-grid { grid-template-columns: repeat(4, 1fr); }
  .home-card-lg { grid-column: span 2; grid-row: span 2; min-height: 100%; }
  .home-card-wide { grid-column: span 4; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 900px) {
  .section { padding: 5.5rem 0; }
  .hero { padding-top: 3.5rem; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
  .hero-visual { min-height: 440px; }
  .cover-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .configurator { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 980px) {
  .nav { display: flex; gap: 1.8rem; }
  .nav-toggle { display: none; }
  .header-actions .btn-primary { display: inline-flex; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(4, 1fr); }
}
