/* ---------------------------------------------------------------- */
/* 1. VARIABLES Y RESET */
/* ---------------------------------------------------------------- */
:root {
    --primary: #1a365d;       /* Azul oscuro corporativo */
    --primary-dark: #0f1f38;  /* Azul más oscuro para footer */
    --secondary: #3182ce;     /* Azul claro para botones/acentos */
    --accent: #38b2ac;        /* Verde azulado para detalles */
    --light: #f7fafc;         /* Fondo claro */
    --dark: #2d3748;          /* Texto oscuro */
    --gray: #718096;          /* Texto secundario */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --radius: 8px;            /* Bordes redondeados estándar */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    text-align: justify;
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- */
/* 2. HEADER Y NAVEGACIÓN */
/* ---------------------------------------------------------------- */
header {
    background-color: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0; 
}

/* Logo */
.custom-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Navegación */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover, nav ul li a:focus {
    color: var(--secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

nav ul li a:hover::after, nav ul li a:focus::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ---------------------------------------------------------------- */
/* 3. LAYOUT Y SECCIONES GENERALES */
/* ---------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover, .btn:focus {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    outline: none;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--secondary);
    color: white;
}

/* ---------------------------------------------------------------- */
/* 4. HERO SECTION */
/* ---------------------------------------------------------------- */
.hero {
    background: linear-gradient(rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.9)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
    text-align: center;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ---------------------------------------------------------------- */
/* 5. ABOUT SECTION (ENFOQUE) */
/* ---------------------------------------------------------------- */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
}

.about-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.feature-icon {
    background-color: 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;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background-color: var(--secondary);
    transform: rotate(10deg);
}

/* ---------------------------------------------------------------- */
/* 6. SERVICES SECTION (TARJETAS) */
/* ---------------------------------------------------------------- */
.services {
    background-color: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.service-img i {
    transition: var(--transition);
}

.service-card:hover .service-img i {
    transform: scale(1.1);
}

.service-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- */
/* 7. CONTACT SECTION & FORMULARIO */
/* ---------------------------------------------------------------- */
.contact {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--gray);
    text-align: left;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover i {
    background-color: var(--secondary);
    transform: scale(1.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.form-submit {
    position: relative;
}

.loading {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
}

.loading.active {
    display: block;
}

/* ---------------------------------------------------------------- */
/* 8. FOOTER */
/* ---------------------------------------------------------------- */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: white;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* ---------------------------------------------------------------- */
/* 9. ELEMENTOS FLOTANTES (SCROLL TOP & ALERTAS) */
/* ---------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* ---------------------------------------------------------------- */
/* 10. MODAL ESTÁNDAR (DETALLES SERVICIOS) */
/* ---------------------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1100;
    overflow-y: auto;
    padding: 2rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--primary);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--dark);
}

.modal-body {
    padding: 1.5rem;
}

.service-features {
    margin: 1.5rem 0;
}

.service-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.service-features li::before {
    content: "\f00c"; 
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent);
    margin-right: 10px;
}

/* ---------------------------------------------------------------- */
/* 11. MODALS DE PANTALLA COMPLETA (LEGAL Y CONFIRMACIÓN) */
/* ---------------------------------------------------------------- */
.full-page-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; 
    background-color: #fff;
}

.full-page-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: #fff;
}

.legal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
    color: #333;
    line-height: 1.8;
}

.legal-wrapper h2 {
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2rem;
}

.legal-wrapper h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark);
}

.close-full-modal {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--primary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0 10px;
    transition: color 0.3s;
    line-height: 1;
}

.close-full-modal:hover {
    color: var(--secondary);
}

/* ---------------------------------------------------------------- */
/* 12. BANNER DE COOKIES */
/* ---------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    flex-wrap: wrap;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.9rem;
    max-width: 700px;
    line-height: 1.4;
    text-align: center;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s, color 0.3s;
}

.btn-accept {
    background-color: var(--secondary);
    color: white;
}

.btn-accept:hover {
    background-color: #2b6cb0;
}

.btn-reject {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-reject:hover {
    background-color: white;
    color: var(--primary);
}

/* ---------------------------------------------------------------- */
/* 13. MODAL CONFIRMACIÓN */
/* ---------------------------------------------------------------- */
.confirmation-box {
    background: white;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
}

.success-icon {
    color: #28a745;
}

.success-icon::before {
    content: '\f00c';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.error-icon {
    color: #dc3545;
}

.error-icon::before {
    content: '\f00d';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* ---------------------------------------------------------------- */
/* 14. NUEVO MODAL DE CATÁLOGO DE SERVICIOS (ANIMADO) */
/* ---------------------------------------------------------------- */

/* 1. EL CONTENEDOR PRINCIPAL */
#modalCatalogoServicios {
    background-color: rgba(255, 255, 255, 0.98); /* Fondo casi opaco */
    z-index: 10000;
    padding: 0;
    
    /* Estado inicial de la animación (oculto) */
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: none; /* JS lo cambia a block, luego añade la clase .active */
}

/* Estado activo (visible) */
#modalCatalogoServicios.active {
    opacity: 1;
}

/* 2. EL CONTENIDO INTERNO */
#modalCatalogoServicios .modal-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    /* Animación de entrada: Empieza un poco más pequeño y abajo */
    transform: scale(0.95) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto rebote suave */
}

