/* ================================================================
   Vconexion — Refinamiento visual (sitio corporativo)
   Alineado con portal-cliente.css · Sora + Nunito Sans
   ================================================================

   PALETA (compartida con MiConexión)
   primary #0D2B5F · accent #0891A5
   neutral-50 #FAFAF8 → neutral-900 #1C1A17
   success #2D6A4F · warning #B45309 · error #B91C1C

   TIPOGRAFÍA: 12 / 14 / 16 / 20 / 24 / 32 / 48 px
   ESPACIADO: 4 / 8 / 16 / 24 / 32 / 48 / 64 px

   Tokens: assets/css/tokens.css
   ================================================================ */

/* ── Tipografía unificada ─────────────────────────────────────── */
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--clr-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--clr-text-muted);
}

/* Labels: cuerpo, no mono */
.section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-accent-dark);
    background: var(--clr-accent-soft);
    border: 1px solid rgba(8, 145, 165, 0.18);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
}

/* Acento sólido, sin gradiente clip */
.gradient-text {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: var(--clr-accent);
    background-clip: unset;
    color: var(--clr-accent);
}

/* ── Botones ──────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    border-width: 1px;
    padding: 10px 20px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn--primary {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
    box-shadow: none;
}

.btn--primary:hover {
    background: var(--clr-accent-dark);
    border-color: var(--clr-accent-dark);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn--secondary {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
}

.btn--secondary:hover {
    background: var(--clr-primary-dark);
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn--outline:hover,
.btn--outline-dark:hover {
    transform: none;
}

/* ── Navbar ───────────────────────────────────────────────────── */
.navbar.scrolled {
    background: rgba(7, 26, 62, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar__link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
}

.navbar__link:hover,
.navbar__link.active {
    background: rgba(255, 255, 255, 0.06);
}

.navbar__cta {
    font-family: var(--font-body);
    border-radius: var(--radius-md);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    background: var(--clr-primary-dark);
}

.hero__overlay {
    background: none;
}

.hero__badge {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
}

.hero__title {
    font-weight: 700;
    line-height: 1.15;
}

.hero__title .gradient-text {
    background: none;
    -webkit-text-fill-color: var(--clr-accent-on-dark);
    color: var(--clr-accent-on-dark);
}

.hero__subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.trust-item {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* Hero imagen: sin glow ni flotación excesiva */
.hero__img-wrap::after {
    display: none;
}

.hero__img {
    filter: none;
    animation: none;
}

/* ── Cards y secciones ───────────────────────────────────────── */
.service-card,
.plan-card,
.why-item,
.faq-item,
.testimonial-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-card:hover,
.plan-card:hover,
.plan-card:hover:not(.plan-card--popular) {
    transform: none;
    box-shadow: var(--shadow-md);
}

.service-card:hover .service-card__icon {
    transform: none;
}

.service-card:hover .service-card__cta {
    transform: none;
}

.why-item:hover {
    transform: none;
}

.promo-modal__container {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.promo-modal__overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 26, 62, 0.85);
}

.promo-modal__title {
    font-weight: 700;
    font-size: var(--text-lg);
}

.promo-modal__btn.btn--primary {
    box-shadow: none;
}


.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: none;
}

.testimonial-card:hover {
    transform: none;
    border-color: rgba(8, 145, 165, 0.25);
}

/* Logo slider */
.logo-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

/* Stats */
.stat-item__number {
    font-family: var(--font-display);
    font-weight: 700;
}

.stat-item__label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

/* CTA final */
.cta-section {
    background: var(--clr-primary);
}

/* ── Portal de acceso (/sucursal) ────────────────────────────── */
.portal-section {
    padding: 120px 20px 80px;
    background: var(--clr-primary-dark);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-section__inner {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.portal-section__title {
    color: #fff;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--sp-4);
}

.portal-section__subtitle {
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-base);
    margin-bottom: var(--sp-12);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-6);
}

.portal-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.portal-card {
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8) var(--sp-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    box-shadow: var(--shadow-sm);
}

