/* ============================================
   ESTILOS TELEFONÍA IP - VERSIÓN PROFESIONAL
   Basado en el formato enterprise
   Colores: #00698C (azul) / #FF8000 (naranja)
   ============================================ */

:root {
    --primary: #FF8000;
    --primary-dark: #CC6600;
    --primary-light: #FFA040;
    --secondary: #00698C;
    --secondary-dark: #004D66;
    --secondary-light: #0088B3;
    --dark: #0A1A2A;
    --dark-gray: #1A2A3A;
    --gray: #5A6A7A;
    --light-gray: #E8ECF0;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    --gradient-dark: linear-gradient(135deg, var(--dark), var(--dark-gray));
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-base: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HERO TELEFONÍA IP ===== */
.telefonia-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 105, 140, 0.4), rgba(0, 0, 0, 0.3));
}

.telefonia-hero .container {
    position: relative;
    z-index: 2;
}

.telefonia-hero-content {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--white);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-badge i {
    margin-right: 0.5rem;
}

.onpremise-badge { background: rgba(0, 105, 140, 0.7); }
.cloud-badge { background: rgba(255, 128, 0, 0.7); }
.hibrida-badge { background: rgba(46, 204, 113, 0.7); }

.telefonia-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.telefonia-hero h1 .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.telefonia-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.telefonia-stats .stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-width: 110px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.telefonia-stats .stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.telefonia-stats .stat .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
}

/* ===== SOLUCIONES ===== */
.soluciones-telefonia {
    padding: 5rem 0;
    background: var(--light-gray);
}

.soluciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.solucion-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary);
}

.solucion-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.solucion-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solucion-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.solucion-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.solucion-card p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.solucion-card ul {
    list-style: none;
    margin-top: 1rem;
}

.solucion-card ul li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
}

.solucion-card ul li i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* ===== MARCAS ===== */
.marcas-telefonia {
    padding: 5rem 0;
    background: var(--white);
}

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    text-align: center;
}

.marca-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition-base);
}

.marca-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.marca-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.marca-card img {
    max-width: 80px;
    margin: 0 auto 1rem;
}

.marca-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.marca-card p {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1rem;
}

.marca-cert {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ===== SERVICIOS AVANZADOS ===== */
.servicios-avanzados {
    padding: 5rem 0;
    background: var(--light-gray);
}

.servicios-avanzados .servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-base);
}

.servicio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.servicio-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.servicio-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.servicio-item p {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== BENEFICIOS ===== */
.beneficios-telefonia {
    padding: 5rem 0;
    background: var(--gradient-secondary);
    color: var(--white);
}

.beneficios-telefonia .section-title {
    color: var(--white);
}

.beneficios-telefonia .section-title span {
    color: var(--primary);
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.beneficio-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.beneficio-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.beneficio-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.beneficio-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.beneficio-card p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ===== CASOS DE ÉXITO ===== */
.casos-exito {
    padding: 5rem 0;
    background: var(--white);
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.caso-card {
    background: var(--light-gray);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-base);
}

.caso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.caso-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.caso-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--secondary);
}

.caso-card p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.caso-tech {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.caso-tech span {
    background: rgba(255, 128, 0, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== GALERÍA EQUIPOS ===== */
.galeria-equipos {
    padding: 5rem 0;
    background: var(--light-gray);
}

.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.equipo-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-base);
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.equipo-card img {
    max-width: 100px;
    margin: 0 auto 1rem;
}

.equipo-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.equipo-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.equipo-card p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ===== CTA ===== */
.telefonia-cta {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.telefonia-cta h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.telefonia-cta p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    color: var(--white);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-features .feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

/* ===== HEADER & FOOTER (reutilizados) ===== */
.header-completo {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-links {
    display: flex;
    gap: 1.5rem;
}

.top-links a {
    color: var(--white);
    text-decoration: none;
}

.top-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--white);
}

.social-icons a:hover {
    color: var(--primary);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.logo img {
    height: 50px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav > ul > li > a {
    padding: 0.75rem 1.25rem;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
}

.nav > ul > li > a:hover,
.nav > ul > li > a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-contact i {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

/* WhatsApp flotante */
.whatsapp-container {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 999;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition-base);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 80px 1.5rem 2rem;
    }
    
    .sub-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .menu-item-has-children.active .sub-menu {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
    
    .telefonia-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .telefonia-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .telefonia-stats .stat {
        width: 80%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .soluciones-grid,
    .servicios-avanzados .servicios-grid,
    .casos-grid,
    .equipos-grid {
        grid-template-columns: 1fr;
    }
    
    .marcas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}