/* =========================================
   LA RAZA IBÉRICA - CATÁLOGO DE PRODUCTOS
   ========================================= */

.lri-catalogo {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 48px 0 70px;
}

/* Tarjeta de producto */

.lri-producto {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ede4d8;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(41, 37, 36, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lri-producto:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(41, 37, 36, 0.10);
}

/* Imagen */

.lri-producto-imagen {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5efe5;
}

.lri-producto-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenido */

.lri-producto-contenido {
    padding: 28px;
}

.lri-producto-categoria {
    display: inline-block;
    margin-bottom: 12px;
    color: #692f35;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.lri-producto h2 {
    margin: 0 0 16px;
    color: #692f35;
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1.3;
}

.lri-producto-descripcion {
    margin: 0 0 24px;
    color: #51453e;
    font-size: 15px;
    line-height: 1.7;
}

/* Formatos y precios */

.lri-producto-formatos {
    border-top: 1px solid #ede4d8;
    padding-top: 14px;
}

.lri-formato {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #51453e;
    font-size: 15px;
}

.lri-formato + .lri-formato {
    border-top: 1px solid #f5efe5;
}

.lri-formato strong {
    color: #692f35;
    font-weight: 700;
    white-space: nowrap;
}

/* Adaptación a tabletas */

@media (max-width: 921px) {
    .lri-catalogo {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Adaptación a móviles */

@media (max-width: 600px) {
    .lri-catalogo {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 32px;
    }

    .lri-producto-contenido {
        padding: 22px;
    }
}

/* =========================================
   SECCIONES DEL CATÁLOGO POR CATEGORÍAS
   ========================================= */

.lri-seccion-categoria {
    margin: 55px 0 70px;
}

.lri-categoria-cabecera {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ede4d8;
}

.lri-categoria-cabecera h2 {
    margin: 0 0 12px;
    color: #692f35;
    font-family: Georgia, serif;
    font-size: 34px;
}

.lri-categoria-cabecera p {
    margin: 0;
    color: #51453e;
    font-size: 16px;
    line-height: 1.7;
}

/* El título de la tarjeta ahora es H3 */

.lri-producto h3 {
    margin: 0 0 16px;
    color: #692f35;
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1.3;
}

/* Ajustamos el espacio de las tarjetas dentro de cada categoría */

.lri-seccion-categoria .lri-catalogo {
    margin: 0;
}

@media (max-width: 600px) {
    .lri-seccion-categoria {
        margin: 35px 0 50px;
    }

    .lri-categoria-cabecera h2 {
        font-size: 28px;
    }
}

/* =========================================
   BOTÓN DE WHATSAPP
   ========================================= */

.lri-boton-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 24px;
    padding: 14px 18px;
    background-color: #692f35;
    color: #ffffff !important;
    border: 1px solid #692f35;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.lri-boton-whatsapp:hover,
.lri-boton-whatsapp:focus {
    background-color: #85464c;
    border-color: #85464c;
    color: #ffffff !important;
}

/* Precio base de los productos */
.lri-precio-base {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid #ede4d8;
    border-bottom: 1px solid #ede4d8;
    color: #692f35;
    font-size: 22px;
}

.lri-precio-base strong {
    font-weight: 700;
}


/* Carrusel de imágenes de productos */

.lri-carrusel {
    position: relative;
    overflow: hidden;
}

.lri-carrusel-slide {
    display: none;
}

.lri-carrusel-slide.activa {
    display: block;
}

.lri-carrusel-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    object-position: center;
}

.lri-carrusel-anterior,
.lri-carrusel-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: none;
    border-radius: 50%;
    background: rgba(105, 47, 53, 0.85);
    color: #fff;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lri-carrusel-anterior {
    left: 10px;
}

.lri-carrusel-siguiente {
    right: 10px;
}

.lri-carrusel-anterior:hover,
.lri-carrusel-siguiente:hover {
    background: #692f35;
}

.lri-producto-imagen.lri-carrusel {
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
}

.lri-carrusel-imagenes {
    height: auto;
    min-height: 0;
}

.lri-carrusel-slide {
    height: auto;
}
