/* ==========================================================================
   1. ESTILOS GLOBALES Y VARIABLES
   ========================================================================== */
:root {
    --bs-body-bg: #fff; /* Fondo principal blanco */
    --bs-body-color: #212529; /* Texto principal oscuro */
    --color-dorado: #DAA520;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* La clave: el cuerpo ocupa como mínimo toda la altura de la pantalla */

    padding-top: 100px; /* Espacio para el header fijo */
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: 'Poppins', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

main {
    flex-grow: 1; /* LA MAGIA: El contenido principal se estira para ocupar el espacio sobrante */
}

.navbar.fixed-top {
    height: 105px;
}

/* ==========================================================================
   HEADER ESTILO ANYCUBIC (TEMA OSCURO)
   ========================================================================== */

/* Contenedor principal del Navbar */
.navbar.fixed-top {
    background-color: #000000 !important; /* Fondo negro */
    height: 105px;
    padding: 0 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo */
.navbar-brand img {
    height: 50px; /* Ajusta el tamaño de tu logo */
}

/* Enlaces de navegación en el centro */
.navbar-nav {
    align-items: center;
}

.nav-link {
    color: #ffffff !important; /* Letras en blanco */
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem !important;
    position: relative;
}

    /* Efecto de línea animada dorada */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: #DAA520; /* Dorado */
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 70%;
    }

/* Iconos de la derecha */
#navbarContent .d-flex .nav-link {
    color: #ffffff !important;
    font-size: 1.3rem;
}

    #navbarContent .d-flex .nav-link:hover {
        color: #DAA520 !important; /* Hover dorado para los iconos */
    }

/* Ajuste para el botón de Salir */
#navbarContent .btn-link {
    color: #ffffff !important;
}

    #navbarContent .btn-link:hover {
        color: #DAA520 !important;
    }

/* Contador del Carrito */
.cart-item-count {
    font-size: 12px;
    background-color: #DAA520;
    color: #000;
}

/* ==========================================================================
   NUEVO DISEÑO PARA LA PÁGINA DE INICIO
   ========================================================================== */

/* --- Sección Hero Principal --- */
.hero-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
    height: 86vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://res.cloudinary.com/dkzu0rlbw/image/upload/v1754341237/logo_mjwgrs.svg');
    background-size: 65%; /* O 110%, 120% para un poco más de zoom o cover */
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax simple */
}

.hero-main-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-main-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta-gold {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #000;
    background: linear-gradient(45deg, #FFD700, #DAA520);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn-cta-gold:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px #FFD700;
        color: #000;
        background:#FFD700;
    }

/* --- Cuadrícula de Categorías --- */
.section-title {
    margin-bottom: 2.5rem;
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    height: 400px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

    .category-card:hover img {
        transform: scale(1.05);
    }

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    box-sizing: border-box;
}

    .category-card-overlay h3 {
        color: #fff;
        font-size: 1.8rem;
        font-weight: 600;
        margin: 0;
    }
/* --- Responsividad de la Cuadrícula de Categorías (Carrusel en Móvil) --- */
@media (max-width: 768px) {
    .category-grid {
        position: relative; /* Necesario para el indicador */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        /* Ocultamos la barra de scroll en Chrome, Safari y Opera */
        .category-grid::-webkit-scrollbar {
            display: none;
        }

        .category-grid .category-card {
            flex: 0 0 85%; /* Cada tarjeta ocupa el 80% del ancho, mostrando un poco de la siguiente */
            scroll-snap-align: center; /* Cada tarjeta se centrará al deslizar */
        }


        /* Indicador visual de flecha para los 3 carruseles */
        .category-grid::after {
            content: '\f105'; /* Código del ícono de flecha de Font Awesome */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 5px;
            top: 40%;
            transform: translateY(-50%);
            font-size: 2.5rem;
            color: rgba(0, 0, 0, 0.15);
            animation: bounce-right 2s infinite;
            pointer-events: none; /* Evita que el indicador interfiera con el scroll */
        }
}

/* Animación para el indicador (si no la tienes ya) */
@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) translateX(0);
    }

    40% {
        transform: translateY(-50%) translateX(5px);
    }

    60% {
        transform: translateY(-50%) translateX(-5px);
    }
}


/* --- Responsividad para la Sección Hero --- */
@media (max-width: 768px) {
    .hero-main {
        padding: 4rem 1.5rem; /* Reduce el espaciado en móvil */
        height: auto; /* Permite que la altura se ajuste al contenido */
        background-attachment: scroll; /* Desactiva el efecto parallax en móvil para mejor rendimiento */
    }

    .hero-main-content h1 {
        font-size: 2.5rem; /* Reduce el tamaño del título */
    }

    .hero-main-content p {
        font-size: 1.1rem; /* Reduce el tamaño del subtítulo */
    }
}

/* ==========================================================================
   ESTILOS UNIFICADOS PARA ICONOS DEL HEADER
   ========================================================================== */
