/* ==========================================================================
   IMV Internet — hoja de estilos pública
   Paleta y tipografía según el sistema de diseño de la marca.
   ========================================================================== */

:root {
    --brand: #2D5BFF;
    --brand-deep: #1B3FCC;
    --brand-darker: #142FAA;
    --brand-soft: rgba(45, 91, 255, 0.09);
    --brand-line: rgba(45, 91, 255, 0.28);
    --accent: #00D4A6;
    --accent-deep: #00A883;

    --ink: #0E1330;
    --ink-soft: #3A4163;
    --muted: #6B7290;
    --canvas: #F6F8FD;
    --surface: #FFFFFF;
    --tint: #EEF2FB;
    --border: #E4E8F2;

    --dark: #0B1020;
    --dark-2: #121833;
    --dark-ink: #E6E9F5;
    --dark-muted: #9BA4C4;

    --danger: #E5484D;
    --warning: #F0A23A;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --shadow-1: 0 1px 0 rgba(14, 19, 48, 0.04), 0 8px 24px -16px rgba(14, 19, 48, 0.18);
    --shadow-2: 0 1px 0 rgba(14, 19, 48, 0.06), 0 18px 34px -20px rgba(14, 19, 48, 0.32);

    --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
    --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;

    --max: 1160px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--display);
    color: var(--ink);
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

img { max-width: 100%; height: auto; }

:focus-visible {
    outline: 3px solid var(--brand-line);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow { max-width: 820px; }

/* ---------------------------------------------------------------- botones */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--body);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(45, 91, 255, 0.75);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-darker)); color: #fff; }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-deep); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