a:hover .portal-card {
    border-color: var(--clr-border);
    box-shadow: var(--shadow-md);
}

a:hover .portal-card--client {
    border-color: rgba(8, 145, 165, 0.35);
}

a:hover .portal-card--staff {
    border-color: rgba(13, 43, 95, 0.25);
}

.portal-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-6);
}

.portal-card__icon--client {
    background: rgba(8, 145, 165, 0.08);
    color: var(--clr-accent);
}

.portal-card__icon--staff {
    background: rgba(13, 43, 95, 0.06);
    color: var(--clr-primary);
}

.portal-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: var(--sp-3);
}

.portal-card__desc {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.65;
    margin-bottom: var(--sp-6);
}

.portal-card__btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: #fff;
}

.portal-card__btn--client {
    background: var(--clr-accent);
}

.portal-card__btn--staff {
    background: var(--clr-primary);
}

@media (max-width: 768px) {
    .portal-section {
        padding-top: 100px;
    }

    .portal-section__title {
        font-size: var(--text-xl);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EXTENSIÓN GLOBAL — Todas las páginas públicas
   ═══════════════════════════════════════════════════════════════ */

/* Page hero internas — texto legible sobre fondo oscuro */
.page-hero {
    background: var(--clr-primary-dark);
    color: rgba(255, 255, 255, 0.92);
}

.page-hero strong {
    color: #fff;
}

.page-hero .section-label,
.page-hero .page-hero__label {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.page-hero .page-hero__title span,
.page-hero .text-accent-on-dark {
    color: var(--clr-accent-on-dark);
}

.page-hero__subtitle {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.82);
}

.page-hero .breadcrumb__current {
    color: var(--clr-accent-on-dark);
}

/* Pills / tags sobre fondos oscuros */
.channel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.channel-pill svg {
    flex-shrink: 0;
}

/* Paneles sobre section--dark */
.dark-panel {
    padding: var(--sp-8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
}

.dark-panel__list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.dark-panel__item {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.dark-panel__badge {
    width: 40px;
    height: 40px;
    background: var(--clr-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: var(--text-sm);
    font-weight: 700;
}

/* Secciones oscuras — herencia de color clara */
.section--dark,
.section--clients {
    color: rgba(255, 255, 255, 0.88);
}

.section--dark .section-label {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.section--dark .gradient-text {
    color: var(--clr-accent-on-dark);
    -webkit-text-fill-color: var(--clr-accent-on-dark);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero::after {
    display: none;
}

.page-hero__title {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.section--clients .text-accent-on-dark {
    color: var(--clr-accent-on-dark);
}

.breadcrumb {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

/* CTA */
.cta-section {
    background: var(--clr-primary);
}

.cta-section::before {
    display: none;
}

.cta-section h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.cta-section p {
    font-size: var(--text-base);
}

/* Why grid */
.why-item {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.why-item:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--clr-border);
}

.why-item__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-base);
}

.why-item__desc {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

/* Formularios */
.contact-form {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--sp-8);
}

.form-label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-sm);
}

.form-control {
    border-width: 1px;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: var(--text-sm);
}

.form-control:focus {
    box-shadow: 0 0 0 3px var(--clr-accent-ring);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

@media (max-width: 640px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-6);
}

.blog-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.blog-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.blog-card__category {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.blog-card__title {
    font-weight: 600;
    font-size: var(--text-lg);
}

/* Plan cards */
.plan-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.plan-card__popular-badge {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
}

/* FAQ */
.faq-item {
    border-radius: var(--radius-md);
}

.faq-question {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
}

/* Footer */
.footer {
    background: var(--clr-primary-dark);
}

.footer__brand-name,
.footer__heading {
    font-family: var(--font-display);
    font-weight: 600;
}

.footer__description,
.footer__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

.promo-banner__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: center;
}

.promo-banner__content { color: #fff; }

.promo-stats {
    display: flex;
    gap: var(--sp-8);
    margin-top: var(--sp-8);
    flex-wrap: wrap;
}

.promo-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-banner__image-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .promo-banner__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .promo-stats { justify-content: center; }
    .promo-banner__image-wrap { order: -1; }
    .promo-banner__img { width: 280px; }
}

.promo-banner {
    background: var(--clr-primary-dark);
    padding: var(--sp-16) 0;
}

.promo-banner::before {
    display: none;
}

.promo-banner__title {
    font-size: var(--text-2xl);
    font-weight: 700;
}

.promo-banner__highlight {
    color: var(--clr-accent);
}

.promo-banner__desc {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.72);
}

.promo-stat__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--clr-accent);
}

.promo-stat__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
}

