/* =========================================
   1. VARIABLES DE SISTEMA (DESIGN TOKENS)
   ========================================= */
:root {
    /* Paleta de colores para Eco Clean Total */
    --brand-green: #5e8d46;
    --brand-green-deep: #3e5d2e;
    --brand-green-light: #82b76b;
    --brand-blue: #1a3a5a;
    --brand-blue-deep: #0f2439;
    --brand-blue-light: #2c5d7d;
    --brand-accent: #d4af37;
    
    /* Colores de Interfaz */
    --text-main: #1e272e;
    --text-light: #485460;
    --text-white: #ffffff;
    --bg-light: #f1f4f3;
    
    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.4);
    --glass-dark: rgba(26, 58, 90, 0.08);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --blur: 20px;

    /* Configuración de Layout */
    --max-width: 1400px;
    --header-height: 85px;
    --section-padding: 60px 5%;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 24px;
}

/* =========================================
   2. RESET & ESTRUCTURA BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: #f0f7f4;
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: var(--section-padding);
    margin-top: 0; 
    margin-bottom: 0;
}

/* Fondo Animado de Gradiente Suave */
.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #e8f5e9, #ffffff, #e3f2fd, #f1f8e9);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    will-change: background-position; /* Optimización para GPU */

}

/* =========================================
   3. KEYFRAMES (ANIMACIONES)
   ========================================= */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-15px) rotate(1deg); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrowth {
    from { width: 0; }
    to { width: 80px; }
}

@keyframes shineEffect {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

/* Animación para el menú móvil */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* =========================================
   4. HEADER & NAV (DISEÑO FLOTANTE MEJORADO)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 10000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

header.scrolled {
    height: 75px;
    background: rgba(26, 58, 90, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header.scrolled .nav-links a,
header.scrolled .logo a {
    color: #ffffff;
}

header.scrolled .nav-links a::after {
    background: var(--brand-green-light);
}

.navbar {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 35px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    color: var(--brand-blue);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.nav-logo {
    height: 65px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: all 0.3s ease;
}

header.scrolled .nav-logo {
    height: 55px;
}

.logo:hover .nav-logo {
    transform: scale(1.05) rotate(-2deg);
}

.logo a span {
    display: inline;
    font-size: 1.2rem;
}

@media (max-width: 768px) {

    header {
        height: 70px;
    }
    
    header.scrolled {
        height: 65px;
    }
    
    .navbar {
        padding: 0 5%;
    }
    
    .nav-logo {
        height: 50px;
        max-width: 50px;
    }
    
    header.scrolled .nav-logo {
        height: 45px;
    }
    
    .logo a span {
        display: inline !important;
        font-size: 1rem;
        white-space: nowrap;
    }
    
    .logo a {
        gap: 8px;
        font-size: 1rem;
    }
    
    .burger {
        display: block;
        order: 3;
    }
    
}

@media (max-width: 480px) {
    .nav-logo {
        height: 45px;
        max-width: 45px;
    }
    
    header.scrolled .nav-logo {
        height: 40px;
    }
    
    .logo a span {
        font-size: 0.9rem;
    }
}

/* =========================================
   17. RESPONSIVE - MÓVILES MUY PEQUEÑOS (< 360px)
   ========================================= */
@media (max-width: 360px) {
    .logo a span {
        font-size: 0.8rem; /* Texto más pequeño */
    }
    
    .nav-logo {
        height: 40px;
        max-width: 40px;
    }
}

/* Enlaces de Navegación */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 3px;
    background: var(--brand-green);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================================
   BOTÓN "GET A QUOTE" (REDISEÑO TOTAL)
   ========================================= */
.nav-links li .btn-quote {
    background: var(--brand-green);
    color: white !important;
    padding: 14px 30px !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(94, 141, 70, 0.3);
    cursor: pointer;
    min-width: 170px; 
    text-decoration: none;
    margin-left: 15px;
    height: auto;
    line-height: 1;
}

.nav-links li .btn-quote::after {
    display: none !important;
}

.nav-links li .btn-quote:hover {
    background: var(--brand-blue-light);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 25px rgba(44, 93, 125, 0.4);
    color: white !important;
}

/* =========================================
   MENÚ HAMBURGUESA (MÓVIL)
   ========================================= */
.burger {
    display: none;
    cursor: pointer;
    z-index: 10001;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--brand-blue);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 3px;
}

header.scrolled .burger div {
    background-color: white;
}

/* Animación del burger al activarse */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    padding: 120px 5% 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        to bottom, 
        rgba(255, 255, 255, 0.85), 
        rgba(44, 93, 125, 0.7)
    ), url('hero-bg.png');
    background-repeat: no-repeat;    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--brand-blue-deep);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content h1 span {
    color: var(--brand-green);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--brand-green-light);
    border-radius: 10px;
    z-index: -1;
    animation: lineGrowth 1s ease forwards;
}

