@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap');

:root {
    --nav-h: 60px;
    --bar-h: 0px;
    --verde: #074845;
    --hielo: #4dd0e1;
}

.texto-borde-hielo {
    color: #000000;
    /* Relleno del texto en color negro */
    -webkit-text-stroke: 1.5px #a0e0ff;
    /* Grosor de 1.5px y color celeste hielo para el borde */

    /* Opcional: Un ligero brillo celeste alrededor para dar efecto de frío/hielo */
    text-shadow: 0px 0px 8px rgba(160, 224, 255, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    font-family: 'Roboto Mono', monospace;
}

body {
    min-height: 100vh;
    background-image: url('https://res.cloudinary.com/n6cdhomz/image/upload/f_auto,q_auto,w_1920/indelfrix/static/background.webp');
    background-attachment: scroll;
    background-position: center;
    background-repeat: repeat;
}


.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--nav-h);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(13, 77, 68, 0.12);
}

.sticky-nav .navbar-brand,
.sticky-nav .nav-link {
    color: #074845;
    transition: color 0.2s ease;
}

.sticky-nav .nav-link {
    position: relative;
    padding-bottom: 0.25rem;
    border-radius: 0.45rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Sin underline en los links que abren dropdowns (el ::after se superpone
   con el menú desplegable que aparece encima/bajando) */
.sticky-nav .nav-link.dropdown-toggle {
    padding-bottom: 0.375rem;
}

.sticky-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #4dd0e1;
    transition: width 0.3s ease;
}

.sticky-nav .nav-link:not(.dropdown-toggle):hover::after,
.sticky-nav .nav-link:not(.dropdown-toggle).active::after {
    width: 100%;
}

.sticky-nav .nav-link:hover {
    color: #0f4e4a;
    background-color: rgba(77, 208, 225, 0.16);
    text-decoration: none;
}

.sticky-nav .navbar-toggler {
    border-color: rgba(7, 72, 69, 0.35);
}

.sticky-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(7, 72, 69, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.bungee-shade-regular {
    font-family: 'Bungee Shade', cursive;
    font-weight: 400;
    font-style: normal;
}

/* Título del navbar (centrado): degradado blanco → celeste → negro,
   contorno negro fino para legibilidad sobre cualquier fondo y
   glow celeste. El contorno hace que se lea bien en los extremos
   (blanco arriba y negro abajo). */
#navbar-title {
    font-family: 'Bungee Shade', cursive;
    font-weight: 400;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #0a0a0a;
    /* fallback si el navegador no soporta background-clip:text */
    background: linear-gradient(180deg, #ffffff 0%, #a0e0ff 52%, #0a0a0a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(10, 10, 10, 0.9);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(160, 224, 255, 0.5));
    transition: filter 0.25s ease;
}

#navbar-title:hover {
    text-decoration: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 16px rgba(160, 224, 255, 0.9));
}

/* Desktop: la marca queda centrada entre los menús (izquierda) y las
   acciones (derecha). Los tres grupos flex se reparten el ancho. */
@media (min-width: 992px) {
    .sticky-nav .navbar-collapse {
        order: 1;
        flex: 1 1 0;
    }

    .sticky-nav .navbar-brand {
        order: 2;
        flex: 0 0 auto;
        margin-right: 0;
    }

    .sticky-nav .nav-actions {
        order: 3;
        flex: 1 1 0;
        justify-content: flex-end;
    }
}

/* 992-1099 px: los tres grupos entran justos; se achica el aire del menú
   para que la marca quede centrada también en ese rango. */
@media (min-width: 992px) and (max-width: 1099.98px) {

    .sticky-nav .nav-categories {
        gap: 0.25rem !important;
    }

    .sticky-nav .navbar-nav .nav-link {
        padding-inline: 0.45rem;
    }
}

/* Menú desplegable del navbar (tablet): el contenido acompaña la expansión. */
@keyframes navMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991.98px) {
    .sticky-nav .navbar-collapse.collapsing > * {
        animation: navMenuIn 0.3s ease both;
    }
}

/* Texto de presentación arriba del catálogo (contexto para el usuario y SEO). */
.home-intro {
    max-width: 820px;
    margin: 1.5rem auto 0.5rem;
    color: #40505a;
    font-size: 1.06rem;
    line-height: 1.6;
}

@media (max-width: 767.98px) {
    .home-intro {
        margin-top: 1rem;
        padding: 0 0.75rem;
        font-size: 0.98rem;
    }
}