.promo-banner__image-wrap::after {
    display: none;
}

.promo-banner__img {
    filter: none;
    animation: none;
}

/* Branch tabs (internet) */
.branch-tabs {
    display: flex;
    gap: var(--sp-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--sp-8);
}

.branch-tab {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--clr-accent);
    background: transparent;
    color: var(--clr-accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.branch-tab:hover {
    transform: none;
    background: rgba(8, 145, 165, 0.08);
}

.branch-tab--active {
    background: var(--clr-accent);
    color: #fff;
}

.branch-panel { display: none; }
.branch-panel--active { display: block; }

/* Top sticky promo banner (partial) */
body.has-promo-banner .promo-banner {
    background: var(--clr-primary-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-sm);
}

.promo-banner__badge {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
}

.promo-banner__text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

/* Home — logo slider & testimonial (inline styles migrados) */
.logos-slider {
    overflow: hidden;
    padding: var(--sp-8) 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-slider__track {
    display: inline-flex;
    gap: var(--sp-12);
    animation: scroll-logos 45s linear infinite;
    align-items: center;
}

@keyframes scroll-logos {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - 24px)); }
}

.logo-item { flex-shrink: 0; }

.hero__img-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__img {
    max-width: 100%;
    width: clamp(280px, 50vw, 480px);
    height: auto;
}

.logo-card {
    width: 240px;
    height: 120px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.logo-card__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.65);
    transition: opacity 150ms ease;
}

.logo-card:hover .logo-card__img {
    opacity: 1;
    transform: none;
}

.testimonial-card__avatar {
    background: var(--clr-accent) !important;
    color: #fff !important;
    font-weight: 600;
}

.logo-card__fallback {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-sm);
    color: #fff;
    text-align: center;
}

.section--clients {
    background: var(--clr-primary-dark) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-block: var(--sp-section);
}

.section__header--center {
    text-align: center;
    margin-bottom: var(--sp-16);
}

.section__header--center .section-subtitle {
    margin-inline: auto;
}

.section-title--light {
    font-size: var(--text-2xl);
    color: var(--clr-white);
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.72);
    max-width: 600px;
}

/* Utilidades de contenido */
.prose-muted {
    color: var(--clr-text-muted);
    line-height: 1.7;
    font-size: var(--text-sm);
}

.stat-highlight {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--clr-accent);
}

.stat-highlight-label {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.stats-inline {
    display: flex;
    gap: var(--sp-8);
    flex-wrap: wrap;
}

.mvv-panel {
    background: var(--clr-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
    border: 1px solid var(--clr-border);
}

.mvv-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.mvv-block {
    border-left: 3px solid var(--clr-accent);
    padding-left: var(--sp-5);
}

.mvv-block--vision { border-left-color: var(--clr-primary-light); }
.mvv-block--slogan { border-left-color: var(--clr-primary); }

.mvv-block__label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--clr-accent);
    margin-bottom: var(--sp-2);
}

.mvv-block--vision .mvv-block__label { color: var(--clr-primary-light); }
.mvv-block--slogan .mvv-block__label { color: var(--clr-primary); }

.mvv-block__text {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.content-heading {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-2);
}

.content-intro {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-8);
}

.grid-align-start {
    gap: var(--sp-12);
    align-items: start;
}

#coverage-map {
    border-radius: var(--radius-lg);
}

