/* 1. Definimos las variables (esto no rompe nada, solo guarda los colores) */
:root {
    --color-tienda: #667eea;
    --color-fondo: #ffffff;
    --color-texto: #333;
    --fuente-principal: 'Arial', sans-serif;
}

/* 2. ESTILOS GENERALES (Seguros) */
.social-icons a, .fa {
    color: #fff;  
}

/* 3. ESTILOS QUE SOLO SE APLICAN DENTRO DE LA TIENDA */
/* Agregamos ".seccion-tienda" antes de cada regla para proteger el Home */

.seccion-tienda h1, 
.seccion-tienda h2, 
.seccion-tienda h3, 
.product-card h3 {
    color: var(--color-tienda); /* Ahora los títulos no serán siempre blancos */
}

.seccion-tienda .add-to-cart, 
.seccion-tienda .checkout-btn {
    background-color: var(--color-tienda);
    color: #fefefe;
}

/* 4. EL CONTENEDOR DINÁMICO */
/* Solo afectará al área donde el usuario compra */
.tienda-container {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-principal);
    padding: 20px;
}

/* IMPORTANTE: Borramos el nav, footer { ... !important } */
/* Si quieres que el Nav cambie de color SOLO en la tienda, 
   deberíamos hacerlo por JS o con una clase específica, nunca global */

/* 1. Definimos las variables para que el navegador sepa qué colores usar */
:root {
    --color-tienda: #667eea;
    --color-fondo-tienda: #f4f4f4;
    --color-texto-tienda: #333333;
    --fuente-principal: 'Arial', sans-serif; /* O la que uses */
}

/* 2. Selectores específicos: Solo funcionarán si están dentro de algo con clase .seccion-tienda */
.seccion-tienda h1, 
.seccion-tienda h2, 
.seccion-tienda h3, 
.product-card h3 {
    color: var(--color-tienda);
}

.social-icons a, .social-icons .fa {
    color: #fff;
}

/* 3. Botones (sin afectar a otros botones del Home) */
.seccion-tienda .add-to-cart, 
.seccion-tienda .checkout-btn {
    background-color: var(--color-tienda);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

/* 4. El truco para el fondo: Solo cambia donde tú quieras */
.tienda-container {
    background-color: var(--color-fondo-tienda);
    color: var(--color-texto-tienda);
    font-family: var(--fuente-principal);
    padding: 20px;
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            overscroll-behavior-y: none; /* Evita el efecto rebote elástico en móviles */
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
        }

        /* Header */
        /* Ajustamos el alto del header para que no sea tan grueso */
         header, nav, .navbar {
         height: 80px; /* Prueba con 70px u 80px hasta que te guste */
         display: flex;
         align-items: center; /* Centra el logo y links verticalmente */
         padding: 0 20px;
         overflow: hidden;
}

        .logo img {
         max-height: 60px; /* Asegura que el logo no estire el nav */
         width: auto;
}
        header {
            background: #fff;
            color: #0f0bf7;
            padding: 1rem 0;
           position: fixed; /* O sticky */
           top: 0;
           left: 0;
           width: 100%;
           z-index: 1000; /* Para que siempre esté por encima de todo */
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            background-color: transparent;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: bold;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: #0f0bf7;
            font-size: 14px;
            text-decoration: none;
            transition: opacity 0.3s;
            cursor: pointer;
        }

        .nav-links a:hover {
            color: #000;
            text-decoration: none;
            transition: opacity 0.3s;
            cursor: pointer;
        }

        .nav-links a:hover {
            opacity: 0.8;
        }

        .cart-icon {
            position: relative;
            cursor: pointer;
            font-size: 1.5rem;
        }

        .cart-count {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ff4757;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
        }

        /* Hero Section */
        .hero {
           
            color: white;
            text-align: center;
            padding: 6rem 2rem;
            max-width: 1360px;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
        }

        .btn {
            background: white;
            color: #667eea;
            padding: 1rem 2rem;
            border: none;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        }

        /* Sections */
        section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        section h2 {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: #667eea;
        }

        /* Products Grid */
       /* --- EL NUEVO GRID COMPACTO --- */
.products-grid {
    display: grid;
    /* Bajamos a 150px para que entren 6 productos cómodamente */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 10px; /* Reducimos el espacio entre fotos para ganar lugar */
    padding: 15px;
    max-width: 100%; /* Que use todo el ancho de la pantalla */
}

.product-card {
    padding: 8px;
    border-radius: 6px;
}

/* --- AJUSTE DE IMAGEN COMPACTA --- */
.product-image {
    width: 100%;
    height: 130px; /* Un poco más bajitas para que no se vea desproporcionado */
    object-fit: contain; 
    background-color: #f9f9f9;
}

.product-info h3 {
    font-size: 13px; /* Letra un poquito más chica para que no salte de renglón */
    height: 32px;
    line-height: 1.2;
}

.product-price {
    font-size: 1rem;
    margin-bottom: 5px;
}

.add-to-cart {
    font-size: 11px; /* Botón más compacto */
    padding: 6px;
}

/* Esto hace que todas las tarjetas tengan la misma altura total */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    width: 250px; /* Ancho fijo para cada tarjeta */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el botón hacia abajo */
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px); /* Un efectito lindo cuando pasan el mouse */
}
        /* Cart Modal */
        .cart-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.7);
            z-index: 2000;
        }

        .cart-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 2rem;
            border-radius: 10px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .close-cart {
            font-size: 2rem;
            cursor: pointer;
            color: #666;
        }

        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border-bottom: 1px solid #eee;
        }

        .cart-item-info {
            flex: 1;
        }

        .cart-item-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .quantity-btn {
            background: #667eea;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 5px;
            cursor: pointer;
        }

        .remove-btn {
            background: #ff4757;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
        }

        .cart-total {
            text-align: right;
            font-size: 1.5rem;
            font-weight: bold;
            margin-top: 2rem;
            color: #667eea;
        }

        .checkout-btn {
            width: 100%;
            background: #667eea;
            color: white;
            padding: 1rem;
            border: none;
            border-radius: 5px;
            font-size: 1.2rem;
            font-weight: bold;
            cursor: pointer;
            margin-top: 1rem;
        }

        /* Footer */
        footer {
            background: #667eea;
            color: white;
            text-align: center;
            padding: 2rem;
        }

        .hidden {
            display: none;
        }

        .btn-promotor{
  display:inline-block;
  background:#25D366;
  color:white;
  padding:14px 28px;
  border-radius:50px;
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 10px 20px rgba(0,0,0,.2);
  transition:all .3s ease-in-out;
}