.icons {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espacio uniforme entre todos los iconos */
}

    /* Estilo base para todos los iconos (enlaces y botones) */
    .icons .icon-link, .icons .icon-button {
        color: #ffffff;
        font-size: 1.2rem;
        text-decoration: none;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        position: relative; /* Para el contador del carrito */
        transition: color 0.3s ease;
    }

        .icons .icon-link:hover, .icons .icon-button:hover {
            color: var(--color-dorado); /* Efecto hover dorado */
        }

/* Estilo específico para el contador del carrito */
.cart-item-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--color-dorado);
    color: #000;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

/* --- Estilos para la Búsqueda en Tiempo Real --- */
#live-search-results {
    margin-top: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.live-search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

    .live-search-result-item:hover {
        background-color: #f8f9fa;
    }

    .live-search-result-item img {
        width: 50px;
        height: 50px;
        object-fit: cover;
        margin-right: 1rem;
    }

    .live-search-result-item .result-info {
        display: flex;
        flex-direction: column;
    }

    .live-search-result-item .result-title {
        font-weight: bold;
        color: #333;
    }

    .live-search-result-item .result-price {
        font-size: 0.9rem;
        color: #555;
    }

.live-search-no-results {
    padding: 1rem;
    text-align: center;
    color: #888;
}

/* ==========================================================================
   ESTILOS PARA LA BARRA DE BÚSQUEDA Y OVERLAY
   ========================================================================== */

.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 1.5rem;
    z-index: 1050; /* Más alto que el header */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* Oculto por defecto, movido hacia arriba */
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
}
.live-search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    text-decoration: none; /* <-- ESTA ES LA LÍNEA CLAVE */
}

    .search-container.is-active {
        transform: translateY(0); /* Lo hace visible */
    }

.search-form {
    display: flex;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

    .search-form input {
        flex-grow: 1;
        border: none;
        font-size: 1.2rem;
        border-bottom: 2px solid #333;
        padding: 0.5rem;
        outline: none;
    }

    .search-form button {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding-left: 1rem;
        color: #333;
    }

#close-search {
    position: absolute;
    top: 1rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: #888;
}

.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040; /* Por debajo del buscador, por encima del resto */
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

body.search-active .page-overlay {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   MEGA MENÚ PROFESIONAL (INTEGRADO CON BOOTSTRAP)
   ========================================================================== */

/* Posicionamiento y apariencia del menú desplegable */
.dropdown-menu.mega-menu {
    width: 100vw; /* Ocupa todo el ancho de la ventana */
    max-width: 960px; /* Pero con un ancho máximo para que no sea gigante */
    left: 50%;
    transform: translateX(-50%); /* Centra el menú */
    margin-top: 0;
    padding: 2rem;
    border: none;
    border-top: 1px solid #333;
    border-radius: 0 0 8px 8px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* En pantallas de escritorio, el menú se activa al pasar el ratón */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Estilo de los títulos de columna */
.mega-menu-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* Estilo de los enlaces dentro del menú */
.mega-menu .dropdown-item {
    padding: 0.6rem 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 5px;
    transition: all 0.2s ease;
}

    .mega-menu .dropdown-item:hover {
        color: var(--color-dorado);
        background-color: #f5f5f5;
    }

/* ==========================================================================
   5. RESPONSIVIDAD (VERSIÓN FINAL CON ACORDEÓN PROFESIONAL)
   ========================================================================== */
@media (max-width: 991.98px) {

    /* --- Ajuste de Altura del Header y Logo en Móvil --- */
    .navbar.fixed-top {
        height: 110px;
    }

    body {
        padding-top: 80px;
    }

    .navbar-brand img {
        height: 100px !important; /* Tamaño del logo para móvil */
    }

    /* --- Panel del Menú Móvil (cuando se abre) --- */
    .navbar-collapse {
        background-color: #000000; /* Fondo oscuro del menú desplegado */
        position: absolute;
        top: 110px; /* Se posiciona justo debajo del header */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px); /* Ocupa el resto de la pantalla */
        overflow-y: auto; /* Permite scroll si el menú es muy largo */
        padding: 1.5rem;
    }

    .navbar-nav {
        width: 100%;
    }

    /* --- Estilos del Acordeón NATIVO de Bootstrap --- */
    .nav-item.dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Anulamos los estilos del mega menú de escritorio */
    .dropdown-menu.mega-menu {
        position: static;
        width: 100%;
        transform: none;
        background-color: transparent;
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1rem; /* Indentación para los sub-items */
        display: none; /* Bootstrap lo controla con la clase .show */
    }

        /* Cuando Bootstrap abre el dropdown, lo mostramos */
        .dropdown-menu.mega-menu.show {
            display: block;
        }

    /* Estilos para el contenido del acordeón */
    .mega-menu .container,
    .mega-menu .row,
    .mega-menu .col-lg-3 {
        width: 100%;
        padding: 0;
        margin: 0;
        display: block;
    }

    .mega-menu-title {
        color: #888;
        font-size: 0.9rem;
        padding: 0.75rem 0;
        border-top: 1px solid #444;
    }

    .mega-menu .dropdown-item {
        color: #ccc;
        padding: 0.75rem 0.5rem;
    }

        .mega-menu .dropdown-item:hover {
            color: var(--color-dorado);
            background-color: transparent;
        }
}


/* ==========================================================================
   TARJETAS DE PRODUCTO RESPONSIVAS ESTILO ANYCUBIC (VERSIÓN FINAL)
   ========================================================================== */

.product-grid {
    display: grid;
    /* Por defecto, 2 columnas. Se ajustará en pantallas más grandes/pequeñas */
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.3s ease;
}

    .product-card:hover {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.product-image-container {
    background-color: #f8f9fa;
    position: relative;
    height: 300px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease-in-out;
}

.main-image {
    opacity: 1;
}

.hover-image {
    opacity: 0;
}

.product-card:hover .main-image {
    opacity: 0;
}

.product-card:hover .hover-image {
    opacity: 1;
}

.product-info {
    padding: 1rem 1.5rem;
    text-align: left;
}

.product-title a {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-decoration: none !important;
}

.product-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.add-to-cart-btn {
    display: block;
    font-size: 0.9rem;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    /* --- Estilo Call to Action Dorado --- */
    background: linear-gradient(45deg, #FFD700, #DAA520);
    color: #000;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .add-to-cart-btn:hover {
        transform: scale(1.05); /* Agranda el botón al pasar el mouse */
        box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4); /* Sombra dorada */
        color: #000;
    }

.product-card:hover .add-to-cart-btn {
    opacity: 1; /* Visible en hover */
}

/* --- Responsividad de la cuadrícula --- */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en desktop */
    }
}

