/* ==========================================================================
   CONECTO - ESTILOS COMUNES Y COMPARTIDOS (stylesCommon.css)
   Tokens, variables, reset, cabecera, Navegación, footer y telecom UI
   ========================================================================== */

/* =========================================
   1. VARIABLES GLOBALES (Design Tokens)
   ========================================= */
:root {
    --morado: #733b73;
    --morado-oscuro: #4a204a;
    --morado-profundo: #240d24;
    --amarillo: #EBAF3C;
    --amarillo-hover: #d49a2a;
    --negro: #000000;
    --blanco: #FFFFFF;
    --gris-claro: #f8f9fa;
    --gris-borde: #e0d5e0;
    --gris-texto: #555555;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.08);
    --sombra-morada: 0 12px 35px rgba(115, 59, 115, 0.16);
    --transicion: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   2. RESET Y ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--negro);
    background-color: var(--blanco);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   3. BARRA SUPERIOR DE SEGMENTOS (CLARO STYLE)
   ========================================= */
.top-segment-bar {
    background: var(--morado-profundo);
    border-bottom: 1px solid rgba(235, 175, 60, 0.25);
    position: relative;
    z-index: 1002;
    font-size: 13px;
}

.top-segment-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.segment-tabs {
    display: flex;
    gap: 2px;
}

.segment-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
}

.segment-tab i {
    font-size: 15px;
    color: var(--amarillo);
    transition: transform 0.25s ease;
}

.segment-tab:hover {
    color: var(--blanco);
    background: rgba(255, 255, 255, 0.06);
}

.segment-tab:hover i {
    transform: scale(1.15);
}

.segment-tab.active {
    color: var(--amarillo);
    background: rgba(115, 59, 115, 0.65);
    font-weight: 800;
}

.segment-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--amarillo);
    box-shadow: 0 0 12px var(--amarillo);
}

.top-segment-info {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.top-segment-info .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
}

.top-segment-info .info-item i {
    color: var(--amarillo);
}

