/* RESET BÁSICO */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* BARRA DE ANUNCIOS */
.announcement-bar {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HEADER */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #666;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* HERO SECTION (PORTADA CON IMAGEN) */
.hero-section {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff; /* Texto en blanco para que resalte sobre la foto */
    
    /* AQUÍ SE PONE LA IMAGEN */
    /* El 'linear-gradient' pone una capa oscura transparente para que se lea el texto */
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagenes/banner.jpg');
    
    background-size: cover; /* Hace que la imagen cubra todo el espacio */
    background-position: center top; /* Centra la imagen */
    background-repeat: no-repeat;
}
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
}

.btn-secondary {
    width: 100%;
    border: 1px solid #000;
    background: transparent;
    color: #000;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

.btn-outline {
    border: 1px solid #000;
    color: #000;
}

/* PRODUCTOS */
.products-section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: normal;
}

.price {
    font-size: 1rem;
    margin-bottom: 15px;
}

.sale-price {
    color: #d32f2f;
    margin-right: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

/* INFO SECTION */
.info-section {
    padding: 60px 0;
    text-align: center;
}

.info-text {
    max-width: 800px;
    margin: 0 auto;
}

.info-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    background-color: #f8f8f8;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    padding: 10px;
    border: 1px solid #ccc;
    flex: 1;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    color: #666;
}

.mobile-nav {
    display: none;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .hero-content h2 {
        font-size: 2rem;
    }
    
    .mobile-nav.active {
        display: block;
    }
}

/* --- ESTILOS ADICIONALES PARA CATÁLOGO --- */
.catalog-wrapper {
    padding-top: 20px;
    padding-bottom: 60px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.catalog-layout {
    display: flex;
    gap: 40px;
}

.filters-sidebar {
    width: 250px;
    flex-shrink: 0; 
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 1px solid #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #000;
    border-color: #000;
}

.catalog-content {
    flex-grow: 1;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sort-by select {
    padding: 8px;
    border: 1px solid #ccc;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    .catalog-layout {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        display: none; 
    }

    .toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* --- ESTILOS DEL LOGO --- */
.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 50px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 40px;
    }
}

/* --- ESTILOS DEL CARRITO DESLIZANTE (SIDEBAR) --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; 
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #fff;
    z-index: 999;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0; 
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.cart-header h2 {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.close-cart {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f4f4f4;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.item-price {
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    border: 1px solid #ddd;
}

.quantity-selector button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
}

.quantity-selector span {
    padding: 5px 10px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 0.9rem;
}

.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #d32f2f;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.shipping-note {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 15px;
}

.btn-block {
    width: 100%;
    text-align: center;
    padding: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 85%;
    }
}

/* --- ESTILOS CHECKOUT ESTILO 'PASOS' --- */

.checkout-page {
    background-color: #f4f6f8;
}

.checkout-wrapper {
    padding: 40px 20px;
    max-width: 1100px;
}

.checkout-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Columna Izquierda: Pasos */
.steps-container {
    flex: 1.8;
}

.step-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.step-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #fff;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: #333;
}

.active .step-number {
    background: #000; 
    color: #fff;
}

.step-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* IMPORTANTE: Para el acordeón */
.step-body {
    padding: 0 25px 30px 25px;
    display: none; /* Oculto por defecto */
    border-top: 1px solid #f0f0f0;
}

/* Cuando tiene la clase active, se fuerza la visualización */
.step-item.active .step-body {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.required {
    color: #d32f2f;
}

/* Botones del formulario */
.btn-step {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 30px; 
    margin-top: 20px;
    text-transform: none; 
    cursor: pointer;
}

.btn-link-back {
    background: none;
    border: none;
    text-decoration: underline;
    color: #666;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Inputs mejorados */
input[type="text"], input[type="email"], input[type="tel"] {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    width: 100%;
}

input:focus {
    border-color: #000;
    outline: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Checkbox Simple */
.checkbox-container-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}
.checkbox-container-simple input {
    width: auto;
}
.checkbox-container-simple label {
    margin: 0;
    font-weight: normal;
}

/* Columna Derecha: Resumen */
.checkout-summary-column {
    flex: 1;
    position: sticky;
    top: 20px;
}

.order-summary-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.order-summary-box h3 {
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-item-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.checkout-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.coupon-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.coupon-section button {
    background: #fff;
    border: 1px solid #000;
    color: #000;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
}

.summary-totals .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #555;
}

.summary-row.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-weight: bold;
    color: #000;
    font-size: 1.2rem;
}

.total-amount {
    color: #000; 
}

.radio-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    width: 100%;
}
.radio-box input {
    width: auto;
    margin-right: 10px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #009688;
    font-weight: bold;
    font-size: 0.9rem;
}

.security-note {
    margin-top: 15px;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column-reverse;
    }
    .checkout-summary-column {
        position: static;
        width: 100%;
    }
}

/* --- ESTILOS DEL MODAL DE PAGO (MERCADO PAGO) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.mp-header {
    margin-bottom: 15px;
}

.mp-header h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.mp-total-box {
    background: #f4f6f8;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mp-total-box strong {
    color: #333;
    font-size: 1.4rem;
}
/* ESTILO PARA EL SEGUNDO BANNER */
.promo-banner {
    margin: 40px auto 20px; /* Espacio arriba y abajo */
    text-align: center;
    padding: 0 20px; /* Margen a los lados en celular */
}

.promo-banner img {
    width: 100%;
    max-width: 1200px; /* Que no sea gigante en pantallas muy grandes */
    height: auto; /* Para que no se deforme */
    border-radius: 10px; /* Bordes redondeados estéticos */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Sombra suave */
    display: block;
    margin: 0 auto;
}
/* === ESTILOS DEL CARRUSEL (SLIDER) === */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px; /* Misma altura que tu portada original */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* Estilo Slide 1: Tu Portada Original */
.hero-slide-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    /* Asegúrate de que banner.jpg exista en tu carpeta imagenes */
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('imagenes/banner.jpg');
    background-size: cover;
    background-position: center;
}

/* Estilo Slide 2: El Nuevo Banner de Envío */
.banner-slide-content {
    height: 100%;
    width: 100%;
    background-color: #f0f0f0; /* Fondo gris claro por si acaso */
}

.banner-slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen llene todo el espacio */
    display: block;
}

/* Botones Flechas */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.prev-btn { left: 0; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.next-btn { right: 0; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }

/* Ajuste para Celulares */
@media (max-width: 768px) {
    .carousel-container { height: 350px; } /* Un poco más pequeño en móvil */
    .hero-slide-content h2 { font-size: 1.8rem; }
}
/* Estilos para los selectores de ubicación */
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
    color: #333;
    appearance: none; /* Quita el estilo por defecto del navegador */
    /* Flechita personalizada */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
}

.form-control:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.7;
}
/* --- NUEVO ESTILO: UBICACIÓN HORIZONTAL --- */
.location-row {
    display: flex;      /* Los pone en fila */
    gap: 10px;          /* Espacio entre ellos */
    width: 100%;
}

.location-row select {
    flex: 1;            /* Hace que los 3 tengan el mismo ancho */
    width: 100%;
    min-width: 0;       /* Evita que se salgan del borde */
}

/* Opcional: En celulares muy pequeños, que se pongan vertical para que se lea bien */
@media (max-width: 480px) {
    .location-row {
        flex-direction: column;
    }
}