/* ============================================================
   1. CONFIGURACIÓN GLOBAL Y FUENTES
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: #ffffff;
    color: #22252A;
    line-height: 1.6;
}

/* ============================================================
   2. NAVEGACIÓN (CENTRADA Y PROFESIONAL)
   ============================================================ */
nav {
    background-color: #22252A;
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 45px; width: auto; }

.menu { display: flex; gap: 20px; }

.menu a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
}

.menu a:hover { color: #FF751B !important; }

/* ============================================================
   3. PÁGINA DE INICIO (HERO Y SERVICIOS)
   ============================================================ */
.hero {
    height: 65vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagenes index/portada.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }

.btn-hero {
    display: inline-block;
    background-color: #FF751B !important;
    color: white !important;
    text-decoration: none !important;
    padding: 15px 35px;
    border-radius: 6px;
    font-weight: 800;
    margin-top: 25px;
    text-transform: uppercase;
    transition: 0.3s;
}

.grid-servicios {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-text { padding: 20px; }
.card-text h3 { color: #FF751B; margin-bottom: 10px; }

/* ============================================================
   4. SECCIONES DE TEXTO (NOSOTROS Y FLOTA)
   ============================================================ */
.contenedor-texto {
    max-width: 850px;
    margin: 60px auto;
    padding: 0 5%;
}

.contenedor-texto h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #22252A;
}

.img-full {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* ============================================================
   5. CONTACTO (RECUADRO GRIS CENTRADO)
   ============================================================ */
.seccion-contacto {
    padding: 60px 5%;
    text-align: center;
}

.form-container {
    background-color: #f4f4f4;
    padding: 40px;
    border-radius: 12px;
    max-width: 650px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
}

.btn-enviar {
    background-color: #FF751B !important;
    color: white !important;
    border: none;
    padding: 18px;
    width: 100%;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    
    /* AGREGA ESTO PARA ARREGLAR LA LETRA: */
    font-family: 'Manrope', sans-serif !important; 
    font-size: 1rem; /* Asegura que el tamaño sea legible */
}
/* ============================================================
   6. FOOTER Y BOTÓN WHATSAPP
   ============================================================ */
footer {
    background-color: #22252A;
    color: white;
    padding: 60px 5% 30px;
    margin-top: 80px;
}

.footer-content { max-width: 1100px; margin: 0 auto; }

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 { color: #FF751B; margin-bottom: 15px; }

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 25px;
    color: #888;
    font-size: 0.9rem;
}

/* --- BOTÓN WHATSAPP CHIQUITO --- */
.wsp-float {
    position: fixed;
    width: 80px;           /* Tamaño pequeño */
    height: 60px;
    bottom: 25px;          /* Distancia de la base */
    right: 25px;           /* Distancia del borde derecho */
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;         /* Siempre por encima de todo */
    transition: transform 0.3s ease;
}

.wsp-float:hover {
    transform: scale(1.1); /* Crece un poquito al pasar el mouse */
    background-color: #128C7E;
}

.wsp-float img {
    width: 40px;           /* El icono dentro del círculo */
    height: 40px;
}

/* Ajuste para celulares (un poco más pequeño aún) */
@media (max-width: 768px) {
    .wsp-float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    .wsp-float img {
        width: 50px;
        height: 50px;
    }
}
/* --- CARRUSEL CUADRADO CON MOVIMIENTO --- */
.slider-flota {
    display: flex !important;
    overflow-x: auto !important; /* Habilita el deslizamiento horizontal */
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 50px 0 !important;
    -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
    scroll-behavior: smooth;
}

/* Ocultar barra de scroll pero mantener funcionalidad */
.slider-flota::-webkit-scrollbar {
    height: 30px;
}
.slider-flota::-webkit-scrollbar-thumb {
    background: #FF751B;
    border-radius: 10px;
}

.slide {
    flex: 0 0 70% !important; /* Ancho del cuadrado */
    scroll-snap-align: center !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 1 / 1 !important; /* Mantiene el cuadrado 1:1 */
    transition: transform 0.5s ease; /* Suavidad al mover */
}

/* EFECTO AL PASAR EL MOUSE: La imagen se agranda un poco */
.slide:hover {
    transform: scale(1.03);
    z-index: 10;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.slide-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 117, 27, 0.9);
    color: white;
    padding: 10px;
    font-size: 0.85rem;
    text-align: center;
    font-weight: 700;
}

/* Ajuste para PC: se ven más cuadrados y el scroll es más evidente */
@media (min-width: 900px) {
    .slide {
        flex: 0 0 30% !important; 
    }
}
/* --- ESTILO PARA PANTALLA COMPLETA --- */
.modal-zoom {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 10000; /* Por encima de todo, incluso del WSP */
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); /* Fondo negro traslúcido */
    cursor: zoom-out;
}

.modal-contenido {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    animation: zoomAnim 0.3s;
}

@keyframes zoomAnim {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}

.cerrar-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}
/* ============================================================
   7. AJUSTES ESPECÍFICOS PARA GALERÍA CON BOTONES Y ZOOM
   ============================================================ */