/* --- Responsividad de la Cuadrícula de Productos (Carrusel en Móvil) --- */
@media (max-width: 768px) {
    .product-grid {
        position: relative; /* Necesario para el indicador */
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        /* Ocultamos la barra de scroll en Chrome, Safari y Opera */
        .product-grid::-webkit-scrollbar {
            display: none;
        }

        .product-grid .product-card {
            flex: 0 0 85%;
            scroll-snap-align: center;
        }

        /* Indicador visual de flecha para los 3 carruseles */
        .product-grid::after{
            content: '\f105'; /* Código del ícono de flecha de Font Awesome */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 5px;
            top: 40%;
            transform: translateY(-50%);
            font-size: 2.5rem;
            color: rgba(0, 0, 0, 0.15);
            animation: bounce-right 2s infinite;
            pointer-events: none; /* Evita que el indicador interfiera con el scroll */
        }
}

/* Animación para el indicador (si no la tienes ya) */
@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) translateX(0);
    }

    40% {
        transform: translateY(-50%) translateX(5px);
    }

    60% {
        transform: translateY(-50%) translateX(-5px);
    }
}



/* ==========================================================================
   Estilos para la Página de Detalle de Producto
   ========================================================================== */

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.badge {
    font-size: 1rem;
    padding: 0.5em 0.75em;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-principal);
}

.product-detail-description {
    margin-top: 1.5rem;
    line-height: 1.7;
}

.form-select {
    padding: 0.75rem;
}

.add-to-cart-btn-detail {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    text-decoration: none;
}

/* ==========================================================================
   GALERÍA DE PRODUCTO PROFESIONAL (VERSIÓN FINAL)
   ========================================================================== */

.main-media-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Proporción cuadrada (1:1) para el contenedor */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.main-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

    .main-media.active {
        opacity: 1;
        visibility: visible;
    }

/* Las imágenes dentro del contenedor se ajustan */
.main-media-container img.main-media {
    object-fit: contain; /* Asegura que la imagen se vea completa */
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f8f9fa;
    transition: border-color 0.2s ease;
}

    .thumb:hover {
        border-color: #ccc;
    }

    .thumb.active {
        border-color: var(--color-dorado);
    }

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .thumb i {
        font-size: 2rem;
        color: #555;
    }

    .thumb span {
        font-size: 0.8rem;
        font-weight: bold;
        color: #555;
    }


/* ==========================================================================
   ESTILOS PARA LA PÁGINA DEL CARRITO DE COMPRAS
   ========================================================================== */

/* Artículo individual del carrito */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1.5rem;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cart-item-price {
    color: #6c757d;
}

.cart-item-quantity {
    min-width: 50px;
    text-align: center;
}

.cart-item-total {
    min-width: 120px;
    text-align: right;
    font-weight: bold;
}