.hero-content p {
    font-size: 1.25rem;
    color: #333;
    max-width: 650px;
    margin: 0 auto 40px;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.cta-button,
.secondary-btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Más rápido */
    border: 3px solid transparent;
}

.cta-button {
    background: var(--brand-green);
    color: white;
    box-shadow: 0 15px 35px rgba(94, 141, 70, 0.4);
}

.cta-button:hover {
    background: var(--brand-green-deep);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(94, 141, 70, 0.6);
}

.secondary-btn {
    background: transparent;
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.secondary-btn:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-5px) scale(1.05);
}


/* =========================================
   HERO TRUST BADGES (ICONOS DE CONFIANZA)
   ========================================= */
.hero-trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.553);
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-blue-deep);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

.badge-item i {
    font-size: 1.2rem;
    color: var(--brand-green);
}

.badge-item:hover {
    transform: translateY(-3px);
}

@media (max-width: 600px) {
    .hero-trust-badges {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   6. SECCIÓN SERVICIOS (GLASS GRID)
   ========================================= */
.services-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: black !important;
    margin-bottom: 5px;
}

.title-underline {
    width: 80px;
    height: 5px;
    background: var(--brand-green);
    margin: 0 auto 20px;
    border-radius: 10px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px; height: 5px;
    margin: 15px auto;
    border-radius: 10px;
    margin-top: -10px;    
}

.section-title p {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--brand-green-light);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--brand-green);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.15) rotate(1deg);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--brand-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================================
   7. HOURS SECTION
   ========================================= */
.hours-section {
    padding: 80px 5%;
}

.hours-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--brand-blue);
    color: white;
    padding: 50px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 20px 50px rgba(26, 58, 90, 0.3);
}

.hours-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--brand-green-light);
}

.hours-grid {
    margin-top: 30px;
}

.hours-grid p {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hours-grid p span { font-weight: 700; color: var(--brand-green-light); }

/* =========================================
   8. REVIEWS SECTION
   ========================================= */

#reviews .section-title h2 {
    margin-bottom: 15px;
    color: white !important;
}

#reviews .section-title p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: -30px;
}

.reviews-section {
    padding: var(--section-padding);
    background: var(--brand-blue-deep);
    border-radius: 40px;
    margin: 40px 2%;
    color: white;
    text-align: center;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: stretch;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--brand-green-light) !important;
    transition: all 0.2s ease;
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.review-card:hover .quote-icon {
    color: white;
    opacity: 0.3;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    opacity: 0.2;
    color: var(--brand-green-light);
    transition: all 0.3s ease;
}

.review-card:hover .reviewer-avatar i {
    color: var(--brand-green);
    transform: scale(1.1);
}

.reviewer-avatar i {
    font-size: 40px;
    color: var(--brand-green-light);
    transition: all 0.3s ease;
}

