/*
Theme Name: ElerTelecom
Theme URI: https://elertelecom.com
Description: Tema hijo profesional para ELERTELECOM - Internet de Fibra Óptica en Tapachula
Author: ELERTELECOM
Author URI: https://elertelecom.com
Template: twentytwentyfive
Version: 1.0.0
License: GPL v2 or later
Text Domain: elertelecom
*/

/* ====================================================
   ESTILOS ELERTELECOM - Inspirado en Totalplay
   ==================================================== */

/* --- Variables / Colores Corporativos --- */
:root {
    --el-primary: #1A76D2;
    --el-primary-dark: #0D47A1;
    --el-primary-light: #4FC3F7;
    --el-secondary: #FF6F00;
    --el-bg-white: #FFFFFF;
    --el-bg-light: #F5F7FA;
    --el-bg-dark: #1A2332;
    --el-bg-footer: #0F1620;
    --el-text-dark: #1A2332;
    --el-text-light: #FFFFFF;
    --el-text-muted: #6B7A8F;
    --el-border: #E0E4E8;
    --el-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --el-radius: 12px;
}

/* --- Tipografía Global --- */
body, .wp-block-post-content {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    color: var(--el-text-dark);
    line-height: 1.6;
}

/* === HEADER === */
.wp-block-site-header, 
header.wp-block-template-part {
    background: var(--el-bg-white) !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.wp-block-site-header .wp-block-site-logo img {
    max-height: 45px;
    width: auto;
}

.wp-block-site-title a {
    color: var(--el-primary-dark) !important;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.wp-block-navigation-item a {
    color: var(--el-text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.wp-block-navigation-item a:hover {
    color: var(--el-primary) !important;
}

/* Botón de contratar en Header */
.btn-contratar, 
.wp-block-buttons .wp-block-button.is-style-contratar a,
.wp-block-button.contratar-btn a {
    background: var(--el-secondary) !important;
    color: #fff !important;
    padding: 10px 28px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-contratar:hover,
.wp-block-button.contratar-btn a:hover {
    background: #E65100 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,111,0,0.4);
}

/* === HERO SECTION (TEXTO) === */
.hero-section {
    background: url('https://elertelecom.com/Wp/wp-content/uploads/2026/06/portada-768x302.png') center center / cover no-repeat;
    padding: 120px 0 80px;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.10) 0%, rgba(26, 118, 210, 0.10) 100%);
    pointer-events: none;
}

.hero-section h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 650px;
}

.hero-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 0 30px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.hero-section .hero-cta {
    position: relative;
    z-index: 1;
    text-align: left;
}

.hero-section .hero-cta a {
    display: inline-flex;
    align-items: center;
    background: #FF6F00;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255,111,0,0.4);
}

.hero-section .hero-cta a:hover {
    background: #E65100;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255,111,0,0.5);
}

/* === HERO SERVICIOS BADGES === */
.hero-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin: 20px 0 30px;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.hero-service-badge i {
    font-size: 0.85rem;
    color: #4FC3F7;
}

.hero-service-badge:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.4);
}

/* === HERO IMAGEN PORTADA === */
.hero-image-section {
    width: 100%;
    line-height: 0;
    overflow: hidden;
    background: #fff;
}

.hero-image-section .hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ajuste para pantallas grandes: altura máxima limitada */
@media (min-width: 1200px) {
    .hero-image-section .hero-image {
        max-height: 85vh;
    }
}

/* Ajuste para tablets */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-image-section .hero-image {
        max-height: 70vh;
    }
}

/* Ajuste para móviles */
@media (max-width: 767px) {
    .hero-image-section .hero-image {
        max-height: 50vh;
        object-fit: cover;
        object-position: center;
    }
}

/* === SECCIÓN DE PAQUETES / TARJETAS === */
.section-packages {
    padding: 80px 0;
    background: var(--el-bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--el-primary-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--el-text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.package-card {
    background: transparent;
    border-radius: var(--el-radius);
    overflow: hidden;
    box-shadow: var(--el-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--el-border);
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.package-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 20, 0.92) 0%, rgba(2, 6, 20, 0.7) 100%);
    z-index: 1;
}