.cart-item-remove {
    min-width: 50px;
    text-align: right;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .btn-remove:hover {
        color: #dc3545; /* Rojo al pasar el ratón */
    }

/* Resumen del Pedido */
.order-summary {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    .order-summary h4 {
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

.summary-row, .summary-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-total {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsividad */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap; /* Permite que los elementos se apilen */
    }

    .cart-item-image {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .cart-item-details, .cart-item-quantity, .cart-item-total, .cart-item-remove {
        width: 50%;
        min-width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }

    .cart-item-total, .cart-item-remove {
        text-align: right;
    }
}

/* ==========================================================================
   RESPONSIVIDAD PARA EL CARRITO DE COMPRAS
   ========================================================================== */

@media (max-width: 991px) {
    /* En pantallas de tablet y móvil, la columna del resumen se mueve abajo */
    .cart-item-image {
        margin-right: 1rem;
    }

    .order-summary {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    /* En pantallas móviles pequeñas, cambiamos el layout de cada producto */
    .cart-item {
        flex-wrap: wrap; /* Permite que los elementos se apilen */
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .cart-item-image {
        width: 100%; /* La imagen ocupa todo el ancho */
        text-align: center;
        margin-right: 0;
        margin-bottom: 1rem;
    }

        .cart-item-image img {
            width: 120px;
            height: 120px;
        }

    .cart-item-details {
        flex-basis: 100%; /* Ocupa toda una línea */
        text-align: center;
        margin-bottom: 1rem;
    }

    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        flex-basis: 33.33%; /* Divide el espacio inferior en tres */
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0.5rem 0;
    }

    .cart-item-total {
        font-size: 1.1rem;
    }
}


/* ==========================================================================
   ESTILOS PARA LA PÁGINA DE CHECKOUT
   ========================================================================== */

.checkout-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.checkout-form {
    padding-right: 2rem;
}

.order-summary-checkout {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    .order-summary-checkout h4 {
        font-weight: 600;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 1rem;
    }

.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

    .summary-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 5px;
        margin-right: 1rem;
    }

.summary-item-details {
    flex-grow: 1;
}


/* ==========================================================================
   DISEÑO PROFESIONAL PARA PÁGINA DE GRACIAS / INSTRUCCIONES
   ========================================================================== */

.thank-you-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    background-color: #f8f9fa; /* Fondo gris suave */
}

.thank-you-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 650px;
    border: 1px solid #dee2e6;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--color-dorado); /* Usamos tu color dorado */
    margin-bottom: 1rem;
}

.thank-you-card h1 {
    font-weight: 600;
}

.payment-instructions {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.sinpe-details {
    text-align: left;
    display: inline-block;
    margin-top: 1rem;
    padding: 1rem;
    border-left: 4px solid var(--color-dorado);
    background-color: #fff;
}

    .sinpe-details p {
        margin-bottom: 0.5rem;
    }


/* ==========================================================================
   DISEÑO PROFESIONAL PARA LOGIN Y REGISTRO
   ========================================================================== */

.auth-wrapper {
    display: flex;
    min-height: calc(100vh - 80px); /* Ocupa toda la altura menos el header */
}

.auth-image-panel {
    flex-basis: 50%;
    background-size: cover;
    background-position: center;
}

.auth-form-panel {
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-form-content {
    width: 100%;
    max-width: 400px;
}

/* Responsividad para móvil */
@media (max-width: 991px) {
    .auth-image-panel {
        display: none; /* Ocultamos la imagen en móvil */
    }

    .auth-form-panel {
        flex-basis: 100%;
    }
}
.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}


/* --- Estilos para Páginas de Confirmación --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    text-align: center;
}

.auth-card {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    max-width: 500px;
}

.auth-icon {
    font-size: 4rem;
    color: #198754; /* Verde de éxito */
    margin-bottom: 1.5rem;
}


/* ==========================================================================
   FOOTER PROFESIONAL (VERSIÓN FINAL)
   ========================================================================== */
.site-footer {
    background-color: #000000;
    color: #adb5bd;
    padding: 4rem 2rem 2rem; /* Relleno: 4rem arriba, 2rem a los lados, 2rem abajo */
    font-size: 0.9rem;
}

.footer-title {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.footer-text {
    line-height: 1.8;
    color: #6c757d; /* Un gris un poco más suave para el texto largo */
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.8rem;
    }

    .footer-links a {
        text-decoration: none;
        color: #adb5bd;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--color-dorado);
            padding-left: 5px;
        }

/* --- Barra inferior del Footer --- */
.footer-bottom {
    border-top: 1px solid #343a40;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    margin: 0;
}

.social-links a {
    color: #adb5bd;
    font-size: 1.2rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

    .social-links a:hover {
        color: var(--color-dorado);
        transform: translateY(-2px);
    }

/* --- Responsividad del Footer --- */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }

    .copyright-text {
        order: 2;
    }

    .social-links {
        order: 1;
    }

        .social-links a {
            margin: 0 0.75rem; /* Reduce el espaciado en móvil */
        }
}

/* ==========================================================================
   PÁGINA "SOBRE NOSOTROS"
   ========================================================================== */
.about-hero {
    /* --- AÑADE ESTAS LÍNEAS --- */
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    padding: 6rem 0;
    min-height: 80vh; /* Ocupará al menos el 100% de la altura de la ventana */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://res.cloudinary.com/dkzu0rlbw/image/upload/v1756242244/Impresora_A1_j1erzo.jpg');
    background-size: 120% auto; /* Ajusta el ancho al 80% del contenedor, la altura se calcula automáticamente */
    background-repeat: no-repeat;
    background-position: center bottom;
    background-attachment: fixed; /* Efecto Parallax */
    color: #fff;
    text-align: center;
    min-height: 80vh; /* Asegura que el contenedor tenga al menos la altura de la ventana */
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.about-hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* --- MEDIA QUERY PARA MÓVILES --- */
@media (max-width: 768px) { /* Se aplica a pantallas de 768px o menos (típico para tablets/móviles) */
    .about-hero {
        min-height: 80vh; /* Reducimos la altura en móviles si es necesario */
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://res.cloudinary.com/dkzu0rlbw/image/upload/v1756244377/Impresora_A1_M_ybcims.png'); /* <--- CAMBIA ESTA URL */
        background-size: cover; /* Aquí sí podemos usar cover si la imagen móvil es adecuada */
        background-position: center center; /* Centramos la imagen en móvil */
    }

    .about-hero-content h1 {
        font-size: 2.5rem; /* Ajustamos el tamaño del título para que quepa mejor */
    }

    .about-hero-content p {
        font-size: 1rem; /* Ajustamos el tamaño del párrafo */
    }
}

/* ==========================================================================
   ESTILOS PARA PÁGINA DE CONTACTO MEJORADA
   ========================================================================== */
.contact-social-links {
    margin-top: 1rem;
}

    .contact-social-links a {
        color: #343a40;
        font-size: 1.8rem;
        margin-right: 1.5rem;
        transition: color 0.3s ease, transform 0.3s ease;
    }

        .contact-social-links a:hover {
            color: var(--color-dorado);
            transform: translateY(-2px);
        }


/* ==========================================================================
   ESTILOS PARA EL PANEL DE ADMINISTRACIÓN
   ========================================================================== */

/* Estilo para la tabla principal */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .admin-table th, .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid #dee2e6;
        text-align: left;
        vertical-align: middle;
    }

    .admin-table thead th {
        background-color: #f8f9fa;
        font-weight: 600;
        border-bottom-width: 2px;
    }

    .admin-table tbody tr:hover {
        background-color: #f1f1f1;
    }

/* --- Responsividad para las Tablas de Admin --- */
@media (max-width: 768px) {
    .admin-table thead {
        display: none; /* Ocultamos los encabezados en móvil */
    }

    .admin-table, .admin-table tbody, .admin-table tr, .admin-table td {
        display: block;
        width: 100%;
    }

        .admin-table tr {
            margin-bottom: 1rem;
            border: 1px solid #dee2e6;
            border-radius: 5px;
        }

        .admin-table td {
            text-align: right;
            position: relative;
            padding-left: 50%;
            border-bottom: none;
        }

            .admin-table td:before {
                content: attr(data-label);
                position: absolute;
                left: 1rem;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                text-align: left;
                font-weight: bold;
            }
}



/* ==========================================================================
   ESTILOS PARA SECCIÓN DE RESEÑAS
   ========================================================================== */
.review-card {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
}

.review-rating .fa-star {
    color: #e9ecef; /* Color de estrella vacía */
}

    .review-rating .fa-star.filled {
        color: var(--color-dorado); /* Color de estrella llena */
    }

.review-comment {
    margin: 0.5rem 0;
}

.review-author {
    color: #6c757d;
    font-size: 0.9rem;
}

/* --- Estilos para el Formulario de Estrellas --- */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

    .star-rating input[type="radio"] {
        display: none;
    }

    .star-rating label {
        font-size: 2rem;
        color: #e9ecef;
        cursor: pointer;
        transition: color 0.2s;
    }

        .star-rating input[type="radio"]:checked ~ label,
        .star-rating label:hover,
        .star-rating label:hover ~ label {
            color: var(--color-dorado);
        }




/* ==========================================================================
   Estilos para el Resumen de Calificaciones
   ========================================================================== */

.rating-summary .stars-display {
    font-size: 1.2rem;
}

.rating-summary .fa-star {
    color: #e9ecef; /* Color de estrella vacía */
}

    .rating-summary .fa-star.filled {
        color: var(--color-dorado); /* Color de estrella llena */
    }

.rating-summary .rating-value {
    font-size: 1rem;
}

.rating-summary .review-count {
    font-size: 0.9rem;
}

/* --- Centrar imagen del producto en carrusel de testimonios (solo móviles) --- */
@media (max-width: 767.98px) { /* Usamos 767.98px para ser más precisos con los breakpoints de Bootstrap */
    .testimonial-product-image {
        display: flex; /* Cambiamos a flex para centrar contenido */
        justify-content: center; /* Centra horizontalmente la imagen dentro de este div */
        align-items: center; /* Centra verticalmente si hubiera espacio */
        margin-left: auto !important; /* Anula cualquier margin-left de Bootstrap */
        margin-right: auto !important; /* Anula cualquier margin-right de Bootstrap */
        margin-bottom: 1.5rem !important; /* Asegura espacio si se apila */
    }

        .testimonial-product-image img {
            display: block; /* Asegura que la imagen es un bloque */
            max-width: 150px; /* Mantén el tamaño máximo */
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

    /* Aseguramos que el contenido del testimonio también esté centrado */
    .testimonial-text-content {
        text-align: center !important;
    }
}



/* --- Estilos para Páginas de Confirmación --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 1rem;
    text-align: center;
}

.auth-card {
    background-color: #f8f9fa;
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    max-width: 500px;
}

.auth-icon {
    font-size: 4rem;
    color: #198754; /* Verde de éxito */
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   SECCIÓN DE OPCIONES DE ENTREGA
   ========================================================================== */
.delivery-option-card {
    padding: 2rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .delivery-option-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

.delivery-icon {
    font-size: 3rem;
    color: var(--color-dorado);
    margin-bottom: 1rem;
}
/* ==========================================================================
   SECCIÓN DE OPCIONES DE ENTREGA - CARRUSEL MÓVIL
   ========================================================================== */

/* Solo se aplica en pantallas de 768px o menos */
@media (max-width: 768px) {
    .delivery-options-grid {
        position: relative; /* Necesario para el indicador */
        display: flex;
        flex-wrap: nowrap; /* Evita que las tarjetas salten a la siguiente línea */
        overflow-x: auto; /* Habilita el scroll horizontal */
        scroll-snap-type: x mandatory; /* Hace que el scroll se "pegue" a cada tarjeta */
        -ms-overflow-style: none; /* Oculta la barra de scroll en IE y Edge */
        scrollbar-width: none; /* Oculta la barra de scroll en Firefox */
    }

        /* Ocultamos la barra de scroll en Chrome, Safari y Opera */
        .delivery-options-grid::-webkit-scrollbar {
            display: none;
        }

        .delivery-options-grid > .col-md-4 {
            flex: 0 0 85%; /* Cada tarjeta ocupa el 85% del ancho de la pantalla */
            scroll-snap-align: center; /* Cada tarjeta se centrará al deslizar */
        }

        /* Indicador visual para que el usuario sepa que puede deslizar */
        .delivery-options-grid::after {
            content: '\f105'; /* Código del ícono de flecha derecha de Font Awesome */
            font-family: 'Font Awesome 6 Free'; /* Usa la fuente de Font Awesome */
            font-weight: 900; /* Necesario para los iconos sólidos */
            position: absolute;
            right: 5px;
            top: 40%;
            transform: translateY(-50%);
            font-size: 2.5rem;
            color: rgba(0, 0, 0, 0.15);
            animation: bounce-right 2s infinite;
        }
}

/* Animación para el indicador */
@keyframes bounce-right {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(-50%) translateX(0);
    }

    40% {
        transform: translateY(-50%) translateX(5px);
    }

    60% {
        transform: translateY(-50%) translateX(-5px);
    }
}

/* --- Estilos para Socios de Envío en el Footer --- */
.shipping-partners {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* Espacio entre el texto y el logo */
}

.shipping-partners-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.shipping-logo {
    height: 170px; /* Altura del logo */
    filter: brightness(0) invert(1); /* Lo convierte a blanco para que combine */
}


/* --- Estilos para la Página de Ubicaciones --- */
.map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%; /* Proporción 4:3 */
    border-radius: 8px;
}

    .map-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* --- Responsividad para la Página de Ubicaciones (VERSIÓN DEFINITIVA) --- */
@media (max-width: 768px) {
    .ubicaciones-page .text-center h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .ubicaciones-page .text-center .lead {
        font-size: 1rem;
    }

    .ubicaciones-page .row h2 {
        font-size: 1.8rem;
        margin-top: 2rem;
    }

    .ubicaciones-page .row .col-md-6 {
        margin-bottom: 1.5rem;
    }

    /* --- INICIO DE LA CORRECCIÓN DEL MAPA --- */
    .ubicaciones-page .map-container {
        padding-top: 0 !important; /* Anulamos el truco de la proporción */
        height: 300px !important; /* Le damos una altura fija y manejable */
        border-radius: 8px;
        overflow: hidden; /* Nos aseguramos de que el iframe no se desborde */
    }
    /* --- FIN DE LA CORRECCIÓN --- */
}


/* --- Estilos para Páginas Legales --- */
.legal-content-page h1 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-content-page h2 {
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.legal-content-page p, .legal-content-page ul {
    line-height: 1.8;
    color: #343a40;
}


/* ==========================================================================
   SECCIÓN DE TESTIMONIOS (CARRUSEL)
   ========================================================================== */
.testimonials-carousel-section {
    background-color: #f8f9fa; /* Fondo suave para la sección */
    padding: 4rem 0;
}

    .testimonials-carousel-section .section-title {
        color: var(--color-principal); /* Color del título */
        margin-bottom: 3rem;
    }

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.testimonial-product-image img {
    border-radius: 8px;
    object-fit: cover;
    width: 150px; /* Tamaño fijo para la imagen del producto */
    height: 150px;
}

.testimonial-rating {
    color: var(--color-dorado); /* Estrellas doradas */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-comment {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-principal);
    margin-bottom: 0.5rem;
}

.testimonial-product-link {
    color: var(--color-dorado); /* Enlace al producto */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .testimonial-product-link:hover {
        color: #e0a800; /* Un dorado más oscuro al pasar el ratón */
    }

/* Controles del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--color-principal); /* Color de fondo de los botones */
    border-radius: 50%;
    padding: 10px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Ajusta el ancho para que los controles no estén tan en los extremos */
}

/* Adaptación para dispositivos móviles */
@media (max-width: 767.98px) {
    .testimonial-content {
        flex-direction: column; /* Apila la imagen y el texto en móvil */
        padding: 1.5rem;
    }

    .testimonial-product-image {
        margin-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    .testimonial-text-content {
        text-align: center !important;
    }
}

/* ==========================================================================
   SECCIÓN DE COMUNIDAD TIKTOK
   ========================================================================== */
.tiktok-community-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

    .tiktok-community-section .section-title {
        color: var(--color-principal); /* Color del título */
        margin-bottom: 1.5rem;
    }

.followers-count {
    font-weight: 700;
    color: var(--color-dorado);
}

.btn-cta-tiktok {
    display: inline-flex; /* Usar flex para centrar ícono y texto */
    align-items: center;
    gap: 0.5rem; /* Espacio entre el ícono y el texto */
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border: 2px solid #000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem; /* Espacio superior */
}

    .btn-cta-tiktok:hover {
        background-color: #fff;
        color: #000;
    }

/* Estilo para las tarjetas de video de TikTok */
.tiktok-video-card {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%; /* Asegura que la tarjeta ocupe el espacio */
}

    /* Sobreescribir los estilos internos de TikTok para que sea responsivo */
    .tiktok-video-card > blockquote {
        width: 100% !important;
        min-width: unset !important; /* Elimina el min-width fijo */
        max-width: 100% !important; /* Asegura que no exceda el 100% */
        margin: 0 !important; /* Elimina márgenes extra */
    }

/* --- Estilos para el Carrusel de TikTok --- */
#tiktokCarousel .carousel-inner {
    padding: 0 5rem; /* Da espacio a los lados para que se vean los controles */
}

#tiktokCarousel .carousel-control-prev,
#tiktokCarousel .carousel-control-next {
    width: 5%;
    opacity: 0.7; /* Para que sean un poco más visibles */
    transition: opacity 0.2s ease;
}

    #tiktokCarousel .carousel-control-prev:hover,
    #tiktokCarousel .carousel-control-next:hover {
        opacity: 1;
    }

#tiktokCarousel .carousel-control-prev-icon,
#tiktokCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6); /* Fondo semi-transparente para los botones */
    border-radius: 50%;
    padding: 10px;
}