/* Cuando está activo, vuelve a su sitio */
#modalCatalogoServicios.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* 3. HEADER FIJO */
#modalCatalogoServicios .modal-header {
    background-color: #fff;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 3px solid var(--secondary);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    display: flex; 
    justify-content: space-between;
    align-items: center;
}

#modalCatalogoServicios .modal-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

/* 4. CUERPO Y GRID */
#modalCatalogoServicios .modal-body {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex-grow: 1;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    padding-bottom: 40px;
}

/* 5. TARJETAS CON ANIMACIÓN EN CASCADA */
.catalog-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px; /* Más redondeado */
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    
    /* Estado inicial de las tarjetas (invisibles y abajo) */
    opacity: 0;
    transform: translateY(40px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease-out;
}

/* Hover effect */
.catalog-card:hover {
    transform: translateY(-5px) !important; /* !important para sobrescribir la cascada al hacer hover */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.catalog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.catalog-header i {
    font-size: 2rem;
    color: var(--secondary);
    background: #ebf8ff; /* Fondo sutil para el icono */
    padding: 12px;
    border-radius: 8px;
}

.catalog-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary);
}

.catalog-body p {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.catalog-footer {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
    border-left: 4px solid var(--accent);
    text-align: left;
    margin-top: auto;
}

/* 6. LÓGICA DE CASCADA (STAGGER) */
/* Cuando el modal se abre (.active), las tarjetas suben una por una */
#modalCatalogoServicios.active .catalog-card {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para cada tarjeta (hasta 10 tarjetas) */
#modalCatalogoServicios.active .catalog-card:nth-child(1) { transition-delay: 0.1s; }
#modalCatalogoServicios.active .catalog-card:nth-child(2) { transition-delay: 0.2s; }
#modalCatalogoServicios.active .catalog-card:nth-child(3) { transition-delay: 0.3s; }
#modalCatalogoServicios.active .catalog-card:nth-child(4) { transition-delay: 0.4s; }
#modalCatalogoServicios.active .catalog-card:nth-child(5) { transition-delay: 0.5s; }
#modalCatalogoServicios.active .catalog-card:nth-child(6) { transition-delay: 0.6s; }

/* 7. BOTÓN DE CERRAR */
#modalCatalogoServicios .close-modal {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    background: none;
    border: none;
    cursor: pointer;
}

#modalCatalogoServicios .close-modal:hover {
    opacity: 1;
    color: var(--secondary);
    transform: rotate(90deg); /* Pequeño giro al pasar el ratón */
}

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    #modalCatalogoServicios .modal-header {
        padding: 15px 20px;
    }
    #modalCatalogoServicios .modal-body {
        padding: 20px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    /* En móvil reducimos el delay para que no tarde tanto */
    #modalCatalogoServicios.active .catalog-card:nth-child(n) { transition-delay: 0s; }
}
/* ---------------------------------------------------------------- */
/* 15. RESPONSIVE DESIGN */
/* ---------------------------------------------------------------- */
@media (max-width: 992px) {
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    .about-img {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    nav {
        width: 100%;
        margin-top: 1rem;
        display: none;
    }
    nav.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    nav ul li a {
        display: block;
        padding: 0.8rem 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 0.5rem;
    }
    .modal-content {
        margin: 1rem auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .logo-img {
        height: 45px;
    }
}

/* ---------------------------------------------------------------- */
/* 16. BOTONES DE WHATSAPP (FLOTANTE Y ESTÁTICO) */
/* ---------------------------------------------------------------- */

/* Animación de Ondas (Pulse) */
@keyframes whatsapp-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); }
}

/* Animación de Agitación suave (Shake) */
@keyframes whatsapp-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* A. Botón Flotante (Esquina inferior izquierda) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9998; /* Justo por debajo de los modales */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    
    /* Aplicamos la animación de ondas */
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    /* Al pasar el ratón, hace un pequeño baile */
    animation: whatsapp-wiggle 0.5s ease-in-out; 
}

/* B. Botón Estático (Para la sección de Contacto) */
.btn-whatsapp-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px; /* Bordes muy redondeados */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-whatsapp-static:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
}

/* Ajuste móvil para el botón flotante */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        left: 20px;
    }
}