/* =======================================================
   VARIABLES GLOBALES Y RESET
   ======================================================= */
:root {
    --primary-color: #0d5c2e; /* Verde empresarial oscuro */
    --primary-dark: #083c1d; 
    --primary-light: #168b46;
    --dark-bg: #152711; /* Casi negro */
    --gray-bg: #f3f4f6; /* Gris muy claro para fondos */
    --text-main: #374151;
    --text-light: #6b7280;
    --white: #ffffff;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Tipografía global */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark-bg); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* Títulos de sección */
.section-subtitle {
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Espacios para imágenes sin cargar (Placeholders) */
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #e5e7eb; /* Gris claro de fondo por si no hay imagen */
    display: block;
}
/* =======================================================
   CARRUSEL PREMIUM (SOBRE NOSOTROS)
   ======================================================= */
.about-image-wrapper {
    position: relative;
    overflow: hidden;
}

.about-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Desplazamiento suave profesional */
}

.slide {
    min-width: 100%;
    height: 100%;
}

/* =======================================================
   CARRUSEL PREMIUM Y ROBUSTO (SOBRE NOSOTROS)
   ======================================================= */
/* 1. Contenedor Principal: Define el marco y asegura posicionamiento relativo */
.about-image-wrapper {
    position: relative; /* FUNDAMENTAL para que las flechas se posicionen */
    height: 500px; /* Alto fijo recomendado para escritorio */
    border-radius: 8px;
    overflow: hidden; /* Oculta las imágenes fuera del marco */
    background-color: #111; /* Fondo ultra oscuro por si la foto no cubre todo */
    box-shadow: 0 20px 25px rgba(0,0,0,0.1);
}

/* 2. El Slider en sí */
.about-slider {
    width: 100%;
    height: 100%;
}

/* 3. La Pista: Se mueve horizontalmente */
.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Desplazamiento suave profesional */
    z-index: 1; /* Bajo las flechas */
}

/* 4. Cada Slide individual */
.slide {
    min-width: 100%; /* Cada slide ocupa el 100% del contenedor */
    height: 100%;
    display: flex; /* Para centrar la imagen por si acaso */
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a; /* Fondo neutro oscuro para letterboxing */
}

/* 5. LA IMAGEN EN SÍ: ESTA ES LA SOLUCIÓN INDESTRUCTIBLE */
/* 5. LA IMAGEN EN SÍ */
.slider-img {
    width: 100%;
    height: 100%;
    
    /* AHORA LA IMAGEN CUBRE TODO EL MARCO (Se cortará arriba/abajo) 👇 */
    object-fit: cover; 
    
    /* Opcional: Centra el recorte para intentar ver el medio del collage */
    object-position: center; 
}

/* 6. Botones de navegación (Flechas) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 24, 39, 0.5); /* Sutil oscuro esmerilado */
    backdrop-filter: blur(4px); /* Cristal esmerilado moderno */
    color: #ffffff; /* BLANCO INTENSO FORZADO */
    border: none;
    width: 44px; /* Un poco más grande para facilitar clic */
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* SIEMPRE ARRIBA DE LA IMAGEN GARANTIZADO */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: var(--primary-color); /* Verde primario al pasar el mouse */
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* 7. Iconos FontAwesome: Asegurar contraste */
.slider-btn i {
    color: #ffffff; /* FORZAMOS BLANCO ABSOLUTO EN EL ICONO */
    font-size: 1rem;
}

/* Responsive: Ajuste para celulares */
@media (max-width: 768px) {
    .about-image-wrapper { height: 350px; } /* Reducimos el alto en móvil */
    .slider-btn { width: 36px; height: 36px; }
}
/* =======================================================
   BOTONES
   ======================================================= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-body);
    border: none;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 92, 46, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-secondary:hover {
    background-color: var(--white);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* =======================================================
   NAVBAR
   ======================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background-color: transparent;
}
.navbar.scrolled {
    background-color: rgba(25, 58, 27, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo img {
    height: 45px; /* Ajustar según tu logo */
    transition: var(--transition);
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-link {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary-light); }
.btn-login {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}
.btn-login:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =======================================================
   HERO SECTION
   ======================================================= */
/* =======================================================
   ESTILOS PARA HERO CON VIDEO
   ======================================================= */
.hero {
    position: relative;
    height: 100vh; /* O el alto que le hayas dado */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Clave para que el video no se desborde */
}