/* Adaptación para dispositivos móviles */
@media (max-width: 991.98px) {
    .tiktok-community-section .col-lg-5 {
        text-align: center !important; /* Centra el texto en tablet y móvil */
    }

    .tiktok-community-section .col-lg-7 {
        margin-top: 2rem; /* Espacio superior para el carrusel en móvil */
    }

    .btn-cta-tiktok {
        margin: 1.5rem auto 0 auto; /* Centrar el botón en móvil */
    }

    #tiktokCarousel .carousel-inner {
        padding: 0 2rem; /* Reduce el padding del carrusel en pantallas más pequeñas */
    }

    #tiktokCarousel .carousel-control-prev,
    #tiktokCarousel .carousel-control-next {
        width: 10%; /* Más ancho para los controles en móvil */
    }
}


/* ==========================================================================
   ESTILOS PARA EL CARRUSEL DE TRABAJOS (VERSIÓN MEJORADA)
   ========================================================================== */

/* Contenedor principal del carrusel */
#trabajosCarrusel {
    max-height: 600px; /* <-- LA CLAVE: Define la altura máxima del carrusel */
    margin: 0 auto;
}

/* Las imágenes ahora se adaptan a la altura del contenedor */
.carousel-item img, .carousel-item video {
    width: auto; /* Ancho automático para mantener la proporción */
    height: 100%;
    max-height: 600px; /* La misma altura máxima */
    object-fit: contain; /* Asegura que la imagen se vea completa */
    margin: 0 auto; /* Centra la imagen si es más estrecha que el carrusel */
    border-radius: 8px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 1rem;
}

