:root {
    --primary: #00b894; /* Verde azulado */
    --secondary: #55efc4; /* Verde claro */
    --dark: #2d3436; /* Gris oscuro */
    --light: #f5f6fa; /* Blanco claro */
    --accent: #fdcb6e; /* Amarillo acento */
    --gradient: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    --transition: all 0.3s ease-in-out; /* Transición fluida */
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark); /* Texto oscuro */
    background-color: var(--light); /* Fondo claro */
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    background: var(--dark); /* Fondo negro como el footer */
    color: var(--light); /* Texto claro */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.logo-img {
    height: 50px;
    margin-right: 15px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover:after {
    width: 100%;
}

nav ul li a:hover {
    color: var(--secondary);
}

.webmail-link {
    background: var(--secondary);
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.webmail-link:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

nav {
    transition: var(--transition);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--dark);
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        display: block;
        width: 100%;
    }

    .webmail-link {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .emergency-header-link {
        width: 100%;
        text-align: center;
        display: block;
        margin-top: 0.5rem;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Hero Section */
.hero {
    background: var(--gradient); /* Gradiente verde azulado */
    color: var(--light); /* Texto claro */
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary); /* Verde azulado */
    color: var(--light); /* Texto claro */
    box-shadow: 0 5px 15px rgba(255, 204, 153, 0.3);
}

.btn-primary:hover {
    background: var(--accent); /* Amarillo acento */
    color: var(--dark); /* Texto oscuro */
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary);
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 3rem;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-content {
    flex: 1;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Botones de Servicios */
.service-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    margin: 0.5rem 0;
    width: 100%;
}

.service-btn.btn-primary {
    background: var(--primary);
    color: white;
}

.service-btn.btn-primary:hover {
    background: var(--primary-dark);
}

.service-btn.btn-secondary {
    background: var(--secondary);
    color: var(--dark);
}

.service-btn.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Grilla de Clientes */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.client-card {
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1rem;
    transition: var(--transition);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.client-logo {
    max-width: 100px;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.client-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.client-link:hover {
    color: var(--primary-dark);
}

/* Sección Clientes */
.clients {
    padding: 6rem 0;
    background: white;
}

.clients-grid {
    max-width: 1200px; /* Igual que la sección Servicios */
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Sección Trabajos */
.works {
    padding: 6rem 0;
    background: white;
}

.works-container {
    max-width: 1200px; /* Igual que la sección Servicios */
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

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

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--gray);
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
}

.contact-text a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

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

.contact-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 86, 179, 0.3);
}

/* Footer */
footer {
    background: var(--dark); /* Fondo negro */
    color: var(--light); /* Texto claro */
    padding: 4rem 0 2rem;
}

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

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-col p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--secondary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact-icon {
    margin-right: 1rem;
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

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

/* Instagram Float */
.instagram-float {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background-color: #E4405F;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(228, 64, 95, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.instagram-float:hover {
    background-color: #C13584;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(228, 64, 95, 0.4);
}

/* ====================================================
   Animaciones
   ==================================================== */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

@keyframes modalFadeIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* ====================================================
   Carrusel de Logos de Clientes
   ==================================================== */
.client-logo-carousel {
    padding: 3rem 0;
    background-color: #f7f7f7;
    overflow: hidden;
    text-align: center;
}

.dark-mode .client-logo-carousel {
    background-color: #1e1e1e;
}

.client-logo-carousel h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #333;
}

.dark-mode .client-logo-carousel h2 {
    color: #bb86fc;
}

.client-logo-carousel .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.logo-slide {
    display: flex;
    width: max-content; /* Para asegurar que todos los elementos estén en una fila */
}

.animate-carousel {
    animation: scroll 30s linear infinite;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 30px;
    min-width: 120px; /* Ancho fijo más pequeño */
}

.logo-item img {
    height: 70px;
    width: 70px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.dark-mode .logo-item img {
    border-color: #2d2d2d;
}

.logo-item span {
    font-weight: 500;
    color: #333;
    font-size: 0.85rem;
    text-align: center;
    display: block;
    width: 100%;
}

.dark-mode .logo-item span {
    color: #ddd;
}

/* ====================================================
   Sección Información de la Empresa
   ==================================================== */
.company-info {
    margin-top: 4rem;
    padding: 3rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    position: relative;
}

.dark-mode .company-info {
    background-color: #2d2d2d;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.company-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    justify-content: center;
    position: relative;
}

.company-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 1rem;
}

.dark-mode .company-icon {
    color: #bb86fc;
}

.company-info h3 {
    font-size: 2rem;
    color: #333;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin: 0;
}

.company-info h3:after {
    content: '';
    display: block;
    width: 70%;
    height: 3px;
    background: var(--primary);
    margin: 0.5rem auto 0;
}

.dark-mode .company-info h3 {
    color: #bb86fc;
}

.company-info-content {
    max-width: 950px;
    margin: 0 auto;
}

.company-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

.company-highlight {
    background-color: rgba(0, 184, 148, 0.05);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    position: relative;
    border-left: 4px solid var(--primary);
}

.dark-mode .company-highlight {
    background-color: rgba(187, 134, 252, 0.05);
    border-left: 4px solid #bb86fc;
}

.quote-icon {
    color: var(--primary);
    opacity: 0.2;
    font-size: 1.5rem;
    position: absolute;
}

.fa-quote-left {
    top: 1rem;
    left: 1rem;
}

.fa-quote-right {
    bottom: 1rem;
    right: 1rem;
}

.dark-mode .quote-icon {
    color: #bb86fc;
}

.company-highlight p {
    text-align: center;
    font-style: italic;
    font-weight: 500;
    margin: 0;
    padding: 0 2rem;
}

.company-principles-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.dark-mode .company-principles-container {
    background-color: #383838;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.company-principles {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.company-principles li {
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
    font-size: 1.05rem;
}

.company-principles li i {
    position: absolute;
    left: 0;
    top: 0.25rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.dark-mode .company-principles li i {
    color: #bb86fc;
}

.company-commitment {
    font-weight: 500;
    color: #333;
    text-align: center !important;
    font-size: 1.1rem !important;
    margin-top: 3rem;
}

.dark-mode .company-commitment {
    color: #fff;
}

/* ====================================================
   Modal de Emergencias
   ==================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalFadeIn 0.3s;
    text-align: center;
}

.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #fff;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.dark-mode .close-modal {
    color: #ccc;
}

.modal h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.dark-mode .modal h2 {
    color: #bb86fc;
}

.modal p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.emergency-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.emergency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.emergency-btn i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.call-btn {
    background-color: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
}

.call-btn:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: scale(1.03);
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: 2px solid #25D366;
}

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

/* ====================================================
   Botones de Emergencia
   ==================================================== */
/* Botón en el header */
.emergency-header-link {
    background-color: #e74c3c !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    transition: var(--transition);
    animation: pulse-red 2s infinite;
}

.emergency-header-link:hover {
    background: #c0392b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3) !important;
}

.emergency-header-link:hover:after {
    width: 0 !important; /* Anular el comportamiento de hover normal de los enlaces del nav */
}

/* Botón en el footer */
.emergency-btn-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #e74c3c;
    color: white !important;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    opacity: 1 !important;
    text-decoration: none;
}

.emergency-btn-footer i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.emergency-btn-footer:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    opacity: 1 !important;
    color: white !important;
}

.footer-emergency-container {
    width: 100%;
    margin-top: 0.5rem;
}

.dark-mode .emergency-btn-footer {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Botón en la sección de contacto */
.emergency-contact-btn {
    margin-top: 2rem;
}

.emergency-btn-red {
    background-color: #e74c3c;
    color: white !important;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.emergency-btn-red i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.emergency-btn-red:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    color: white !important;
    text-decoration: none;
}

.dark-mode .emergency-btn-red {
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* ====================================================
   Media Queries Adicionales
   ==================================================== */
@media (min-width: 600px) {
    .emergency-buttons {
        flex-direction: row;
    }
    
    .emergency-btn {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .emergency-header-link {
        margin-top: 1rem;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 2rem;
    }

    .about-img {
        flex: none;
        width: 100%;
    }

    .about-content {
        flex: none;
        width: 100%;
    }

    .about-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-features {
        margin: 1.5rem 0;
    }

    .feature-item {
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-text h4 {
        font-size: 1rem;
    }

    .company-info {
        padding: 2rem 1.5rem;
    }

    .company-principles {
        grid-template-columns: 1fr;
    }

    .company-highlight {
        padding: 1.5rem;
    }

    .company-highlight p {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    .about-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 2rem;
    }

    .about-img {
        flex: none;
        width: 100%;
    }

    .about-content {
        flex: none;
        width: 100%;
    }

    .about-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }

    .about-features {
        margin: 1.5rem 0;
    }

    .feature-item {
        margin-bottom: 1rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-text h4 {
        font-size: 1rem;
    }

    .company-info {
        padding: 2rem 1.5rem;
    }

    .company-info h3 {
        font-size: 1.5rem;
    }

    .company-principles {
        grid-template-columns: 1fr;
    }

    .company-highlight {
        padding: 1.5rem;
    }

    .company-highlight p {
        padding: 0 1rem;
        font-size: 0.95rem;
    }

    .company-info-content p {
        font-size: 0.95rem;
        text-align: left;
    }

    .company-principles li {
        font-size: 0.95rem;
    }
}

/* Asegurar contraste en enlaces */
a {
    color: var(--primary); /* Verde azulado */
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent); /* Amarillo acento */
}

/* ====================================================
   Loading Modal Styles
   ==================================================== */
.loading-modal-content {
    padding: 50px 30px;
}

.loading-spinner {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 25px;
}

.dark-mode .loading-spinner {
    color: #bb86fc;
}

.loading-modal-content h2 {
    margin-top: 10px;
}

.loading-modal-content p {
    color: #666;
    margin-top: 10px;
}

.dark-mode .loading-modal-content p {
    color: #aaa;
}

/* ====================================================
   Result Modal Styles
   ==================================================== */
.result-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

#resultModal .modal-content {
    padding-top: 40px;
    padding-bottom: 40px;
}