.btn-promotor:hover{
  background:#1EBE57;
  transform:scale(1.06);
  box-shadow:0 15px 25px rgba(0,0,0,.3);
}
/* --- FOOTER FULL WIDTH SIN PUNTOS --- */
.newsletter-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 2rem;
    text-align: center;
    color: white;
    width: 100%; /* Asegura ancho total */
}

.footer-premium {
    background-color: #343a40;
    color: #ffffff;
    padding: 60px 5% 30px; /* 5% de padding para que no toque los bordes pero se vea amplio */
    font-family: 'Arial', sans-serif;
    width: 100%;
}

.footer-container {
    max-width: 100%; /* Quitamos el limite de 1200px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr; /* El mapa tiene más espacio */
    gap: 30px;
    align-items: start;
}

/* Quitamos los puntos de cualquier lista en el footer */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    list-style: none; /* Refuerzo para quitar puntos */
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Centrado de iconos sociales para que se vea como tu captura */
.social-icons-footer {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons-footer a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

/* Mapa expandido */
.map-container {
    width: 100%;
    height: 250px; /* Un poco más alto para que luzca */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Ajuste móvil */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .social-icons-footer, .footer-column li {
        justify-content: center;
    }
}
/* Asegura que el contenedor principal no limite el ancho */
.footer-premium, .newsletter-strip {
    width: 100vw; /* Ocupa el 100% del ancho de la ventana */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.newsletter-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0; /* Espaciado arriba y abajo */
    text-align: center;
    color: white;
}

.footer-premium {
    background-color: #343a40; /* El gris oscuro de tu captura */
    color: #ffffff;
    padding: 60px 5% 30px; /* 5% de margen interno para que el texto no toque los bordes */
}

.footer-container {
    max-width: 100%; /* Permite que se expanda */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr; /* Proporciones para las 3 columnas */
    gap: 40px;
    align-items: start;
}

/* Quitamos definitivamente cualquier rastro de puntos en listas */
.footer-column ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.footer-column li {
    list-style-type: none !important;
    margin-bottom: 15px;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Ajuste del Mapa para que luzca profesional */
.map-container {
    width: 70%;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
/* --- NEWSLETTER ESTILO PREMIUM --- */
.newsletter-strip {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

.newsletter-content {
    max-width: 600px; /* Limita el ancho para que no se estire */
    margin: 0 auto;
    padding: 0 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
}

.newsletter-form input {
    padding: 15px 20px;
    border-radius: 30px 0 0 30px; /* Redondeado izquierdo */
    border: 1px solid white;
    width: 300px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: #1a1a1a;
    color: white;
    padding: 15px 30px;
    border-radius: 0 30px 30px 0; /* Redondeado derecho */
    border: 1px solid #1a1a1a;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    border-left: none; /* Elimina la linea entre el input y el boton */
}

.newsletter-form button:hover {
    background: #000;
}

/* Ajuste para que en celulares no se rompa */
@media (max-width: 500px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form input, .newsletter-form button {
        border-radius: 30px;
        width: 100%;
        margin-bottom: 10px;
    }
}
/* Efecto Hover para Redes Sociales */
.social-icons-footer a {
    display: inline-block;
    transition: all 0.3s ease; /* Hace que el movimiento sea suave */
}

.social-icons-footer a:hover {
    transform: translateY(-5px); /* El icono "salta" hacia arriba */
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.3)); /* Sombra brillante */
}

/* Colores oficiales al pasar el mouse */
.social-icons-footer a:hover .fa-facebook-f { color: #1877F2; }
.social-icons-footer a:hover .fa-instagram { color: #E4405F; }
.social-icons-footer a:hover .fa-whatsapp { color: #25D366; }
.social-icons-footer a:hover .fa-x-twitter { color: #ffffff; } /* X suele ser blanco o negro */
.social-icons-footer a:hover .fa-envelope { color: #EA4335; }
/* Sombra y brillo para botones */
.newsletter-form button, .checkout-btn, .add-to-cart {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.newsletter-form button:hover, .checkout-btn:hover, .add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Sombra más fuerte al flotar */
    filter: brightness(1.1); /* Brilla un poquito más */
}

/* Efecto especial para el botón de Mercado Pago (Finalizar Compra) */
.checkout-btn {
    background: #009ee3; /* Azul oficial de Mercado Pago */
    border: none;
}

.checkout-btn:hover {
    background: #008ad0;
    box-shadow: 0 0 20px rgba(0, 158, 227, 0.5); /* Brillo azulado */
}

    
    .hero h1 {
        font-size: 2rem; /* Texto más chico en móviles */
    }
    
    .btn-promotor {
        font-size: 16px; /* Botón más chico */
        padding: 12px 24px;
    }


@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
        min-height: 350px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
}
/* Efecto de elevación y color en iconos */
.social-icons-footer a {
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icons-footer a:hover {
    transform: translateY(-5px) scale(1.1); /* Sube un poquito y se agranda */
    color: #25d366; /* Podés elegir un color global o dejar el blanco con brillo */
}
/* --- FOOTER RESPONSIVO --- */
.footer-container {
    display: flex;
    flex-wrap: wrap; /* Esto permite que las columnas bajen si no hay espacio */
    justify-content: space-between;
    gap: 30px;
    padding: 40px 5%;
}

.footer-column {
    flex: 1; 
    min-width: 280px; /* Tamaño mínimo antes de saltar hacia abajo */
    margin-bottom: 20px;
}

/* Ajustes específicos para el mapa */
.map-container {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

/* --- MEDIA QUERY PARA CELULARES --- */
@media (max-width: 768px) {
    .footer-column {
        flex: 1 1 100%; /* En móviles, cada columna ocupa el 100% del ancho */
        text-align: center; /* Opcional: centra el texto en celulares */
    }

    .social-icons-footer {
        justify-content: center; /* Centra los iconos de redes */
    }

    .footer-container {
        padding: 20px 5%;
    }
}
.tu-contenedor {
  height: 100svh; 
}
.product-image {
    width: 100%;
    height: 250px; /* Ajusta esto a tu gusto */
    object-fit: contain; /* Esto evita que la zapatilla se deforme */
    background-color: #f9f9f9;
}
/* Estilo para los botones de categoría */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.category-filters button {
    padding: 10px 22px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filters button:hover, .category-filters button.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
/* Contenedor principal del Panel */
.admin-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.admin-container h2 {
    color: #444;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Estilo de los campos de entrada */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

/* Botón de guardar/enviar */
.btn-save {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-save:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}