
/* =========================================================
   CASLA DEL SURESTE
   CATÁLOGO Y DETALLE DE PRODUCTOS
   Diseño profesional, limpio y totalmente responsive
========================================================= */

/* =========================================================
   1. VARIABLES GENERALES
========================================================= */

:root {
    --producto-azul: #0d5bd7;
    --producto-azul-claro: #2878e8;
    --producto-azul-oscuro: #082c6c;
    --producto-azul-noche: #061a3d;

    --producto-fondo: #f4f7fc;
    --producto-blanco: #ffffff;

    --producto-texto: #172b4d;
    --producto-texto-suave: #40516b;
    --producto-texto-secundario: #64748b;

    --producto-borde: #dce4ef;

    --producto-verde: #13834e;
    --producto-verde-fondo: #eaf8ef;

    --producto-rojo: #b42332;
    --producto-rojo-fondo: #fff0f0;

    --producto-sombra: 0 5px 20px rgba(8, 44, 108, 0.07);
    --producto-sombra-hover: 0 12px 28px rgba(13, 91, 215, 0.15);

    --producto-radio: 15px;
}

/* =========================================================
   2. CONFIGURACIÓN GENERAL
========================================================= */

body {
    color: var(--producto-texto);
    background: var(--producto-fondo);
}

.productos-intro,
.productos-filtros,
.productos-resultados-info,
.productos-listado,
.productos-paginacion {
    width: min(calc(100% - 40px), 1320px);
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
}

.productos-intro,
.productos-filtros,
.productos-resultados-info,
.productos-listado,
.productos-paginacion,
.producto-detalle-contenedor {
    box-sizing: border-box;
}

/* =========================================================
   3. ENCABEZADO DEL CATÁLOGO
========================================================= */

.productos-intro {
    margin-top: 0;
    margin-bottom: 24px;
    padding: 32px 24px;

    color: #ffffff;
    text-align: center;

    background: linear-gradient(
        135deg,
        var(--producto-azul-oscuro),
        var(--producto-azul)
    );

    border-radius: 16px;

    box-shadow: 0 8px 22px rgba(13, 91, 215, 0.17);
}

.productos-titulo,
.productos-intro h1 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.3px;

    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.productos-titulo::after {
    display: block;

    width: 65px;
    height: 4px;

    margin: 12px auto 0;

    content: "";

    background: #ffffff;
    border-radius: 10px;
}

.productos-descripcion,
.productos-intro p {
    max-width: 720px;

    margin: 0 auto;

    color: #ffffff;

    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.7;

    opacity: 0.96;
}

/* =========================================================
   4. PANEL DE BÚSQUEDA Y FILTROS
========================================================= */

.productos-filtros {
    margin-bottom: 20px;
    padding: 21px;

    background: var(--producto-blanco);

    border: 1px solid var(--producto-borde);
    border-radius: 15px;

    box-shadow: var(--producto-sombra);
}

.productos-filtros-form {
    display: grid;

    grid-template-columns:
        minmax(250px, 2fr)
        minmax(190px, 1fr)
        145px;

    align-items: end;
    gap: 16px;
}

.productos-busqueda,
.productos-categoria,
.productos-filtro-boton {
    min-width: 0;
}

.productos-filtros .form-label {
    display: block;

    margin-bottom: 7px;

    color: var(--producto-azul-oscuro);

    font-size: 0.88rem;
    font-weight: 800;
}

/* =========================================================
   5. BUSCADOR
========================================================= */

.productos-busqueda-grupo {
    position: relative;

    display: flex;

    width: 100%;
    min-width: 0;

    align-items: center;
    gap: 8px;
}

.productos-busqueda-grupo .form-control {
    flex: 1;
    min-width: 0;
    min-height: 46px;

    padding: 10px 48px 10px 13px;

    color: var(--producto-texto);

    background: #ffffff;

    border: 1px solid #cbd7e6;
    border-radius: 10px;

    font-size: 0.91rem;
    font-weight: 500;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.productos-busqueda-grupo .form-control::placeholder {
    color: #68788e;
    opacity: 1;
}

.productos-busqueda-grupo .form-control:focus {
    border-color: var(--producto-azul);

    box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.12);

    outline: none;
}

/* Lupa dentro del campo */

.productos-busqueda-icono {
    position: absolute;

    top: 50%;
    right: 15px;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--producto-azul);

    font-size: 17px;

    transform: translateY(-50%);

    pointer-events: none;
}

/* Botón buscar */

