/* styles.css */
:root {
    /* Paleta Corporativa Florentina */
    --primary-color: #4fac75;    /* Verde Logo */
    --primary-dark: #3a8258;
    --secondary-color: #1a5b8e;  /* Azul Corporativo */
    --secondary-dark: #12436b;
    --accent-color: #a79377;     /* Marrón/Arena Logo */
    
    /* Grises y Fondos */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    
    /* Tipografías */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Animaciones & Sombras */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografía y Textos */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1.5rem; }

/* REGLA DE NEGOCIO: Mayúsculas Visuales */
.uppercase-input { text-transform: uppercase; }
.uppercase-input::placeholder { text-transform: uppercase; opacity: 0.6; }

/* Botones */
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 172, 117, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 117, 0.6);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-block { width: 100%; }
.btn-lg { padding: 18px; font-size: 1.1rem; }

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { background-color: #128C7E; transform: scale(1.1); }

@keyframes pulse-wa {
    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); }
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-dark);
    color: #d1d5db;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-info { display: flex; gap: 20px; }
.top-bar-info span i { color: var(--primary-color); margin-right: 5px; }
.top-bar-social a {
    color: #d1d5db;
    margin-left: 15px;
    transition: var(--transition);
}
.top-bar-social a:hover { color: var(--primary-color); }

/* Header & Nav */
.header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo-img { height: 80px; object-fit: contain; }

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary-color); }
.nav-link:hover::after { width: 100%; }

.btn-intranet {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-intranet:hover { background-color: var(--secondary-dark); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--secondary-color); }

/* Hero Dinámico */
.hero {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 1s ease-in-out;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(26,91,142,0.9) 0%, rgba(26,91,142,0.6) 50%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background-color: rgba(79, 172, 117, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 800;
}
.text-highlight { color: var(--primary-color); }
.hero-content p {
    font-size: 1.1rem;
    color: #e5e7eb;
    margin-bottom: 40px;
    max-width: 600px;
}
.hero-buttons { display: flex; gap: 20px; }

/* Metrics Section */
.metrics-section {
    background-color: var(--primary-color);
    padding: 40px 0;
    position: relative;
    z-index: 10;
    margin-top: -50px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.metric-item i { font-size: 2.5rem; color: rgba(255,255,255,0.8); margin-bottom: 10px; }
.metric-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
}
.metric-number::after { content: '+'; color: var(--secondary-dark); }
.metric-text { color: white; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; }

/* Section Generics */
.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.section-title { font-size: 2.5rem; margin-bottom: 20px; color: var(--secondary-color); font-weight: 800; }

/* Nosotros */
.nosotros-section { padding: 100px 0; background: var(--bg-light); }
.nosotros-container { display: flex; gap: 60px; align-items: center; }
.nosotros-text, .nosotros-image { flex: 1; }
.mv-cards { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.mv-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}
.mv-card:hover { transform: translateX(10px); box-shadow: var(--shadow-md); }
.mv-icon {
    background: rgba(79, 172, 117, 0.1);
    color: var(--primary-color);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.nosotros-image { position: relative; }
.nosotros-image img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.experience-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--secondary-color);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
}
.experience-badge .exp-num { display: block; font-size: 2rem; font-weight: 800; font-family: var(--font-heading); color: var(--primary-color); }

/* Servicios Interactivos */
.servicios-section { padding: 100px 0; }
.subtitle { color: var(--text-light); max-width: 700px; margin: 0 auto 50px auto; font-size: 1.1rem; }
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.servicio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}
.servicio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
.servicio-img { position: relative; height: 200px; overflow: hidden; }
.servicio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.servicio-card:hover .servicio-img img { transform: scale(1.1); }
.servicio-icon-float {
    position: absolute;
    bottom: -25px; right: 20px;
    background: var(--primary-color);
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 3px solid white;
    z-index: 2;
}
.servicio-content { padding: 35px 25px 25px 25px; }
.servicio-content h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--secondary-dark); }
.servicio-content p { color: var(--text-light); font-size: 0.95rem; }