.snowflakes {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

footer,
main,
.floating-socials {
    position: relative;
    z-index: 20;
}

.snowflake {
    position: absolute;
    width: 16px;
    height: 16px;
    font-size: 1rem;
    color: rgba(77, 208, 225, 0.95);
    opacity: 0.85;
    transform-origin: center;
    animation: fall var(--fall-duration, 18s) linear infinite,
        flickr var(--flickr-duration, 3.4s) ease-in-out infinite alternate;
    will-change: transform, opacity;
    pointer-events: none;
}

.snowflake::before {
    content: '❄';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    text-shadow: 0 0 12px rgba(77, 208, 225, 0.28);
    filter: drop-shadow(0 0 8px rgba(77, 208, 225, 0.16));
}

@keyframes flickr {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes fall {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    100% {
        transform: translateX(var(--drift-x, 8vw)) translateY(110vh) rotate(360deg);
    }
}

.hero-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px 0;

    /* Ajuste para que la imagen cubra el área del hero */
}

/* Logo: ocupa todo el ancho disponible; el alto lo limita la proporción
   de la imagen (1914x544) y max-height para pantallas bajas */
.hero-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    padding: 0;
}

/* Sección de contenido debajo del banner */
.hero-content {
    padding: 3rem 0;
    position: relative;
    z-index: 20;
}

.hero-content .company-name {
    color: #074845;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

.hero-content p {
    color: #495057;
    /* No justificar en ninguna resolución; alineado a la izquierda */
    text-align: left;
}

/* H1 de portada: oculto visualmente en desktop (sigue en el DOM para SEO) */
.hero-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}


/* Animaciones Progresivas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

.animate-fade-in-up {
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}


/* Desplazamiento Suave */
html {
    scroll-behavior: smooth;
}

/* Para que el z-index funcione bien */
.z-index-1 {
    z-index: 1;
}

/* Estilos base para imágenes del carousel */
.carousel-item img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    cursor: zoom-in;
}



.floating-socials {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.btn-social:hover {
    transform: scale(1.1);
    color: white;
}

/* 
Para que la imagen ocupe todo el espacio de la card
  .carousel-item img {
      height: 450px;
      object-fit: cover;
      Cambiado de contain a cover 
      cursor: zoom-in;
      Indica que se puede ampliar 
  } 
*/

.bg-wpp {
    background-color: #25D366;
}

.bg-ig {
    background-color: #E1306C;
}

.bg-fb {
    background-color: #1877F2;
}

/* --- Barra de filtros por tag --- */
#catalogo {
    scroll-margin-top: calc(var(--nav-h) + 12px);
}

.tag-filter-bar {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
}

