/* --- Estilos Globales y de Fondo --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a2e22; /* Color de fondo sólido si la imagen no carga */
    background-image: url('https://images.unsplash.com/photo-1491147334573-44cbb4602074?q=80&w=2592&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantiene el fondo estático al hacer scroll */
    color: #f8f9fa; /* Color de texto claro por defecto */
}

/* Contenedor principal para superponer un color oscuro sobre la imagen de fondo */
.main-container {
    background-color: rgba(15, 23, 20, 0.6); /* Superposición oscura semitransparente */
    padding-bottom: 5rem;
}

/* --- Barra de Navegación Flotante (Estilo Cápsula) --- */
.navbar-pilled {
    position: fixed;
    top: 1.5rem; /* Distancia desde la parte superior */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px; /* Ancho máximo de la barra */
    z-index: 1030;
    
    background-color: rgba(25, 35, 31, 0.6); /* Fondo semitransparente */
    border-radius: 50px; /* Bordes redondeados para el efecto cápsula */
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px); /* Efecto "frosted glass" */
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    color: #e9ecef !important;
    margin: 0 0.25rem;
    padding: 0.5rem 1rem !important;
    border-radius: 30px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-pilled .nav-icons a {
    padding: 0.5rem 0.75rem !important;
}

/* Estilos para el menú desplegable "Categorías" */
.dropdown-menu {
    background-color: rgba(35, 48, 42, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 0;
}

.dropdown-item {
    color: #e9ecef;
    padding: 0.75rem 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.dropdown-item:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Sección Hero --- */
.hero-section {
    padding-top: 140px; /* Aumentado para dejar espacio a la navbar flotante */
    padding-bottom: 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.1rem;
    font-weight: 300;
    color: #ced4da;
    max-width: 450px; /* Limita el ancho del párrafo */
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.btn-explore {
    background-color: #f8f9fa;
    color: #1a2e22;
    border: 2px solid #f8f9fa;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    background-color: transparent;
    color: #f8f9fa;
}

.btn-video {
    background-color: transparent;
    color: #f8f9fa;
    border: 2px solid #6c757d;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-video:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* --- Tarjeta de Producto Hero (Frosted Glass) --- */
.product-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    text-align: center;
    position: relative;
    min-height: 450px; /* Altura mínima para evitar saltos de contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-card img {
    max-width: 80%;
    height: 220px; /* Altura fija para la imagen */
    object-fit: contain; /* Asegura que la imagen se ajuste sin deformarse */
    margin-top: -80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 20px 20px rgba(0,0,0,0.3));
}

.product-card .badge {
    background-color: rgba(40, 167, 69, 0.2) !important;
    color: #28a745 !important;
    border: 1px solid #28a745;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .btn-buy {
    background-color: #f8f9fa;
    color: #1a2e22;
    border: none;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.product-card .btn-buy:hover {
    transform: scale(1.05);
}

.carousel-dots {
    margin-top: 1.5rem;
}

.carousel-dots .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 0 4px;
}

.carousel-dots .dot.active {
    background-color: #ffffff;
}

/* --- Estilos de Título de Sección --- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title.line::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 80%;
    background-color: #28a745;
    border-radius: 5px;
}

.section-title.bracketed {
    padding: 0 1rem;
}

.section-title.bracketed::before,
.section-title.bracketed::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15px;
    height: 100%;
    border-top: 3px solid #28a745;
    border-bottom: 3px solid #28a745;
}

.section-title.bracketed::before {
    left: 0;
    border-left: 3px solid #28a745;
    border-right: none;
    border-radius: 10px 0 0 10px;
}

.section-title.bracketed::after {
    right: 0;
    border-right: 3px solid #28a745;
    border-left: none;
    border-radius: 0 10px 10px 0;
}


/* --- Sección Más Buscados --- */
.most-wanted-section {
    padding: 4rem 0;
}

.product-grid-card {
    background-color: rgba(25, 35, 31, 0.7);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-grid-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.product-grid-card .card-body {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-grid-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.product-grid-card .card-text {
    color: #ced4da;
    font-size: 0.9rem;
    flex-grow: 1;
}

.product-grid-card .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.product-grid-card .btn-add {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.product-grid-card .btn-add:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* --- Sección Carrusel Informativo --- */
.info-section {
    padding: 4rem 0;
}

.info-card {
    background-color: rgba(25, 35, 31, 0.7);
    border-radius: 20px;
    padding: 2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.info-card img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 15px 15px rgba(0,0,0,0.2));
}

.info-card h3 {
    font-size: 2rem;
    font-weight: 600;
}

.info-card p {
    color: #ced4da;
    font-size: 1rem;
}

.info-card .btn-outline-light {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    border-width: 2px;
    font-weight: 600;
}

#infoCarousel .carousel-control-prev,
#infoCarousel .carousel-control-next {
    width: 5%;
}

#infoCarousel .carousel-control-prev-icon,
#infoCarousel .carousel-control-next-icon {
    transform: scale(1.5);
}

/* --- Pie de Página --- */
.site-footer {
    background-color: #192721;
    color: #ced4da;
    padding: 4rem 0 0;
}

.site-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.site-footer p {
    font-size: 0.9rem;
}

.site-footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.75rem;
}

.site-footer .footer-links a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
}