.hero-video{
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    min-width: 100%;
    min-height: 100%;

    transform: translate(-50%, -50%);

    object-fit: cover;

    object-position: 75% center;

    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.55); /* Capa oscura (ajustá el 0.55 si lo querés más o menos oscuro) */
    z-index: 1; /* Por encima del video, por debajo del texto */
}

.hero-content {
    position: relative;
    z-index: 2; /* Por encima de la capa oscura y del video */
    text-align: center;
    color: #ffffff;
}
.hero h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
    color: #e5e7eb;
    font-size: 1.25rem;
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* =======================================================
   SOBRE NOSOTROS
   ======================================================= */
.about { padding: 100px 0; background-color: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-list { margin-top: 30px; }
.about-list li {
    margin-bottom: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
}
.about-list i {
    color: var(--primary-color);
    background: rgba(13, 92, 46, 0.1);
    padding: 8px;
    border-radius: 50%;
}
.about-image-wrapper {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
/* =======================================================
   SECCIÓN GALERÍA - SOLO IMÁGENES (PREMIUM)
   ======================================================= */
.gallery {
    padding: 100px 0;
    background-color: #f9f9f9; /* Fondo claro sutil para hacer resaltar las fotos */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px; /* Más espacio entre fotos para un look más limpio */
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 300px; /* Un poco más altas para mayor impacto visual */
    border-radius: 12px; /* Esquinas redondeadas más modernas */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05); /* Sombra suave inicial */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    cursor: pointer;
    background-color: #1a1a1a;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.92) contrast(0.95); /* Ligeramente suavizadas por defecto */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

/* --- EFECTOS HOVER 100% VISUALES --- */
.gallery-item:hover {
    transform: translateY(-8px); /* La tarjeta "flota" hacia arriba */
    box-shadow: 0 20px 35px rgba(16, 128, 68, 0.15); /* Sombra elegante con el verde de SIMA */
}

.gallery-item:hover .gallery-img {
    transform: scale(1.04); /* Zoom suave y controlado */
    filter: brightness(1.05) contrast(1.05); /* Enciende los colores reales de la foto al pasar el mouse */
}

/* Responsive */
@media (max-width: 768px) {
    .gallery { padding: 60px 0; }
    .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
    .gallery-item { height: 260px; }
}

/* =======================================================
   SERVICIOS (CARDS)
   ======================================================= */
.services { padding: 100px 0; background-color: var(--gray-bg); }
/* Asegura que si hay una sola tarjeta en la categoría, no ocupe toda la pantalla */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: start; /* Alinea a la izquierda si sobra espacio */
}
.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: var(--transition);
}
/* =======================================================
   OPTIMIZACIÓN DE TARJETAS DE SERVICIOS (ALTURA EN PC)
   ======================================================= */

/* 1. Estilo base (Pensado para Computadoras/Pantallas grandes) */
.service-img-box {
    width: 100%;
    height: 400px; /* 👈 Aumentamos la altura en PC para que la maquinaria se aprecie imponente */
    overflow: hidden;
    position: relative;
}

.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene la proporción sin deformar la foto */
    object-position: center; /* Centra el enfoque en el medio del lote */
    transition: transform 0.4s ease;
}

/* Efecto opcional: un zoom sutil al pasar el mouse por la tarjeta */
.service-card:hover .service-img-box img {
    transform: scale(1.03);
}


/* 2. PROTECCIÓN PARA CELULARES (Mantiene el tamaño que ya te gusta) */
@media (max-width: 768px) {
    .service-img-box {
        height: 180px; /* 👈 Altura más compacta y controlada exclusiva para pantallas móviles */
    }
}
.service-content { padding: 30px; }
.service-content h3 { font-size: 1.25rem; margin-bottom: 15px; }
.service-content p { color: var(--text-light); font-size: 0.95rem; }

/* =======================================================
   CARACTERÍSTICAS / POR QUÉ ELEGIRNOS
   ======================================================= */