.btn-light {
    background: #fff;
    color: var(--brand-deep);
    box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.6);
}
.btn-light:hover { background: #F2F5FF; color: var(--brand-darker); }

.btn-accent {
    background: var(--accent);
    color: #05251F;
}
.btn-accent:hover { background: var(--accent-deep); color: #04201B; }

.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }

.btn-text {
    background: none;
    border: none;
    color: var(--brand);
    padding: 10px 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.btn-text:hover { color: var(--brand-deep); }

.btn-sm { padding: 9px 15px; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* --------------------------------------------------------------- cabecera */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
    font-family: var(--display);
    font-size: 1.34rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.brand-text span {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--muted);
    margin-top: 3px;
}
.brand--light .brand-text strong { color: #fff; }
.brand--light .brand-text span { color: var(--dark-muted); }

.nav-desktop {
    display: none;
    gap: 4px;
    margin-left: auto;
}
.nav-desktop a {
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}
.nav-desktop a:hover { background: var(--tint); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 160ms ease, opacity 160ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 24px 20px;
    border-top: 1px solid var(--border);
    background: #fff;
}
.nav-mobile a { padding: 11px 4px; color: var(--ink-soft); font-weight: 500; border-radius: 8px; }
.nav-mobile .btn { margin-top: 10px; color: #fff; }

/* ------------------------------------------------------------------ hero */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: var(--dark-ink);
    padding: clamp(52px, 8vw, 96px) 0 clamp(64px, 9vw, 104px);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 50% 0%, #000 20%, transparent 100%);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 620px;
    background:
        radial-gradient(420px 300px at 18% 22%, rgba(45, 91, 255, 0.55), transparent 70%),
        radial-gradient(380px 280px at 82% 8%, rgba(0, 212, 166, 0.28), transparent 70%);
    filter: blur(4px);
    pointer-events: none;
}
.hero .container { position: relative; }

.hero-grid { display: grid; gap: 40px; }
.hero-copy h1 { color: #fff; margin-bottom: 18px; max-width: 15ch; }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 52ch; }
.hero .lead { color: #C3CAE4; font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 46ch; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand);
}
.eyebrow-dark { color: #8FA7FF; }
.eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 212, 166, 0.18);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #A9B2D2;
    font-size: 0.86rem;
}
.hero-trust li { position: relative; padding-left: 20px; }
.hero-trust li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.hero-card {
    justify-self: start;
    width: 100%;
    max-width: 380px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.hero-card-tag {
    display: inline-block;
    margin: 0 0 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 212, 166, 0.16);
    border: 1px solid rgba(0, 212, 166, 0.35);
    color: #6FF0D4;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero-card-speed {
    font-family: var(--display);
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    color: #fff;
    margin: 0;
    letter-spacing: -0.04em;
}
.hero-card-speed small { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-left: 8px; color: #A9B2D2; }
.hero-card-name { color: #C3CAE4; font-size: 0.95rem; margin: 8px 0 12px; }
.hero-card-price { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 18px; }
.hero-card-price small { font-family: var(--body); font-size: 0.85rem; font-weight: 400; color: #A9B2D2; margin-left: 4px; }
.hero-card-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.hero-card-list li { position: relative; padding-left: 24px; font-size: 0.9rem; color: #D6DBEC; }
.hero-card-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.4em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.hero-card-foot { margin: 12px 0 0; text-align: center; font-size: 0.78rem; color: #A9B2D2; }

/* --------------------------------------------------------------- secciones */

.section { padding: clamp(56px, 7vw, 88px) 0; }
.section--tint { background: var(--tint); }

/* Deja espacio para la cabecera fija cuando se navega por anclas */
section[id] { scroll-margin-top: 88px; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-sub { color: var(--muted); font-size: 1rem; margin: 14px 0 0; }

/* ---------------------------------------------------------------- planes */

.plans-grid { display: grid; gap: 20px; }

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--brand-line); }

.plan-card--featured { border-color: var(--brand); border-width: 2px; }
.plan-badge {
    position: absolute;
    top: -13px;
    left: 26px;
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.plan-name { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.plan-speed { font-family: var(--display); font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--ink); margin: 0; }
.plan-speed small { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan-price { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--brand); margin: 12px 0 20px; }
.plan-price small { font-family: var(--body); font-size: 0.82rem; font-weight: 400; color: var(--muted); margin-left: 3px; }

.plan-list { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 24px; font-size: 0.9rem; }
.plan-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.42em;
    width: 11px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}
.plan-card .btn { margin-top: auto; }

.plans-note { margin: 24px 0 0; font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------------ beneficios */

.features-grid { display: grid; gap: 18px; }

.feature {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--muted); }

/* -------------------------------------------------------------- cobertura */

.coverage { display: grid; gap: 40px; align-items: start; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 26px; padding: 0; }
.chips li {
    padding: 7px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.coverage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.coverage-panel {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, var(--dark-2), var(--dark));
    color: var(--dark-ink);
    text-align: center;
    overflow: hidden;
}
.signal { position: relative; width: 180px; height: 180px; margin: 6px auto 18px; display: grid; place-items: center; }
.signal-core {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 24px 6px rgba(0, 212, 166, 0.45);
    animation: core-glow 3.2s ease-in-out infinite;
}
.signal-ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 166, 0.18);
    border-radius: 50%;
}
.signal-ring--1 { width: 64px; height: 64px; border-color: rgba(0, 212, 166, 0.42); }
.signal-ring--2 { width: 116px; height: 116px; border-color: rgba(0, 212, 166, 0.26); }
.signal-ring--3 { width: 170px; height: 170px; border-color: rgba(0, 212, 166, 0.14); }

@keyframes core-glow {
    0%, 100% { box-shadow: 0 0 20px 4px rgba(0, 212, 166, 0.35); }
    50% { box-shadow: 0 0 32px 10px rgba(0, 212, 166, 0.55); }
}

.coverage-panel-title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: #fff; margin: 0 0 4px; }
.coverage-panel-sub { font-size: 0.85rem; color: var(--dark-muted); margin: 0 0 22px; }
.coverage-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.coverage-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.coverage-stats dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dark-muted); }
.coverage-stats dd { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0; }

/* ------------------------------------------------------------------ pasos */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.95rem;
}
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: 0.9rem; color: var(--muted); }

/* --------------------------------------------------------- banda "mi cuenta" */

.band {
    padding: clamp(56px, 7vw, 88px) 0;
    background:
        radial-gradient(600px 320px at 12% 0%, rgba(45, 91, 255, 0.4), transparent 65%),
        radial-gradient(520px 320px at 88% 100%, rgba(0, 212, 166, 0.2), transparent 65%),
        var(--dark);
    color: var(--dark-ink);
}
.band-grid { display: grid; gap: 36px; align-items: center; }
.band h2 { color: #fff; margin-bottom: 14px; }
.band p { color: #C3CAE4; }
.band .btn { margin-top: 8px; }

.mock-card {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    max-width: 360px;
}
.mock-label {
    display: inline-block;
    margin: 0 0 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 212, 166, 0.16);
    color: #6FF0D4;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.mock-plan { color: #fff; font-weight: 600; margin: 0 0 4px; }
.mock-amount { font-family: var(--mono); font-size: 1.7rem; font-weight: 700; color: #fff; margin: 0 0 16px; }
.mock-amount small { font-family: var(--body); font-size: 0.8rem; color: var(--dark-muted); font-weight: 400; }
.mock-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 9px; }
.mock-list li { display: flex; justify-content: space-between; font-size: 0.86rem; color: #C3CAE4; }
.mock-list li span:last-child { color: #fff; font-weight: 600; }

/* -------------------------------------------------------------------- faq */

.faq { display: grid; gap: 10px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 20px;
    transition: border-color 160ms ease;
}
.faq details[open] { border-color: var(--brand-line); }
.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--brand);
    line-height: 1;
    transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; font-size: 0.92rem; color: var(--muted); }

/* ---------------------------------------------------------------- cierre */

.final-cta {
    padding: clamp(36px, 5vw, 56px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 260px at 10% 0%, rgba(45, 91, 255, 0.55), transparent 70%),
        radial-gradient(420px 260px at 95% 100%, rgba(0, 212, 166, 0.3), transparent 70%),
        var(--dark);
    color: var(--dark-ink);
    text-align: center;
}
.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-cta p { color: #C3CAE4; max-width: 46ch; margin: 0 auto 24px; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--dark); color: var(--dark-muted); padding: 56px 0 26px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin: 16px 0 0; font-size: 0.9rem; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { color: #fff; margin: 0 0 6px; }
.footer-col a, .footer-col p { font-size: 0.88rem; color: var(--dark-muted); margin: 0; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--dark-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }
.site-footer--slim { padding: 26px 0; }
.site-footer--slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

/* --------------------------------------------------------------- flotante */

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 12px 14px;
    border-radius: 999px;
    background: #25D366;
    color: #06281A;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.75);
    transition: transform 160ms ease, box-shadow 160ms ease;
}
.wa-float:hover { color: #06281A; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(37, 211, 102, 0.9); }
.wa-float svg { width: 22px; height: 22px; }

/* --------------------------------------------------------- banner estado */

.service-banner {
    padding: 11px 24px;
    background: var(--warning);
    color: #3A2400;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
}
.service-banner--danger { background: var(--danger); color: #fff; }

/* ==========================================================================
   Páginas internas (solicitud y mi cuenta)
   ========================================================================== */

.page-inner { background: var(--canvas); display: flex; flex-direction: column; min-height: 100vh; }
.page-inner > main { flex: 1 0 auto; }

.form-page { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.form-layout { display: grid; gap: 40px; align-items: start; }

.back-link { display: block; margin-bottom: 18px; font-size: 0.86rem; color: var(--muted); }
.back-link:hover { color: var(--brand); }

.form-intro h1 { margin-bottom: 16px; }
.form-intro .lead { font-size: 1rem; }

.check-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-soft); }
.check-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0.42em;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--accent-deep);
    border-bottom: 2px solid var(--accent-deep);
    transform: rotate(-45deg);
}

.help-box {
    margin-top: 28px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.help-box-title { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.help-box p { font-size: 0.88rem; color: var(--muted); }
.help-box .btn { margin-top: 14px; }

.form-card {
    padding: clamp(24px, 4vw, 34px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}
.form-card h2 { font-size: 1.35rem; margin-bottom: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .plans-picker legend { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field-row { display: grid; gap: 0; }

.field input, .field select, .field textarea {
    width: 100%;
    padding: 11px 13px;
    font-family: var(--body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.field input::placeholder { color: #A6ADC6; }
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.field-hint { margin: 2px 0 0; font-size: 0.78rem; color: var(--muted); }

.plans-picker { border: 0; margin: 6px 0 18px; padding: 0; }
.plans-picker legend { margin-bottom: 10px; padding: 0; }
.plans-picker-grid { display: grid; gap: 10px; }
.loading-note { font-size: 0.85rem; color: var(--muted); }

.plan-option {
    display: block;
    cursor: pointer;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 140ms ease, background 140ms ease;
}
.plan-option:hover { border-color: var(--brand-line); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.plan-option:has(input:focus-visible) { outline: 3px solid var(--brand-line); outline-offset: 2px; }
.plan-option-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan-option-name { font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.plan-option-price { font-family: var(--mono); font-weight: 700; color: var(--brand); font-size: 0.95rem; }
.plan-option-meta { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; font-size: 0.84rem; color: var(--muted); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }

.form-foot { margin: 12px 0 0; font-size: 0.78rem; text-align: center; color: var(--muted); }

.alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    border: 1px solid transparent;
}
.alert-error { background: rgba(229, 72, 77, 0.08); border-color: rgba(229, 72, 77, 0.3); color: #A32024; }
.alert-info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }

.success-panel { text-align: center; padding: 12px 0; }
.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(0, 212, 166, 0.16);
    color: var(--accent-deep);
    font-size: 1.5rem;
    font-weight: 700;
}
.success-panel h2 { margin-bottom: 10px; }
.success-panel p { color: var(--muted); margin-bottom: 22px; }
.success-panel .btn + .btn { margin-top: 8px; }

/* ------------------------------------------------------------ mi cuenta */

.account-page { padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.account-layout { max-width: 940px; }

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 34px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}
.auth-card h1 { font-size: 1.9rem; margin-bottom: 10px; }
.auth-card .section-sub { font-size: 0.92rem; margin-bottom: 22px; }
.auth-form .field { margin-bottom: 18px; }
.auth-form .btn + .btn { margin-top: 4px; }
.code-input {
    font-family: var(--mono) !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.42em;
    text-align: center;
    padding: 12px 8px !important;
}
.auth-foot { margin: 18px 0 0; font-size: 0.8rem; text-align: center; color: var(--muted); }

.portal { display: grid; gap: 26px; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.portal-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.portal-head .section-sub { margin-top: 6px; font-size: 0.9rem; }

.stat-grid { display: grid; gap: 14px; }
.stat {
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stat-label { margin: 0 0 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }
.stat-note { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }
.stat--alert .stat-value { color: var(--danger); }

.portal-block h2 { font-size: 1.15rem; margin-bottom: 12px; }
.portal-block .stack { display: grid; gap: 10px; }

.row-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.row-main { min-width: 180px; }
.row-title { margin: 0; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.row-sub { margin: 2px 0 0; font-size: 0.82rem; color: var(--muted); }
.row-value { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.row-value small { font-family: var(--body); font-weight: 400; color: var(--muted); }

.chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.chip--ok { background: rgba(0, 212, 166, 0.14); color: #00795F; }
.chip--warn { background: rgba(240, 162, 58, 0.16); color: #8A5A00; }
.chip--bad { background: rgba(229, 72, 77, 0.12); color: #A32024; }
.chip--neutral { background: var(--tint); color: var(--ink-soft); }

.empty {
    padding: 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
}

.invoice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.invoice summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}
.invoice summary::-webkit-details-marker { display: none; }
.invoice[open] summary { border-bottom: 1px solid var(--border); }
.invoice-body { padding: 14px 18px 18px; background: #FBFCFF; }
.invoice-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 0.85rem; color: var(--ink-soft); }
.invoice-line span:last-child { font-family: var(--mono); }
.invoice-line--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; color: var(--ink); }
.invoice-note { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }

.portal-help {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: var(--radius);
}
.portal-help-title { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.portal-help p { font-size: 0.9rem; }

/* --------------------------------------------------------------- breakpoints */

@media (min-width: 720px) {
    .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
    .plans-picker-grid { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .coverage-stats { gap: 8px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .footer-col:first-of-type { grid-column: auto; }
    .portal-help { grid-template-columns: 1fr auto; }
    .form-layout { grid-template-columns: 0.85fr 1.15fr; gap: 56px; }
    .legal-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
    .nav-desktop { display: flex; }
    .nav-mobile { display: none !important; }
    .menu-toggle { display: none; }
    .header-actions { margin-left: 0; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: center; gap: 56px; }
    .hero-card { justify-self: end; }
    .plans-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .coverage { grid-template-columns: 1.25fr 0.75fr; gap: 64px; }
    .coverage-panel { position: sticky; top: 92px; }
    .band-grid { grid-template-columns: 1fr 380px; gap: 64px; }
}

@media (max-width: 979px) {
    .hide-sm { display: none; }
    .hero-card { max-width: none; }
}

@media (max-width: 400px) {
    .container { padding: 0 18px; }
    .wa-float span { display: none; }
    .wa-float { padding: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
