.product-card .product-action {
    position: absolute;
    width: 100%;
    bottom: -60px;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
}

.product-card:hover .product-action {
    bottom: 0;
    opacity: 1;
}

/* Contenedor de cantidad */
.product-action .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}

/* Botones + y - */
.product-action .quantity button {
    width: 38px;
    height: 38px;
    background-color: #001d3d;
    color: #fff;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.product-action .quantity button:hover {
    background-color: #333;
}

/* Input de cantidad */
.product-action .quantity input {
    width: 60px;
    height: 38px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1;
}

/* Quitar flechas */
.product-action .quantity input::-webkit-outer-spin-button,
.product-action .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-action .quantity input[type=number] {
    -moz-appearance: textfield;
}

/* Header compacto y alineado */
.top-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.top-header .logo a {
    display: inline-flex;
    align-items: center;
}

/* Logo */
.site-logo {
    display: block;
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Reduce padding superior */
.top-header .row.d-none.d-lg-flex {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.top-header .col-lg-6 {
    gap: 12px;
}

.top-header .input-group .form-control {
    height: 38px;
    line-height: 38px;
}

@media (min-width: 1200px) {
    .site-logo {
        height: 48px;
    }
}

/* Evitar que el slider “pegue” al header oscuro */
header.bg-dark {
    border-top: 1px solid #343a40;
}

/* Section-2 iconos */
.section-2 .icon,
.section-2 .text-primary {
    color: #0c1e7d !important;
}

/* ========================= */
/* HERO: altura = alto real  */
/* ========================= */

/* El contenedor del carrusel y los slides se ajustan al alto natural de las imágenes */
.section-1 #carouselExampleIndicators,
.section-1 #carouselExampleIndicators .carousel-inner,
.section-1 #carouselExampleIndicators .carousel-item {
    height: auto !important;
    min-height: unset !important;
    overflow: hidden;
}

/* Cada slide debe ser posicionable para el overlay/caption */
.section-1 .carousel-item {
    position: relative;
}

/* Las imágenes usan su altura real (sin recortes), ocupan ancho completo */
.section-1 .carousel-item picture,
.section-1 .carousel-item img {
    position: relative !important;
    /* ← clave: no absolute */
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    /* mantiene proporción sin cortar */
    display: block;
    margin: 0 auto;
}

/* Overlay que cubre toda el área visible del slide */
.section-1 .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

/* Texto centrado, sobre el overlay */
.section-1 .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 16px;
}

/* Legibilidad del texto */
.section-1 .carousel-caption h1,
.section-1 .carousel-caption p {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Tipografía flexible del hero */
.section-1 #carouselExampleIndicators .carousel-caption h1 {
    font-size: clamp(28px, 4vw, 56px);
}

.section-1 #carouselExampleIndicators .carousel-caption p {
    font-size: clamp(14px, 1.6vw, 18px);
}

/* Controles del carrusel */
.section-1 #carouselExampleIndicators .carousel-control-prev,
.section-1 #carouselExampleIndicators .carousel-control-next {
    width: 8%;
}

/* Sin alturas forzadas en móvil */
@media (max-width: 991.98px) {

    .section-1 #carouselExampleIndicators,
    .section-1 #carouselExampleIndicators .carousel-inner,
    .section-1 #carouselExampleIndicators .carousel-item {
        height: auto !important;
        min-height: unset !important;
    }
}

/* Utilidades opcionales de punto focal si alguna imagen necesita ajuste */
.section-1 .pos-center {
    object-position: center center !important;
}

.section-1 .pos-left {
    object-position: 20% center !important;
}

.section-1 .pos-right {
    object-position: 80% center !important;
}

.section-1 .pos-top {
    object-position: center 20% !important;
}

.section-1 .pos-bottom {
    object-position: center 80% !important;
}

/* ======== HEADER (barra azul) ======== */
header.bg-dark {
    background-color: #001d3d !important;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Navbar más compacto */
header.bg-dark .navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 36px;
}

/* Botones categorías/enlaces */
header.bg-dark .btn.btn-dark {
    background: transparent !important;
    border: none !important;
    padding: 6px 10px !important;
    line-height: 1;
    font-size: 1rem;
    font-weight: 500;
    color: #fff !important;
    transition: color 0.2s ease;
}

header.bg-dark .btn.btn-dark:hover {
    color: #ffc107 !important;
}

/* ======== ÍCONO Y TEXTO DE CARRITO ======== */
.right-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    font-weight: 500;
}

.right-nav i.fas.fa-shopping-cart {
    font-size: 16px;
    color: #ffc107;
}

/* Corrección exacta del link de carrito */
header.bg-dark .right-nav .nav-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 8px !important;
    line-height: 1;
    color: #fff !important;
}

header.bg-dark .right-nav .nav-link i {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    color: #ffc107 !important;
}

header.bg-dark .right-nav .nav-link span {
    display: block;
    transform: translateY(1px);
}

/* ======== CORRECCIÓN DE MARGEN ENTRE HEADER Y HERO ======== */
.section-1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ======== LOGO Y HEADER SUPERIOR ======== */
.top-header {
    border-bottom: 2px solid #001d3d;
}

.site-logo {
    height: 48px;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .site-logo {
        height: 42px;
    }

    header.bg-dark .navbar {
        min-height: 46px;
    }

    .right-nav a {
        font-size: 0.9rem;
    }
}