/* 404 — página completa */
.error-page {
    min-height: 100vh;
    background: var(--clr-primary-dark);
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
    box-sizing: border-box;
}

.error-page__stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.error-page__star {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: error-twinkle var(--d, 3s) ease-in-out infinite alternate;
}

@keyframes error-twinkle {
    from { opacity: 0.2; transform: scale(0.8); }
    to   { opacity: 1;   transform: scale(1.2); }
}

.error-page__pulse {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(8, 145, 165, 0.12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: error-pulse 3.5s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}

.error-page__pulse:nth-child(3) { animation-delay: 1.2s; }
.error-page__pulse:nth-child(4) { animation-delay: 2.4s; }

@keyframes error-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.error-page__inner {
    position: relative;
    text-align: center;
    max-width: 500px;
    z-index: 1;
}

.error-page__code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 9.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--clr-accent-on-dark);
    animation: error-float 4s ease-in-out infinite;
    display: block;
}

@keyframes error-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

.error-page__icon {
    margin: -0.25rem auto 1rem;
    width: 58px;
    height: 58px;
    background: rgba(8, 145, 165, 0.12);
    border: 1px solid rgba(8, 145, 165, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent-on-dark);
}

.error-page__title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 4vw, 1.65rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
}

.error-page__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 2rem;
}

.error-page__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.error-page__help {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.45);
}

.error-page__help a {
    color: var(--clr-accent-on-dark);
    text-decoration: none;
    font-weight: 600;
}

.error-page__help a:hover {
    text-decoration: underline;
}

.error-page .btn--outline {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.error-page .btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-hero__title--article {
    font-size: var(--text-2xl);
    max-width: 900px;
    margin-inline: auto;
}

.page-hero__meta {
    justify-content: center;
    margin-top: var(--sp-6);
    color: rgba(255, 255, 255, 0.72);
}

/* ── Componentes de servicios ─────────────────────────────── */

.info-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
}

@media (max-width: 640px) {
    .info-card-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    padding: var(--sp-5);
    background: var(--clr-bg-alt);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--clr-accent);
}

.info-card--primary {
    border-left-color: var(--clr-primary-light);
}

.info-card__title {
    margin-bottom: var(--sp-2);
    font-size: var(--text-base);
    font-weight: 600;
}

