/* ==========================================================
   VARIABLES
========================================================== */

:root {
    --dark: #101820;
    --dark-2: #17232d;
    --dark-3: #24323d;

    --steel: #52616b;
    --steel-light: #e8edf0;

    --orange: #f59e0b;
    --orange-dark: #d97706;

    --white: #ffffff;
    --gray: #66727b;
    --light: #f4f6f7;

    --border: #dfe4e7;

    --container: 1180px;

    --shadow: 0 12px 35px rgba(16, 24, 32, .10);
}


/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

.logo img {
    height: 40px; /* Ajusta la altura según necesites */
    width: auto;  /* Mantiene la proporción original */
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}

.section {
    padding: 100px 0;
}

.section-tag {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 15px;
}

.section-tag span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--orange);
}

h1,
h2,
h3,
h4,
.logo-text,
.btn {
    font-family: 'Barlow Condensed', sans-serif;
}

h2 {
    font-size: clamp(40px, 5vw, 62px);
    line-height: .95;
    font-weight: 700;
    letter-spacing: -.5px;
}

h2 strong {
    display: block;
    color: var(--orange);
}

p {
    color: var(--gray);
}


/* ==========================================================
   TOP BAR
========================================================== */

.top-bar {
    background: #080e13;
    color: #aeb8be;
    font-size: 11px;
    letter-spacing: .5px;
}

.top-bar-content {
    min-height: 36px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-icon {
    color: var(--orange);
}


/* ==========================================================
   NAVBAR
========================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff; /* Añade el fondo blanco aquí */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Opcional: una sombra sutil para separarlo del contenido */
}

.navbar {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    background: var(--orange);
    color: var(--dark);

    font-family: 'Barlow Condensed';
    font-size: 34px;
    font-weight: 800;

    clip-path: polygon(
        0 0,
        100% 0,
        100% 75%,
        75% 100%,
        0 100%
    );
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: .85;
}

.logo-text strong {
    font-size: 29px;
    letter-spacing: 1px;
}

.logo-text small {
    font-family: 'Inter';
    color: var(--steel);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.4px;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links > a {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: .2s;
}

.nav-links > a:hover {
    color: var(--orange);
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 9px;

    border: none;
    background: var(--dark);
    color: white;

    padding: 12px 18px;

    font-family: 'Barlow Condensed';
    font-weight: 700;
    font-size: 16px;
}

.cart-button b {
    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    background: var(--orange);
    color: var(--dark);

    border-radius: 50%;

    font-family: Inter;
    font-size: 11px;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: none;
    font-size: 28px;
}


/* ==========================================================
   HERO
========================================================== */

.hero {
    min-height: 660px;

    position: relative;

    display: flex;
    align-items: center;

    background:
        linear-gradient(90deg, rgba(10, 18, 24, .96), rgba(10, 18, 24, .72)),
        repeating-linear-gradient(
            135deg,
            #1b2832 0,
            #1b2832 2px,
            #202f3a 2px,
            #202f3a 8px
        );

    color: white;

    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;

    right: -100px;
    bottom: -100px;

    width: 550px;
    height: 550px;

    border: 80px solid rgba(245, 158, 11, .07);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 80px;

    align-items: end;
}

.hero h1 {
    font-size: clamp(75px, 10vw, 145px);
    line-height: .72;
    letter-spacing: -2px;
}

.hero h1 strong {
    display: block;
    color: var(--orange);
}

.hero-text > p {
    max-width: 620px;

    color: #c6d0d5;
    font-size: 17px;

    margin: 35px 0;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    border: 0;

    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    padding: 15px 25px;

    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;

    transition: .2s;
}

.btn-primary {
    background: var(--orange);
    color: var(--dark);
}

.btn-primary:hover {
    background: #ffb629;
    transform: translateY(-2px);
}

.btn-outline {
    color: white;
    border: 1px solid rgba(255,255,255,.35);
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
}

.hero-specs {
    border-left: 1px solid rgba(255,255,255,.2);
}

.spec-item {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.spec-item strong {
    display: block;

    color: var(--orange);

    font-family: 'Barlow Condensed';
    font-size: 40px;
    line-height: 1;
}

.spec-item span {
    color: #aab6bd;
    font-size: 12px;
    text-transform: uppercase;
}


/* ==========================================================
   FEATURES
========================================================== */

.features {
    background: var(--orange);
}

.features-grid {
    min-height: 100px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    border-right: 1px solid rgba(16,24,32,.13);
}

.feature-icon {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--dark);
    color: var(--orange);

    font-size: 20px;
}

.feature strong,
.feature span {
    display: block;
}

.feature strong {
    font-family: 'Barlow Condensed';
    font-size: 19px;
    text-transform: uppercase;
}

.feature span {
    font-size: 11px;
    opacity: .7;
}


/* ==========================================================
   ABOUT
========================================================== */

.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
    align-items: center;
}