/* --- Responsividad para el carrusel --- */
@media (max-width: 768px) {
    #trabajosCarrusel,
    .carousel-item img,
    .carousel-item video {
        height: 350px; /* Altura más adecuada para móviles */
    }
}

/* --- Corrección para Controles del Carrusel sobre Video --- */
.carousel-control-prev,
.carousel-control-next {
    z-index: 10; /* Asegura que las flechas estén por encima del video */
}

/* Cambia el color de las flechas a uno más visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente para que resalten */
    border-radius: 50%;
    padding: 1.5rem;
}


/* ==========================================================================
   6. BOTONES FLOTANTES DE REDES SOCIALES (FAB Group)
   ========================================================================== */
.social-fab-group {
    position: fixed;
    bottom: 50%; /* Aproximadamente a la mitad de la pantalla */
    right: 20px; /* Separado del borde derecho */
    transform: translateY(50%); /* Ajuste fino para centrar verticalmente */
    display: flex;
    flex-direction: column; /* Apilar los botones verticalmente */
    gap: 15px; /* Espacio entre los botones */
    z-index: 1050; /* Asegura que estén por encima de todo */
}

.social-fab {
    width: 55px; /* Tamaño un poco más pequeño para el grupo */
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem; /* Tamaño del icono */
    color: #FFF;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
    text-decoration: none; /* Elimina el subrayado por defecto */
}

    .social-fab:hover {
        transform: scale(1.1);
        color: #FFF; /* Mantiene el color blanco del icono al pasar el mouse */
        /* background-color se define en cada botón específico si queremos un hover diferente */
    }