/* Títulos de sección */
.section-title h2,
.section-3 .section-title h2,
.section-4 .section-title h2 {
    font-weight: 800;
    letter-spacing: .3px;
    color: #0c1e7d;
    text-transform: uppercase;
}

.section-3,
.section-4 {
    padding-top: 16px;
    padding-bottom: 8px;
}

/* Tarjetas de ventajas */
.section-2 .box {
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.section-2 .box:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
}

/* Footer */
footer.bg-dark {
    background: #001d3d !important;
    color: #dfe6f2;
}

footer .footer-card h3 {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 12px;
    position: relative;
}

footer .footer-card h3::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: #2e6cff;
    border-radius: 2px;
    margin-top: 6px;
}

footer .footer-card ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0 0;
}

footer .footer-card a {
    color: #cfd8ff;
    text-decoration: none;
    display: inline-block;
    padding: 3px 0;
    transition: color .15s ease, transform .15s ease;
}

footer .footer-card a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

@media (max-width: 991.98px) {
    footer .footer-card {
        margin-bottom: 18px;
    }
}

.section-2 {
    margin: 40px 0 28px;
}

.section-3 {
    margin: 10px 0 18px;
}

.section-4 {
    margin: 6px 0 18px;
}

/* ===== Sticky footer ===== */
html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
    flex-shrink: 0;
}

/* ===== HERO — FIX del caption (centrado, sin fondo y legible) ===== */
.section-1 .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    /* anula el 15% de Bootstrap */
    bottom: auto;
    /* anula el 20% de Bootstrap */
    width: 100%;
    max-width: 1000px;
    /* no más de 1000px de ancho de texto */
    padding: 0 24px;
    /* aire lateral */
    text-align: center;
    z-index: 2;
}

/* quita cualquier fondo del caption y su wrapper interno */
.section-1 .carousel-caption,
.section-1 .carousel-caption * {
    background: transparent !important;
    box-shadow: none !important;
}

/* el wrapper que tienes como .p-3 no debe crear la “caja” */
.section-1 .carousel-caption .p-3 {
    padding: 0 !important;
}

/* tipografías del héroe */
.section-1 .carousel-caption h1 {
    margin: 0 0 .75rem;
    color: #fff;
    line-height: 1.15;
}

.section-1 .carousel-caption p {
    margin: 0;
    color: #fff;
}

/* botón centrado, con margen superior razonable */
.section-1 .carousel-caption .btn {
    margin-top: 1rem;
}

/* ============================= */
/* === HERO con altura real === */
/* ============================= */

.section-1 #carouselExampleIndicators,
.section-1 #carouselExampleIndicators .carousel-inner,
.section-1 #carouselExampleIndicators .carousel-item {
    height: auto;
    /* ← usa el tamaño real de la imagen */
    min-height: unset;
    overflow: hidden;
}

/* Imagen ocupa su altura natural */
.section-1 .carousel-item picture,
.section-1 .carousel-item img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Overlay uniforme sobre toda la imagen */
.section-1 .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
}

/* Caption centrado y proporcional */
.section-1 .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
}

/* Contenedor interno del texto */
.section-1 .carousel-caption .p-3 {
    padding: 0 !important;
    /* elimina padding que rompía centrado */
    margin: 0 auto !important;
    background: transparent !important;
    max-width: 90%;
}

/* Tipografía adaptable y centrada */
.section-1 .carousel-caption h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(26px, 4vw, 52px);
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.section-1 .carousel-caption p {
    color: #eee;
    font-size: clamp(14px, 1.4vw, 18px);
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Botón del hero */
.section-1 .carousel-caption a.btn {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    font-weight: 500;
    padding: 10px 28px;
    transition: all 0.25s ease;
}

.section-1 .carousel-caption a.btn:hover {
    background: #fff;
    color: #001d3d;
}

/* En móviles, mantener centrado */
@media (max-width: 768px) {
    .section-1 .carousel-caption {
        top: 55%;
        transform: translate(-50%, -50%);
        padding: 0 10px;
    }

    .section-1 .carousel-caption h1 {
        font-size: 24px;
    }

    .section-1 .carousel-caption p {
        font-size: 14px;
    }
}

/* === HERO: centrar texto a pantalla completa === */
.section-1 .carousel-item {
    position: relative;
}

.section-1 .carousel-item picture,
.section-1 .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* o 'contain' si NO quieres recorte */
    display: block;
    z-index: 0;
}

.section-1 .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1;
    pointer-events: none;
}

/* 👇 Esto es la clave: el caption ocupa TODO el slide */
.section-1 .carousel-caption {
    position: absolute !important;
    inset: 0 !important;
    /* top/right/bottom/left: 0 */
    width: 100% !important;
    height: 100% !important;
    /* para que el flex centre en toda la altura */
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 0 1.25rem;
}

/* El contenedor interno sin fondos raros y con ancho máximo cómodo */
.section-1 .carousel-caption>.p-3 {
    background: transparent !important;
    box-shadow: none !important;
    margin: 0;
    max-width: 1000px;
    width: 100%;
}

/* 1) Quitar overlay duplicado del pseudo-elemento */
.section-1 .carousel-item::after {
    content: none !important;
}