.about-image {
    min-height: 570px;

    position: relative;

    background:
        linear-gradient(
            rgba(16,24,32,.25),
            rgba(16,24,32,.8)
        ),
        repeating-linear-gradient(
            45deg,
            #303c45,
            #303c45 4px,
            #45525b 4px,
            #45525b 8px
        );

    display: flex;
    align-items: end;

    padding: 45px;

    overflow: hidden;
}

.about-image::before,
.about-image::after {
    content: "";
    position: absolute;

    border: 2px solid rgba(245,158,11,.5);
}

.about-image::before {
    width: 150px;
    height: 150px;
    top: 40px;
    right: 40px;
    border-radius: 50%;
}

.about-image::after {
    width: 100px;
    height: 100px;
    top: 65px;
    right: 65px;
    border-radius: 50%;
}

.about-image-content {
    position: relative;
    z-index: 2;
    color: white;
}

.about-image-content span {
    display: block;

    color: var(--orange);

    font-family: 'Barlow Condensed';
    font-size: 70px;
    font-weight: 800;
    line-height: .8;
}

.about-image-content strong {
    font-family: 'Barlow Condensed';
    font-size: 48px;
}

.about-image-content small {
    display: block;

    color: #bfc8cc;

    font-size: 9px;
    letter-spacing: 2px;
}

.about-content > p {
    max-width: 650px;
    margin-top: 20px;
}

.mission-vision {
    margin-top: 40px;

    display: grid;
    gap: 20px;
}

.mission-vision article {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 15px;

    padding: 20px;

    background: var(--light);
    border-left: 4px solid var(--orange);
}

.mv-number {
    font-family: 'Barlow Condensed';
    font-size: 30px;
    font-weight: 700;
    color: var(--orange);
}

.mission-vision h3 {
    font-size: 22px;
}

.mission-vision p {
    font-size: 13px;
}


/* ==========================================================
   CATALOG
========================================================== */

.catalog {
    background: var(--light);
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
}

.catalog-header > div:first-child {
    max-width: 650px;
}

.catalog-search {
    width: 330px;
}

.catalog-search label {
    display: block;

    font-family: 'Barlow Condensed';
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;

    margin-bottom: 7px;
}

.search-box {
    display: flex;
    align-items: center;

    background: white;
    border: 1px solid var(--border);
}

.search-box input {
    width: 100%;

    padding: 14px;

    border: 0;
    outline: none;

    font-size: 13px;
}

.search-box span {
    padding: 0 15px;
    color: var(--orange);
    font-size: 24px;
}

.catalog-filters {
    display: flex;
    gap: 8px;

    margin: 45px 0 30px;
}

.filter {
    border: 1px solid var(--border);
    background: white;

    padding: 9px 18px;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;

    transition: .2s;
}

.filter:hover,
.filter.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: white;

    box-shadow: 0 4px 18px rgba(16,24,32,.05);

    transition: .25s;

    border-bottom: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--orange);
    box-shadow: var(--shadow);
}

.product-image {
    height: 225px;
    position: relative;
    overflow: hidden;
    background: var(--dark);
}

.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: .3s;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-label {
    position: absolute;

    top: 12px;
    left: 12px;

    background: var(--orange);
    color: var(--dark);

    padding: 5px 10px;

    font-family: 'Barlow Condensed';
    font-size: 12px;
    font-weight: 700;
}

.product-body {
    padding: 22px;
}

