﻿.producto-panel {
    display: flex;
    gap: 24px;
    background: #fff;
    padding: 32px 24px;
    margin-top: 32px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px #ececec;
    flex-wrap: wrap; /* para que las cajas puedan ir a la siguiente fila */
}

.producto-img-container,
.producto-info-container {
    flex: 1 1 50%; /* base para desktop: 2 columnas de 50% */
    max-width: 50%;
}

@media (max-width: 768px) {
    .producto-panel {
        flex-direction: column; /* Cambiar a columna en móvil */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box; /* para no exceder el ancho con padding */
        margin-top: 0px !important;
    }

    .producto-img-container,
    .producto-info-container {
        flex: 1 1 100%;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box; /* para no exceder el ancho con padding */
    }
}
/* Opcional para que la imagen ocupe todo el ancho del contenedor y no se limite por .tienda-img-left */
.producto-img-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 10px #f0f0f0;
    background: #f9f9f9;
}

.producto-img-left {
    width: 270px;
    height: 270px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 10px #f0f0f0;
    margin-right: 12px;
    background: #f9f9f9;
}

.producto-info-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    min-width: 300px;
}

    .producto-info-right h2 {
        color: #243147;
        font-size: 2.1rem;
        font-weight: bold;
        margin-bottom: 8px;
    }

.producto-info-list {
    margin-bottom: 15px;
    margin-top: 15px;
}

    .producto-info-list span {
        font-weight: 600;
        color: #01234a;
    }



.product-price-section {
    position: relative;
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 6px 12px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    user-select: none;
}

.product-price-container {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.product-price-before {
    font-size: 1.05rem;
    color: gray;
    text-decoration: line-through;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.product-price-current {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .product-price-container {
        flex-direction: column;
        align-items: flex-start !important; /* precio alineado a la izquierda */
    }

    .product-price-before {
        margin-right: 0;
        margin-bottom: 0.25rem;
    }

    .product-discount-badge {
        right: 10px; /* cerca del borde derecho */
        top: 8px;
        padding: 5px 10px;
        font-size: 1rem;
    }
}


.slider-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    margin-top: 30px;
}

.producto-card {
    background: #ffffff;
    border-radius: 0.375rem; /* 6px */
    box-shadow: 0 2px 10px rgb(236 236 236);
    padding: 1rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .producto-card img {
        max-width: 100%;
        height: 110px;
        object-fit: contain;
        border-radius: 6px;
        background: #fff;
        margin-bottom: 10px;
        margin-left: auto;
        margin-right: auto;
    }

    .producto-card h4 {
        margin-bottom: 8px;
        font-size: 1.09rem;
        font-weight: 600;
        color: #243147;
    }

    .producto-card .precio {
        font-size: 1.09rem;
        color: #249aaa;
        font-weight: bold;
        margin-bottom: 12px;
    }



.prod-tienda-price-container {
    font-weight: 700;
    display: flex;
    flex-direction: column; /* siempre en columna para poner uno encima de otro */
    align-items: flex-start;
    margin-bottom: 1rem;
}

.prod-tienda-price-before {
    font-size: 0.85rem;
    color: gray;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

.prod-tienda-price-current {
    font-size: 1.05rem;
    color: black;
}

.prod-tienda-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3545;
    color: white;
    padding: 5px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 20;
    user-select: none;
    pointer-events: none;
    border: 2px solid white;
}

.card-prod {
    margin-bottom: 10px !important;
}


.btn-cotizar {
    background-color: #2e8b57;
    color: white !important;
    padding: 7px 20px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.07em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    align-self: center;
    transition: background-color 0.3s ease;
}

    .btn-cotizar:hover {
        background-color: #246b44;
        color: white !important;
        text-decoration: none;
    }

/* Contenedor del slider */
.swiper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    height: auto; /* altura fija en desktop */
}

/* Cada slide */
.swiper-slide {
    display: flex;
    justify-content: center; /* centra horizontal */
    align-items: center; /* centra vertical */
    background: #f9f9f9;
    height: 100%;
}

    /* Imagen dentro del slide */
    .swiper-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain; /* mantiene proporción, no corta */
        display: block;
        margin: auto;
    }

/* 🔹 Versión móvil: altura auto */
@media (max-width: 768px) {
    .swiper {
        height: auto !important;
        max-height: 400px !important;
    }

    .swiper-slide {
        height: auto !important;
        padding: 10px 0; /* opcional, para separar las imágenes */
    }

        .swiper-slide img {
            max-height: none; /* que la imagen pueda crecer según su altura */
        }
}
