.logout-link {
    color: #6c757d; /* gris por defecto */
}

.logout-link:hover {
    color: #dc3545 !important; /* rojo estilo Bootstrap */
}

/*? Carrusel */
.carousel{
    height: 90vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #f1683a;
}
.carousel .list .item .buttons{
    margin-top: 2rem;
}
.carousel .list .item .buttons a{
    text-decoration: none;
    color: var(--blanco);
    border: none;
    background-color: var(--naranja);
    letter-spacing: 0.3rem;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.carousel .list .item .buttons a:hover{
    background-color: var(--blanco);
    color: var(--naranja);
}

/* thumbail */
.thumbnails{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnails .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnails .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnails .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnails .item .content .title{
    font-weight: 500;
}
.thumbnails .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/* ===== Estilos Sección Categorías ===== */

        .titulo-seccion-categorias {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ff9d09; /* amarillo */
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
    }

    /* Subrayado animado */
    .titulo-seccion-categorias::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: #ff9d09;
    border-radius: 2px;
    transition: width 0.4s ease;
    }
    .titulo-seccion-categorias:hover::after {
    width: 100%;
    }

    /* ===== Estilos Sección Categorías ===== */
    .tarjeta-categoria {
    background: #111; /* negro elegante */
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .tarjeta-categoria:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);
    }

    /* Imagen más rectangular */
    .imagen-categoria-wrap {
    overflow: hidden;
    }
    .imagen-categoria {
    width: 100%;
    height: 160px; /* altura fija rectangular */
    object-fit: cover;
    transition: transform 0.4s ease;
    }
    .tarjeta-categoria:hover .imagen-categoria {
    transform: scale(1.1);
    }

    /* Contenido */
    .cuerpo-categoria {
    padding: 15px;
    text-align: center;
    }
    .titulo-categoria {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    transition: color 0.3s ease, transform 0.3s ease;
    }
    .tarjeta-categoria:hover .titulo-categoria {
    color: #ff9d09; /* amarillo */
    transform: scale(1.05);
    }

    /* Botón */
    .btn-ver-mas {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #ff9d09, #ae7006); /* amarillo */
    color: #000;
    transition: background 0.3s ease, transform 0.2s ease;
    }
    .btn-ver-mas:hover {
    background: linear-gradient(135deg, #000, #9e9797); /* negro */
    color: #ff9d09;
    transform: translateY(-2px);
    }

    .btn-contacto-carra {
        display: inline-block;
        padding: 12px 24px;
        background-color: #000; /* Negro */
        color: #fff; /* Texto blanco */
        text-decoration: none;
        border-radius: 8px;
        font-weight: bold;
        transition: background 0.3s ease;
    }

    .btn-contacto-carra:hover {
        background-color: #ff9d09; /* Amarillo al pasar el mouse */
        color: #000;
    }

    /* * Seccion Inicio */

    /* 🎨 ESTILOS GENERALES */
    .sm-contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    }

    .sm-titulo-seccion {
    text-align: center;
    font-size: 2rem;
    color: #ff6600; /* naranja */
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    }

    /* 🔹 SECCIÓN CATEGORÍAS */
    .sm-seccion-categorias {
    background: #f9f9f9; /* fondo blanco suave */
    color: #0d0d0d;
    padding: 60px 20px;
    }

    .sm-titulo-seccion {
    position: relative;
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #0d0d0d; /* negro */
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    }

    .sm-titulo-seccion::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6600, #ff3300);
    margin: 12px auto 0;
    border-radius: 2px;
    }

    .sm-card-cat {
    background: #fff; /* tarjetas blancas */
    border-radius: 12px;
    text-align: center;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sm-card-cat img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 3px solid #ff6600; /* línea naranja */
    }

    .sm-card-cat h3 {
    margin: 15px 0 10px;
    color: #0d0d0d;
    font-size: 1.2rem;
    font-weight: bold;
    }

    .sm-btn-cat {
    display: inline-block;
    margin: 12px 0 18px;
    padding: 8px 16px;
    background: #ff6600;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    }

    .sm-btn-cat {
    display: inline-block;
    background: #ff6600;
    color: #fff !important;   /* fuerza el blanco */
    text-decoration: none;    /* quita el subrayado */
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    }

    .sm-btn-cat:hover {
    background: #e65c00;
    color: #fff !important;   /* evita que cambie al azul */
    text-decoration: none;
    transform: scale(1.05);
    }

    /* Estilo base para las flechas */
    .swiper-button-next,
    .swiper-button-prev {
    color: #ff6600; /* Naranja */
    background: rgba(0, 0, 0, 0.6); /* Fondo negro semitransparente */
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    }

    /* Hover efecto */
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
    background: #ff6600; /* Fondo naranja */
    color: #fff;         /* Flecha blanca */
    transform: scale(1.1);
    }

    /* Asegurar que el ícono de la flecha sea visible */
    .swiper-button-next::after,
    .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
    }

    /* 🔹 PRODUCTOS DESTACADOS */
    .pd-c {
    color: #fff !important;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    }

    .sm-seccion-productos {
    background: #111;
    color: #fff;
    padding: 60px 20px;
    }

    .sm-grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    }

    .sm-card-prod {
    background: #f2f2f2;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    }

    .sm-card-prod img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
    }

    .sm-card-prod:hover img {
    transform: scale(1.08);
    }

    .sm-card-prod h3 {
    color: #000; 
    margin: 15px 0 5px;
    font-size: 1.3rem;
    font-weight: 600;
    }

    .sm-precio {
    color: #ff6600;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    }

    .sm-descripcion {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
    min-height: 40px;
    }

    .sm-btn-ver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #ff6600;
    color: #0d0d0d;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    }

    .sm-btn-ver i {
    font-size: 1rem;
    }

    .sm-btn-ver:hover {
    background: #e65c00;
    color: #fff;
    }

    .sm-card-prod:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(255, 102, 0, 0.35);
    }

    /* 🔹 BENEFICIOS */

    .sm-seccion-beneficios {
    color: #fff;
    }

    .sm-grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
    }

    .sm-seccion-beneficios {
    background: #f8f9fa;
    }

    .sm-titulo-seccion {
    font-size: 2rem;
    font-weight: bold;
    }

    .sm-item-beneficio {
    max-width: 200px;
    }

    .sm-icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #000; /* negro */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
    }

    .sm-icono:hover {
    transform: scale(1.1);
    background: #ffc107; /* amarillo al hover */
    color: #000;
    }

    .sm-item-beneficio p {
    font-weight: 500;
    color: #000;
    }

    /* 🔹 CTA FINAL */
    .sm-cta-final {
    background: linear-gradient(135deg, #ff6600, #e65c00);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    }

    .sm-cta-final h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    }

    .sm-cta-final p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    }

    .sm-btn-ver-grande {
    display: inline-block;
    padding: 14px 28px;
    background: #0d0d0d;
    color: #ff6600;
    font-weight: bold;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    }

    .sm-btn-ver-grande:hover {
    background: #fff;
    color: #0d0d0d;
    }

   /* 🔹 SECCIÓN MARCAS */
    .sm-seccion-marcas {
    background: #fff;
    color: #111;
    }

    .sm-seccion-marcas .sm-titulo-seccion {
    font-size: 2rem;
    font-weight: bold;
    color: #000; /* Naranja para resaltar */
    }

    .sm-grid-marcas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    }

    .sm-marca {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .sm-marca img {
    max-width: 120px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    }

    .sm-marca:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
    }

    .sm-marca:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    }

    /* * Catalogo */

    /* 🔹 SECCIÓN CATÁLOGO */
    .ctg-seccion-catalogo {
    background: #f5f5f7;
    padding: 50px 20px;
    }

    .ctg-contenedor {
    display: flex;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
    }

    /* 🔹 Sidebar de Filtros */
    .ctg-filtros {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 250px;
    font-family: "Segoe UI", sans-serif;
    }

    /* 🔹 Títulos */
    .ctg-titulo-filtros {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #222;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 10px;
    }

    /* Subtítulos */
    .ctg-filtros h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 10px;
    color: #333;
    border-left: 4px solid #000;
    padding-left: 8px;
    }

    /* 🔹 Input Buscar */
    .ctg-filtro-busqueda input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s;
    }
    .ctg-filtro-busqueda input:focus {
    border-color: #000;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    }

    /* 🔹 Categorías */
    .ctg-filtro-categorias ul {
    list-style: none;
    padding: 0;
    margin: 0;
    }
    .ctg-filtro-categorias li {
    margin: 6px 0;
    }
    .ctg-filtro-categorias label {
    cursor: pointer;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    }
    .ctg-filtro-categorias input {
    margin-right: 8px;
    accent-color: black; /* checkbox negro moderno */
    }

    /* 🔹 Rango de precio */
    .ctg-filtro-precio input[type="range"] {
    width: 100%;
    margin: 10px 0;
    accent-color: black;
    }
    .ctg-filtro-precio p {
    font-size: 14px;
    color: #666;
    }

    /* 🔹 Ordenar Select */
    .ctg-filtro-orden select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    }
    .ctg-filtro-orden select:focus {
    border-color: #000;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    }

    /* 🔹 LISTADO DE PRODUCTOS */
    .ctg-listado-productos {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    }

    /* Card de producto */
    .ctg-card-prod {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    }

    .ctg-card-prod:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    }

    /* Etiqueta oferta */
    .ctg-etiqueta-oferta {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63946;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    }

    /* Imagen */
    .ctg-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    }

    .ctg-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }

    .ctg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    }

    .ctg-img-container:hover .ctg-overlay {
    opacity: 1;
    }

    .ctg-btn-overlay {
    background: #ff6600;
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    font-size: 16px;
    transition: background 0.3s;
    }

    .ctg-btn-overlay:hover {
    background: #e55a00;
    }

    /* Info */
    .ctg-info {
    padding: 15px;
    text-align: center;
    }

    .ctg-info h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    }

    .ctg-precio {
    margin: 8px 0;
    }

    .ctg-precio-actual {
    color: #ff6600;
    font-weight: bold;
    margin-right: 6px;
    }

    .ctg-precio-antiguo {
    color: #aaa;
    text-decoration: line-through;
    font-size: 14px;
    }

    /* Estrellas */
    .ctg-estrellas {
    color: #ffcc00;
    margin: 8px 0;
    }

    /* Botones */
    .ctg-acciones {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 10px;
    }

    .ctg-btn-detalle {
    background: #eee;
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s;
    }

    .ctg-btn-detalle:hover {
    background: #ccc;
    color: #000;
    }

    .ctg-btn-whatsapp {
    background: #ff6600;
    color: #fff !important;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.3s;
    }

    .ctg-btn-whatsapp:hover {
    background: #1eb954;
    }

    /* 🔹 ENLACES EN NEGRO */
    a {
    color: inherit;
    text-decoration: none;
    }

    /* 🔹 PAGINACIÓN */
    .ctg-paginacion {
    text-align: center;
    margin-top: 30px;
    }
    .ctg-paginacion a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    }
    .ctg-paginacion a:hover {
    background: #f4f4f4;
    }
    .ctg-paginacion a.active {
    background: #000;
    color: #fff;
    border-color: #000;
    }

    /* 📱 Responsive: en pantallas pequeñas aside se ubica encima */
    @media (max-width: 768px) {
    .ctg-contenedor {
        flex-direction: column;
    }

    .ctg-filtros {
        max-width: 100%;
        order: -1; /* se muestra primero */
    }

    .ctg-listado-productos {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

    /* 🔹 Botón filtros */
.ctg-filtros button {
    background: #ff6600;          
    color: #000;                  /* Texto negro */
    border: none;
    padding: 12px 25px;
    border-radius: 8px;           /* Bordes redondeados */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;                  /* Que ocupe el ancho de filtros */
    transition: all 0.3s ease;    /* Animación suave */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ctg-filtros button:hover {
    background: #000;             /* Negro */
    color: #ff6600;               
    transform: translateY(-2px);  /* Efecto de elevación */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.ctg-filtros button:active {
    transform: translateY(0);     /* Al presionar, vuelve a su lugar */
    box-shadow: 0 3px 6px rgba(0,0,0,0.20);
}

/* 🔹 Sección Nosotros */
.nosotros {
  background: #111; /* Fondo oscuro elegante */
  color: #fff;
  padding: 80px 20px;
}

.nosotros-contenedor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}

/* Imagen */
.nosotros-img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  object-fit: cover;
}

/* Texto */
.nosotros-info h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffcc00; /* Amarillo llamativo */
  text-transform: uppercase;
}

.nosotros-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* Datos destacados */
.nosotros-datos {
  display: flex;
  gap: 40px;
  margin: 30px 0;
}

.nosotros-datos div {
  text-align: center;
}

.nosotros-datos h3 {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 5px;
}

.nosotros-datos p {
  font-size: 0.9rem;
  color: #bbb;
}

/* Botón */
.btn-nosotros {
  display: inline-block;
  background: #ffcc00;
  color: #000;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-nosotros:hover {
  background: #000;
  color: #ffcc00;
  transform: translateY(-3px);
}

/* 🔹 Sección Contacto */
.contacto-section {
  background: #111;
  color: #f5f5f5;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.contacto-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  align-items: flex-start;
}

/* 🔹 Información */
.contacto-info h2 {
  font-size: 2rem;
  color: #ffcc00;
  margin-bottom: 15px;
}

.contacto-info p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #ddd;
}