.stars {
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.reviewer-info h4 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

.reviewer-info span {
    font-size: 0.85rem;
    opacity: 0.6;
}

.instagram-card.info-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.instagram-card.info-item:hover {
    background: var(--brand-green);
    border-color: var(--brand-green-light);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(94, 141, 70, 0.4);
}

.instagram-card.info-item i {
    font-size: 4rem;
    color: white;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.instagram-card.info-item:hover i {
    color: white;
    animation: swingLeftRight 0.6s ease-in-out;
}

@keyframes swingLeftRight {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    50% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.instagram-card.info-item h3 {
    color: white;
    transition: all 0.3s ease;
}

.instagram-card.info-item:hover h3 {
    transform: scale(1.05);
}

.instagram-card.info-item p {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.instagram-card.info-item:hover p {
    color: white;
}

.instagram-card.info-item a {
    color: var(--brand-green-light);
    transition: all 0.3s ease;
    font-weight: 700;
}

.instagram-card.info-item:hover a {
    color: white;
    text-decoration: underline;
}

.section-title h2 {
    color: white;
}

@media (max-width: 768px) {
    .reviews-section {
        border-radius: 20px;
        margin: 20px 2%;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 30px 20px;
    }
    
    .instagram-card.info-item i {
        font-size: 3rem;
    }
}

/* =========================================
   9. CONTACT SESION
   ========================================= */
.contact-section {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: start;
    overflow: hidden;
}

.contact-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.input-group label {
    font-weight: 600;
    color: var(--brand-blue);
    font-size: 0.95rem;
}

.input-group input,
.input-group select {
    padding: 14px 18px;
    border: 2px solid rgba(94, 141, 70, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    box-sizing: border-box;
}

.input-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(94, 141, 70, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    resize: both;
    min-height: 120px;
    min-width: 200px;
    max-width: 100%;
    width: 100%;
    line-height: 1.6;
    overflow: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    box-sizing: border-box;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--brand-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 141, 70, 0.1);
}

.submit-btn {
    background: var(--brand-green);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(94, 141, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(26, 58, 90, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
    width: 100%;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--brand-blue-deep);
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-info>p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 600px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgb(255, 255, 255);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    text-align: left;
    flex-direction: column;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.28);
}

.info-item i {
    font-size: 2rem;
    color: var(--brand-green);
    min-width: 40px;
}

.info-item h3 {
    text-align: center;
    font-size: 1.2rem;
    color: var(--brand-blue);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    color: var(--text-main);
    font-size: 0.95rem;
}

.info-item a {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--brand-blue);
}

@media (max-width: 1024px) {
    .contact-section {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 5%;
    }
    
    .contact-container {
        padding: 40px 25px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .info-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .input-group textarea {
        resize: both;
        min-width: 150px;
        min-height: 100px; 
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: 30px 20px;
    }
    
    .contact-info h2 {
        font-size: 1.8rem;
    }
    
    .input-group textarea {
        min-width: 100px;
        min-height: 80px;
    }
}

/* =========================================
   FADE-IN ANIMATIONS
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   10. FOOTER (COMPLETO & CORPORATIVO)
   ========================================= */
.main-footer {
    background: #1a3a5a;
    color: white;
    padding: 70px 5% 30px;
    margin-top: 100px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.footer-logo {
    height: 75px;
    width: auto;
    margin-bottom: 25px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 350px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    color: var(--brand-green-light);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--brand-green-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* =========================================
   12. STICKER LATERAL
   ========================================= */
.side-sticker {
    position: fixed;
    right: 0;
    bottom: 20px;
    z-index: 9998;
    background: white;
    padding: 12px;
    border-radius: 20px 0 0 20px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-right: none;
}

.side-sticker img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    display: block;
    animation: wiggle 2.2s infinite;
}

.side-sticker:hover {
    padding-right: 30px;
    background: #f8f8f8;
    transform: scale(1.05);
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    80% {
        transform: rotate(0deg);
    }

    85% {
        transform: rotate(5deg);
    }

    95% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* =========================================
   UTILIDADES
   ========================================= */
::selection {
    background-color: var(--brand-green);
    color: white;
}

a:focus,
button:focus {
    outline: 3px solid var(--brand-green-light);
    outline-offset: 5px;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 10px;
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-green);
}


/* =========================================
   14. RESPONSIVE - TABLETS (< 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .contact-section {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* =========================================
   15. RESPONSIVE - MÓVILES (< 768px)
   ========================================= */
@media (max-width: 768px) {

    header {
        height: 70px;
    }

    header.scrolled {
        height: 65px;
    }

    .navbar {
        padding: 0 5%;
    }

    .nav-logo {
        height: 50px;
        max-width: 120px;
    }

    header.scrolled .nav-logo {
        height: 45px;
    }

    .logo a span {
        display: none;
    }

    .burger {
        display: block;
        order: 3;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        width: 70%;
        max-width: 300px;
        background: rgba(26, 58, 90, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 9999;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        margin: 15px 0;
    }

    .nav-links.nav-active li {
        opacity: 1;
    }

    .nav-links a {
        color: white !important;
        font-size: 1.1rem;
        padding: 15px 20px;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 30px;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links li .btn-quote {
        width: 100%;
        margin: 20px 0 0 0;
        padding: 15px 20px !important;
        min-width: unset;
    }

    .hero-section {
        padding: 100px 5% 40px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 40px 25px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button,
    .secondary-btn {
        width: 100%;
        padding: 16px 30px;
    }

    .hero-trust-badges {
        flex-direction: column;
        gap: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .reviews-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .side-sticker img {
        width: 50px;
        height: 50px;
    }

    .side-sticker {
        bottom: 15px;
        padding: 8px;
    }

    .bg-animation {
        animation: none;
        background: linear-gradient(-45deg, #e8f5e9, #ffffff, #e3f2fd, #f1f8e9);
    }
}

/* =========================================
   16. RESPONSIVE - MÓVILES PEQUEÑOS (< 480px)
   ========================================= */
@media (max-width: 480px) {
    .nav-logo {
        height: 45px;
        max-width: 100px;
    }

    header.scrolled .nav-logo {
        height: 40px;
    }

    .nav-links {
        width: 80%;
    }

    .hero-content {
        padding: 30px 20px;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }
}

/* =========================================
   17. OVERLAY PARA CERRAR MENÚ (MÓVIL)
   ========================================= */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .menu-overlay.active {
        display: block;
    }
}