/* Cuadra · sitio público (presentación y páginas legales) */
:root {
  --bg: #ffffff; --bg-2: #f6f7f9; --card: #ffffff; --text: #0f1728; --muted: #566274; --border: #e6e8ec; --border-strong: #d2d6dc;
  --primary: #0b7a5b; --primary-dark: #08634a; --primary-soft: #e8f5ef; --on-primary: #ffffff; --accent: #e9a23b;
  --ok: #067647; --shadow: 0 1px 2px rgba(16, 24, 40, .05); --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f14; --bg-2: #10161d; --card: #131920; --text: #e8ecf1; --muted: #97a3b4; --border: #222b36; --border-strong: #334050;
    --primary: #34c492; --primary-dark: #2aa87c; --primary-soft: #10291f; --on-primary: #052016; --accent: #f0b453; --ok: #4ad38f;
    --shadow: none; --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0f14; --bg-2: #10161d; --card: #131920; --text: #e8ecf1; --muted: #97a3b4; --border: #222b36; --border-strong: #334050;
  --primary: #34c492; --primary-dark: #2aa87c; --primary-soft: #10291f; --on-primary: #052016; --accent: #f0b453; --ok: #4ad38f;
  --shadow: none; --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.i { width: 1.2em; height: 1.2em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.muted { color: var(--muted); }
.centro { text-align: center; }
.contenedor { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.contenedor.angosto { max-width: 780px; }
.fila { display: flex; align-items: center; gap: 1rem; }

/* Marca y cabecera */
.marca { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.sello { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.cabecera-sitio {
  position: sticky; top: 0; z-index: 30; height: 66px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-sitio { display: none; gap: 1.6rem; margin-left: 2rem; }
.nav-sitio a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav-sitio a:hover { color: var(--text); }
.acciones-cab { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.enlace-ingresar { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .7rem; border-radius: 10px; }
.enlace-ingresar:hover { background: var(--bg-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font-size: 1.1rem; padding: 0; }
.icon-btn:hover { background: var(--bg-2); }
.ico-tema-sol { display: none; }
.ico-tema-luna, .ico-tema-sol { line-height: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico-tema-sol { display: inline; } :root:not([data-theme="light"]) .ico-tema-luna { display: none; } }
:root[data-theme="dark"] .ico-tema-sol { display: inline; }
:root[data-theme="dark"] .ico-tema-luna { display: none; }
@media (min-width: 900px) { .nav-sitio { display: flex; } }
@media (max-width: 420px) { .enlace-ingresar { padding: .5rem .4rem; } .cabecera-sitio .marca span { display: none; } }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 12px; font-weight: 650;
  font-size: 1rem; text-decoration: none; border: 1px solid var(--border-strong); background: var(--card); color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s; box-shadow: var(--shadow); white-space: nowrap;
}
.boton:hover { background: var(--bg-2); }
.boton:active { transform: translateY(1px); }
.boton-primario { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.boton-primario:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.boton-claro { background: #fff; border-color: #fff; color: #0b3d2e; }
.boton-claro:hover { background: #eef7f3; }
.boton-sm { padding: .5rem .9rem; font-size: .92rem; border-radius: 10px; }
.boton-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.boton-bloque { width: 100%; }

/* Portada */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 10%, transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }
.etiqueta {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); padding: .3rem .7rem; border-radius: 99px; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 1.1rem; }
.resaltado { position: relative; white-space: nowrap; color: var(--primary); }
.resaltado::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--accent); border-radius: 2px; opacity: .85; z-index: -1; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 34rem; margin: 0 0 1.8rem; }
.cta-fila { display: flex; flex-wrap: wrap; gap: .75rem; }
.garantias { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; color: var(--muted); font-size: .93rem; }
.garantias li { display: inline-flex; align-items: center; gap: .35rem; }
.garantias .i { color: var(--primary); }

/* Maqueta del teléfono */
.maqueta { position: relative; display: flex; justify-content: center; padding: 10px 0 20px; }
.telefono {
  width: 290px; border-radius: 36px; background: var(--bg-2); border: 1px solid var(--border-strong); padding: 14px 12px 10px;
  box-shadow: var(--shadow-lg), 0 0 0 8px var(--card), 0 0 0 9px var(--border); display: flex; flex-direction: column; gap: 10px; font-size: 12px;
}
.tel-barra { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 2px; }
.tel-titulo { font-weight: 700; font-size: 15px; }
.tel-punto { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); border: 1px solid var(--border); }
.tel-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tel-kpi, .tel-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.tel-kpi small, .tel-card > small { color: var(--muted); display: block; font-size: 10.5px; }
.tel-kpi b { display: block; font-size: 17px; letter-spacing: -.02em; margin: 2px 0; }
.tel-kpi em { font-style: normal; font-size: 10px; color: var(--muted); }
.tel-kpi em.sube { color: var(--ok); font-weight: 600; }
.tel-barras { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin-top: 8px; }
.tel-barras i { flex: 1; background: color-mix(in srgb, var(--primary) 30%, transparent); border-radius: 5px 5px 2px 2px; }
.tel-barras i.hoy { background: var(--primary); }
.tel-lista div { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.tel-lista div:last-child { border-bottom: 0; }
.tel-lista span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-nav { display: flex; justify-content: space-around; padding: 8px 0 2px; border-top: 1px solid var(--border); margin-top: 2px; }
.tel-nav i { width: 18px; height: 18px; border-radius: 6px; background: var(--border-strong); }
.tel-nav i.act { background: var(--primary); }
.flotante {
  position: absolute; display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: .65rem .8rem; box-shadow: var(--shadow-lg); font-size: .82rem;
}
.flotante > .i { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.flotante b { display: block; font-size: .82rem; white-space: nowrap; }
.flotante small { color: var(--muted); }
.flotante .ok { color: var(--ok); margin-left: .2rem; }
.flotante-factura { right: calc(50% - 250px); top: 40px; }
.flotante-stock { left: calc(50% - 250px); bottom: 34px; }
.flotante-stock > .i { background: #fff4e0; color: #b45309; }
:root[data-theme="dark"] .flotante-stock > .i { background: #2b2110; color: #fdb022; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flotante-stock > .i { background: #2b2110; color: #fdb022; } }
@media (max-width: 560px) {
  .flotante-factura { right: 0; top: 18px; }
  .flotante-stock { left: 0; bottom: 40px; }
  .telefono { width: 262px; }
}

/* Franja de confianza */
.franja { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.franja-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: 22px; padding-bottom: 22px; }
@media (min-width: 860px) { .franja-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.franja-grid > div { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: var(--muted); }
.franja-grid .i { width: 26px; height: 26px; color: var(--primary); }
.franja-grid b { display: block; color: var(--text); font-size: .95rem; }

/* Secciones */
.seccion { padding: 80px 0; }
.seccion-alterna { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.encabezado { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.encabezado h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
.encabezado p { color: var(--muted); font-size: 1.07rem; margin: 0; }
.funciones { display: grid; gap: 1rem; }
@media (min-width: 640px) { .funciones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .funciones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.funcion { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.funcion:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); transform: translateY(-2px); }
.funcion-ico { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary); margin-bottom: 1rem; }
.funcion-ico .i { width: 24px; height: 24px; }
.funcion h3 { font-size: 1.12rem; }
.funcion p { color: var(--muted); margin: 0; font-size: .97rem; }

.pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: paso; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }
.pasos li { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; position: relative; }
.paso-num { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: .9rem; }
.pasos h3 { font-size: 1.12rem; }
.pasos p { color: var(--muted); margin: 0; }

.planes { display: grid; gap: 1.2rem; max-width: 820px; margin: 0 auto; }
@media (min-width: 760px) { .planes { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 2rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan-destacado { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.insignia { position: absolute; top: -13px; left: 1.6rem; background: var(--accent); color: #3b2503; font-weight: 750; font-size: .78rem; padding: .25rem .7rem; border-radius: 99px; }
.plan h3 { font-size: 1.1rem; color: var(--muted); font-weight: 650; margin-bottom: .3rem; }
.precio { font-size: 2.9rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.precio small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: .2rem; }
.plan > p { margin: .3rem 0 1.2rem; font-size: .92rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .6rem; flex: 1; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; font-size: .96rem; }
.plan li .i { color: var(--primary); margin-top: .12rem; }
.nota-pagos { text-align: center; color: var(--muted); font-size: .92rem; margin: 1.6rem 0 0; }

.faq { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 0; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { color: var(--muted); transition: transform .2s; display: inline-flex; }
.faq details[open] .faq-ico { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

.cta-final { background: linear-gradient(135deg, #0b7a5b 0%, #075e46 100%); color: #fff; text-align: center; padding: 76px 0; }
.cta-final h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; }
.cta-final p { opacity: .85; font-size: 1.08rem; margin: 0 0 1.8rem; }

/* Pie de página */
.pie-sitio { border-top: 1px solid var(--border); padding: 56px 0 28px; font-size: .94rem; }
.pie-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.pie-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 820px) { .pie-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .pie-grid > div:first-child { grid-column: auto; } }
.pie-grid p { max-width: 22rem; margin: .8rem 0 0; }
.pie-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .8rem; }
.pie-grid a:not(.marca) { display: block; color: var(--text); text-decoration: none; padding: .22rem 0; }
.pie-grid a:not(.marca):hover { color: var(--primary); }
.pie-final { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* Páginas legales */
.legal { padding: 40px 0 72px; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; margin: 1rem 0 .4rem; }
.volver { color: var(--muted); text-decoration: none; font-size: .93rem; }
.texto-legal { font-size: 1.01rem; }
.texto-legal .vigencia { color: var(--muted); margin-top: 0; }
.texto-legal h2 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.texto-legal ul { padding-left: 1.2rem; }
.texto-legal li { margin-bottom: .45rem; }
.tabla-legal { width: 100%; border-collapse: collapse; font-size: .94rem; margin: 1rem 0; display: block; overflow-x: auto; }
.tabla-legal th, .tabla-legal td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabla-legal th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tabla-legal td:last-child { white-space: nowrap; color: var(--muted); }
@media (max-width: 560px) { .tabla-legal td:last-child { white-space: normal; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Tres planes y oferta de bienvenida */
.planes.planes-3 { max-width: 1080px; }
@media (min-width: 980px) { .planes.planes-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 979px) { .planes.planes-3 { grid-template-columns: 1fr 1fr; } }
.oferta-banda {
  display: flex; gap: .8rem; align-items: flex-start; max-width: 1080px; margin: 1.5rem auto 0; padding: 1rem 1.2rem; border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: .97rem;
}
.oferta-banda .i { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