/* 2) Asegurar layering correcto */
.section-1 .carousel-item {
    position: relative;
    overflow: hidden;
}

.section-1 .carousel-item picture,
.section-1 .carousel-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.section-1 .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1;
    pointer-events: none;
}

/* 3) El caption ocupa TODO el slide */
.section-1 .carousel-caption {
    position: absolute !important;
    inset: 0 !important;
    /* top/right/bottom/left: 0 */
    width: 100% !important;
    height: 100% !important;
    z-index: 2 !important;
    display: block !important;
    /* evitamos flex aquí */
    text-align: center;
    padding: 0 !important;
    background: transparent !important;
}

/* 4) Centrar el contenido interno exactamente al centro */
.section-1 .carousel-caption>.p-3 {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 1000px;
    width: calc(100% - 32px);
    /* respiración lateral */
    background: transparent !important;
    box-shadow: none !important;
}

/* Legibilidad del texto */
.section-1 .carousel-caption h1,
.section-1 .carousel-caption p {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ===== HERO (reset Bootstrap + centrado absoluto fiable) ===== */

/* El slide es el contenedor de referencia */
.section-1 .carousel-item {
    position: relative !important;
    overflow: hidden;
}

/* La imagen mantiene su tamaño real (no recortes) */
.section-1 .carousel-item picture,
.section-1 .carousel-item img {
    position: static !important;
    /* nada de absolute aquí */
    display: block !important;
    width: 100% !important;
    height: auto !important;
    /* alto = natural de la imagen */
    object-fit: contain !important;
    /* tus 3 imágenes son iguales */
    object-position: center !important;
    z-index: 0 !important;
}

/* Usa SOLO el overlay real, desactiva el pseudo-elemento */
.section-1 .carousel-item::after {
    content: none !important;
}

.section-1 .carousel-item .hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, .45) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Limpia por completo el caption que trae Bootstrap */
.section-1 .carousel-caption {
    position: absolute !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    background: transparent !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* ocupa todo el slide */
    inset: 0 !important;
    z-index: 2 !important;
    text-align: center !important;
}

/* El wrapper que realmente centramos */
.section-1 .hero-caption .hero-center {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    max-width: 1000px !important;
    width: calc(100% - 32px) !important;
    /* respiración lateral */
}