.product-code {
    color: var(--steel);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.product-body h3 {
    font-size: 27px;
    line-height: 1;

    margin: 7px 0 20px;
}

.product-info {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    padding: 13px 0;
}

.product-info span {
    font-size: 11px;
    color: var(--dark);
}

.product-info small {
    display: block;
    color: var(--gray);
    font-size: 8px;
    font-weight: 700;
    margin-bottom: 2px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: 18px;
}

.product-price small {
    display: block;

    font-size: 8px;
    font-weight: 700;
    color: var(--gray);
}

.product-price strong {
    display: block;

    font-family: 'Barlow Condensed';
    font-size: 27px;
}

.add-cart {
    border: 0;

    background: var(--dark);
    color: white;

    padding: 11px 15px;

    font-family: 'Barlow Condensed';
    font-size: 15px;
    font-weight: 700;

    transition: .2s;
}

.add-cart:hover {
    background: var(--orange);
    color: var(--dark);
}

.pagination {
    display: flex;
    justify-content: flex-end; /* Alinea los elementos hacia la derecha */
    align-items: center;
    gap: 8px; /* Espacio entre los botones de paginación */
    margin: 20px 0; /* Espacio superior e inferior */
}

.pagination button {
    min-width: 38px;
    height: 38px;

    background: white;
    border: 1px solid var(--border);

    font-size: 12px;
    font-weight: 700;
}

.pagination button.active,
.pagination button:hover {
    background: var(--orange);
    border-color: var(--orange);
}


/* ==========================================================
   CONTACTO
========================================================== */

.contact {
    background: var(--dark);
    color: white;
}

/* Hover para botón LIMPIAR */
.btn-secondary:hover {
    background: #6c757d; /* color base de Bootstrap secondary */
    color: #fff;         /* texto blanco */
    transform: translateY(-2px);
}
.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 90px;
}

.contact-info h2 {
    color: white;
}

.contact-info > p {
    color: #aeb9c0;
    margin: 25px 0 40px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;

    margin-bottom: 22px;
}

.contact-item > div {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    background: var(--orange);
    color: var(--dark);
}

.contact-item span {
    font-size: 13px;
}

.contact-item small {
    display: block;
    color: #77848d;
    font-size: 8px;
    font-weight: 700;
}

.contact-form-wrapper {
    background: white;
    color: var(--dark);
    padding: 35px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-family: 'Barlow Condensed';
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;

    border: 1px solid var(--border);
    outline: none;

    padding: 13px;

    background: #fafafa;

    font-size: 13px;

    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
}

.form-message {
    margin-top: 12px;
    font-size: 12px;
}

.full-btn {
    width: 100%;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {
    background: #080e13;
    color: #8f9ba2;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 12px;
}

.footer h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-grid a,
.footer-grid span {
    font-size: 11px;
}

.footer-grid a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
    font-size: 10px;
}


/* ==========================================================
   CARRITO
========================================================== */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* <-- Evita que bloquee clics si llega a quedarse activo por error */
    transition: .25s;
    z-index: 998;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* <-- Vuelve a capturar clics solo cuando está abierto */
}

.cart-sidebar {
    position: fixed;
    top: 100px; /* <-- Sube este valor (prueba con 100px, 110px o los que mida tu menú exactamente) */
    right: 0;
    width: min(430px, 100%);
    height: calc(100vh - 100px); /* <-- Asegúrate de restar exactamente el mismo número que pusiste en top */
    background: white;
    z-index: 999;
    transform: translateX(100%);
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px;

    background: var(--dark);
    color: white;
}

.cart-header h3 {
    font-size: 31px;
    line-height: 1;
}

