/* Importación de fuente Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ff6c0e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: #ff6c0e;
    height: 110px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-header {
    width: 350px;
    height: 59px;
    object-fit: contain;
}

/* Sección Hero */
.hero {
    background-color: #ffffff;
    padding: 25px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-hero {
    max-width: 100%;
    width: 700px;
    height: auto;
}

/* Contenedores */
.container-model {
    padding: 40px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.model-title {
    color: #ffffff;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Estilos de Grids */
.bike-grid, .bike-grid-3 {
    display: grid;
    gap: 50px 20px; /* Aumentamos el gap vertical para acomodar el sello y los 25px */
}

.bike-grid { grid-template-columns: repeat(4, 1fr); }
.bike-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Contenedor Wrapper: Agrupa tarjeta + sello exterior */
.bike-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.bike-item {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%;
    cursor: pointer;
    z-index: 2;
}

.bike-item:hover {
    transform: translateY(-5px);
}

.bike-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Sello fuera de la tarjeta: 25px de separación sobre fondo naranja */
.corrente-stamp-outside {
    width: 280px;
    max-width: 90%;
    height: auto;
    margin-top: 25px; /* Separación de 25px solicitada */
    display: block;
    object-fit: contain;
}

/* Overlay Info: Cubre la tarjeta blanca por completo */
.bike-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

/* Visibilidad Desktop (Hover) */
@media (min-width: 1025px) {
    .bike-item:hover .bike-info {
        opacity: 1;
        visibility: visible;
    }
}

/* Visibilidad Móvil (Tap) */
.bike-item.show-info .bike-info {
    opacity: 1;
    visibility: visible;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .bike-grid, .bike-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .empty-space { display: none; }
}

@media (max-width: 600px) {
    .bike-grid, .bike-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 60px; /* Espacio extra entre bloques en móvil */
    }

    .logo-header { width: 70%; }
    .model-title { font-size: 1.5rem; }
}

/* Footer */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 60px;
}

.dev-credit { color: #ff6c0e; font-size: 0.8rem; margin-top: 10px; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.modal-content { max-width: 90%; max-height: 90%; border: 3px solid #fff; border-radius: 8px; animation: zoomIn 0.3s; }
.close-modal { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 50px; cursor: pointer; }

@keyframes zoomIn { from {transform:scale(0.7); opacity:0} to {transform:scale(1); opacity:1} }