.productos-boton-buscar {
    flex-shrink: 0;

    min-height: 46px;
    padding: 10px 15px;

    border-radius: 9px;

    font-size: 0.88rem;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   6. SELECTOR DE CATEGORÍAS
========================================================= */

.productos-categoria .form-select {
    width: 100%;
    min-width: 0;
    min-height: 46px;

    padding: 10px 36px 10px 12px;

    color: var(--producto-texto);

    background-color: #ffffff;

    border: 1px solid #cbd7e6;
    border-radius: 10px;

    font-size: 0.91rem;
    font-weight: 600;

    box-shadow: none;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.productos-categoria .form-select:focus {
    border-color: var(--producto-azul);

    box-shadow: 0 0 0 3px rgba(13, 91, 215, 0.12);
}

/* Botón filtrar */

.productos-filtro-boton .btn {
    width: 100%;
    min-height: 46px;

    border-radius: 9px;

    font-size: 0.88rem;
    font-weight: 800;
}

/* Botones principales */

.productos-filtros .btn-primary {
    color: #ffffff;

    background: var(--producto-azul);
    border-color: var(--producto-azul);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.productos-filtros .btn-primary:hover {
    background: var(--producto-azul-oscuro);
    border-color: var(--producto-azul-oscuro);
}

/* Limpiar filtros */

.productos-limpiar {
    display: flex;

    justify-content: flex-end;

    margin-top: 13px;
}

.productos-limpiar .btn {
    padding: 8px 14px;

    color: var(--producto-azul-oscuro);

    background: #f0f5fd;

    border: 1px solid #d6e3f5;
    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 700;
}

.productos-limpiar .btn:hover {
    color: #ffffff;
    background: var(--producto-azul);
    border-color: var(--producto-azul);
}

/* =========================================================
   7. INFORMACIÓN DE RESULTADOS
========================================================= */

.productos-resultados-info {
    margin-bottom: 18px;
}

.productos-resultados-info p {
    margin: 0;
    padding: 12px 16px;

    color: #263750;

    background: #eaf2ff;

    border-left: 4px solid var(--producto-azul);
    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.6;
}

.productos-resultados-info strong {
    color: var(--producto-azul-oscuro);
    font-weight: 900;
}

/* =========================================================
   8. CUADRÍCULA DE PRODUCTOS
========================================================= */

.productos-listado {
    padding-bottom: 8px;
}

.productos-grid {
    display: flex;
    flex-wrap: wrap;

    margin-right: -12px;
    margin-left: -12px;
}

.productos-grid > [class*="col-"] {
    display: flex;

    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;

    min-width: 0;

    padding-right: 12px;
    padding-left: 12px;

    margin-bottom: 25px !important;
}

/* =========================================================
   9. TARJETAS DE PRODUCTOS
========================================================= */

.producto-card {
    display: flex;

    width: 100%;
    min-width: 0;

    flex-direction: column;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--producto-borde) !important;
    border-radius: 15px !important;

    box-shadow: var(--producto-sombra) !important;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.producto-card-clicable {
    cursor: pointer;
}

.producto-card:hover {
    transform: translateY(-4px);

    border-color: #bcd2f4 !important;

    box-shadow: var(--producto-sombra-hover) !important;
}

.producto-card:focus-visible {
    outline: 3px solid rgba(13, 91, 215, 0.5);
    outline-offset: 3px;
}

/* =========================================================
   10. IMÁGENES DEL CATÁLOGO
========================================================= */

.producto-imagen {
    display: block;

    width: 100%;
    height: 215px;

    padding: 15px;

    background: #ffffff;

    border-bottom: 1px solid #edf1f6;

    object-fit: contain;

    transition: transform 0.25s ease;
}

.producto-card:hover .producto-imagen {
    transform: scale(1.025);
}

/* Producto sin imagen */

.producto-sin-imagen {
    display: flex;

    width: 100%;
    height: 215px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 9px;

    color: #74869d;

    background: #f0f4f9;
}

.producto-sin-imagen i {
    font-size: 2.5rem;
}

.producto-sin-imagen span {
    font-size: 0.85rem;
    font-weight: 700;
}

/* =========================================================
   11. CONTENIDO DE LAS TARJETAS
========================================================= */

.producto-body {
    display: flex;

    flex: 1;

    min-width: 0;

    flex-direction: column;
    align-items: stretch;

    padding: 18px !important;
}

/* Categoría */

.producto-categoria {
    display: inline-flex;

    align-self: flex-start;

    max-width: 100%;

    margin-bottom: 10px;
    padding: 5px 9px;

    overflow: hidden;

    color: var(--producto-azul-oscuro);

    background: #eaf2ff;

    border-radius: 7px;

    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Nombre */

.producto-nombre {
    display: -webkit-box;

    min-height: 2.8em;

    margin: 0 0 9px;

    overflow: hidden;

    color: var(--producto-azul-noche);

    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.4;

    overflow-wrap: anywhere;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Descripción */

.producto-descripcion {
    display: -webkit-box;

    min-height: 4.5em;

    margin-bottom: 13px;

    overflow: hidden;

    color: var(--producto-texto-suave);

    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.6;

    overflow-wrap: anywhere;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* Precio */

.producto-precio {
    width: 100%;

    margin: auto 0 11px !important;
    padding-top: 12px;

    color: #087443 !important;

    border-top: 1px solid #edf1f6;

    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.35;

    text-align: center;
}

/* Existencias */

.producto-existencia {
    margin: 0 0 13px;

    color: var(--producto-texto-suave);

    font-size: 0.82rem;
    font-weight: 600;

    text-align: center;
}

.producto-existencia strong {
    color: var(--producto-texto);
    font-weight: 850;
}

/* =========================================================
   12. BOTÓN DEL CARRITO
========================================================= */

.producto-boton {
    display: inline-flex;

    width: 100%;
    min-height: 43px;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: auto;
    padding: 9px 11px;

    color: #ffffff;

    border: none;
    border-radius: 9px;

    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.producto-boton.btn-success {
    color: #ffffff;
    background: var(--producto-verde);
}

.producto-boton.btn-success:hover {
    color: #ffffff;
    background: #0d7043;

    transform: translateY(-1px);
}

.producto-boton-agotado {
    color: #7a252d !important;

    background: var(--producto-rojo-fondo) !important;

    cursor: not-allowed;
    opacity: 1;
}

/* =========================================================
   13. SIN RESULTADOS
========================================================= */

.productos-sin-resultados {
    max-width: 700px;

    margin: 15px auto 30px;
    padding: 35px 25px;

    background: #ffffff;

    border: 1px solid var(--producto-borde);
    border-radius: 16px;

    box-shadow: var(--producto-sombra);

    text-align: center;
}

.productos-sin-resultados-icono {
    display: flex;

    width: 70px;
    height: 70px;

    align-items: center;
    justify-content: center;

    margin: 0 auto 16px;

    color: var(--producto-azul);

    background: #eaf2ff;

    border-radius: 50%;
}

.productos-sin-resultados-icono i {
    font-size: 1.9rem;
}

.productos-sin-resultados h3 {
    margin-bottom: 12px;

    color: var(--producto-azul-oscuro);

    font-size: 1.35rem;
    font-weight: 900;
}

.productos-sin-resultados p {
    margin-bottom: 10px;

    color: var(--producto-texto-suave);

    font-size: 0.93rem;
    line-height: 1.7;
}

.productos-sin-resultados .btn {
    margin-top: 9px;
    padding: 10px 18px;

    border-radius: 9px;

    font-weight: 800;
}

/* =========================================================
   14. PAGINACIÓN
========================================================= */

.productos-paginacion {
    padding-top: 12px;
    padding-bottom: 30px;
}

.productos-paginacion .pagination {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 6px;

    margin-bottom: 0;
}

.productos-paginacion .page-link {
    display: flex;

    min-width: 40px;
    min-height: 40px;

    align-items: center;
    justify-content: center;

    padding: 8px 12px;

    color: var(--producto-azul-oscuro);

    background: #ffffff;

    border: 1px solid var(--producto-borde);
    border-radius: 8px !important;

    font-size: 0.87rem;
    font-weight: 750;
}

.productos-paginacion .page-link:hover {
    color: var(--producto-azul);

    background: #eaf2ff;

    border-color: var(--producto-azul);
}

.productos-paginacion .page-item.active .page-link {
    color: #ffffff;

    background: var(--producto-azul);

    border-color: var(--producto-azul);
}

.productos-paginacion .page-item.disabled .page-link {
    color: #718096;

    background: #f0f3f8;
}

/* =========================================================
   15. DETALLE DEL PRODUCTO
========================================================= */

/* Contenedor general */

.producto-detalle-contenedor {
    min-height: 65vh;

    padding: 35px 0 60px;

    color: var(--producto-texto);

    background:
        radial-gradient(
            circle at 5% 0%,
            rgba(40, 120, 232, 0.07),
            transparent 28%
        ),
        var(--producto-fondo);
}

.producto-detalle-contenedor .container {
    max-width: 1240px;
}

/* =========================================================
   16. MIGAS DE NAVEGACIÓN
========================================================= */

.producto-migas {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 10px;

    margin-bottom: 24px;

    color: var(--producto-texto-secundario);

    font-size: 13px;
    font-weight: 600;
}

.producto-migas a {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0a4db5;

    font-weight: 800;

    text-decoration: none;

    transition: color 0.2s ease;
}

.producto-migas a:hover {
    color: var(--producto-azul-oscuro);
}

.producto-migas .separador {
    color: #718096;
    font-size: 10px;
}

.producto-migas > span {
    max-width: 350px;

    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   17. TARJETA PRINCIPAL DEL DETALLE
========================================================= */

.producto-detalle-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid rgba(220, 228, 239, 0.95);
    border-radius: 22px;

    box-shadow: 0 14px 45px rgba(8, 44, 108, 0.09);

    animation: productoEntrada 0.4s ease both;
}

.producto-detalle-card > .row {
    align-items: stretch;
}

/* =========================================================
   18. IMAGEN DEL DETALLE
========================================================= */

.producto-detalle-imagen-contenedor {
    position: relative;

    display: flex;

    min-width: 0;
    min-height: 520px;
    height: 100%;

    align-items: center;
    justify-content: center;

    padding: 45px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            #ffffff 0%,
            #f8faff 48%,
            #eaf1fb 100%
        );

    border-right: 1px solid var(--producto-borde);
}

.producto-detalle-imagen-contenedor::before,
.producto-detalle-imagen-contenedor::after {
    position: absolute;

    content: "";

    border: 1px solid rgba(13, 91, 215, 0.07);

    border-radius: 50%;

    pointer-events: none;
}

.producto-detalle-imagen-contenedor::before {
    width: 300px;
    height: 300px;
}

.producto-detalle-imagen-contenedor::after {
    width: 230px;
    height: 230px;
}

/* Etiqueta */

.producto-imagen-etiqueta {
    position: absolute;

    z-index: 2;

    top: 22px;
    left: 22px;

    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 10px 14px;

    color: var(--producto-azul-oscuro);

    background: rgba(255, 255, 255, 0.95);

    border: 1px solid rgba(13, 91, 215, 0.12);
    border-radius: 50px;

    box-shadow: 0 4px 15px rgba(8, 44, 108, 0.05);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.producto-imagen-etiqueta i {
    color: var(--producto-azul);
    font-size: 13px;
}

/* Imagen */

.producto-detalle-imagen {
    position: relative;

    z-index: 1;

    display: block;

    width: 100%;
    max-width: 440px;
    max-height: 470px;

    object-fit: contain;

    filter: drop-shadow(0 15px 18px rgba(8, 44, 108, 0.08));

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.producto-detalle-imagen-contenedor:hover .producto-detalle-imagen {
    transform: scale(1.035);

    filter: drop-shadow(0 19px 23px rgba(8, 44, 108, 0.12));
}

/* Sin imagen */

.producto-detalle-sin-imagen {
    position: relative;

    z-index: 1;

    max-width: 320px;

    padding: 30px 15px;

    text-align: center;
}

.producto-sin-imagen-icono {
    display: flex;

    width: 100px;
    height: 100px;

    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    color: var(--producto-azul);

    background: #ffffff;

    border: 1px solid var(--producto-borde);
    border-radius: 25px;

    box-shadow: var(--producto-sombra);
}

.producto-sin-imagen-icono i {
    font-size: 39px;
}

.producto-detalle-sin-imagen h2 {
    margin-bottom: 9px;

    color: var(--producto-azul-oscuro);

    font-size: 19px;
    font-weight: 900;
}

.producto-detalle-sin-imagen p {
    margin: 0;

    color: var(--producto-texto-suave);

    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   19. CUERPO DEL DETALLE
========================================================= */

.producto-detalle-body {
    display: flex;

    min-width: 0;
    height: 100%;

    flex-direction: column;

    padding: 42px 38px;
}

/* Categoría */

.producto-detalle-categoria {
    display: inline-flex;

    align-items: center;
    align-self: flex-start;

    gap: 8px;

    max-width: 100%;

    padding: 9px 14px;

    color: #0849a5;

    background: #edf4ff;

    border: 1px solid #dbeafe;
    border-radius: 50px;

    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.producto-detalle-categoria i {
    font-size: 12px;
}

/* Nombre */

.producto-detalle-nombre {
    margin: 20px 0 15px;

    color: var(--producto-azul-noche);

    font-size: clamp(27px, 3vw, 37px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.7px;

    overflow-wrap: anywhere;
}

/* Acento */

.producto-detalle-acento {
    width: 62px;
    height: 4px;

    margin-bottom: 27px;

    background: linear-gradient(
        90deg,
        var(--producto-azul),
        var(--producto-azul-claro)
    );

    border-radius: 10px;
}

/* =========================================================
   20. DESCRIPCIÓN DEL DETALLE
========================================================= */

.producto-descripcion-bloque {
    margin-bottom: 24px;
}

.producto-subtitulo {
    display: flex;

    align-items: center;
    gap: 9px;

    margin-bottom: 12px;

    color: var(--producto-azul-oscuro);

    font-size: 15px;
    font-weight: 900;
}

.producto-subtitulo i {
    color: var(--producto-azul);
    font-size: 14px;
}

.producto-detalle-descripcion {
    color: #263750;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.85;

    overflow-wrap: anywhere;

    text-align: left;
}

.producto-descripcion-vacia {
    margin: 0;

    color: var(--producto-texto-suave);

    font-weight: 500;
    font-style: italic;
}

/* =========================================================
   21. PANEL DEL PRECIO
========================================================= */

.producto-precio-panel {
    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 21px;
    padding: 20px 22px;

    background: linear-gradient(
        135deg,
        #f1f6ff,
        #f8faff
    );

    border: 1px solid #dce8fb;
    border-radius: 16px;
}

.producto-precio-etiqueta {
    display: flex;

    align-items: center;
    gap: 8px;

    color: #40516b;

    font-size: 12px;
    font-weight: 850;
}

.producto-precio-etiqueta i {
    color: var(--producto-azul);
}

.producto-detalle-precio {
    color: var(--producto-azul-oscuro);

    font-size: clamp(32px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.2;

    letter-spacing: -1px;

    overflow-wrap: anywhere;
}

.producto-moneda {
    margin-right: 3px;

    color: var(--producto-azul);

    font-weight: 900;
}

.producto-precio-nota {
    display: flex;

    align-items: center;
    gap: 7px;

    color: #53657d;

    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
}

.producto-precio-nota i {
    color: var(--producto-azul);
}

/* =========================================================
   22. EXISTENCIAS
========================================================= */

.producto-detalle-existencia {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 23px;
    padding: 15px 16px;

    background: #ffffff;

    border: 1px solid var(--producto-borde);
    border-radius: 14px;
}

.producto-stock-icono {
    display: flex;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border-radius: 12px;
}

.producto-stock-icono i {
    font-size: 17px;
}

.producto-stock-icono.stock-disponible {
    color: var(--producto-verde);
    background: var(--producto-verde-fondo);
}

.producto-stock-icono.stock-agotado {
    color: var(--producto-rojo);
    background: var(--producto-rojo-fondo);
}

.producto-stock-informacion {
    display: flex;

    flex: 1;
    min-width: 0;

    flex-direction: column;

    gap: 4px;
}

.producto-stock-informacion strong {
    color: var(--producto-texto);

    font-size: 14px;
    font-weight: 900;
}

.producto-stock-informacion span {
    color: var(--producto-texto-suave);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.producto-stock-indicador {
    flex-shrink: 0;

    width: 9px;
    height: 9px;

    border-radius: 50%;
}

.indicador-disponible {
    background: #22a05a;

    box-shadow: 0 0 0 4px rgba(34, 160, 90, 0.1);
}

.indicador-agotado {
    background: #dc3545;

    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* =========================================================
   23. BOTONES DEL DETALLE
========================================================= */

.producto-detalle-acciones {
    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-bottom: 27px;
}

.btn-producto {
    position: relative;

    display: inline-flex;

    width: 100%;
    min-height: 53px;

    align-items: center;
    justify-content: center;

    gap: 11px;

    padding: 14px 18px;

    border: 1px solid transparent;
    border-radius: 12px;

    font-family: inherit;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-producto:focus-visible {
    outline: 3px solid rgba(40, 120, 232, 0.3);
    outline-offset: 3px;
}

.btn-producto-principal {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--producto-azul),
        var(--producto-azul-claro)
    );

    box-shadow: 0 8px 18px rgba(13, 91, 215, 0.19);
}

.btn-producto-principal:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        var(--producto-azul-oscuro),
        var(--producto-azul)
    );

    box-shadow: 0 11px 24px rgba(13, 91, 215, 0.23);

    transform: translateY(-2px);
}

.btn-producto-principal > i:first-child {
    font-size: 16px;
}

.btn-producto-flecha {
    margin-left: auto;

    font-size: 13px;

    transition: transform 0.2s ease;
}

.btn-producto-principal:hover .btn-producto-flecha {
    transform: translateX(4px);
}

.btn-producto-secundario {
    color: var(--producto-azul-oscuro);

    background: #ffffff;

    border-color: #d6e0ee;
}

.btn-producto-secundario:hover {
    color: var(--producto-azul);

    background: #f1f6ff;

    border-color: #b9d2fa;

    transform: translateY(-1px);
}

.btn-producto-agotado,
.btn-producto-agotado:disabled {
    color: #7a252d;

    background: var(--producto-rojo-fondo);

    border-color: #f3d2d5;

    cursor: not-allowed;
    opacity: 1;
}

/* =========================================================
   24. INFORMACIÓN ADICIONAL
========================================================= */

.producto-detalle-info {
    padding-top: 22px;

    border-top: 1px solid var(--producto-borde);
}

.producto-detalle-info h2 {
    display: flex;

    align-items: center;
    gap: 10px;

    margin-bottom: 16px;

    color: var(--producto-azul-oscuro);

    font-size: 15px;
    font-weight: 900;
}

.producto-detalle-info h2 i {
    color: var(--producto-azul);
}

.producto-info-fila {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 12px 0;

    color: #263750;

    border-bottom: 1px solid #eef2f7;

    font-size: 13px;
}

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

.producto-info-etiqueta {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    color: var(--producto-texto-suave);

    font-weight: 700;
}

.producto-info-etiqueta i {
    width: 15px;

    color: var(--producto-azul);

    text-align: center;
}

.producto-info-fila strong {
    color: var(--producto-texto);

    font-weight: 850;
    text-align: right;

    overflow-wrap: anywhere;
}

.producto-info-fila .texto-disponible {
    color: var(--producto-verde);
    font-weight: 850;
}

.producto-info-fila .texto-agotado {
    color: var(--producto-rojo);
    font-weight: 850;
}

/* =========================================================
   25. MENSAJE DE CONFIANZA
========================================================= */

.producto-detalle-confianza {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin-top: 24px;
    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--producto-borde);
    border-radius: 16px;

    box-shadow: 0 5px 18px rgba(8, 44, 108, 0.035);
}

.producto-confianza-icono {
    display: flex;

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    align-items: center;
    justify-content: center;

    color: var(--producto-azul);

    background: #edf4ff;

    border-radius: 14px;
}

.producto-confianza-icono i {
    font-size: 20px;
}

.producto-detalle-confianza strong {
    display: block;

    margin-bottom: 4px;

    color: var(--producto-azul-oscuro);

    font-size: 14px;
    font-weight: 900;
}

.producto-detalle-confianza p {
    margin: 0;

    color: var(--producto-texto-suave);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
}

/* =========================================================
   26. ANIMACIÓN
========================================================= */

@keyframes productoEntrada {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   27. TABLET
========================================================= */

@media (max-width: 991.98px) {

    /* Catálogo */

    .productos-intro {
        padding: 27px 20px;
    }

    .productos-filtros {
        padding: 18px;
    }

    .productos-filtros-form {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(190px, 0.8fr);
    }

    .productos-filtro-boton {
        grid-column: 1 / -1;
    }

    .productos-filtro-boton .form-label {
        display: none;
    }

    .productos-filtro-boton .btn {
        width: 100%;
    }

    /* Dos productos por fila */

    .productos-grid > [class*="col-"] {
        flex-basis: 50%;
        width: 50%;
        max-width: 50%;
    }

    .producto-imagen {
        height: 190px;
    }

    .producto-body {
        padding: 15px !important;
    }

    /* Detalle */

    .producto-detalle-contenedor {
        padding: 28px 0 45px;
    }

    .producto-detalle-imagen-contenedor {
        min-height: 390px;

        padding: 35px;

        border-right: none;
        border-bottom: 1px solid var(--producto-borde);
    }

    .producto-detalle-imagen {
        max-height: 350px;
    }

    .producto-detalle-body {
        padding: 32px;
    }

    .producto-detalle-nombre {
        font-size: 31px;
    }
}

/* =========================================================
   28. CELULARES
========================================================= */

@media (max-width: 575.98px) {

    /* Ancho general */

    .productos-intro,
    .productos-filtros,
    .productos-resultados-info,
    .productos-listado,
    .productos-paginacion {
        width: calc(100% - 22px);
    }

    /* Encabezado */

    .productos-intro {
        margin-bottom: 16px;
        padding: 23px 15px;

        border-radius: 13px;
    }

    .productos-titulo,
    .productos-intro h1 {
        font-size: 1.65rem;
    }

    .productos-titulo::after {
        width: 52px;
        height: 3px;
        margin-top: 9px;
    }

    .productos-descripcion,
    .productos-intro p {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    /* Filtros */

    .productos-filtros {
        margin-bottom: 14px;
        padding: 13px;

        border-radius: 12px;
    }

    .productos-filtros-form {
        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }

    .productos-busqueda,
    .productos-categoria {
        width: 100%;
        min-width: 0;
    }

    .productos-filtros .form-label {
        margin-bottom: 5px;
        font-size: 0.81rem;
    }

    /* Buscador */

    .productos-busqueda-grupo {
        display: block;
        width: 100%;
    }

    .productos-busqueda-grupo .form-control {
        width: 100%;
        min-height: 44px;

        padding: 9px 44px 9px 12px;

        font-size: 0.85rem;
    }

    .productos-busqueda-icono {
        right: 13px;
        font-size: 16px;
    }

    .productos-boton-buscar {
        display: none !important;
    }

    /* Categoría */

    .productos-categoria .form-select {
        width: 100%;
        min-height: 44px;

        padding-top: 8px;
        padding-bottom: 8px;

        font-size: 0.85rem;
    }

    .productos-filtro-boton {
        display: none !important;
    }

    /* Limpiar */

    .productos-limpiar {
        justify-content: center;
        margin-top: 9px;
    }

    .productos-limpiar .btn {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    /* Resultados */

    .productos-resultados-info {
        margin-bottom: 12px;
    }

    .productos-resultados-info p {
        padding: 9px 11px;
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* Cuadrícula */

    .productos-grid {
        margin-right: -5px;
        margin-left: -5px;
    }

    .productos-grid > [class*="col-"] {
        flex-basis: 50%;
        width: 50%;
        max-width: 50%;

        padding-right: 5px;
        padding-left: 5px;

        margin-bottom: 13px !important;
    }

    /* Tarjetas */

    .producto-card {
        border-radius: 11px !important;
    }

    .producto-imagen,
    .producto-sin-imagen {
        height: 137px;
        padding: 8px;
    }

    .producto-body {
        padding: 10px !important;
    }

    .producto-categoria {
        margin-bottom: 7px;
        padding: 4px 6px;

        font-size: 0.64rem;
    }

    .producto-nombre {
        min-height: 2.7em;

        margin-bottom: 7px;

        font-size: 0.83rem;
        line-height: 1.35;
    }

    .producto-descripcion {
        min-height: 3.6em;

        margin-bottom: 8px;

        font-size: 0.73rem;
        line-height: 1.5;
    }

    .producto-precio {
        margin-bottom: 8px !important;
        padding-top: 8px;

        font-size: 1.02rem;
    }

    .producto-existencia {
        margin-bottom: 9px;

        font-size: 0.7rem;
    }

    .producto-boton {
        min-height: 37px;
        padding: 7px 4px;

        gap: 5px;

        font-size: 0.69rem;
        line-height: 1.25;
    }

    /* Sin resultados */

    .productos-sin-resultados {
        padding: 25px 15px;
        border-radius: 13px;
    }

    .productos-sin-resultados-icono {
        width: 58px;
        height: 58px;
    }

    .productos-sin-resultados h3 {
        font-size: 1.15rem;
    }

    .productos-sin-resultados p {
        font-size: 0.84rem;
    }

    /* Paginación */

    .productos-paginacion {
        padding-top: 8px;
        padding-bottom: 22px;
    }

    .productos-paginacion .pagination {
        gap: 4px;
    }

    .productos-paginacion .page-link {
        min-width: 34px;
        min-height: 35px;

        padding: 6px 8px;

        font-size: 0.78rem;
    }

    /* Detalle */

    .producto-detalle-contenedor {
        padding: 19px 0 32px;
    }

    .producto-detalle-contenedor .container {
        padding-right: 13px;
        padding-left: 13px;
    }

    .producto-migas {
        gap: 6px;
        margin-bottom: 15px;

        font-size: 10px;
    }

    .producto-migas > span {
        max-width: 125px;
    }

    .producto-detalle-card {
        border-radius: 16px;
    }

    .producto-detalle-imagen-contenedor {
        min-height: 285px;

        padding: 42px 22px 24px;
    }

    .producto-detalle-imagen-contenedor::before {
        width: 230px;
        height: 230px;
    }

    .producto-detalle-imagen-contenedor::after {
        width: 175px;
        height: 175px;
    }

    .producto-detalle-imagen {
        max-height: 255px;
    }

    .producto-imagen-etiqueta {
        top: 12px;
        left: 12px;

        padding: 7px 9px;

        font-size: 8px;
    }

    .producto-detalle-body {
        padding: 22px 17px;
    }

    .producto-detalle-categoria {
        padding: 7px 11px;
        font-size: 10px;
    }

    .producto-detalle-nombre {
        margin: 15px 0 12px;

        font-size: 25px;
        line-height: 1.25;
        letter-spacing: -0.4px;
    }

    .producto-detalle-acento {
        width: 48px;
        height: 3px;

        margin-bottom: 19px;
    }

    /* Descripción */

    .producto-descripcion-bloque {
        margin-bottom: 19px;
    }

    .producto-subtitulo {
        margin-bottom: 9px;
        font-size: 14px;
    }

    .producto-detalle-descripcion {
        font-size: 13px;
        line-height: 1.75;
    }

    /* Precio */

    .producto-precio-panel {
        gap: 7px;

        margin-bottom: 16px;
        padding: 15px;

        border-radius: 13px;
    }

    .producto-precio-etiqueta {
        font-size: 11px;
    }

    .producto-detalle-precio {
        font-size: 31px;
    }

    .producto-precio-nota {
        font-size: 10px;
    }

    /* Existencias */

    .producto-detalle-existencia {
        gap: 10px;

        margin-bottom: 18px;
        padding: 11px;

        border-radius: 12px;
    }

    .producto-stock-icono {
        width: 36px;
        height: 36px;
    }

    .producto-stock-informacion strong {
        font-size: 12px;
    }

    .producto-stock-informacion span {
        font-size: 10px;
    }

    /* Acciones */

    .producto-detalle-acciones {
        gap: 9px;
        margin-bottom: 22px;
    }

    .btn-producto {
        min-height: 47px;
        padding: 11px;

        font-size: 12px;
    }

    /* Información adicional */

    .producto-detalle-info {
        padding-top: 18px;
    }

    .producto-detalle-info h2 {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .producto-info-fila {
        align-items: flex-start;
        gap: 10px;

        padding: 10px 0;

        font-size: 11px;
    }

    .producto-info-etiqueta {
        gap: 6px;
    }

    .producto-info-fila strong {
        max-width: 55%;
        font-size: 11px;
    }

    /* Confianza */

    .producto-detalle-confianza {
        justify-content: flex-start;

        gap: 11px;

        margin-top: 16px;
        padding: 14px;

        border-radius: 13px;
    }

    .producto-confianza-icono {
        width: 39px;
        height: 39px;

        border-radius: 11px;
    }

    .producto-confianza-icono i {
        font-size: 17px;
    }

    .producto-detalle-confianza strong {
        font-size: 12px;
    }

    .producto-detalle-confianza p {
        font-size: 11px;
        line-height: 1.5;
    }
}

/* =========================================================
   29. CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 360px) {

    .productos-intro,
    .productos-filtros,
    .productos-resultados-info,
    .productos-listado,
    .productos-paginacion {
        width: calc(100% - 16px);
    }

    .productos-grid {
        margin-right: -4px;
        margin-left: -4px;
    }

    .productos-grid > [class*="col-"] {
        padding-right: 4px;
        padding-left: 4px;
    }

    .producto-imagen,
    .producto-sin-imagen {
        height: 120px;
    }

    .producto-body {
        padding: 8px !important;
    }

    .producto-nombre {
        font-size: 0.77rem;
    }

    .producto-descripcion {
        font-size: 0.68rem;
    }

    .producto-precio {
        font-size: 0.94rem;
    }

    .producto-boton {
        font-size: 0.64rem;
    }

    .producto-detalle-body {
        padding: 19px 14px;
    }

    .producto-detalle-nombre {
        font-size: 22px;
    }

    .producto-detalle-precio {
        font-size: 28px;
    }
}

/* =========================================================
   30. ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .producto-card,
    .producto-imagen,
    .producto-boton,
    .producto-detalle-card,
    .producto-detalle-imagen,
    .btn-producto,
    .btn-producto-flecha {
        animation: none !important;
        transition: none !important;
    }

    .producto-card:hover,
    .producto-card:hover .producto-imagen,
    .producto-boton.btn-success:hover,
    .producto-detalle-imagen-contenedor:hover .producto-detalle-imagen,
    .btn-producto-principal:hover {
        transform: none !important;
    }
}



/* =========================================================
   AJUSTE DEL ICONO DEL BUSCADOR
========================================================= */

/* Laptop y escritorio: lupa dentro del botón */
@media (min-width: 576px) {

    .productos-busqueda-icono {
        display: none !important;
    }

    .productos-busqueda-grupo .form-control {
        padding-right: 13px;
    }

    .productos-boton-buscar {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .productos-boton-buscar::before {
        content: "\f002";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-right: 8px;
    }
}

/* Celular: lupa dentro del campo */
@media (max-width: 575.98px) {

    .productos-busqueda-icono {
        display: flex !important;
    }

    .productos-boton-buscar {
        display: none !important;
    }
}