/* Colores específicos de cada red social */
.whatsapp-fab {
    background-color: #25D366;
}

.tiktok-fab {
    background-color: #000000; /* Color de TikTok */
}

.instagram-fab {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); /* Degradado de Instagram */
}

.facebook-fab {
    background-color: #1877F2; /* Color oficial de Facebook */
}

/* --- Ajuste de Botones Flotantes para Móvil --- */
@media (max-width: 768px) {
    .social-fab-group {
        gap: 10px; /* Reduce el espacio entre botones */
        right: 15px;
        bottom: 15px;
        margin-bottom: 120px; /* <-- AÑADE ESTA LÍNEA */
    }

    .social-fab {
        width: 35px; /* Reduce el tamaño de los botones */
        height: 35px;
        font-size: 1.2rem; /* Reduce el tamaño del icono */
    }
}


/* ==========================================================================
   PÁGINA DE PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    border-radius: 8px !important; /* Forzar el redondeo de los bordes */
}

.accordion-header .accordion-button {
    font-weight: 600;
    color: #343a40;
    background-color: #f8f9fa;
    box-shadow: none; /* Quitar la sombra por defecto de Bootstrap */
}

    .accordion-header .accordion-button:not(.collapsed) {
        background-color: var(--color-dorado); /* Color dorado cuando está abierto */
        color: #000;
    }