.contacto-info ul {
  list-style: none;
  padding: 0;
}

.contacto-info li {
  margin-bottom: 12px;
  font-size: 16px;
  color: #bbb;
}

/* 🔹 Formulario */
.contacto-form h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffcc00;
}

.form-group {
  margin-bottom: 15px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #f5f5f5;
  font-size: 15px;
  transition: 0.3s ease;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  background: #333;
  outline: none;
  border: 1px solid #ffcc00;
}

.contacto-form button {
  background: linear-gradient(90deg, #ffcc00, #ff6600);
  color: #111;
  padding: 14px 25px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.5);
}

/* 🔹 Mapa */
.contacto-mapa {
  margin-top: 50px;
  border-radius: 15px;
  overflow: hidden;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 🔹 Responsivo */
@media (max-width: 900px) {
  .contacto-container {
    grid-template-columns: 1fr;
  }
}

#calendar {
  background: #fff !important;
  color: #333;
  border-radius: 10px;
}

.fc-toolbar-title {
  color: #000 !important;
  font-weight: bold;
}

.fc-daygrid-day-number {
  color: #000 !important;
}

/* Ofertas */

/* 🔹 Estilo de las cards de oferta */
.sm-card-prod.oferta {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sm-card-prod.oferta:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 🔹 Imagen con acciones */
.sm-img-container {
    position: relative; /* Necesario para posicionar el badge dentro */
    overflow: hidden;
    z-index: 1; /* Imagen debajo */
}

.sm-img-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.sm-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sm-img-container:hover .sm-actions {
    opacity: 1;
}
.sm-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: background 0.3s;
}
.sm-btn-icon.detalle { background: #007bff; }
.sm-btn-icon.carrito { background: #ff7b00; }
.sm-btn-icon:hover { opacity: 0.8; }

/* 🔹 Info producto */
.sm-info {
    padding: 15px;
    text-align: center;
}
.sm-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sm-precio-antiguo {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #888;
    margin-left: 5px;
}
.sm-rating {
    margin: 6px 0;
    color: #f4c150;
}
.sm-btns {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.btn-detalle, .btn-carrito {
    flex: 1;
    padding: 8px;
    font-size: 0.9rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.3s;
}
.btn-detalle { background: #007bff; }
.btn-carrito { background: #ff7b00; }
.btn-detalle:hover, .btn-carrito:hover { opacity: 0.8; }

/* 🔹 Badge Oferta */
.sm-badge-oferta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e63946;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
}

/* 🔹 Badge Oferta */
.sm-badge-oferta {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e63946;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 6px;
    z-index: 10; /* 🔥 Se asegura que esté encima de la imagen */
}

/* Detalle Productos */
    /* 🔹 Contenedor general */
    .sm-detalle-producto {
    padding: 50px 20px;
    background: #f9f9f9;
    }

    .sm-detalle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    }

    /* 🔹 Carrusel */
    .sm-detalle-carousel {
        width: 100%;          /* ocupar todo el ancho disponible */
        max-width: 500px;     /* solo limitar en pantallas grandes */
        height: auto;         /* que la altura se ajuste automáticamente */
        aspect-ratio: 1 / 1;  /* asegura proporción cuadrada en móviles */
        margin: auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .sm-detalle-carousel img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* 🔹 Responsivo */
    @media(max-width: 900px){
    .sm-detalle-grid {
        grid-template-columns: 1fr;
    }

    .sm-detalle-carousel {
        max-width: 100%;   /* ocupa todo el ancho del contenedor */
        aspect-ratio: 4 / 3; /* un poco más rectangular en móviles */
    }

    .sm-detalle-info h2 {
        font-size: 22px;
    }

    .sm-precio {
        font-size: 18px;
    }
}

    .sm-detalle-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    }

    /* 🔹 Info producto */
    .sm-detalle-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    }

    .sm-precio {
    font-size: 20px;
    margin: 10px 0;
    }

    .precio-actual {
    font-weight: bold;
    color: #e63946;
    }

    .sm-rating i {
    color: #f4c430;
    margin-right: 3px;
    }

    .sm-descripcion {
    margin: 20px 0;
    color: #555;
    line-height: 1.6;
    }

    .sm-botones {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    }

    .sm-btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    }

    .sm-btn-carrito {
    background: #ff6600;
    color: #fff;
    }

    .sm-btn-volver {
    background: #333;
    color: #fff;
    }

    #dropdownMenu {
    max-height: 300px;       /* altura máxima del menú */
    overflow-y: auto;        /* scroll solo vertical */
    width: 100%;             /* ocupa todo el ancho del input */
    box-sizing: border-box;  /* asegura que respete padding/border */
    }

    #dropdownMenu li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        white-space: nowrap;      /* mantiene en una sola línea */
        overflow: hidden;
        text-overflow: ellipsis;  /* agrega "..." si es muy largo */
        max-width: 100%;
        cursor: pointer;
    }

    #dropdownMenu li img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
    }

    #dropdownMenu li span {
        flex: 1;
        min-width: 0;             /* permite el "ellipsis" */
    }
