:root {
    --primary: #233b6d;
    --primary-dark: #1a2c52;
    --primary-light: #2d4a8a;
    --secondary: #08a5e4;
    --secondary-dark: #0587c0;
    --secondary-light: #5bc5f4;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --emergency: #dc2626;
    --emergency-light: #fee2e2;
    --footer-bg: #1a1d23;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - Menú Mejorado */
.header-services {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-services.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

.header-container-services {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo-services {
    display: flex;
    align-items: center;
}

.logo-services img {
    height: 70px;
    transition: all 0.3s ease;
}

.nav-services ul {
    display: flex;
    list-style: none;
}

.nav-services ul li {
    margin-left: 1.8rem;
    position: relative;
}

.nav-services ul li a {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.8rem 1.2rem;
    position: relative;
    border-radius: 30px;
    transition: all 0.4s ease;
}

.nav-services ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 30px;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-services ul li a:hover::before {
    transform: scale(1);
}

.nav-services ul li a:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(8, 165, 228, 0.3);
}

.nav-services ul li:last-child a {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(8, 165, 228, 0.3);
}

.nav-services ul li:last-child a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(8, 165, 228, 0.4);
}

.mobile-menu-services {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-services:hover {
    color: var(--secondary);
}

/* Main Content */
.main-content-services {
    padding-top: 120px;
    min-height: calc(100vh - 400px);
}

/* Back to Top Button */
.back-to-top-services {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 5px 15px rgba(8, 165, 228, 0.3);
    border: none;
    text-decoration: none;
}

.back-to-top-services.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top-services:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(8, 165, 228, 0.4);
    color: var(--white);
}

.back-to-top-services i {
    font-size: 1.2rem;
}

/* Footer - Nuevo diseño */
.footer-services {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 5rem 0 0;
    position: relative;
}

.footer-container-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col-services {
    padding: 0 1rem;
}

.footer-about-services h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-about-services p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-social-services {
    display: flex;
    gap: 1rem;
}

.footer-social-services a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-services a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-contact-services h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-contact-info-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item-services {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-contact-item-services:hover {
    color: var(--secondary);
}

.footer-contact-item-services i {
    margin-right: 1rem;
    color: var(--secondary);
}

.footer-logo-services {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-img-services {
    max-width: 180px;
    height: auto;
}

.footer-bottom-services {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Estilos específicos para servicios.html */
.section-title-services {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-services h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title-services h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title-services p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* Hero Section con Imagen */
.hero-services {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(35, 59, 109, 0.95) 0%, rgba(8, 165, 228, 0.9) 100%),
                url('https://images.unsplash.com/photo-1581093057305-1ec0d1e5b5e3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
}

.hero-content-services {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-services h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
    font-weight: 700;
}

.hero-services p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section */
.services-section {
    background-color: var(--white);
    padding: 100px 0;
}

.services-nav-services {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.service-tab-services {
    padding: 12px 25px;
    background-color: var(--light-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--medium-gray);
}

.service-tab-services:hover {
    background-color: var(--secondary-light);
    color: var(--white);
}

.service-tab-services.active {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

.services-content-services {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.services-content-services.active {
    display: block;
}

.service-detail-services {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(8, 165, 228, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.service-detail-img-services {
    position: relative;
    overflow: hidden;
}

.service-detail-img-services img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-detail-services:hover .service-detail-img-services img {
    transform: scale(1.05);
}

.service-detail-content-services {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-icon-services {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(8, 165, 228, 0.3);
}

.service-detail-services h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-detail-services p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-features-services {
    margin: 25px 0;
}

.service-features-services li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
    position: relative;
    padding-left: 25px;
}

.service-features-services li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-color: var(--secondary-light);
    border-radius: 3px;
    opacity: 0.3;
}

.service-features-services i {
    color: var(--secondary);
    margin-right: 8px;
    font-size: 0.9rem;
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.service-stats-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(8, 165, 228, 0.1);
}

.stat-item-services {
    text-align: center;
}

.stat-number-services {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label-services {
    font-size: 0.8rem;
    color: #777;
    font-weight: 500;
}

/* Coverage Section */
.coverage-section {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.map-container-services {
    position: relative;
    height: 600px;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
}

.map-legend-services {
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

.legend-item-services {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(8, 165, 228, 0.1);
}

.legend-item-services:hover {
    background-color: rgba(8, 165, 228, 0.2);
    transform: translateY(-2px);
}

.legend-color-services {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Process Section - Carrusel */
.process-section {
    background-color: var(--white);
    padding: 100px 0;
}

.process-carousel-services {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-container-services {
    display: flex;
    transition: transform 0.5s ease;
}

.process-step-services {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.process-step-content-services {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(8, 165, 228, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.process-step-content-services:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary);
}

.step-number-services {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(8, 165, 228, 0.3);
    margin: 0 auto 20px;
}

.step-visual-services {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.step-visual-services img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-step-content-services:hover .step-visual-services img {
    transform: scale(1.05);
}

.step-content-services h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.step-content-services p {
    color: #555;
    margin-bottom: 0;
}

.carousel-controls-services {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.carousel-btn-services {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.2rem;
}

.carousel-btn-services:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.carousel-dots-services {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot-services {
    width: 12px;
    height: 12px;
    background: var(--medium-gray);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-services.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
    background-color: var(--light-gray);
    padding: 100px 0;
}

.faq-container-services {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item-services {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(8, 165, 228, 0.1);
    transition: all 0.3s ease;
}

.faq-item-services:hover {
    border-color: var(--secondary-light);
}

.faq-item-services.active {
    border-color: var(--secondary);
}

.faq-question-services {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-question-services:hover {
    background-color: rgba(8, 165, 228, 0.03);
}

.faq-toggle-services {
    width: 26px;
    height: 26px;
    background-color: rgba(8, 165, 228, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-answer-services {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    color: #555;
}

.faq-item-services.active .faq-answer-services {
    padding: 0 20px 20px;
    max-height: 1000px;
}

.faq-item-services.active .faq-toggle-services {
    transform: rotate(45deg);
    background-color: var(--secondary);
    color: var(--white);
}

/* Estilos para el mapa mejorado */
.region-info-services {
    padding: 1.2rem;
    max-width: 320px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.region-info-services h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary);
    color: var(--primary);
}

.region-image-services {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, rgba(35, 59, 108, 0.1) 0%, rgba(4, 163, 227, 0.1) 100%);
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    position: relative;
}

.region-image-services i {
    font-size: 3rem;
    opacity: 0.8;
}

.service-list-services {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.service-list-services li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.service-list-services li:before {
    content: "•";
    margin-right: 8px;
    font-size: 1.2rem;
    color: var(--secondary);
}

.stats-services {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    font-size: 0.85rem;
}

.stat-item-map-services {
    text-align: center;
    padding: 0.6rem;
    background-color: rgba(35, 59, 108, 0.05);
    border-radius: 6px;
    flex: 1;
    margin: 0 0.3rem;
    transition: all 0.3s ease;
}

.stat-item-map-services:hover {
    background-color: rgba(35, 59, 108, 0.1);
    transform: translateY(-3px);
}

.stat-value-services {
    font-weight: bold;
    font-size: 1rem;
    color: var(--primary);
}

.stat-label-map-services {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

.region-controls-services {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.region-btn-services {
    background-color: var(--white);
    border: 1px solid var(--secondary);
    color: var(--primary);
    padding: 0.5rem 0.8rem;
    margin: 0.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
}

.region-btn-services:hover {
    background-color: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
}

.region-btn-services.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .footer-container-services {
        grid-template-columns: 1fr 1fr;
    }

    .footer-logo-services {
        grid-column: span 2;
        justify-content: center;
        margin-top: 2rem;
    }
    
    .service-detail-services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 1rem;
    }

    .mobile-menu-services {
        display: block;
    }

    .nav-services {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    .nav-services.active {
        transform: translateX(0);
    }

    .nav-services ul {
        flex-direction: column;
        width: 100%;
        padding: 2rem;
    }

    .nav-services ul li {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-services ul li a {
        color: var(--white);
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 50px;
        display: block;
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-services ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

    .nav-services ul li:last-child a {
        background: var(--secondary);
        font-weight: 700;
    }

    .nav-services ul li:last-child a:hover {
        background: var(--secondary-light);
        transform: translateY(-5px) scale(1.05);
    }

    .mobile-menu-services.active i::before {
        content: '\f00d';
    }

    .footer-container-services {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-logo-services {
        grid-column: span 1;
        margin-top: 0;
    }

    .main-content-services {
        padding-top: 100px;
    }

    /* Back to Top Button - Responsive */
    .back-to-top-services {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
    
    .section-title-services h2 {
        font-size: 2rem;
    }
    
    .hero-services h1 {
        font-size: 2.5rem;
    }
    
    .hero-services p {
        font-size: 1.2rem;
    }
    
    .map-container-services {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }

    /* Back to Top Button - Mobile */
    .back-to-top-services {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .section-title-services h2 {
        font-size: 1.8rem;
    }
    
    .hero-services h1 {
        font-size: 2rem;
    }
    
    .hero-services p {
        font-size: 1.1rem;
    }
    
    .map-container-services {
        height: 300px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-services {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(35, 59, 109, 0.65) 0%, rgba(8, 165, 228, 0.5) 100%),
                url('/images/servicios.jpeg') no-repeat center center/cover;
}