/* Contenedor relativo para que las flechas se peguen a los lados de la galería */
.contenedor-galeria {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 50px; /* Espacio para que las flechas no tapen las fotos */
}

/* Estilo de los botones de flecha */
.btn-scroll {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FF751B; /* Naranja Movu */
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.btn-scroll:hover {
    background-color: #22252A;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 0; }
.next { right: 0; }

/* MODAL DE PANTALLA COMPLETA (ZOOM) */
.modal-zoom {
    display: none; /* Se activa con el JavaScript */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    cursor: zoom-out;
    padding-top: 40px;
}

.modal-contenido {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    animation: zoomEffect 0.3s;
}

@keyframes zoomEffect {
    from {transform: scale(0.7); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#caption {
    text-align: center;
    color: #FF751B;
    font-weight: 800;
    margin-top: 15px;
    font-size: 1.2rem;
}
/* --- GALERÍA DE BORDE A BORDE --- */

.contenedor-galeria {
    position: relative;
    width: 100% !important;     /* Ocupa toda la pantalla */
    max-width: none !important; /* Quita el límite de 1100px */
    padding: 0 !important;      /* Quita el relleno lateral */
    margin: 40px 0;
}

/* Ajuste de los botones para que no se peguen al borde de la pantalla */
.btn-scroll {
    z-index: 100;
    background-color: rgba(255, 117, 27, 0.9); /* Un poco más sólido para que se vea sobre la foto */
}
.prev { left: 20px !important; }  /* Separación del borde izquierdo */
.next { right: 20px !important; } /* Separación del borde derecho */

/* Ajuste de las fotos para pantalla completa */
.slide {
    /* En celular se mantiene igual (grande) */
    flex: 0 0 80% !important; 
    border-radius: 12 !important; /* Opcional: cuadrados perfectos sin bordes redondos se ven más modernos en full width */
    margin-right: 5px; /* Espacio pequeño entre fotos */
}

/* En PC mostramos más fotos a la vez */
@media (min-width: 900px) {
    .slide {
        flex: 0 0 25% !important; /* Muestra 4 fotos a la vez */
    }
}
/* ============================================================
   8. CENTRADO OBLIGATORIO DEL BOTÓN
   ============================================================ */
.btn-contenedor {
    display: flex !important;           /* Activa la caja flexible */
    justify-content: center !important; /* Centra horizontalmente */
    align-items: center !important;     /* Centra verticalmente */
    width: 100% !important;             /* Asegura que ocupe todo el ancho */
    margin: 50px 0 !important;          /* Espacio arriba y abajo */
    position: relative;
    z-index: 5;
}

/* Asegura que el botón no sea del 100% ancho si no quieres */
.btn-contenedor .btn-hero {
    width: auto !important;             /* El botón se ajusta al texto */
    min-width: 200px;                   /* Tamaño mínimo para verse bien */
    text-align: center;
}