.package-card .package-header,
.package-card .package-body {
    position: relative;
    z-index: 2;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.package-card.featured {
    border: 3px solid var(--el-secondary);
    transform: scale(1.03);
}

.package-card.featured:hover {
    transform: scale(1.03) translateY(-8px);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--el-secondary);
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.package-header {
    background: transparent;
    color: #fff;
    padding: 30px 25px 10px;
    text-align: left;
}

.package-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.package-header .speed {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 10px 0;
    color: #fff;
}

.package-header .speed span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
    color: #fff;
}

.package-body {
    padding: 0 25px 25px;
}

.package-price {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.package-price span {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.package-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.package-features li::before {
    content: '✓';
    color: var(--el-primary-light);
    font-weight: 700;
    font-size: 0.9rem;
}

.package-features li:last-child {
    border-bottom: none;
}

.package-cta {
    display: inline-block;
    text-align: center;
    padding: 14px 35px;
    background: var(--el-primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 15px;
    margin-bottom: 25px;
}

.package-cta:hover {
    background: var(--el-primary-dark);
    color: #fff;
}

.package-card.featured .package-cta {
    background: var(--el-secondary);
}

.package-card.featured .package-cta:hover {
    background: #E65100;
}

/* === SECCIÓN DE CARACTERÍSTICAS === */
.section-features {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: var(--el-radius);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--el-bg-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--el-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--el-primary);
}

.feature-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--el-primary-dark);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--el-text-muted);
    font-size: 0.95rem;
}

/* === SECCIÓN DE TESTIMONIOS === */
.section-testimonials {
    padding: 80px 0;
    background: var(--el-bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--el-radius);
    padding: 30px;
    box-shadow: var(--el-shadow);
    border: 1px solid var(--el-border);
}

.testimonial-card p {
    font-style: italic;
    color: var(--el-text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--el-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author .name {
    font-weight: 700;
    color: var(--el-text-dark);
}

.testimonial-author .handle {
    color: var(--el-text-muted);
    font-size: 0.85rem;
}

/* === CTA SECTION === */
.section-cta {
    background: linear-gradient(135deg, #0D47A1 0%, #1A76D2 100%);
    padding: 80px 0;
    text-align: center;
}

.section-cta h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.section-cta .cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.section-cta .cta-button-group a {
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.section-cta .btn-primary-cta {
    background: #FF6F00;
    color: #fff;
    box-shadow: 0 8px 25px rgba(255,111,0,0.4);
}

.section-cta .btn-primary-cta:hover {
    background: #E65100;
    transform: translateY(-3px);
}

.section-cta .btn-secondary-cta {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.section-cta .btn-secondary-cta:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* === FOOTER === */
.wp-block-footer,
footer.wp-block-template-part {
    background: var(--el-bg-footer) !important;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact .phone-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 10px 0;
    display: block;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer-bottom .social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-bottom .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom .social-links a:hover {
    background: var(--el-primary);
    transform: translateY(-3px);
}

/* === BOTÓN WHATSAPP FLOTANTE === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 50px;
        text-align: left;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-services {
        justify-content: flex-start;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .package-header .speed {
        font-size: 2rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .package-card.featured {
        transform: none;
    }

    .package-card.featured:hover {
        transform: translateY(-8px);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-cta .cta-button-group {
        flex-direction: column;
        align-items: center;
    }
}

/* === UTILIDADES === */
.has-el-primary-color { color: var(--el-primary); }
.has-el-primary-dark-color { color: var(--el-primary-dark); }
.has-el-primary-background-color { background-color: var(--el-primary); }
.has-el-primary-dark-background-color { background-color: var(--el-primary-dark); }
.has-el-secondary-color { color: var(--el-secondary); }
.has-el-secondary-background-color { background-color: var(--el-secondary); }