/* Tipografías y botón */
.section-1 .hero-caption h1 {
    color: #fff !important;
    font-weight: 800;
    font-size: clamp(26px, 4vw, 52px);
    line-height: 1.2;
    margin: 0 0 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.section-1 .hero-caption p {
    color: #eee !important;
    font-size: clamp(14px, 1.4vw, 18px);
    margin: 0 0 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.section-1 .hero-caption .btn {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    padding: 10px 28px;
    transition: all .25s ease;
}

.section-1 .hero-caption .btn:hover {
    background: #fff;
    color: #001d3d;
}

/* Pequeño ajuste en móvil: un poquito más abajo */
@media (max-width:768px) {
    .section-1 .hero-caption .hero-center {
        top: 55% !important;
        transform: translate(-50%, -55%) !important;
    }
}

/* ===== HERO limpio: imagen tamaño real + overlay + texto centrado ===== */
.section-1 .carousel-item {
    position: relative;
    overflow: hidden;
}

/* La imagen respeta su tamaño y proporción: ocupe todo el ancho, alto natural */
.section-1 .hero-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    /* <- usa el alto real de la imagen */
    object-fit: contain !important;
    /* NO recorta */
    object-position: center !important;
    z-index: 0;
}

/* Overlay negro uniforme encima de la imagen */
.section-1 .hero-layer {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1;
    pointer-events: none;
}

/* Contenedor que ocupa TODO el slide y centra el contenido */
.section-1 .hero-center {
    position: absolute;
    inset: 0;
    /* top/right/bottom/left: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 0 24px;
}

/* Caja del contenido (limpia y con ancho cómodo) */
.section-1 .hero-box {
    max-width: 1000px;
    width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

/* Tipografías del hero */
.section-1 .hero-box h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(26px, 4vw, 52px);
    line-height: 1.2;
    margin: 0 0 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.section-1 .hero-box p {
    color: #eee;
    font-size: clamp(14px, 1.4vw, 18px);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.section-1 .hero-box .btn {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    padding: 10px 28px;
    transition: all .25s ease;
}

.section-1 .hero-box .btn:hover {
    background: #fff;
    color: #001d3d;
}

/* En móviles, baja un pelín el centro para mejor lectura */
@media (max-width: 768px) {
    .section-1 .hero-center {
        align-items: flex-start;
    }

    .section-1 .hero-box {
        margin-top: 10vh;
    }
}

/* ===== FIX HERO EN MÓVIL (texto y botón que se cortaban) ===== */
@media (max-width: 576px) {

    /* 1) Da más alto al slide y permite que el contenido “asome” si es más alto */
    .section-1 .carousel-item {
        min-height: 72vh;
        /* asegura espacio */
        overflow: visible;
        /* evita que se recorte el caption */
    }

    /* 2) Baja el caption y céntralo de forma segura */
    .section-1 .carousel-caption {
        inset: 0;
        /* ocupa todo el slide */
        display: flex !important;
        align-items: flex-start;
        /* empezamos arriba */
        justify-content: center;
        padding-top: 12vh;
        /* lo bajamos bajo el navbar */
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Si usas wrapper interno (.p-3, hero-box, etc.), que no meta más márgenes */
    .section-1 .carousel-caption>.p-3,
    .section-1 .hero-box {
        margin: 0 !important;
        max-width: 1000px;
        width: 100%;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* 3) Tipografías y botón un poco más compactos en móvil */
    .section-1 .carousel-caption h1,
    .section-1 .hero-box h1 {
        font-size: clamp(20px, 6.2vw, 28px);
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .section-1 .carousel-caption p,
    .section-1 .hero-box p {
        font-size: clamp(13px, 3.5vw, 16px);
        margin-bottom: 12px;
    }

    .section-1 .carousel-caption .btn,
    .section-1 .hero-box .btn {
        padding: 8px 20px;
    }
}

/* ===== FIX HERO EN MÓVIL – evita que el texto quede bajo el header ===== */
@media (max-width: 576px) {

    /* Altura realista del navbar en móvil (ajústala si cambias paddings) */
    :root {
        --nav-h: 56px;
    }

    /* El slide puede crecer y no recorta el caption */
    .section-1 .carousel-item {
        min-height: 72vh;
        overflow: visible;
    }

    /* El caption ocupa todo el slide pero lo bajamos debajo del header */
    .section-1 .carousel-caption {
        inset: 0 !important;
        display: flex !important;
        align-items: flex-start;
        /* empezamos arriba del área disponible */
        justify-content: center;
        padding-top: calc(var(--nav-h) + 10px);
        /* ← clave: despega del header */
        padding-left: 16px;
        padding-right: 16px;
        text-align: center;
    }

    /* Wrapper interno limpio y con ancho cómodo */
    .section-1 .carousel-caption>.p-3,
    .section-1 .hero-box {
        margin: 0 !important;
        max-width: 1000px;
        width: 100%;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Tipografías más compactas para que quepan sin cortar */
    .section-1 .carousel-caption h1,
    .section-1 .hero-box h1 {
        font-size: clamp(20px, 6.2vw, 28px);
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .section-1 .carousel-caption p,
    .section-1 .hero-box p {
        font-size: clamp(13px, 3.5vw, 16px);
        margin-bottom: 12px;
    }

    .section-1 .carousel-caption .btn,
    .section-1 .hero-box .btn {
        padding: 8px 20px;
    }
}

/* (Opcional) Si tu header cambia de alto en tablets, aplica el mismo patrón */
@media (min-width: 577px) and (max-width: 768px) {
    :root {
        --nav-h: 64px;
    }

    .section-1 .carousel-caption {
        padding-top: calc(var(--nav-h) + 12px);
    }
}

/* ============================ */
/* HERO: centrado en versión móvil */
/* ============================ */
@media (max-width: 768px) {
    .section-1 .carousel-caption {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        text-align: center !important;
        padding: 0 10px !important;
    }

    .section-1 .carousel-caption h1 {
        font-size: 1.4rem !important;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .section-1 .carousel-caption p {
        font-size: 0.9rem !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .section-1 .carousel-caption .btn {
        padding: 8px 22px !important;
        font-size: 0.9rem !important;
    }
}

/* ============================
   HERO: centrado duro en móvil
   ============================ */
@media (max-width: 768px) {

    /* 1) Limpia cualquier posicionamiento previo del caption */
    .section-1 #carouselExampleIndicators .carousel-inner .carousel-item .carousel-caption {
        right: auto !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
    }

    /* 2) Haz que el caption ocupe todo el slide y usa flex para centrar */
    .section-1 #carouselExampleIndicators .carousel-inner .carousel-item.active .carousel-caption {
        position: absolute !important;
        inset: 0 !important;
        /* top/right/bottom/left: 0 */
        display: flex !important;
        align-items: center !important;
        /* centra vertical */
        justify-content: center !important;
        /* centra horizontal */
        text-align: center !important;
        padding: 0 16px !important;
        z-index: 2 !important;
        background: transparent !important;
    }

    /* 3) Caja interna: ancho cómodo y sin márgenes raros */
    .section-1 #carouselExampleIndicators .carousel-inner .carousel-item.active .carousel-caption>.p-3 {
        margin: 0 !important;
        max-width: 520px !important;
        width: 100% !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* 4) Tamaños de texto y botón para que no se corten */
    .section-1 #carouselExampleIndicators .carousel-inner .carousel-item.active .carousel-caption h1 {
        font-size: 1.35rem !important;
        line-height: 1.22 !important;
        margin-bottom: 10px !important;
    }

    .section-1 #carouselExampleIndicators .carousel-inner .carousel-item.active .carousel-caption p {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        margin-bottom: 12px !important;
    }

    .section-1 #carouselExampleIndicators .carousel-inner .carousel-item.active .carousel-caption .btn {
        font-size: 0.95rem !important;
        padding: 9px 22px !important;
    }
}

/* ===== HERO NUEVO (para tu markup con hero-img / hero-layer / hero-center) ===== */

.section-1 .carousel-item {
    position: relative !important;
    overflow: hidden !important;
}

/* La imagen manda el alto: tamaño natural, sin recorte */
.section-1 .hero-img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    z-index: 0 !important;
}

/* Capa oscura encima de la imagen */
.section-1 .hero-layer {
    position: absolute !important;
    inset: 0 !important;
    /* top/right/bottom/left: 0 */
    background: rgba(0, 0, 0, .45) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Contenedor que ocupa TODO el slide y CENTRA el contenido */
.section-1 .hero-center {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    /* centra vertical */
    justify-content: center !important;
    /* centra horizontal */
    text-align: center !important;
    z-index: 2 !important;
    padding: 0 16px !important;
    background: transparent !important;
}

/* Caja del texto/botón (clickeable) */
.section-1 .hero-box {
    max-width: 1000px !important;
    width: 100% !important;
    margin: 0 auto !important;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

/* Tipografías y botón (desktop base) */
.section-1 .hero-box h1 {
    color: #fff !important;
    font-weight: 800 !important;
    font-size: clamp(28px, 4vw, 56px) !important;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35) !important;
}

.section-1 .hero-box p {
    color: #eee !important;
    font-size: clamp(14px, 1.4vw, 18px) !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35) !important;
}

.section-1 .hero-box .btn {
    border: 2px solid #fff !important;
    color: #fff !important;
    background: transparent !important;
    padding: 10px 28px !important;
    margin-top: 14px !important;
    transition: all .25s ease !important;
}

.section-1 .hero-box .btn:hover {
    background: #fff !important;
    color: #001d3d !important;
}

/* ===== Ajuste en móvil ===== */
@media (max-width: 768px) {
    .section-1 .hero-center {
        align-items: center !important;
        /* asegúrate de centrar vertical */
        justify-content: center !important;
        /* y horizontal */
    }

    .section-1 .hero-box h1 {
        font-size: clamp(22px, 6.2vw, 28px) !important;
        line-height: 1.22 !important;
        margin-bottom: 8px !important;
    }

    .section-1 .hero-box p {
        font-size: clamp(13px, 3.8vw, 16px) !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }

    .section-1 .hero-box .btn {
        font-size: 0.95rem !important;
        padding: 9px 22px !important;
    }
}

/* ===== Desactiva cualquier herencia anterior del viejo caption ===== */
.section-1 .carousel-caption {
    position: static !important;
    inset: auto !important;
    display: none !important;
}

/* ===== Header siempre por encima del hero ===== */
header.bg-dark {
    position: sticky;
    /* se queda arriba al hacer scroll */
    top: 0;
    z-index: 1050;
    /* por encima del overlay del hero */
}

/* Desktop ya te funciona; afinamos solo móvil/tablet */
@media (max-width: 991.98px) {
    .top-header {
        display: none !important;
    }

    /* ocultar barra superior en móvil */

    header.bg-dark .navbar {
        min-height: 56px;
        padding: 6px 0;
    }

    /* Logo móvil alineado a la izquierda y centrado verticalmente */
    header.bg-dark .navbar .mobile-logo {
        display: inline-flex !important;
        align-items: center !important;
        margin-right: auto;
        /* empuja el resto a la derecha */
    }

    header.bg-dark .navbar .mobile-logo .site-logo {
        height: 32px !important;
        width: auto !important;
        object-fit: contain;
    }

    /* Botón hamburguesa visible, clickeable y sin borde raro */
    header.bg-dark .navbar .menu-btn {
        order: -1;
        /* botón a la izquierda del logo */
        border: 0 !important;
        outline: 0 !important;
        padding: 4px 8px !important;
        margin-right: 8px;
        color: #fff !important;
    }

    header.bg-dark .navbar .menu-btn .fa-bars {
        font-size: 22px;
        color: #fff !important;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

    /* Carrito / Cuenta a la derecha */
    header.bg-dark .right-nav {
        margin-left: auto !important;
        gap: 8px;
    }

    header.bg-dark .right-nav .nav-link {
        padding: 0 .25rem !important;
        font-size: .90rem;
        line-height: 1;
    }

    /* Capa del collapse cuando se abre (relleno y fondo) */
    #navbarSupportedContent {
        background: #001d3d;
        padding: 10px 12px;
    }
}

/* Por si alguna regla vieja cubría el header: crea un stacking context claro */
header.bg-dark,
header.bg-dark * {
    position: relative;
}

/* ===== Mostrar solo íconos en móvil ===== */
@media (max-width: 991.98px) {

    header.bg-dark .right-nav .nav-link span,
    header.bg-dark .right-nav .nav-link::after {
        display: none !important;
        /* oculta cualquier texto o pseudo-elemento */
    }

    header.bg-dark .right-nav .nav-link {
        padding: 0 10px !important;
        font-size: 0;
        /* oculta texto colapsando el espacio */
    }

    header.bg-dark .right-nav .nav-link i {
        font-size: 20px !important;
        color: #ffc107 !important;
        /* amarillo */
        margin: 0;
    }
}

/* ===========================
   NAVBAR MÓVIL: logo centrado,
   burger a la izquierda,
   íconos a la derecha
   =========================== */
@media (max-width: 991.98px) {

    /* El navbar sirve de contenedor de posicionamiento */
    header.bg-dark .navbar {
        position: relative;
        min-height: 56px;
        /* alto cómodo en móvil */
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    /* Burger (botón toggler) a la izquierda, sin bordes raros */
    header.bg-dark .navbar .menu-btn {
        order: 0;
        border: 0 !important;
        box-shadow: none !important;
        padding: 6px 10px;
        z-index: 3;
        /* por encima del logo centrado */
    }

    header.bg-dark .navbar .menu-btn .fa-bars {
        font-size: 22px;
        color: #fff;
        line-height: 1;
    }

    /* LOGO centrado perfectamente en la barra */
    header.bg-dark .navbar .mobile-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
        /* sobre el fondo, debajo del burger/íconos */
        display: inline-flex;
        align-items: center;
    }

    header.bg-dark .navbar .mobile-logo .site-logo {
        height: 30px;
        /* ajusta si lo quieres mayor/menor */
        width: auto;
        object-fit: contain;
        display: block;
    }

    /* La zona “collapse” NO debe robar espacio cuando está vacía */
    header.bg-dark .navbar .navbar-collapse {
        flex: 0 0 auto !important;
    }

    /* Íconos a la derecha, alineados y sólo ícono (sin texto) */
    header.bg-dark .right-nav {
        margin-left: auto;
        /* empuja a la derecha */
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 3;
        /* por encima del logo */
    }

    header.bg-dark .right-nav .nav-link {
        padding: 0 6px !important;
        line-height: 1;
        font-size: 0;
        /* oculta el texto del enlace en móvil */
    }

    header.bg-dark .right-nav .nav-link i {
        font-size: 20px !important;
        /* tamaño del ícono */
        color: #ffc107 !important;
        /* amarillo de marca */
        margin: 0;
        vertical-align: middle;
    }
}

/* En desktop el logo del header oscuro no estorba */
@media (min-width: 992px) {
    header.bg-dark .mobile-logo {
        display: none;
    }
}

/* ===== Top-header: búsqueda + acciones ===== */
.top-header .topbar-tools {
    gap: 12px;
}

.top-header .top-actions .nav-link {
    padding: 4px 10px;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.top-header .top-actions .nav-link i {
    font-size: 18px;
    color: #0c1e7d;
    /* azul marca */
}

.top-header .top-actions .nav-link:hover {
    color: #0c1e7d;
}

/* El buscador que crece */
.top-header .input-group .form-control {
    height: 38px;
    line-height: 38px;
}

/* ===== Navbar oscuro (móvil): solo íconos a la derecha ===== */
@media (max-width: 991.98px) {

    /* Oculta acciones del top-header en móvil */
    .top-header .top-actions {
        display: none !important;
    }

    /* Mantén los íconos en el navbar oscuro */
    header.bg-dark .right-nav {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    header.bg-dark .right-nav .nav-link {
        padding: 0 6px !important;
        line-height: 1;
        font-size: 0;
        /* oculta texto */
    }

    header.bg-dark .right-nav .nav-link i {
        font-size: 20px !important;
        color: #ffc107 !important;
        margin: 0;
    }
}

/* En desktop, oculta la right-nav del navbar oscuro (ya están en top-header) */
@media (min-width: 992px) {
    header.bg-dark .right-nav {
        display: none !important;
    }
}

/* ======== VISIBILIDAD HEADER ======== */

/* En móviles: mostrar solo el header blanco, ocultar el azul */
@media (max-width: 991.98px) {
    header.bg-dark.desktop-only {
        display: none !important;
    }

    .top-header {
        display: block !important;
        border-bottom: 2px solid #001d3d;
    }

    .top-header .logo {
        display: flex;
        align-items: center;
    }

    .top-header .nav-link i {
        font-size: 20px;
        color: #001d3d;
    }

    .top-header .nav-link span {
        display: none !important;
    }

    .site-logo {
        height: 40px;
    }
}

/* En desktop: mantener ambos correctamente */
@media (min-width: 992px) {
    .top-header {
        border-bottom: 2px solid #001d3d;
    }

    .site-search {
        max-width: 480px;
    }
}

/* ===== Hamburguesa solo en móvil ===== */
@media (max-width: 991.98px) {
    .mobile-menu-btn {
        line-height: 1;
        color: #001d3d;
    }

    .top-header .nav-link i {
        font-size: 20px;
        color: #001d3d;
    }

    .top-header .nav-link span {
        display: none !important;
    }

    .site-logo {
        height: 40px;
    }
}

/* Desktop: buscador más corto (ya lo tenías) */
@media (min-width: 992px) {
    .site-search {
        max-width: 480px;
    }
}

/* Offcanvas look & feel opcional */
.offcanvas {
    width: 82%;
    max-width: 360px;
}

.offcanvas .list-group-item {
    padding: 12px 16px;
    font-weight: 500;
}

/* ===== Tamaños y alineación generales ===== */
.site-logo {
    height: 44px;
    object-fit: contain;
}

/* Buscador corto y cargado a la derecha en desktop */
@media (min-width: 992px) {
    .site-search {
        max-width: 460px;
    }

    /* ajusta 420–520 según gusto */
}

/* Íconos y colores coherentes */
.header-action i {
    font-size: 20px;
    color: #001d3d;
    line-height: 1;
}

.header-action {
    color: #001d3d;
    padding: 6px 8px;
}

/* Móvil: solo íconos (sin textos), logo centrado, hamburguesa visible */
@media (max-width: 991.98px) {
    .top-header .header-action span {
        display: none !important;
    }

    .mobile-menu-btn {
        color: #001d3d;
        line-height: 1;
    }

    .brand {
        order: 2;
    }

    /* centro visual */
    .mobile-menu-btn {
        order: 1;
    }

    .tools {
        order: 3;
    }

    /* íconos a la derecha */
}

/* Opcional: reduce padding vertical si quieres más compacto */
.top-header .container>.d-flex {
    gap: .5rem;
}

/* Tamaños coherentes */
.site-logo {
    height: 44px;
    object-fit: contain;
}

/* Buscador corto en desktop, cargado a la derecha */
@media (min-width: 992px) {
    .site-search {
        max-width: 460px;
    }

    /* ajusta 420–520 a gusto */
}

/* MÓVIL: solo hamburguesa + logo centrado (sin carrito/usuario en header) */
@media (max-width: 991.98px) {
    .site-logo {
        height: 34px;
    }

    /* logo más chico en móvil */
    .mobile-menu-btn {
        color: #001d3d;
        line-height: 1;
    }

    /* Fila de header: el spacer imita el ancho visual del botón para centrar el logo */
    .mobile-spacer {
        width: 28px;
    }

    /* aprox. ancho del icono hamburguesa */
}

/* Detalles de estilo */
.top-header .nav-link,
.top-header .btn {
    color: #ffffff;
}

.fas,
.title-navlink {
    color: #001d3d;
}

.top-header .nav-link i {
    font-size: 18px;
    line-height: 1;
}

.header-row {
    gap: .5rem;
}

/* ===== Category Card v2 ===== */
.cat-card2-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cat-card2 {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    border: 1px solid rgba(0, 0, 0, .06);
    min-height: 126px;
}

.cat-card2:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, .08);
    border-color: rgba(0, 0, 0, .12);
}

/* Imagen a la izquierda */
.cat2-media {
    flex: 0 0 132px;
    /* ancho fijo de la imagen */
    max-width: 132px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f5f8;
    display: grid;
    place-items: center;
}

.cat2-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorte agradable */
    aspect-ratio: 4 / 3;
    /* forma consistente */
    display: block;
}

/* Contenido a la derecha */
.cat2-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.cat2-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 800;
    color: #0c1e7d;
    /* azul de marca */
    letter-spacing: .2px;
}

/* Subcategorías */
.cat2-sublist {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0;
    margin: 2px 0 0;
    list-style: none;
}

.cat2-sublist a {
    font-size: .875rem;
    color: #2b3a67;
    text-decoration: none;
    border-bottom: 1px dashed rgba(43, 58, 103, .35);
}

.cat2-sublist a:hover {
    color: #0c1e7d;
    border-bottom-color: #0c1e7d;
}

.cat2-sublist .more {
    font-size: .84rem;
    color: #6c7aa7;
}

/* Estado vacío */
.cat2-empty {
    font-size: .86rem;
    color: #98a2b3;
}

/* Responsive */
@media (max-width: 991.98px) {
    .cat-card2 {
        gap: 12px;
        padding: 12px;
    }

    .cat2-media {
        flex-basis: 112px;
        max-width: 112px;
        border-radius: 10px;
    }

    .cat2-title {
        font-size: 1rem;
    }

    .cat2-sublist a {
        font-size: .84rem;
    }
}

@media (max-width: 575.98px) {
    .cat-card2 {
        padding: 12px;
    }

    .cat2-media {
        flex-basis: 96px;
        max-width: 96px;
    }

    .cat2-title {
        font-size: .975rem;
    }

    .cat2-sublist {
        gap: 4px 8px;
    }
}

/* Base card */
.cat2 {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.cat2:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
}

/* Imagen */
.cat2-thumb {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #f3f6ff;
}

.cat2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Texto */
.cat2-body {
    min-width: 0;
}

/* para elipsis */
.cat2-title {
    font-size: 18px;
    font-weight: 800;
    color: #0c1e7d;
    margin: 0 0 4px;
    line-height: 1.2;
}

/* --- Subcategorías en línea (Opción A) --- */
.cat2-subline {
    font-size: 13px;
    color: #5d6a88;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat2-subline a {
    color: #2b4cff;
    text-decoration: none;
}

.cat2-subline a:hover {
    text-decoration: underline;
}

/* --- Chips (Opción B) --- */
.cat2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat2-chips .chip {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2740ff;
    text-decoration: none;
}

.cat2-chips .chip:hover {
    background: #e1e7ff;
}

/* Mobile */
@media (max-width: 576px) {
    .cat2 {
        padding: 12px 14px;
        gap: 12px;
    }

    .cat2-thumb {
        width: 64px;
        height: 64px;
        border-radius: 8px;
    }

    .cat2-title {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .cat2-subline {
        font-size: 12.5px;
    }

    .cat2-chips .chip {
        font-size: 12px;
        padding: 5px 9px;
    }
}

/* Muy chico (p. ej. 360px) – prioriza título */
@media (max-width: 380px) {
    .cat2-thumb {
        width: 56px;
        height: 56px;
    }

    .cat2-title {
        font-size: 15px;
    }
}

/* Oculta la sección de Categorías en móvil */
@media (max-width: 991.98px){
  .section-3{ display:none !important; }
}

.accordion-button.no-caret::after { 
    display:none !important; 
}

/* Imagen del carrusel contenida y altura razonable en móvil */
.product-carousel-inner .ratio { max-height: 320px; }
.object-contain { object-fit: contain; }

/* Tipografías y paddings para móvil */
.product-hero h1 { line-height: 1.2; }
@media (max-width: 575.98px) {
  .breadcrumb { font-size: .9rem; }
  .product-hero { padding: 12px !important; }
  .quantity .btn, .quantity input { height: 44px; } /* targets cómodos */
  .btn-buy, .btn-cart { width: 100%; }              /* botones apilados */
}

/* Evita que el input de cantidad se encoja demasiado */
.quantity input.pd-qty-input { min-width: 64px; }

.breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumb-item {
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.breadcrumb-item:last-child {
  color: #001b35; /* texto normal */
  font-weight: 600;
  flex-shrink: 1;
  min-width: 0;
}

/* Card de categoría */
.cat-card2 {
  display: flex;
  gap: 14px;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  height: 148px;              /* misma altura para todas */
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

/* Imagen */
.cat2-media {
  width: 132px;
  min-width: 132px;
  height: 116px;
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cat2-media img { width: 100%; height: 100%; object-fit: cover; }

/* Texto */
.cat2-body { display: flex; flex-direction: column; min-width: 0; } /* <- importante para ellipsis */
.cat2-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #153267;
  margin: 0 0 6px 0;
  line-height: 1.2;
}

/* Línea única con puntos suspensivos */
.cat2-summary,
.cat2-empty {
  font-size: .98rem;
  color: #667085;
  line-height: 1.2;
  white-space: nowrap;        /* una sola línea */
  overflow: hidden;           /* recortar sobrante */
  text-overflow: ellipsis;    /* … */
  max-width: 100%;            /* usar el ancho disponible */
}

/* Responsive: misma idea en móvil */
@media (max-width: 575.98px) {
  .cat-card2 { height: 140px; padding: 14px; }
  .cat2-media { width: 110px; min-width: 110px; height: 100px; }
  .cat2-title { font-size: 1.05rem; }
}

/* ====== Tarjetas de categorías (forzado) ====== */
.cat-card2-link { 
  display: block !important; 
  text-decoration: none !important; 
}

.cat-card2 {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 16px !important;
  background: #fff !important;
  border-radius: 14px !important;
  height: 148px !important;                 /* altura fija */
  box-shadow: 0 6px 20px rgba(0,0,0,.06) !important;
}

.cat2-media {
  width: 132px !important; 
  min-width: 132px !important;
  height: 116px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  display: flex !important; 
  align-items: center !important; 
  justify-content: center !important;
}
.cat2-media img { 
  width: 100% !important; 
  height: 100% !important; 
  object-fit: cover !important; 
}

.cat2-body { 
  flex: 1 1 auto !important; 
  min-width: 0 !important;          /* clave para ellipsis */
}

.cat2-title {
  margin: 0 0 6px 0 !important;
  color: #153267 !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

/* Resumen en UNA línea con … */
.cat2-summary {
  display: block !important;
  white-space: nowrap !important;       /* 1 línea */
  overflow: hidden !important;          /* recorta exceso */
  text-overflow: ellipsis !important;   /* … */
  color: #667085 !important;
  font-size: .98rem !important;
  line-height: 1.2 !important;
  max-width: 100% !important;
}

/* Responsive */
@media (max-width: 575.98px) {
  .cat-card2 { 
    height: 140px !important; 
    padding: 14px !important; 
  }
  .cat2-media { 
    width: 110px !important; 
    min-width: 110px !important; 
    height: 100px !important; 
  }
  .cat2-title { 
    font-size: 1.05rem !important; 
  }
}

/* ---- Ajustes card producto en mobile ---- */
@media (max-width: 575.98px) {
    .product-card {
        margin-bottom: 0;
        border-radius: 0.75rem;
    }

    .product-card .card-body {
        padding: 0.55rem 0.6rem 0.75rem;
    }

    /* Imagen menos alta en mobile */
    .product-card .card-img-top {
        height: 210px !important; /* antes 300px */
        object-fit: cover;
    }

    /* Título un poquito más compacto */
    .product-card .card-body .h6.link {
        font-size: 0.8rem;
        line-height: 1.2;
        min-height: 2.4em; /* 2 líneas máx, misma altura entre cards */
    }

    /* Precio ligeramente más chico */
    .product-card .price .h5,
    .product-card .price .h6 {
        font-size: 1rem;
    }

    /* Estrellas un poco más compactas también */
    .product-card .card-body .fa-star,
    .product-card .card-body .fa-star-half-alt {
        font-size: 0.7rem;
    }
}

/* ---- Compactar cards de producto en pantallas chicas ---- */
@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 0.75rem;
        border-radius: 0.75rem;
    }

    /* Imagen mucho más baja */
    .product-card .card-img-top {
        height: 170px !important;   /* antes 300 / 210 */
        object-fit: cover;
    }

    /* Título más chico y con altura fija para que todas las cards alineen */
    .product-card .card-body .h6.link {
        font-size: 0.78rem;
        line-height: 1.2;
        min-height: 2.4em;          /* máx. 2 líneas */
    }

    /* Ocultar rating (estrellas + (99)) en móvil para ganar espacio */
    .product-card .card-body > .d-flex.justify-content-center.align-items-center {
        display: none;
    }

    /* Precio un poquito más compacto */
    .product-card .price .h5,
    .product-card .price .h6 {
        font-size: 0.95rem;
    }
}