.accordion-body {
    line-height: 1.8;
    color: #6c757d;
}


/* ==========================================================================
   Estilos para el Pop-up de Cupón
   ========================================================================== */

/* --- Estilos para la Barra de Bienvenida --- */
.welcome-bar {
    background-color: #121212;
    color: #fff;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1031; /* Justo por encima del header */
    transition: transform 0.4s ease-out;
}

    .welcome-bar.is-hidden {
        transform: translateY(-100%);
    }

.coupon-code-bar {
    font-weight: bold;
    color: var(--color-dorado);
    border: 1px solid var(--color-dorado);
    padding: 2px 6px;
    border-radius: 4px;
}


/* ==========================================================================
    Estilos para la Página de Estanterías
   ========================================================================== */

.hero-estanterias {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
    min-height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://res.cloudinary.com/dkzu0rlbw/image/upload/v1754779777/top3_w9otlx.jpg');
    background-size: cover;
    background-position: center;
}

.feature-icons-section .feature-item i {
    font-size: 3rem;
    color: var(--color-dorado);
    margin-bottom: 1rem;
}

/* --- Sección Hero Principal --- */
.hero-estanterias {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
    height: 86vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://res.cloudinary.com/dkzu0rlbw/image/upload/v1754779777/top3_w9otlx.jpg');
    background-size: cover%; /* O 110%, 120% para un poco más de zoom o cover */
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax simple */
}

.hero-estanterias-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-estanterias-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsividad para la Sección Hero --- */
@media (max-width: 768px) {
    .hero-estanterias {
        padding: 4rem 1.5rem; /* Reduce el espaciado en móvil */
        height: auto; /* Permite que la altura se ajuste al contenido */
        background-attachment: scroll; /* Desactiva el efecto parallax en móvil para mejor rendimiento */
    }

    .hero-estanterias-content h1 {
        font-size: 2.5rem; /* Reduce el tamaño del título */
    }

    .hero-estanterias-content p {
        font-size: 1.1rem; /* Reduce el tamaño del subtítulo */
    }
}


/* ==========================================================================
    Estilos para la Sección de Personalización
   ========================================================================== */

.customization-section {
    background-color: #f8f9fa; /* Fondo gris suave para destacar la sección */
    padding: 4rem 0;
}

.customization-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

    .customization-feature i {
        font-size: 2rem;
        color: var(--color-dorado);
        margin-right: 1.5rem;
        width: 40px; /* Ancho fijo para el icono */
    }

    .customization-feature h4 {
        font-weight: 600;
        margin-bottom: 0.25rem;
    }

#customWorkCarousel .carousel-item img,
#customWorkCarousel .carousel-item video {
    height: 500px;
    object-fit: cover; /* Estilo por defecto para MÓVIL */
    border-radius: 8px;
    background-color: #212529;
}

/* --- ESTA ES LA REGLA CLAVE --- */
/* En pantallas de 992px o más (desktop/laptops)... */
@media (min-width: 992px) {
    #customWorkCarousel .carousel-item img,
    #customWorkCarousel .carousel-item video {
        object-fit: contain; /* ...cambiamos a contain para que se vea completo */
    }
}