.info-card__text {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.highlight-panel {
    padding: var(--sp-8);
    background: var(--clr-primary-dark);
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.highlight-panel__title {
    color: #fff;
    margin-bottom: var(--sp-4);
    font-size: var(--text-lg);
    font-weight: 600;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list__item {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.92);
}

.check-list__icon {
    color: var(--clr-accent-on-dark);
    flex-shrink: 0;
}

.check-list--light .check-list__item {
    color: var(--clr-text-muted);
}

.check-list--light .check-list__icon {
    color: var(--clr-accent);
}

.step-card {
    background: var(--clr-bg);
    padding: var(--sp-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.step-card__num {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: rgba(8, 145, 165, 0.18);
    margin-bottom: -15px;
    line-height: 1;
}

.step-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--sp-3);
    position: relative;
    font-weight: 600;
}

.step-card__text {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.8;
}

.service-extra {
    display: flex;
    gap: var(--sp-5);
    align-items: flex-start;
}

.service-extra__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: rgba(26, 86, 168, 0.1);
    color: var(--clr-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-extra__title {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}

.service-extra__text {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.pillar-card {
    background: var(--clr-bg);
    padding: var(--sp-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}

.pillar-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-4);
    color: var(--clr-primary);
    font-weight: 600;
}

.pillar-card__desc {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-6);
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.pillar-list__item {
    display: flex;
    gap: var(--sp-3);
    align-items: center;
    font-size: var(--text-sm);
    font-weight: 600;
}

.process-step {
    text-align: center;
}

.process-step__num {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--sp-4);
    font-weight: 800;
    color: var(--clr-accent);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-display);
}

.process-step__title {
    margin-bottom: var(--sp-2);
    font-weight: 600;
}

.process-step__text {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    line-height: 1.7;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dept-card {
    background: var(--clr-bg-alt);
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-8);
}

.dept-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.dept-card__title {
    font-size: var(--text-lg);
    margin-bottom: 0.75rem;
    color: var(--clr-primary);
    font-weight: 600;
}

.dept-card__desc {
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.dept-card__bullets {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
}

.dept-card__bullets li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.dept-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.metric-card {
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-6);
    text-align: center;
    border-top: 3px solid var(--clr-accent);
}

.metric-card__val {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.metric-card__label {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    margin-top: var(--sp-2);
    line-height: 1.4;
}

.section-block__title {
    margin-bottom: 1rem;
}

.section-block__text {
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contacto */
.contact-layout {
    gap: var(--sp-12);
    align-items: start;
}

.contact-block__title {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-2);
    font-weight: 600;
}

.contact-block__subtitle {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-8);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5);
    background: var(--clr-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.contact-info-card__title {
    font-weight: 700;
    font-size: var(--text-sm);
    margin-bottom: var(--sp-1);
}

.contact-info-card__line {
    display: block;
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.contact-info-card__line--link {
    color: var(--clr-text-muted);
    text-decoration: none;
}

.contact-info-card__line--link:hover {
    color: var(--clr-accent);
}

.form-privacy-note {
    font-size: var(--text-xs);
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-6);
}

.form-privacy-note svg {
    display: inline;
    vertical-align: middle;
}

.form-link {
    color: var(--clr-accent-dark);
}

/* Cobertura */
.city-card {
    padding: var(--sp-8);
    background: var(--clr-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--clr-border);
    box-shadow: var(--shadow-sm);
}

.city-card__header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}

.city-card__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.city-card__type {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.city-card__name {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-4);
    font-weight: 600;
}

.city-card__details {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.city-card__row {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
}

.city-card__row--center {
    align-items: center;
}

.city-card__row-icon {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.city-card__phone {
    color: var(--clr-accent-dark);
    text-decoration: none;
    font-weight: 500;
}

.city-card__phone:hover {
    color: var(--clr-accent);
}

.cta-panel {
    text-align: center;
    margin-top: var(--sp-12);
    padding: var(--sp-10);
    background: var(--clr-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--clr-border);
}

.cta-panel__title {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-3);
    font-weight: 600;
}

.cta-panel__text {
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-6);
}

/* Consulta factura — alineado con formularios públicos */
.consulta-section {
    padding-bottom: var(--sp-12);
}

.consulta-form-card.contact-form {
    max-width: 500px;
    margin: -40px auto var(--sp-12);
    position: relative;
    z-index: 10;
}

@media (max-width: 640px) {
    .consulta-form-card.contact-form {
        margin-top: -24px;
    }
}

.modal-container--sm {
    text-align: center;
    max-width: 400px;
    padding: var(--sp-8) var(--sp-6);
}

.modal-icon-wrap {
    margin-bottom: var(--sp-4);
}

.modal-icon-wrap svg {
    margin: 0 auto;
}

.modal-actions {
    margin-bottom: var(--sp-6);
}

.modal-note {
    font-size: var(--text-sm);
    color: var(--clr-text-muted);
    margin-bottom: var(--sp-6);
    line-height: 1.5;
}

.btn--block {
    width: 100%;
    display: inline-flex;
    justify-content: center;
}

.article-cta {
    margin-top: var(--sp-12);
    padding: var(--sp-10);
    background: var(--clr-primary-dark);
    border-radius: var(--radius-lg);
    color: #fff;
    text-align: center;
}

.article-cta__title {
    color: #fff;
    margin-bottom: var(--sp-4);
    font-size: var(--text-xl);
    font-weight: 600;
}

.article-cta__text {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: var(--sp-8);
}

/* WhatsApp / scroll buttons */
.whatsapp-float,
.scroll-top,
.speedtest-float {
    box-shadow: var(--shadow-md);
}

.whatsapp-float:hover,
.scroll-top:hover {
    transform: none;
}

/* Servicio omnichat card accent */
.service-card--omnichat {
    border-top: 2px solid var(--clr-accent);
}

.service-card--omnichat .service-card__icon {
    background: var(--clr-accent-soft);
    color: var(--clr-accent);
}

.plan-card__price-highlight {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--clr-accent);
    margin-top: var(--sp-2);
}