/* Flota y Rutas */
.flota-section { background: var(--secondary-dark); color: white; padding: 100px 0; }
.flota-section .section-title { color: white; }
.flota-section p { color: #d1d5db; margin-bottom: 30px; }
.flota-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rutas-list { list-style: none; }
.rutas-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-weight: 500; }
.rutas-list li i { color: var(--primary-color); font-size: 1.2rem; }
.flota-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.gallery-item { border-radius: 8px; overflow: hidden; height: 180px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.1); opacity: 0.8; }

/* Contacto & Formulario */
.contacto-section {
    position: relative;
    padding: 100px 0;
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-attachment: fixed;
    background-size: cover;
}
.contacto-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(243, 244, 246, 0.95); /* bg-light con opacidad */
}
.contacto-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 50px;
    align-items: stretch;
}
.contacto-form-wrapper {
    flex: 1.5;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--primary-color);
}
.form-header { margin-bottom: 30px; }
.form-header h2 { font-size: 2rem; color: var(--secondary-dark); margin-bottom: 10px; }
.form-header p { color: var(--text-light); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; letter-spacing: 0.5px; }

.input-with-icon { position: relative; }
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}
.input-with-icon input, .input-with-icon select { padding-left: 45px; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: #f9fafb;
    color: var(--text-dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(79, 172, 117, 0.1);
}

.contacto-info-wrapper {
    flex: 1;
    background: var(--secondary-color);
    color: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
.contacto-info-wrapper h3 { color: white; font-size: 1.8rem; margin-bottom: 15px; }
.contacto-info-wrapper p { margin-bottom: 40px; color: #d1d5db; }
.contact-card { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.c-icon {
    background: rgba(255,255,255,0.1);
    width: 45px; height: 45px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}
.c-text h4 { color: white; font-size: 0.9rem; margin-bottom: 5px; opacity: 0.8; }
.c-text span { font-weight: 500; font-size: 1.05rem; }

/* Alertas de Formulario */
.d-none { display: none !important; }
.form-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown { from{ opacity:0; transform:translateY(-10px); } to{ opacity:1; transform:translateY(0); } }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; display: block; }
.alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; display: block; }

/* Footer */
.footer { background: #111827; color: #9ca3af; padding-top: 80px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand p { margin: 20px 0; }
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.1);
    color: white; border-radius: 50%;
    margin-right: 10px; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary-color); transform: translateY(-3px); }
.footer-links h4, .footer-cert h4 { color: white; font-family: var(--font-heading); margin-bottom: 25px; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { color: #9ca3af; text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links ul li a i { font-size: 0.7rem; color: var(--primary-color); }
.footer-links ul li a:hover { color: white; transform: translateX(5px); }
.cert-badges { display: flex; flex-direction: column; gap: 10px; margin-top: 15px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(79,172,117,0.1); color: var(--primary-color); padding: 8px 15px; border-radius: 4px; border: 1px solid rgba(79,172,117,0.3); font-weight: 600; }
.footer-bottom { background: #030712; padding: 20px 0; border-top: 1px solid #1f2937; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; }

/* ANIMACIONES (Intersection Observer) */
.reveal { opacity: 0; visibility: hidden; transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; visibility: visible; }
.fade-up { transform: translateY(40px); }
.reveal.active.fade-up { transform: translateY(0); }
.fade-bottom { transform: translateY(-40px); }
.reveal.active.fade-bottom { transform: translateY(0); }
.fade-left { transform: translateX(-50px); }
.reveal.active.fade-left { transform: translateX(0); }
.fade-right { transform: translateX(50px); }
.reveal.active.fade-right { transform: translateX(0); }

/* Responsive Media Queries */
@media screen and (max-width: 1024px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .nosotros-container, .flota-wrapper, .contacto-container { flex-direction: column; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 2.8rem; }
    .contacto-form-wrapper { padding: 30px; }
}

@media screen and (max-width: 768px) {
    .top-bar { display: none; } /* Ocultar barra superior en móviles para ahorrar espacio */
    .menu-toggle { display: block; }
    .nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-md);
        display: none; padding: 20px 0;
        border-top: 1px solid #eee;
    }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; gap: 15px; }
    .nav-link::after { display: none; }
    .btn-intranet { display: inline-flex; margin-top: 10px; }
    
    .hero-content h1 { font-size: 2rem; }
    .hero-buttons { flex-direction: column; }
    
    .metrics-section { margin-top: 0; width: 100%; border-radius: 0; }
    .metrics-grid { grid-template-columns: 1fr; }
    
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
}