.site-footer .social-links a {
    color: #ced4da;
    text-decoration: none;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.site-footer .social-links a:hover {
    color: #ffffff;
}

.site-footer .subscription-form .form-control {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 50px 0 0 50px;
}

.site-footer .subscription-form .form-control::placeholder {
    color: #ced4da;
}

.site-footer .subscription-form .btn {
    background-color: #ffffff;
    color: #1a2e22;
    font-weight: 600;
    border-radius: 0 50px 50px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.9rem;
}
/* ... (todo tu CSS anterior va aquí) ... */

/* --- Estilos para la Página de Detalle de Producto --- */
.product-features {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 10px;
}

.feature-item i {
    font-size: 1.5rem;
    color: #28a745;
    margin-right: 1rem;
    min-width: 30px; /* Ancho mínimo para alinear los iconos */
}

.feature-item .feature-text strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.feature-item .feature-text span {
    color: #ced4da;
    font-size: 0.9rem;
}


/* ... (todo tu CSS anterior va aquí) ... */

/* --- Estilos para el Contador del Carrito --- */
.cart-counter {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    transform: translate(50%, -50%);
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.1em 0.4em;
    font-size: 0.75rem;
    font-weight: bold;
    display: none; /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    height: 1.5em;
    line-height: 1;
}

/* --- Estilos para la Barra de Búsqueda en la Navbar --- */
.navbar-pilled .navbar-content {
    /* Transición para ocultar suavemente los enlaces */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar-pilled .navbar-search-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Cuando la navbar tiene la clase 'search-active' */
.navbar-pilled.search-active .navbar-content {
    opacity: 0;
    visibility: hidden;
}

.navbar-pilled.search-active .navbar-search-form {
    opacity: 1;
    visibility: visible;
}

.navbar-search-form .form-control {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    box-shadow: none;
    padding-left: 1rem;
}

.navbar-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-search-form .btn-close-search {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
}

/* --- Estilos para la Página del Carrito --- */
.summary-card {
    background-color: rgba(25, 35, 31, 0.7);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.summary-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.summary-card .list-group-item {
    background-color: transparent;
    border: none;
    color: #ced4da;
    padding: 0.75rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    background-color: rgba(25, 35, 31, 0.7);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 1rem;
}

.cart-item .item-details {
    flex-grow: 1;
}

.cart-item .item-details a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    display: block;
}

.cart-item .item-details span {
    color: #ced4da;
    font-size: 0.9rem;
}

.cart-item .item-quantity {
    width: 80px;
    margin: 0 1rem;
}

.cart-item .item-quantity .form-control {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
    text-align: center;
}

.cart-item .item-total {
    width: 120px;
    text-align: right;
    font-weight: 600;
}

.cart-item .btn-remove-item {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.25rem;
    margin-left: 1rem;
}

/* --- Estilos para los botones de acción del carrito --- */
.summary-card .d-grid {
    margin-top: 2rem; /* Aumenta el margen superior para separar de la lista */
    padding-top: 1.5rem; /* Añade espacio interno arriba de los botones */
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Línea separadora sutil */
}


/* ... (todo tu CSS anterior va aquí) ... */

/* --- Estilos para la Página del Carrito --- */
/* ... (los estilos del carrito que ya tienes) ... */

/* --- Estilos para la Página de Checkout --- */
.summary-card .list-group-item {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.15);
}

#payment-form .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

#payment-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #28a745;
    box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    color: #ffffff;
}

#payment-form .form-control::placeholder {
    color: #adb5bd;
}

/* Estilos para el Modal de Éxito */
.modal-content {
    background-color: #192721;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ... (todo tu CSS anterior va aquí) ... */

/* --- CORRECCIONES PARA LA BARRA DE NAVEGACIÓN EN MÓVIL --- */

/* Estilo del menú cuando se despliega en pantallas pequeñas */
@media (max-width: 991.98px) {
    .navbar-pilled .navbar-collapse {
        margin-top: 1rem;
        padding: 1.5rem;
        background-color: rgba(25, 35, 31, 0.8);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    /* Centrar los enlaces y darles más espacio */
    .navbar-pilled .navbar-nav {
        align-items: center;
    }

    /* Separar los iconos de los enlaces de texto */
    .navbar-pilled .nav-icons {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
    }
}

/* Cambiar el color del ícono del menú hamburguesa para que sea más visible */
.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}