/* ═══════════════════════════════════════════════════════════════
   FASE 1 — Utilidades responsive, blog, prose, navbar
   ═══════════════════════════════════════════════════════════════ */

/* Grids que colapsan en móvil */
.grid-2--stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
}

@media (max-width: 768px) {
    .grid-2--stack {
        grid-template-columns: 1fr;
        gap: var(--sp-8);
    }
}

.grid-2--stack-tight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    .grid-2--stack-tight {
        grid-template-columns: 1fr;
    }
}

/* Blog — artículo destacado */
.blog-featured-wrap {
    margin-bottom: var(--sp-12);
}

.blog-card--featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 400px;
    background: var(--clr-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-md);
}

.blog-card--featured .blog-card__img {
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--clr-primary-dark);
}

.blog-card--featured .blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card--featured .blog-card__img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7, 26, 62, 0.4), transparent);
    pointer-events: none;
}

.blog-card--featured .blog-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-10);
}

.blog-card--featured .blog-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-4);
}

.blog-card--featured .blog-card__excerpt {
    font-size: var(--text-base);
    margin-bottom: var(--sp-6);
}

.blog-card__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .blog-card--featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .blog-card--featured .blog-card__img {
        height: 250px;
    }

    .blog-card--featured .blog-card__body {
        padding: var(--sp-6);
    }
}

/* Prose — contenido largo (legal, blog) */
.prose-wrap {
    max-width: 820px;
    margin-inline: auto;
}

.prose-wrap--narrow {
    max-width: 780px;
}

.prose-notice {
    background: var(--clr-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--sp-5);
    border-left: 4px solid var(--clr-accent);
    margin-bottom: var(--sp-10);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.prose-notice--primary {
    border-left-color: var(--clr-primary-light);
}

.prose-intro {
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-10);
}

.prose-section {
    margin-bottom: var(--sp-10);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid var(--clr-border);
}

.prose-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.prose-section__title {
    font-size: var(--text-xl);
    margin-bottom: var(--sp-4);
    color: var(--clr-primary);
    font-family: var(--font-display);
    font-weight: 600;
}

.prose-section__text {
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-4);
}

.prose-section__text:last-child {
    margin-bottom: 0;
}

.prose-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.prose-list li {
    display: flex;
    gap: var(--sp-3);
    align-items: flex-start;
    color: var(--clr-text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
}

.prose-list__marker {
    color: var(--clr-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.prose {
    font-size: var(--text-base);
    color: var(--clr-text);
    line-height: 1.8;
}

.prose p {
    margin-bottom: var(--sp-6);
}

.prose strong {
    color: var(--clr-primary);
    font-weight: 600;
}

.prose h2 {
    font-size: var(--text-xl);
    color: var(--clr-primary);
    margin-block: var(--sp-8) var(--sp-4);
    font-family: var(--font-display);
    font-weight: 600;
}

.prose a {
    color: var(--clr-accent-dark);
}

.prose-callout {
    background: var(--clr-bg-alt);
    padding: var(--sp-6);
    border-radius: var(--radius-lg);
    margin-block: var(--sp-6);
    border-left: 4px solid var(--clr-accent);
}

.prose-callout p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--clr-text-muted);
}

/* Artículo de blog */
.article-content {
    max-width: 800px;
    margin-inline: auto;
}

.article-lead {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--clr-primary);
    margin-bottom: var(--sp-8);
}

.article-featured-img {
    margin-bottom: var(--sp-10);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
    background: var(--clr-primary-dark);
}

.article-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-footer {
    margin-top: var(--sp-12);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.article-back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--clr-accent-dark);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
}

