/* --- 1. Variables y Configuración Global --- */
:root {
    --color-navy: #1E2043;
    --color-mint: #7CC07C;
    --color-mint-dark: #6aa86a;
    --color-white: #ffffff;
    --color-light-gray: #f4f7f6;
    --color-text-body: #5a6677;
    --font-main: 'Poppins', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-card: 0 15px 35px rgba(30, 32, 67, 0.1);
    --shadow-soft: 0 5px 20px rgba(0,0,0,0.05);
    --border-radius: 12px;
    --nav-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); line-height: 1.7; color: var(--color-text-body); background-color: var(--color-white); overflow-x: hidden; }

/* Utilidades */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-mint { color: var(--color-mint) !important; }
.text-navy { color: var(--color-navy) !important; }
.text-white { color: var(--color-white) !important; }
.text-white-50 { color: rgba(255,255,255,0.7) !important; }
.bg-light { background-color: var(--color-light-gray); }
.bg-navy { background-color: var(--color-navy); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; } .mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; } .ms-2 { margin-left: 0.5rem; } .py-3 { padding-top: 1rem; padding-bottom: 1rem;}
img.img-fluid { max-width: 100%; height: auto; display: block; }

/* Títulos */
h1, h2, h3, h4, h5 { color: var(--color-navy); font-weight: 700; line-height: 1.25; }
h1 { font-weight: 800; }
.section-title { font-size: 2.5rem; margin-bottom: 1.5rem; }
.pre-title { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.title-separator { width: 60px; height: 3px; background-color: var(--color-mint); margin-bottom: 30px; }
.title-separator.mx-auto { margin-left: auto; margin-right: auto; }

/* Botones */
.btn { display: inline-block; padding: 14px 32px; border-radius: var(--border-radius); font-weight: 600; text-decoration: none; transition: var(--transition-smooth); border: 2px solid transparent; cursor: pointer; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; text-align: center; }
.btn-mint { background-color: var(--color-mint); color: var(--color-white); box-shadow: 0 4px 15px rgba(124, 192, 124, 0.4); }
.btn-mint:hover { background-color: var(--color-mint-dark); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(124, 192, 124, 0.5); }
.btn-outline-white { border-color: var(--color-white); color: var(--color-white); }
.btn-outline-white:hover { background-color: var(--color-white); color: var(--color-navy); }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* Navegación */
.navbar { position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height); display: flex; align-items: center; z-index: 1000; transition: var(--transition-smooth); background: transparent; }
.navbar.scrolled { background-color: var(--color-white); box-shadow: 0 2px 15px rgba(0,0,0,0.08); height: 70px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-img { height: 45px; width: auto; transition: var(--transition-smooth); filter: brightness(0) invert(1); }
.navbar.scrolled .logo-img { filter: none; }
.nav-links { display: flex; align-items: center; list-style: none; }
.nav-links li { margin-left: 2.5rem; }
.nav-links a:not(.btn) { color: var(--color-white); font-weight: 600; font-size: 0.95rem; position: relative; padding: 5px 0; }
.navbar.scrolled .nav-links a:not(.btn) { color: var(--color-navy); }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: 0; left: auto; right: 0; width: 0; height: 2px; background-color: var(--color-mint); transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
.nav-links a:not(.btn):hover::after { width: 100%; left: 0; right: auto; }
.menu-toggle { display: none; color: var(--color-white); font-size: 1.8rem; cursor: pointer; }
.navbar.scrolled .menu-toggle { color: var(--color-navy); }

/* Hero */
.hero-section { height: 100vh; min-height: 650px; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-slider, .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-overlay { background: linear-gradient(to bottom, rgba(30, 32, 67, 0.85) 0%, rgba(30, 32, 67, 0.65) 100%); z-index: 1; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transform: scale(1.15); transition: opacity 1s ease-in-out, transform 7s linear; }
.slide.active { opacity: 1; transform: scale(1); }
.hero-content { position: relative; z-index: 2; max-width: 800px; margin-top: 60px; }
.hero-title { font-size: 4rem; color: var(--color-white); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.3rem; color: rgba(255,255,255,0.9); margin-bottom: 2.5rem; max-width: 600px; }
.hero-btns { display: flex; gap: 20px; }

/* Servicios */
.section { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 50px; }
.service-card { background: var(--color-white); padding: 45px 35px; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: var(--transition-smooth); position: relative; top: 0; border-bottom: 3px solid transparent; }
.service-card:hover { top: -10px; box-shadow: var(--shadow-card); border-bottom-color: var(--color-mint); }
.icon-wrapper { display: inline-flex; width: 70px; height: 70px; background-color: rgba(124, 192, 124, 0.1); color: var(--color-mint); border-radius: 50%; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 25px; transition: var(--transition-smooth); }
.service-card:hover .icon-wrapper { background-color: var(--color-mint); color: var(--color-white); transform: rotateY(360deg); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; }

/* Nosotros */
.section-about { overflow: hidden; }
.about-wrapper { display: flex; align-items: center; gap: 80px; }
.about-image-content { flex: 1; position: relative; }
.shape-bg { position: absolute; top: -40px; left: -40px; width: 80%; height: 100%; background-color: rgba(124, 192, 124, 0.15); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; z-index: -1; }
.main-img { border-radius: var(--border-radius); box-shadow: var(--shadow-card); position: relative; z-index: 2; }
.about-text-content { flex: 1; }
.about-text-content p { margin-bottom: 1.5rem; }
.about-stats { display: flex; gap: 50px; margin-top: 2rem; border-top: 1px solid #eee; padding-top: 2rem;}
.stat-box h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; }
.stat-box p { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: var(--color-navy); }

/* Contacto */
.contact-section-revamped { background-color: var(--color-light-gray); padding-bottom: 120px; }
.contact-container-grid { display: grid; grid-template-columns: 1fr 2fr; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow-card); background-color: var(--color-white); }
.contact-info-sidebar { padding: 50px 40px; display: flex; flex-direction: column; }
.info-item-v2 { display: flex; align-items: flex-start; margin-bottom: 35px; }
.info-item-v2 i { font-size: 1.5rem; margin-right: 20px; margin-top: 5px; }
.info-item-v2 h5 { margin-bottom: 5px; font-weight: 600; }
.info-item-v2 p { margin: 0; font-size: 0.95rem; word-break: break-word; }
.social-icons-v2 a { display: inline-flex; width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: var(--color-white); border-radius: 50%; margin-right: 10px; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.social-icons-v2 a:hover { background: var(--color-mint); transform: translateY(-3px); }

.contact-main-content { padding: 50px; background-color: var(--color-white); }
.form-wrapper-enhanced { background: var(--color-white); padding: 40px; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border: 1px solid #f0f0f0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.modern-form-v2 .form-floating { position: relative; margin-bottom: 25px; }
.modern-form-v2 input, .modern-form-v2 textarea { width: 100%; padding: 15px; font-family: var(--font-main); font-size: 1rem; color: var(--color-navy); border: 2px solid #eee; border-radius: 8px; background: #f9fbfd; outline: none; transition: var(--transition-smooth); }
.modern-form-v2 textarea { resize: none; height: 120px; }
.modern-form-v2 label { position: absolute; top: 17px; left: 15px; color: #999; transition: var(--transition-smooth); pointer-events: none; font-size: 0.95rem; }
.modern-form-v2 input:focus, .modern-form-v2 textarea:focus, .modern-form-v2 input:not(:placeholder-shown), .modern-form-v2 textarea:not(:placeholder-shown) { border-color: var(--color-mint); background: var(--color-white); box-shadow: 0 0 0 4px rgba(124, 192, 124, 0.1); }
.modern-form-v2 input:focus + label, .modern-form-v2 textarea:focus + label, .modern-form-v2 input:not(:placeholder-shown) + label, .modern-form-v2 textarea:not(:placeholder-shown) + label { top: -10px; left: 10px; font-size: 0.8rem; color: var(--color-mint); font-weight: 700; background: var(--color-white); padding: 0 5px; }
.map-wrapper iframe { border-radius: var(--border-radius); box-shadow: var(--shadow-soft); display: block; }

/* Alertas */
.alert { padding: 15px; border-radius: var(--border-radius); font-weight: 600; text-align: center; }
.alert-success { background: rgba(124, 192, 124, 0.15); color: var(--color-mint-dark); border: 1px solid var(--color-mint); }
.alert-danger { background: #fdecea; color: #e74c3c; border: 1px solid #e74c3c; }

/* Footer */
.footer-dark { background: #151730; padding: 50px 0; color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-logo { height: 40px; filter: brightness(0) invert(1); opacity: 0.7; }

/* --- RESPONSIVE DESIGN MEJORADO --- */

/* Tablets y Laptops pequeñas (max-width: 992px) */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    /* Nosotros: Apilar imagen y texto */
    .about-wrapper { flex-direction: column; gap: 50px; }
    .shape-bg { width: 90%; left: 5%; top: -20px; }
    .about-text-content { text-align: center; }
    .title-separator.mx-auto { margin-left: auto; margin-right: auto; } /* Asegurar que el separador se centre si el texto se centra */
    .about-stats { justify-content: center; }

    /* Contacto: Apilar barra lateral y formulario */
    .contact-container-grid { grid-template-columns: 1fr; }
    .contact-info-sidebar { 
        flex-direction: row; 
        flex-wrap: wrap; 
        gap: 20px; 
        padding: 30px;
        justify-content: space-between;
    }
    .contact-info-sidebar h3 { width: 100%; }
    .info-item-v2 { margin-bottom: 0; width: 48%; } /* Elementos de info lado a lado en tablet */
    .social-icons-v2 { margin-top: 20px; width: 100%; justify-content: center; display: flex;}
    
    .contact-main-content { padding: 30px; }
    .form-wrapper-enhanced { padding: 30px 25px; }
}

/* Celulares (max-width: 768px) */
@media (max-width: 768px) {
    /* Navegación Móvil */
    .menu-toggle { display: block; z-index: 1001; }
    .nav-links { 
        position: fixed; 
        top: 0; 
        right: -100%; /* Oculto fuera de la pantalla */
        width: 85%; 
        height: 100vh; 
        background: var(--color-navy); 
        flex-direction: column; 
        justify-content: center; 
        transition: var(--transition-smooth); 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; } /* Mostrar menú */
    .nav-links li { margin: 1.5rem 0; }
    .nav-links a:not(.btn) { font-size: 1.2rem; color: var(--color-white) !important; } /* Siempre blanco en menú móvil */
    .navbar.scrolled .menu-toggle { color: var(--color-navy); } /* Icono oscuro si la barra es blanca */
    .menu-toggle.active { color: var(--color-white); position: fixed; right: 20px; top: 25px;} /* Icono blanco y fijo si el menú está abierto */

    /* Ajustes Generales */
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }

    /* Hero */
    .hero-title { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; gap: 15px; }
    .hero-btns .btn { width: 100%; }
    
    /* Nosotros */
    .about-stats { flex-direction: column; gap: 30px; align-items: center;}
    
    /* Contacto Móvil Estrecho */
    .contact-info-sidebar { flex-direction: column; }
    .info-item-v2 { width: 100%; margin-bottom: 25px; }
    .contact-main-content { padding: 20px 15px; }
    .form-wrapper-enhanced { padding: 25px 15px; box-shadow: none; border: none; background: transparent;} /* Simplificar formulario en móvil */
    .form-gr