.features {
    background-color: var(--dark-bg);
    padding: 80px 0;
    color: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.feature-box i {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}
.feature-box h3 { color: var(--white); margin-bottom: 10px; font-size: 1.2rem; }
.feature-box p { color: #9ca3af; font-size: 0.9rem; }

/* =======================================================
   GALERÍA
   ======================================================= */
.gallery { padding: 100px 0; background-color: var(--white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 50px;
}
.gallery-item {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* =======================================================
   CONTACTO
   ======================================================= */
.contact { padding: 100px 0; background-color: var(--gray-bg); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.contact-methods { margin: 40px 0; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--white);
    width: 50px; height: 50px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.contact-item h5 { font-size: 1rem; margin-bottom: 5px; }
.contact-item p { color: var(--text-light); }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px;
    background-color: var(--dark-bg);
    color: var(--white);
    display: flex; justify-content: center; align-items: center;
    border-radius: 4px;
    transition: var(--transition);
}
.social-links a:hover { background-color: var(--primary-color); }

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.contact-form h3 { margin-bottom: 25px; font-size: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 92, 46, 0.1);
}

/* =======================================================
   FOOTER & WHATSAPP
   ======================================================= */
.footer {
    background-color: #0f172a; /* Fondo ultra oscuro */
    padding: 40px 0;
    text-align: center;
    color: #9ca3af;
}
.footer-logo {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 20px;
    opacity: 0.5;
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}
.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

/* =======================================================
   RESPONSIVE (MÓVIL Y TABLET)
   ======================================================= */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .hamburger { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: rgba(17, 24, 39, 0.98);
        flex-direction: column;
        padding: 30px 0;
        gap: 20px;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* Oculto por defecto */
        transition: clip-path 0.4s ease;
    }
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .navbar { background-color: rgba(25, 58, 27, 0.95); padding: 15px 0; }
    .about, .services, .gallery, .contact { padding: 60px 0; }
    .contact-form-wrapper { padding: 30px 20px; }
}
/* Estilo Premium para el Modal de Login */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 25px rgba(0,0,0,0.2);
    position: relative;
}
.close-btn {
    position: absolute; right: 20px; top: 15px;
    font-size: 28px; cursor: pointer; color: var(--text-light);
}
.login-form h2 { margin-bottom: 25px; text-align: center; }
.login-form input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #ddd; border-radius: 4px;
}
.btn-submit {
    width: 100%; padding: 12px; background: var(--primary-color);
    color: white; border: none; border-radius: 4px; cursor: pointer;
    font-weight: 600;
}
/* =======================================================
   CONTROL EXCLUSIVO PARA CELULARES (NAVBAR)
   ======================================================= */

/* En la PC el botón no existe */
#nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    /* Hacemos visible el botón en el celular */
    #nav-toggle {
        display: block !important;
        background: none !important;
        border: none !important;
        font-size: 1.7rem !important;
        color: #0d5c2e !important; /* Verde SIMA */
        cursor: pointer !important;
        z-index: 2001 !important;
    }

    /* Tu contenedor de enlaces se transforma en panel lateral derecho */
    #nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important; /* Escondido afuera de la pantalla */
        width: 260px !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
        
        /* Alineación vertical interna */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 80px 25px 25px 25px !important;
        gap: 20px !important;
        
        /* Transición suave */
        transition: right 0.4s ease !important;
        z-index: 2000 !important;
    }

    /* Clase que se activa al hacer clic para mostrar el menú */
    #nav-menu.active {
        right: 0 !important;
    }

    /* Ajustes para tus enlaces dentro del menú móvil */
    #nav-menu .nav-link {
        display: block !important;
        width: 100% !important;
        font-size: 1.1rem !important;
        color: #1a1a1a !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
    }

    /* Ajuste para tu botón de Iniciar Sesión en celular */
    #nav-menu .btn-login {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        background-color: #0d5c2e !important;
        color: #ffffff !important;
        padding: 10px !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
    }
}
/* =======================================================
   EFECTO REVEAL (APARECER AL DESLIZAR)
   ======================================================= */

/* Estado oculto de fábrica */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Empuja el elemento un poco hacia abajo */
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform; /* Optimiza el rendimiento en celulares */
}

/* Estado cuando el usuario llega con el scroll */
.reveal.active {
    opacity: 1;
    transform: translateY(0); /* Vuelve a su posición original */
}
/* =======================================================
   ESTILOS DE CIERRE: FOOTER Y BOTÓN "VOLVER ARRIBA"
   ======================================================= */
.footer-content {
    justify-content: center;
    background-color: #0d5c2e; /* Fondo oscuro premium para el cierre */
    color: #000000;
    padding: 30px 20px;
    font-size: 0.9rem;
    border-top: 3px solid #000000; /* Línea verde corporativa de SIMA */
}