.article-back-link:hover {
    color: var(--clr-accent);
}

/* Quiénes somos — bloques de contenido */
.content-block {
    color: var(--clr-text-muted);
    line-height: 1.8;
    margin-bottom: var(--sp-4);
}

.content-block:last-of-type {
    margin-bottom: var(--sp-6);
}

.section-title--lg {
    font-size: var(--text-2xl);
}

/* Navbar — CTA táctil en móvil */
.dropdown__icon--accent {
    color: var(--clr-accent);
}

.service-card__icon--accent {
    background: var(--clr-accent-soft);
    color: var(--clr-accent);
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--clr-accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent);
    flex-shrink: 0;
}

.feature-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--clr-accent-soft);
    color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 900px) {
    .navbar__cta {
        font-size: var(--text-sm) !important;
        padding: 10px 14px !important;
        min-height: 44px;
        align-items: center;
    }

    .navbar__cta svg {
        width: 16px;
        height: 16px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   FASE 5 — Pulido: focus, motion, equipo, micro-interacciones
   ═══════════════════════════════════════════════════════════════ */

/* Focus visible — navbar y navegación */
.navbar__link:focus-visible,
.navbar__dropdown-toggle:focus-visible,
.navbar__cta:focus-visible,
.navbar__brand:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--clr-accent-on-dark);
    outline-offset: 2px;
}

.dropdown__item:focus-visible {
    outline: 2px solid var(--clr-accent-on-dark);
    outline-offset: -2px;
    background: rgba(255, 255, 255, 0.08);
}

.navbar__item--dropdown.open .navbar__dropdown-toggle {
    background: rgba(255, 255, 255, 0.08);
}

/* Focus — botones y formularios */
.btn:focus-visible,
.portal-card-link:focus-visible,
.faq-question:focus-visible,
.channel-pill:focus-visible,
.scroll-top:focus-visible,
.whatsapp-float:focus-visible,
.speedtest-float:focus-visible {
    outline: 2px solid var(--clr-accent);
    outline-offset: 2px;
}

.portal-card-link:focus-visible .portal-card {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-ring);
}

.form-control:focus-visible {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 3px var(--clr-accent-ring);
}

/* Tarjetas — solo color/sombra, sin transform exagerado */
.service-card:focus-within,
.plan-card:focus-within,
.info-card:focus-within,
.blog-card:focus-within {
    box-shadow: var(--shadow-md);
}

.logo-card {
    transition: border-color var(--t-base), opacity var(--t-base);
}

.logo-card:focus-within {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Equipo — quienes-somos */
.team-card {
    background: var(--clr-bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: var(--shadow-card);
    transition: border-color var(--t-base), box-shadow var(--t-base);
}

.team-card:hover,
.team-card:focus-within {
    border-color: rgba(8, 145, 165, 0.35);
    box-shadow: var(--shadow-md);
}

.team-card__photo {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--clr-bg-alt);
    position: relative;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform var(--t-slow);
}

.team-card:hover .team-card__photo img {
    transform: scale(1.04);
}

.team-card__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 26, 62, 0.35), transparent);
    pointer-events: none;
}

.team-card__body {
    padding: var(--sp-6);
    text-align: center;
}

.team-card__name {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--sp-1);
    color: var(--clr-primary);
}

.team-card__role {
    font-size: var(--text-sm);
    color: var(--clr-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Reveal — más sutil en páginas internas */
.page-internal .reveal,
.page-internal .reveal--left,
.page-internal .reveal--right {
    animation-name: fadeInUpSubtle;
    animation-duration: 0.4s;
    animation-timing-function: var(--ease-out);
}

@keyframes fadeInUpSubtle {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Motion reducido — accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal--left,
    .reveal--right {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .team-card__photo img,
    .logo-card__img,
    .service-card,
    .plan-card {
        transition: none !important;
    }

    .team-card:hover .team-card__photo img {
        transform: none;
    }

    .logos-slider__track {
        animation: none !important;
    }
}