.top-contact-link {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-contact-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

@media (max-width: 860px) {
    .top-segment-info {
        display: none;
    }
    .segment-tab {
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* =========================================
   4. HEADER PRINCIPAL
   ========================================= */
.header {
    background-color: rgba(115, 59, 115, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(235, 175, 60, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo-img {
    height: 65px;
    width: auto;
    transition: transform 0.25s ease;
}

.logo:hover .logo-img {
    transform: scale(1.02);
}

.nav-list {
    display: flex;
    gap: 25px;
}

.nav-list a {
    color: var(--blanco);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--amarillo);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--amarillo);
    transition: var(--transicion);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.btn-whatsapp {
    background-color: var(--amarillo);
    color: var(--morado);
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transicion);
    box-shadow: 0 4px 15px rgba(235, 175, 60, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--amarillo-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 175, 60, 0.5);
}

/* Menú Hamburguesa Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--blanco);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(74, 32, 74, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .nav.active {
        max-height: 360px;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px 25px;
        gap: 15px;
    }
}

/* =========================================
   5. BOTONES Y UTILIDADES
   ========================================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    border: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background-color: var(--amarillo);
    color: var(--morado);
    box-shadow: 0 6px 18px rgba(235, 175, 60, 0.35);
}

.btn-primary:hover {
    background-color: var(--amarillo-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(235, 175, 60, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--blanco);
    border: 2px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--blanco);
    color: var(--morado);
    border-color: var(--blanco);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25);
}

.text-amarillo {
    color: var(--amarillo);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--amarillo);
    box-shadow: 0 0 0 0 rgba(235, 175, 60, 0.7);
    animation: livePulse 1.8s infinite;
    display: inline-block;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(235, 175, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(235, 175, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(235, 175, 60, 0); }
}

/* =========================================
   6. FIGURAS DE FONDO TELECOM & ANIMACIONES SVG
   ========================================= */
.hero-bg-shapes,
.page-hero-bg-telecom,
.cobertura-bg-telecom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.telecom-svg-bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

@keyframes antennaWavePulse {
    0% { transform: scale(0.65); opacity: 0.8; }
    50% { opacity: 0.45; }
    100% { transform: scale(1.4); opacity: 0; }
}

.wave-ring {
    transform-origin: center;
    animation: antennaWavePulse 4s ease-out infinite;
}
.wave-ring.wave-1 { animation-delay: 0s; }
.wave-ring.wave-2 { animation-delay: 0.8s; }
.wave-ring.wave-3 { animation-delay: 1.6s; }
.wave-ring.wave-4 { animation-delay: 2.4s; }
.wave-ring.wave-5 { animation-delay: 3.2s; }

@keyframes fiberFlow {
    from { stroke-dashoffset: 120; }
    to { stroke-dashoffset: 0; }
}

.fiber-strand {
    animation: fiberFlow 7s linear infinite;
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.18); opacity: 1; }
}

.node-item {
    transform-origin: center;
    animation: nodePulse 3.5s ease-in-out infinite alternate;
}

/* =========================================
   7. BARRA DE CONFIANZA TELECOM
   ========================================= */
.telecom-trust-bar {
    background: var(--blanco);
    border-bottom: 1px solid rgba(115, 59, 115, 0.08);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(115, 59, 115, 0.05);
    position: relative;
    z-index: 5;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 14px;
    border-radius: 14px;
    transition: var(--transicion);
    border: 1px solid transparent;
}

.trust-item:hover {
    background: #faf4fa;
    border-color: rgba(115, 59, 115, 0.1);
    transform: translateY(-2px);
}

.trust-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(115, 59, 115, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.trust-item:hover .trust-icon-box {
    background: var(--morado);
    transform: scale(1.08);
}

.trust-info strong {
    display: block;
    font-size: 15px;
    color: var(--morado);
    font-weight: 800;
}

.trust-info span {
    display: block;
    font-size: 12px;
    color: var(--gris-texto);
    margin-top: 2px;
}

/* =========================================
   8. WHATSAPP FLOTANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--blanco);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: var(--transicion);
    animation: pulseWhatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}

@keyframes pulseWhatsapp {
    0%, 100% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8); }
}

/* =========================================
   9. FOOTER
   ========================================= */
.footer {
    background-color: #0c060d;
    color: var(--blanco);
    padding: 65px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 45px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.footer-info {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    margin-bottom: 14px;
    align-self: flex-start;
}

.footer-eslogan {
    color: var(--amarillo);
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 8px;
}

.footer-desc {
    color: #999999;
    font-size: 14px;
    line-height: 1.6;
    max-width: 320px;
    margin: 0;
}

.footer-links h4,
.footer-contacto h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--amarillo);
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 11px;
}

.footer-links ul li a {
    color: #b5b5b5;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--amarillo);
    transform: translateX(4px);
}

.footer-contacto p {
    color: #b5b5b5;
    margin-bottom: 14px;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.footer-contacto p i {
    color: var(--amarillo);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.footer-contacto p a {
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contacto p a:hover {
    color: var(--amarillo);
}

.footer-bottom {
    background-color: #060207;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    padding: 22px 0;
    font-size: 13.5px;
    color: #7a7a7a;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
}

/* Page Header & Breadcrumbs (Compartidos para páginas secundarias) */
.page-header {
    background: linear-gradient(135deg, var(--morado) 0%, var(--morado-oscuro) 100%);
    color: var(--blanco);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.breadcrumb a {
    color: var(--amarillo);
}

.breadcrumb span {
    color: var(--blanco);
}

.cta-final {
    background: linear-gradient(135deg, var(--morado) 0%, var(--morado-oscuro) 100%);
    color: var(--blanco);
    padding: 75px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-final .container {
    position: relative;
    z-index: 2;
}

.cta-final h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-final p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ==========================================================================
   BANNER DE ACCESO RÁPIDO / CRUCE DE SEGMENTOS (HOGAR <-> EMPRESAS)
   ========================================================================== */
.segment-cross-banner {
    background: linear-gradient(135deg, #240d24 0%, #4a204a 55%, #5a275a 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 30px 38px;
    margin: 45px auto 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(74, 32, 74, 0.22);
    border: 1px solid rgba(235, 175, 60, 0.35);
}

.segment-cross-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(235, 175, 60, 0.16) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.cross-banner-info {
    position: relative;
    z-index: 2;
    flex: 1;
}

.cross-banner-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 6px;
}

.cross-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(235, 175, 60, 0.18);
    border: 1px solid rgba(235, 175, 60, 0.45);
    color: var(--amarillo);
    font-size: 20px;
    flex-shrink: 0;
}

.cross-banner-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cross-banner-info p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.88);
    margin: 6px 0 0;
    line-height: 1.55;
    max-width: 660px;
}

.btn-cross-switch {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #EBAF3C 0%, #f7c35f 100%);
    color: #1a081a !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14.5px;
    padding: 13px 26px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(235, 175, 60, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    flex-shrink: 0;
}

.btn-cross-switch i {
    transition: transform 0.25s ease;
    font-size: 13px;
}

.btn-cross-switch:hover {
    background: #ffffff;
    color: var(--morado-oscuro) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn-cross-switch:hover i {
    transform: translateX(4px);
}

/* Variante clara para indexEmpresa (invitación a Personas) */
.segment-cross-banner.banner-light {
    background: linear-gradient(135deg, #fdf8fd 0%, #fff9ef 100%);
    color: var(--negro);
    border: 1px solid rgba(235, 175, 60, 0.45);
    box-shadow: 0 12px 30px rgba(115, 59, 115, 0.08);
}

.segment-cross-banner.banner-light .cross-banner-info h3 {
    color: var(--morado);
}

.segment-cross-banner.banner-light .cross-banner-info p {
    color: var(--gris-texto);
}

.segment-cross-banner.banner-light .btn-cross-switch {
    background: linear-gradient(135deg, var(--morado) 0%, var(--morado-oscuro) 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(115, 59, 115, 0.28);
}

.segment-cross-banner.banner-light .btn-cross-switch:hover {
    background: var(--amarillo);
    color: #1a081a !important;
}

@media (max-width: 868px) {
    .segment-cross-banner {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
        gap: 20px;
    }

    .cross-banner-header {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .cross-banner-info h3 {
        font-size: 20px;
        justify-content: center;
    }

    .cross-banner-info p {
        font-size: 14px;
        text-align: center;
    }

    .btn-cross-switch {
        width: 100%;
        justify-content: center;
    }
}
