/* ========================================
   INDEX.CSS - VERSIÓN FINAL CORREGIDA (APPS MÁS PEQUEÑAS)
   ======================================== */

/* --- 1. HEADER / HERO (Altura y Fondo) --- */
header {
    width: 100%;
    height: 100vh;
    /* Pantalla completa obligatoria */
    min-height: 600px;
    background: #5e1c26;
    background: linear-gradient(to right, #5e1c2650, #5e1c26), url(../img/Vasca.png);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

header .textos-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    z-index: 2;
    padding: 0 20px;
    margin-top: 60px;
    /* Compensa la navbar fija */
}

.logo-hero {
    width: 350px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.logo-hero:hover {
    transform: scale(1.05) rotate(2deg);
    cursor: pointer;
}

/* Título H2 oculto */
.titulo-index {
    display: none !important;
}

/* Ola Decorativa */
.wave {
    position: absolute;
    bottom: -1px;
    width: 100%;
    height: 100px;
    z-index: 5;
    overflow: hidden;
}

/* --- 2. CARRUSEL HERO --- */
.hero-section {
    width: 95%;
    max-width: 1600px;
    margin: 40px auto 80px auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.carousel-hero {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-hero .carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 100%;
    gap: 0;
    margin: 0;
    padding: 0;
}

/* Fix for dynamic banners wrapped in .banner-slide */
.banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-show {
    display: block;
    height: 500px;
}

.mobile-show {
    display: none;
}

.carousel-hero .carousel-btn {
    width: 50px;
    height: 50px;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

.carousel-hero .carousel-btn:hover {
    background: #5e1c26;
    color: #fffac2;
}

.carousel-hero .prev {
    left: 20px;
}

.carousel-hero .next {
    right: 20px;
}

/* ========================================
   3. SECCIÓN SOBRE NOSOTROS / UBICACIÓN (CORREGIDA)
   ======================================== */

.sobre-nosotros {
    padding-top: 60px;
    background: #fff;
}

.contenedor-sobre-nosotros {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* IMAGEN DE LA SUCURSAL */
.img-sucursal-wrapper {
    flex: 1;
    max-width: 550px;
    height: auto;
    min-height: 400px;
    position: relative;
    cursor: zoom-in;
    /* overflow: hidden; Removed to fix shadow clipping */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.img-sucursal-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.main-sucursal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-overlay-hint {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    /* Match parent radius */
    background: rgba(94, 28, 38, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fffac2;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

/* Control de tamaño del ícono */
.img-overlay-hint svg {
    width: 60px;
    /* Tamaño controlado */
    height: 60px;
    margin-bottom: 15px;
    /* Separación del texto */
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Estilo del texto "Ampliar y explorar" */
.img-overlay-hint span {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Pequeña animación al pasar el mouse */
.img-sucursal-wrapper:hover .img-overlay-hint svg {
    transform: scale(1.1);
}

.img-sucursal-wrapper:hover .img-overlay-hint {
    opacity: 1;
}

/* COLUMNA DE TEXTO */
.sucursal-info-aligned {
    flex: 1;
    max-width: 500px;
    text-align: left;
}

.address-block {
    margin-bottom: 30px;
    border-left: 5px solid #5e1c26;
    padding-left: 20px;
}

.address-big {
    font-size: 26px;
    color: #5e1c26;
    margin-bottom: 10px;
    font-weight: 700;
}

.address-small {
    font-size: 16px;
    color: #555;
    font-weight: 300;
    line-height: 1.6;
}

/* BOTONES DE MAPAS */
.maps-buttons-container {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.map-btn {
    text-decoration: none;
    position: relative;
    display: block;
}

.map-icon {
    width: 55px;
    height: 55px;
    background: #5e1c26;
    color: #fffac2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.map-icon svg {
    width: 28px;
    height: 28px;
}

.map-icon:hover {
    background: #fffac2;
    color: #5e1c26;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(94, 28, 38, 0.3);
}

/* Tooltip Mapas */
.map-tooltip {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fffac2;
    color: #5e1c26;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
    pointer-events: none;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #fffac2 transparent transparent transparent;
}

.map-btn:hover .map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* TABLA DE HORARIOS */
.schedule-aesthetic {
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* TÍTULO EN NEGRITAS */
.schedule-title {
    font-size: 16px;
    /* Un poco más grande para destacar */
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #5e1c26;
    margin-bottom: 15px;
    font-weight: bold !important;
    /* Forzado a negrita */
    display: block;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 16px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
}

.schedule-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.schedule-row .day {
    font-weight: 600;
    color: #333;
}

.schedule-row .time {
    color: #5e1c26;
}

/* --- 4. PORTAFOLIO (Favoritos) --- */
.portafolio {
    background: #f2f2f2;
    padding: 60px 0;
}

.galeria-port {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.imagen-port {
    width: 30%;
    min-width: 300px;
    height: 400px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    background: #fff;
}

.imagen-port > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.imagen-port:hover > img {
    transform: scale(1.1);
}

.hover-galeria {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(94, 28, 38, 0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.imagen-port:hover .hover-galeria {
    opacity: 1;
}

.hover-title {
    font-size: 22px;
    font-weight: 700;
    color: #fffac2;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.price-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #fffac2;
    color: #fffac2;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: transparent;
}

.price-btn:hover {
    background: #fffac2;
    color: #5e1c26;
    transform: translateY(-2px);
}

.see-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: #fffac2;
    text-decoration: none;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.3s;
}

.see-more-btn:hover {
    gap: 15px;
}

/* ========================================
   5. SERVICIOS DE ENTREGA (MOTO + APPS)
   ======================================== */

.about-services {
    background: #ffffff;
    /* Fondo gris suave del diseño original */
    padding: 20px 0;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Tarjeta de Servicio (Contenedor Blanco) */
.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    width: 450px;
    /* Ancho fijo para consistencia */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    border: 1px solid #f0f0f0;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(94, 28, 38, 0.15);
}

.service-card h3 {
    margin: 20px 0;
    color: #5e1c26;
    font-size: 22px;
    font-weight: 700;
}

.service-card p {
    font-weight: 450;
    line-height: 1.6;
    color: #555;
}

/* --- ANIMACIÓN MOTO Y SOMBRA --- */
.bike-icon-wrapper {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bike-svg {
    width: 100px;
    height: 100px;
    transition: transform 0.4s;
    z-index: 2;
    /* Encima de la sombra */
    position: relative;
}

/* LA SOMBRA DE LA MOTO */
.bike-shadow {
    position: absolute;
    bottom: 5px;
    left: 20%;
    width: 60%;
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    /* Sombra visible */
    border-radius: 50%;
    transform: scale(1);
    transition: transform 0.4s;
    z-index: 1;
    /* Debajo de la moto */
}

/* Gatillos de Animación */
.service-card:hover .bike-svg {
    animation: bikeRide 0.8s ease-in-out infinite;
}

.service-card:hover .bike-shadow {
    animation: shadowMove 0.8s ease-in-out infinite;
}

@keyframes bikeRide {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    25% {
        transform: translateX(5px) rotate(2deg);
    }

    50% {
        transform: translateX(-3px) rotate(-1deg);
    }

    75% {
        transform: translateX(2px) rotate(1deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes shadowMove {
    0%,
    100% {
        transform: translateX(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateX(5px) scale(0.9);
        opacity: 0.1;
    }
}

/* Detalles de precios */
.price-highlight {
    font-size: 32px;
    color: #5e1c26;
    font-weight: 800;
    margin: 10px 0 !important;
}

.free-shipping {
    background: #fffac2;
    color: #5e1c26;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
}

/* --- LOGOS APPS (TAMAÑO CORREGIDO) --- */
.delivery-imagenes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.app-btn-container {
    width: 100px;
    /* Tamaño controlado (Pequeño) */
    height: 100px;
    transition: 0.3s;
    filter: grayscale(20%);
    display: block;
}

.app-btn-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-btn-container:hover {
    transform: scale(1.15) rotate(-5deg);
    filter: grayscale(0%);
}

/* ========================================
   6. TESTIMONIOS DE CLIENTES
   ======================================== */

.clientes-contenedor {
    background: #f2f2f2;
    padding: 100px 20px;
    /* Mucho espacio arriba y abajo */
}

.cards {
    display: flex;
    justify-content: center;
    /* Centrado */
    gap: 40px;
    /* Espacio generoso entre tarjetas */
    flex-wrap: wrap;
}

.card {
    background: #5e1c26;
    /* Color Vino */
    color: #f2f2f2;
    /* Texto Blanco/Crema */
    display: flex;
    width: 850px;
    /* Ancho fijo para escritorio */
    min-height: 180px;
    /* Altura mínima */
    align-items: center;
    justify-content: space-evenly;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    /* Efecto elevación */
}

.card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 4px solid #f2f2f2;
    /* Borde blanco grueso */
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.contenido-texto-card {
    width: 65%;
    text-align: left;
}

.contenido-texto-card h4 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fffac2;
    /* Nombre en color crema */
}

.contenido-texto-card p {
    font-weight: 300;
    line-height: 1.5;
    font-size: 15px;
    font-style: italic;
}

/* RESPONSIVE (Móvil) */
@media (max-width: 800px) {
    .service-card {
        width: 95%;
        /* Ocupa casi todo el ancho en móvil */
    }

    .card {
        width: 95%;
        /* Testimonio ancho completo */
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contenido-texto-card {
        width: 100%;
        text-align: center;
    }
}

/* --- 7. PREGUNTAS FRECUENTES (Q&A) --- */

.faq-section {
    padding: 80px 0;
    /* Espacio arriba y abajo para separarlo de Testimonios */
    background: #fff;
}

.accordion {
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
}

.item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.item input {
    display: none;
}

.question {
    background: #fff;
    padding: 18px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: #5e1c26;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.question:hover {
    background: #fcfcfc;
}

.question::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s;
    color: #5e1c26;
}

.answer {
    max-height: 0;
    overflow: hidden;
    background: #f9f9f9;
    transition:
        max-height 0.4s ease,
        padding 0.4s ease;
}

.answer p {
    padding: 0 25px;
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.item input:checked + .question {
    background: #5e1c26;
    color: #fffac2;
}

.item input:checked + .question::after {
    transform: rotate(45deg);
    color: #fffac2;
}

.item input:checked ~ .answer {
    max-height: 200px;
    padding: 20px 0;
}

/* ========================================
   8. MODAL SUCURSAL (CON ZOOM Y MOVIMIENTO)
   ======================================== */

.modal-sucursal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-sucursal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-sucursal-content {
    position: relative;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* Importante para que el zoom no se salga del borde */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-sucursal-img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;

    /* PREPARACIÓN PARA EL ZOOM */
    cursor: zoom-in;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Suavidad al entrar/salir */
    transform-origin: center center;
    /* JS cambiará esto dinámicamente */
}

/* ESTADO ZOOM ACTIVADO (Clase que pone JS) */
.modal-sucursal-img.zoomed {
    transform: scale(2.5);
    /* Aumenta 2.5 veces su tamaño */
    cursor: move;
    /* Cursor de movimiento */
}

/* ESTADO MOVIENDO (Para que el seguimiento sea instantáneo sin lag) */
.modal-sucursal-img.zoomed.moving {
    transition: none;
    /* Quitamos la transición para que siga al mouse en tiempo real */
}

/* Botón Cerrar */
.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 200;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
    transition: transform 0.2s;
}

.close-modal-btn:hover {
    transform: scale(1.2) rotate(90deg);
    color: #fffac2;
}

/* Caption flotante (opcional, para que se vea elegante) */
.modal-caption-float {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fffac2;
    pointer-events: none;
    /* Para no estorbar el click */
    transform: translateY(100%);
    transition: transform 0.3s 0.2s;
}

.modal-sucursal-overlay.show .modal-caption-float {
    transform: translateY(0);
}

/* --- 9. RESPONSIVE (Móvil) --- */
@media (max-width: 800px) {
    header {
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
    }

    .desktop-show {
        display: none;
    }

    .mobile-show {
        display: block;
        height: 350px;
    }

    .contenedor-sobre-nosotros {
        flex-direction: column;
        text-align: center;
    }

    /* Solución Mapa Móvil */
    .img-sucursal-wrapper {
        width: 100%;
        min-height: 400px;
        margin-bottom: 30px;
        display: block;
        /* Asegura display */
    }

    .sucursal-info-aligned {
        text-align: center;
    }

    .address-block {
        border-left: none;
        border-bottom: 4px solid #5e1c26;
        padding-bottom: 20px;
        padding-left: 0;
    }

    .maps-buttons-container {
        justify-content: center;
    }

    .galeria-port {
        flex-direction: column;
        align-items: center;
    }

    .imagen-port {
        width: 100%;
        max-width: 450px;
        min-width: 0;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 95%;
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .service-card {
        width: 90%;
    }
}

@media (max-width: 800px) {
    /* ... tus otras reglas móviles ... */

    /* AJUSTE HORARIOS MÓVIL (Para que no se peguen) */
    .schedule-row {
        gap: 20px;
        /* Fuerza separación entre el día y la hora */
    }

    .schedule-row .time {
        text-align: right;
        /* Alinea la hora a la derecha */
        font-size: 14px;
        /* Un poquito más pequeño si es necesario */
    }
}