.cart-kicker {
    color: var(--orange);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cart-header button,
.modal-close {
    background: none;
    border: 0;
    color: white;
    font-size: 30px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart > div {
    font-size: 45px;
    margin-bottom: 15px;
}

.empty-cart h4 {
    font-size: 25px;
}

.empty-cart p {
    font-size: 12px;
}

.cart-product {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid var(--border);
}

.cart-product h4 {
    font-size: 19px;
    line-height: 1;
}

.cart-product small {
    color: var(--gray);
    font-size: 9px;
}

.cart-product-actions {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 10px;
}

.cart-product-actions button {
    width: 25px;
    height: 25px;

    border: 1px solid var(--border);
    background: white;
}

.cart-product-actions span {
    min-width: 20px;
    text-align: center;
    font-size: 12px;
}

.remove-product {
    border: 0 !important;
    color: #d33;
    font-size: 17px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;

    font-family: 'Barlow Condensed';
    font-size: 20px;

    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;

    border: 0;

    padding: 16px;

    background: var(--orange);
    color: var(--dark);

    font-family: 'Barlow Condensed';
    font-size: 19px;
    font-weight: 700;
}

.cart-footer > small {
    display: block;

    text-align: center;

    color: var(--gray);
    font-size: 9px;

    margin-top: 10px;
}


/* ==========================================================
   MODAL
========================================================== */

.modal {
    position: fixed;
    inset: 0;

    z-index: 1100;

    background: rgba(0,0,0,.7);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;

    width: min(550px, 100%);

    max-height: 90vh;
    overflow-y: auto;

    background: white;

    padding: 40px;
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 12px;

    color: var(--dark);
}

.modal-content h2 {
    font-size: 45px;
    margin-bottom: 12px;
}

.modal-content > p {
    margin-bottom: 25px;
    font-size: 13px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

    .nav-links {
        display: none;

        position: absolute;

        top: 118px;
        left: 0;
        right: 0;

        background: white;

        padding: 25px;

        flex-direction: column;
        align-items: stretch;

        box-shadow: var(--shadow);
    }

    .nav-links.show {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 700px;
    }

    .hero-content {
        gap: 50px;
    }

    .hero-specs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-left: 0;
    }

    .spec-item {
        border-right: 1px solid rgba(255,255,255,.12);
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-image {
        min-height: 400px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 70px 0;
    }

    .top-bar-content {
        display: none;
    }

    .navbar {
            height: 75px;
        }

    /* Agrega o ajusta esto para que el menú aparezca justo debajo del navbar móvil */
    .nav-links {
        top: 75px; 
    }

    .logo-mark {
        width: 42px;
        height: 42px;
    }

    .logo-text strong {
        font-size: 25px;
    }

    .hero {
        min-height: 700px;
    }

    .hero h1 {
        font-size: 75px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-specs {
        grid-template-columns: 1fr;
    }

    .spec-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: 0;
        border-bottom: 1px solid rgba(16,24,32,.13);
    }

    .catalog-header {
        display: block;
    }

    .catalog-search {
        width: 100%;
        margin-top: 30px;
    }

    .catalog-filters {
        overflow-x: auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 25px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 30px 20px;
    }
}


/*==================================================
CARRITO - PRODUCTOS
==================================================*/
.cart-item{

    display:flex;

    gap:15px;

    padding:15px 0;

    border-bottom:1px solid #e5e7eb;

}

.cart-item-info{

    flex:1;

}

.cart-item-info strong{

    display:block;

    color:#111827;

    font-size:15px;

}

.cart-item-info small{

    display:block;

    color:#6b7280;

    margin-top:3px;

}

.cart-item-info span{

    display:block;

    margin-top:5px;

    color:#f59e0b;

    font-weight:bold;

}

.remove-item{

    width:34px;

    height:34px;

    border:none;

    border-radius:50%;

    background:#dc2626;

    color:#fff;

}

/*==================================================
    ESTILOS PARA LOS CONTROLES DE CANTIDAD EN EL CARRITO
==================================================*/

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cantidad-controles {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.cantidad-controles button {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #374151;
    transition: background-color 0.2s ease;
}

.cantidad-controles button:hover {
    background-color: #e5e7eb;
}

.cantidad-controles .cantidad {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    min-width: 24px;
    text-align: center;
}

/* ==========================================================
   ESTILOS RESPONSIVOS PARA FILTROS DE CATEGORÍAS
========================================================== */

.catalog-filters {
    display: flex;
    flex-wrap: wrap; /* Permite que los botones bajen a la siguiente línea si ya no caben */
    gap: 10px;       /* Espacio uniforme entre los botones */
    justify-content: center; /* Centra los botones de manera estética (puedes cambiar a 'flex-start' si los quieres a la izquierda) */
    margin: 20px 0;
    padding: 0 10px;
}

.catalog-filters .filter {
    flex: 0 1 auto;  /* Evita que se estiren de más */
    min-width: 110px; /* Ancho base mínimo para que no se compriman feo */
    padding: 10px 15px;
    text-align: center;
    box-sizing: border-box;
    /* Mantén aquí las propiedades de diseño actuales que ya tengas (bordes, fuentes, colores) */
}


/* ==========================================================
   BOTÓN SCROLL TO TOP (VOLVER ARRIBA) - ABAJO
========================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--dark, #101820);
    color: #ffffff;
    border: 3px solid #f59e0b;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 997; /* Menor que el carrito (999) para ocultarse al abrirse */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Estado visible al bajar el scroll */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Efecto Hover */
.scroll-to-top:hover {
    background-color: var(--orange, #ff6b00);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* ==========================================================
   BOTÓN FLOTANTE DE WHATSAPP - ARRIBA
========================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 85px; /* 25px base + 45px altura de ScrollToTop + 15px de espacio */
    right: 25px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 997; /* Mismo nivel para ocultarse juntos debajo del carrito */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Asegura que SweetAlert2 esté siempre por encima de los modales de Bootstrap (z-index por defecto es 1060) */
.swal2-container {
  z-index: 20000 !important;
}