.footer-content footer {
    justify-content: center;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Separa los textos en los extremos en PC */
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content strong {
    color: #000000; /* Destaca tu nombre como desarrollador */
}

/* Enlace del teléfono en el footer */
.footer-tel a {
    color: #000000; /* Verde brillante */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-tel a:hover {
    color: #ffffff; /* Pasa a blanco al apoyar el mouse */
}

/* --- BOTÓN FLOTANTE VOLVER ARRIBA --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #10753a;
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    
    /* Estado inicial: oculto y abajo */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Clase que le va a poner JavaScript automáticamente al hacer scroll */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #08361b; /* Se oscurece al pasar el mouse */
    transform: translateY(-3px);
}

/* --- RESPONSIVE PARA CELULARES --- */
@media (max-width: 768px) {
    .footer-content footer {
        flex-direction: column; /* Apila los textos al centro en pantallas chicas */
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}
/* =======================================================
   ESTILOS PREMIUM - SECCIÓN NOVEDADES
   ======================================================= */
.novedades {
    padding: 90px 0;
    background-color: #f8fbf9; /* Un tono gris-verdoso corporativo ultra sutil */
    border-top: 1px solid rgba(0,0,0,0.02);
}

.novedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.novedades-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    /* Efecto de transición fluido e industrial */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Hover Moderno: Sube fluidamente y gana profundidad */
.novedades-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.novedades-media-box {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #e5edd7;
}

.novedades-media-box img,
.novedades-video-file {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Efecto Zoom sutil en la imagen al pasar por encima de la tarjeta */
.novedades-card:hover .novedades-media-box img,
.novedades-card:hover .novedades-video-file {
    transform: scale(1.05);
}

/* Sistema de Etiquetas (Badges) */
.novedades-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.badge-nuevo { background-color: #00a651; }       /* Verde institucional SIMA */
.badge-empleo { background-color: #f39c12; }      /* Naranja mecánico/industrial */
.badge-importante { background-color: #2c3e50; }  /* Azul oscuro sobrio empresarial */

.novedades-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que todas las tarjetas midan lo mismo de alto */
}

.novedades-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.novedades-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

/* Vincula el hover general con el cambio de color del título */
.novedades-card:hover .novedades-title {
    color: #00a651;
}

.novedades-desc {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Alinea perfectamente el botón inferior */
}

.btn-novedad-more {
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.btn-novedad-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-novedad-more:hover {
    color: #00a651;
    border-bottom-color: #00a651;
}

/* Animación de la flechita del botón */
.btn-novedad-more:hover i {
    transform: translateX(4px);
}

/* =======================================================
   ADAPTACIÓN RESPONSIVE TOTAL (MÓVILES)
   ======================================================= */
@media (max-width: 768px) {
    .novedades {
        padding: 50px 0;
    }
    .novedades-grid {
        grid-template-columns: 1fr; /* Una sola tarjeta por fila en celulares */
        gap: 25px;
    }
    .novedades-media-box {
        height: 190px;
    }
    .novedades-title {
        font-size: 1.15rem;
    }
}
.hero-content {
    display: flex;
    flex-direction: column; /* Apila logo, texto y botones verticalmente */
    align-items: center;    /* Centra todo horizontalmente */
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 20px;              /* Espacio entre el logo, texto y botones */
}

/* El logo */
.logo-container {
    width: 100%;
    max-width: 350px;       /* Tamaño ideal para escritorio */
    margin-bottom: 10px;
}

.hero-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* El texto ahora en blanco */
.hero-text p {
    font-size: 1.2rem;
    color: #ffffff; /* ¡Blanco puro! */
    max-width: 600px;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Agregué una sombra suave para que resalte aún más */
}

/* Los botones */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* RESPONSIVE: Ajustes para móviles */
@media (max-width: 600px) {
    .logo-container {
        max-width: 220px;   /* Logo más pequeño en celulares */
    }

    .hero-text p {
        font-size: 1rem;    /* Texto un poco más chico para que no se corte */
    }

    .hero-buttons {
        flex-direction: column; /* Botones uno debajo del otro en móviles */
        width: 100%;
    }
    
    .hero-buttons a {
        width: 100%;        /* Botones ocupan todo el ancho en móviles */
    }
}