/* Contenedor scrolleable para muchos tags (máx ~2.5 hileras) */
.tag-chip-container {
    max-height: 104px;
    overflow-y: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.tag-chip {
    opacity: .7;
    border: 2px solid transparent;
    transition: opacity .15s, transform .15s, border-color .15s;
    font-size: .8rem;
    padding: .2rem .7rem;
    white-space: nowrap;
}

.tag-chip:hover {
    opacity: 1;
    transform: scale(1.04);
}

.tag-chip.tag-filter-active {
    opacity: 1;
    border-color: rgba(0, 0, 0, .35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

/* Navbar: fondo más opaco, menos translúcido */
.sticky-nav {
    background: rgba(255, 255, 255, 0.88) !important;
}

/* Dropdown scrollable para menú Líneas (muchas subcategorías) */
.dropdown-menu-scrollable {
    max-height: 70vh;
    overflow-y: auto;
}

/* Asegurar que el dropdown de cuenta quede alineado a la derecha */
.nav-actions .dropdown-menu-end {
    right: 0;
    left: auto;
}

/* Quita el subrayado de los botones sociales */
.btn-social {
    text-decoration: none !important;
    /* El !important asegura que Bootstrap no lo sobreescriba */
}

/* Opcional: Quita el subrayado de cualquier enlace dentro de las redes */
.floating-socials a {
    text-decoration: none;
}

/* --- Animación Universal de Collapse (Footer y Cards) --- */

/* 1. La flecha: Funciona para FontAwesome (footer) y Bootstrap Icons (cards) */
.btn-collapse-arrow i,
.btn-expand i {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* Rotación cuando está abierto */
.btn-collapse-arrow:not(.collapsed) i,
.btn-expand:not(.collapsed) i {
    transform: rotate(180deg);
}

/* 2. El contenedor: Suavizamos el movimiento de altura */
.collapsing {
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 3. El contenido: Efecto de difuminado (Fade) */
.collapse-inner-fade {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    /* Pequeño movimiento hacia arriba al ocultar */
}

/* Cuando el padre se está abriendo o ya está abierto, mostramos el contenido */
.collapsing .collapse-inner-fade,
.collapse.show .collapse-inner-fade {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mejoras extras para las Cards --- */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.carousel-inner {
    background-color: #ffffff;
    border-radius: 8px;
    height: auto;
}

/* (Eliminado por redundancia con .subcategory-card) */


/* Reglas responsive: el hero-logo y el h1 accesible en pantallas pequeñas.
   La navbar siempre queda visible (hamburguesa + Pedido + Cuenta). */
@media (max-width: 767.98px) {

    .hero-logo {
        max-height: 40vh;
        padding: 0;
    }

    .hero-title {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        margin: 0;
        padding: 0.75rem 1rem 0;
        text-align: center;
        font-size: clamp(1.6rem, 9vw, 2.6rem);
        font-weight: 700;
        letter-spacing: 0.2px;
        color: #074845;
    }

    /* Ajustes de tamaño de fuente para el contenido de la sección sobre-nosotros */
    .hero-content .company-name {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-section {
        padding: 12px 0;
        background-size: cover;
    }
}

/* Ajustar hero en móviles y tablets */
@media (max-width: 991.98px) {
    /* Reducir tamaño del hero y justificar a la izquierda para evitar grandes espacios en blanco */
    .hero-content .company-name {
        font-size: 1.5rem;
    }

    .hero-content p,
    .hero-content p.lead {
        font-size: 0.95rem;
        /* Evitar justificado en móvil */
        text-align: left;
    }
}

/* Clases para controlar los colores de la marca cuando el h1 está visible */
.brand-name {
    color: #0d6efd;
    font-weight: 700;
}

.brand-suffix {
    color: #000;
    font-weight: 700;
}

/* Estilos para el subrayado animado */
.animated-underline {
    position: relative;
    display: inline;
    color: #212529;
}

.animated-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 100%;
    background-color: #0d6efd;
    transform-origin: left center;
    transform: scaleX(0);
    animation: underline-in 0.45s ease-out forwards;
}

@keyframes underline-in {
    0% {
        transform: scaleX(0);
        transform-origin: left center;
        opacity: 0.95;
    }

    100% {
        transform: scaleX(1);
        transform-origin: left center;
        opacity: 1;
    }
}

/* Category header: centered title between two blue horizontal lines */
.category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin: 1.25rem 0;
}

.category-line {
    border: 0;
    height: 3px;
    background: #0d6efd;
    width: 60%;
    margin: 0.5rem auto;
}

.category-title {
    color: #000;
    font-weight: 700;
    margin: 0.35rem 0;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}

/* Dropdown mega styles and hover (desktop) */
.dropdown-mega {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    background: #fff;
    border: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 1040;
}

.dropdown-mega .cat-row,
.dropdown-mega .sub-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    overflow-x: auto;
    white-space: nowrap;
    min-height: 48px;
}

/* Desktop: dropdowns con fade + slide. `display:block` + `visibility` permite
   animar la apertura por hover sin el salto de Bootstrap. */
@media (min-width: 992px) {
    .sticky-nav .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    }

    .sticky-nav .navbar-nav .dropdown:hover .dropdown-menu,
    .sticky-nav .dropdown-menu.show {
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        margin-top: 0;
    }
}

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

    .sticky-nav .nav-link,
    .sticky-nav .dropdown-menu,
    .sticky-nav .navbar-collapse.collapsing > * {
        transition: none;
        animation: none;
    }
}

.catalog-link {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid rgba(7, 72, 69, 0.08);
    color: #074845;
    text-decoration: none;
    display: inline-block;
}

.catalog-link:hover {
    background: #f8f9fa;
}

/* Subcategory card: fixed carousel dimensions so all cards match */
.subcategory-card .carousel-inner {
    height: 400px;
    /* Consistencia en la altura de las imágenes */
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.subcategory-card .carousel-item {
    height: 100%;
}

/* Solo aplicamos flex a los ítems que deben ser visibles para no romper el JS de Bootstrap */
.subcategory-card .carousel-item.active,
.subcategory-card .carousel-item-next,
.subcategory-card .carousel-item-prev,
.modal-carousel .carousel-item.active,
.modal-carousel .carousel-item-next,
.modal-carousel .carousel-item-prev {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#subcardModalBody {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
}

.modal-img-full {
    /* La imagen se expande hasta la mayor resolución posible sin desbordar el modal */
    height: auto;
    max-height: 75vh;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* No forzar altura fija en modal carousel (la imagen manda) */
.modal-carousel .carousel-item {
    background: #0b0b0b;
}

.desc-modal-scroll {
    max-height: 50vh;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #445;
}

/* Scrollbar personalizado para la descripción */
.desc-modal-scroll::-webkit-scrollbar {
    width: 6px;
}
.desc-modal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.desc-modal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.desc-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

@media (max-width: 991.98px) {
    .modal-img-full {
        height: 50vh;
    }
    .desc-modal-scroll {
        max-height: none;
    }
}

.subcategory-card .carousel-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 15px;
    cursor: zoom-in;
}

.subcategory-card .card-header h5,
.subcategory-card .card-header h3 {
    font-size: 0.95rem;
}

.subcategory-card .btn-ficha-tecnica {
    font-weight: 700;
}

/* Grilla de cards de líneas: flex para que la última fila se estire y no
   queden huecos. La card huérfana crece hasta 2 columnas y se centra. */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.cards-grid > * {
    flex: 1 1 320px;
    min-width: 0;
    max-width: 100%;
}

.cards-grid--one > * {
    flex-basis: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .cards-grid--half > * {
        flex-basis: calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (min-width: 992px) {
    .cards-grid:not(.cards-grid--one) > * {
        max-width: calc(66.666% - 0.5rem);
    }
}

/* --- Etapa 3: páginas de categoría / subcategoría --- */
.cat-card-img { display: block; overflow: hidden; background: #f1f3f5; }
.cat-card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .35s ease;
}
.cat-card-img:hover img { transform: scale(1.04); }

.product-card { transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover {
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12);
    transform: translateY(-2px);
}
.product-card .card-body { padding: 1rem; }


/* ================= Navbar por breakpoints ================= */
@media (max-width: 991.98px) {
    :root {
        --nav-h: 56px;
    }

    /* Sin blur en tablet/móvil: el backdrop-filter es caro al scrollear */
    .sticky-nav {
        background: #fff;
        backdrop-filter: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --nav-h: 52px;
        --bar-h: 56px;
    }

    body {
        padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    }

    /* El teléfono no muestra ni menú ni acciones en el navbar */
    .sticky-nav {
        padding-top: 0.4rem !important;
        padding-bottom: 0.4rem !important;
    }

    #navbar-title {
        font-size: 1.05rem;
    }

    /* La burbuja de WhatsApp no se superpone con la barra inferior */
    .floating-socials {
        bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom));
    }
}

/* Botón carrito compacto (tablet) */
.navbar-cart-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ================= Barra inferior (teléfono) ================= */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1035;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(var(--bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
    border-top: 1px solid rgba(13, 77, 68, 0.14);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.mobile-bar.is-hidden {
    transform: translateY(110%);
}

.mobile-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--verde);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
}

.mobile-bar__btn i {
    font-size: 1.05rem;
}

.mobile-bar__btn:active {
    background: rgba(7, 72, 69, 0.06);
}

.mobile-bar__btn + .mobile-bar__btn {
    border-left: 1px solid rgba(13, 77, 68, 0.08);
}

.mobile-bar .badge {
    font-size: 0.65rem;
    vertical-align: 1px;
}

@keyframes count-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.js-pedido-count.js-bump {
    animation: count-bump 0.3s ease;
}

/* ================= Chips de categorías (móvil/tablet) ================= */
.cat-chips {
    margin: 0.25rem 0 1rem;
}

.cat-chips__scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-chips__scroll::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(7, 72, 69, 0.16);
    background: #fff;
    color: var(--verde);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.cat-chip.is-active {
    background: var(--verde);
    border-color: var(--verde);
    color: #fff;
}

.cat-chip--filtros {
    border-style: dashed;
}

/* ================= Bottom sheet de filtros ================= */
.offcanvas-filtros {
    height: auto;
    max-height: 85vh;
    border-radius: 1rem 1rem 0 0;
}

.offcanvas-filtros .offcanvas-body {
    overflow-y: auto;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
}

.filtros__titulo {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6c757d;
}

.offcanvas-filtros .accordion-button {
    padding: 0.7rem 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--verde);
    background: transparent;
}

.offcanvas-filtros .accordion-button:not(.collapsed) {
    background: transparent;
    box-shadow: none;
}

.offcanvas-filtros .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.offcanvas-filtros .accordion-body {
    padding: 0.15rem 0 0.75rem 0.25rem;
}

.filtro-link {
    display: block;
    padding: 0.55rem 0.25rem;
    min-height: 44px;
    color: var(--verde);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filtro-link:active {
    background: #f1f5f5;
}

.filtro-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(7, 72, 69, 0.16);
    background: #fff;
    color: var(--verde);
    font-size: 0.82rem;
    text-decoration: none;
}

.filtro-tag__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex: 0 0 auto;
}


/* Toasts por encima de la barra inferior */
#toastContainer {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1090;
    width: min(92vw, 380px);
}

@media (max-width: 767.98px) {
    #toastContainer {
        bottom: calc(var(--bar-h) + 0.75rem + env(safe-area-inset-bottom));
    }
}

/* Flecha del "Leer más" de Quiénes somos */
[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.25s ease;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Accesibilidad: desactivar animaciones para quien las pidió desactivadas */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .snowflake {
        display: none;
    }
}
