@import url('https://fonts.googleapis.com/css?family=Inter:wght@300;400;600&family=Outfit:wght@400;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* --- VEHÍCULOS RECOMENDADOS (formato horizontal) --- */
.recomendados-lista{
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 1450px;
    margin: 0 auto;
    padding: 50px 20px 20px 20px;
    box-sizing: border-box;
}

.reco-card{
    display: flex;
    align-items: center;
    gap: 22px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 12px;
    text-decoration: none;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.reco-card:hover{
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.reco-img{
    position: relative;
    flex: 0 0 200px;
    height: 115px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.reco-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.reco-card:hover .reco-img img{
    transform: scale(1.08);
}

.reco-tag{
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1a2633;
    color: #fff;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 7px;
}

.reco-info{
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
}

.reco-title{
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1a2633;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reco-meta{
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6a7482;
}

.reco-price{
    flex: 0 0 auto;
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #1a2633;
    background: #f2f4f7;
    padding: 10px 16px;
    border-radius: 10px;
    white-space: nowrap;
}

.reco-buttons{
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.reco-buttons .btn-main,
.reco-buttons .btn-outline{
    padding: 11px 18px;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 900px){
    .reco-title{ max-width: 260px; }
}

@media (max-width: 768px){
    .reco-card{
        flex-wrap: wrap;
        padding: 12px;
    }
    .reco-img{
        flex: 1 1 100%;
        height: 170px;
    }
    .reco-info{
        flex: 1 1 100%;
    }
    .reco-title{ max-width: 100%; white-space: normal; }
    .reco-price{
        order: 3;
    }
    .reco-buttons{
        flex: 1 1 100%;
        order: 4;
    }
    .reco-buttons a{
        flex: 1;
        text-align: center;
    }
}

/* --- BOTÓN VOLVER --- */
.contenedor-volver {
    max-width: 1300px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.btn-volver {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.btn-volver:hover {
    color: #2b496e;
    transform: translateX(-5px);
}

/* --- CONTENEDOR PRINCIPAL --- */
.producto-detalle-container {
    max-width: 1300px;
    min-height: 85vh;
    margin: 20px auto;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* --- SECCIÓN GALERÍA (IZQUIERDA) --- */
.galeria-seccion {
    flex: 1 1 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.imagen-principal {
    width: 100%;
    height: 550px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: transparent;
}

.imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.imagen-principal:hover img {
    transform: scale(1.02);
}

.miniatura-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.miniatura-container img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.miniatura-container img:hover, .miniatura-container img.activa {
    opacity: 1;
    border-color: #111;
}

/* --- SECCIÓN INFO (DERECHA) --- */
.info-seccion {
    flex: 1 1 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.etiqueta-estado {
    background: #2b496e;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 20px;
}

.titulo-auto {
    font-family: 'Outfit', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #111;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.specs-auto {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.specs-auto span {
    display: flex;
    align-items: center;
}

.specs-auto span::after {
    content: "|";
    margin-left: 15px;
    color: #ccc;
}

.specs-auto span:last-child::after {
    display: none;
}

.precio-auto {
    font-family: 'Outfit', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #111;
    margin-bottom: 30px;
}

.descripcion-auto {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 50px;
}

/* --- BOTONES SIN RELLENO --- */
.botones-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.btn {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    background-color: transparent;
}

.btn-whatsapp {
    color: #25D366;
    box-shadow: inset 0 0 0 2px #25D366;
}

.btn-whatsapp:hover {
    background-color: #25D366;
    color: white;
    box-shadow: inset 0 0 0 2px transparent, 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.btn-instagram {
    color: #dc2743;
    box-shadow: inset 0 0 0 2px #dc2743;
}

.btn-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    box-shadow: inset 0 0 0 2px transparent, 0 6px 20px rgba(220, 39, 67, 0.4);
    transform: translateY(-2px);
}

/* --- MODAL (PANTALLA COMPLETA PARA FOTOS) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10,10,10,0.97);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-content {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: none !important;
    outline: none !important;
    box-shadow: none;
    margin: 0;
    display: block;
}

.cerrar-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 5px rgba(0,0,0,0.5);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.cerrar-modal:hover {
    transform: scale(1.1);
}

.nav-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 5px rgba(0,0,0,0.5);
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    background-color: transparent;
    z-index: 1001;
}

.nav-prev { left: 15px; }
.nav-next { right: 15px; }

.nav-modal:hover {
    transform: scale(1.1);
}

/* --- TABLA DE ESPECIFICACIONES --- */
.specs-container {
    margin-bottom: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eee;
}

.specs-titulo {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs-lista {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.specs-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid #eaeaea;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 6px;
}

.specs-fila:last-child {
    border-bottom: none;
}

.specs-fila:hover {
    transform: translateX(6px);
    background-color: #f1f1f1;
    padding-left: 12px;
    padding-right: 12px;
}

.specs-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.specs-valor {
    font-weight: 400;
    color: #111;
    font-size: 14px;
    text-align: right;
}

/* --- RESPONSIVE / CELULARES --- */
@media (max-width: 768px) {
    .contenedor-volver {
        padding: 0 15px;
        margin: 15px auto 0 auto;
    }

    .btn-volver {
        font-size: 14px;
    }

    .producto-detalle-container {
        margin: 0;
        min-height: auto;
    }
    .galeria-seccion {
        flex: 1 1 100%;
        padding: 15px 15px 0 15px;
    }
    .info-seccion {
        flex: 1 1 100%;
        padding: 15px 15px 40px 15px;
    }

    .imagen-principal {
        width: 100%;
        margin: 0;
        height: auto;
        border-radius: 15px;
    }
    .imagen-principal img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }

    .miniatura-container {
        margin-top: 15px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .miniatura-container img {
        width: 65px;
        height: 70px;
    }

    .titulo-auto {
        font-size: 28px;
    }
    .precio-auto {
        font-size: 36px;
    }
    .specs-auto {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: auto;
        height: auto;
        border-radius: 0;
    }
    .nav-modal {
        font-size: 30px;
        padding: 10px;
    }
    .cerrar-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }

    .specs-container {
        padding: 15px;
    }
    .specs-fila {
        padding: 10px 5px;
    }
    .specs-fila:hover {
        transform: translateX(3px);
        padding-left: 8px;
        padding-right: 8px;
    }
}
