/* ===== RESET / GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  /* Establece que ocupen el 100% del alto de la ventana */
  height: 100%;
  /* Asegúrate de que no haya márgenes no deseados */
  margin: 0;
  padding: 0;
background: url('../assets/fondos/Fondo_Index.png') center/cover no-repeat fixed;

}

/*Si el fondo está en un div contenedor 
.tu-contenedor-fondo {
  width: 100%;
   Usa '100vh' para cubrir el alto total de la ventana 
  height: 100vh; 
  
   Aquí iría tu background: url(...) 
  background: url('../assets/fondos/Fondo_Index.png') center/cover no-repeat;
}*/

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ===== LOGO ===== */
#logo_principal {
    width: 200px;
    height: 200px;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled #logo_principal {
    width: 201px;
}
/*body {
    outline: 5px solid red !important;
}

footer {
    outline: 5px solid blue !important;
}
*/
/**:not(html):not(body):not(footer) {
    outline: 1px dashed rgba(0,0,0,0.2);
}
/* ===== PRE NAVBAR ===== */
.pre-navbar {
    width: 100%;
    height: 32px;
    background: #000;
    position: fixed;
    top: 0;
    z-index: 1000;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-navbar .right {
    display: flex;
    gap: 10px;
}

.item {
    color: #999;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
}

.item.-social i {
    font-size: 18px;
}

/* ===== NAVBAR PRINCIPAL ===== */
.navbar-custom {
    position: absolute;
    top: 32px;
    width: 100%;
    background:#00000057!important;
    padding: 20px 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.navbar-custom.scrolled {
    position: fixed;
    background: #e5e5e5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 8px 0;
}

.navbar-custom.scrolled .navbar-brand {
    display: none;
}

.navbar-centrado {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar-centrado ul li {
    margin: 20px;
    font-size: medium;
    text-transform: uppercase;
}

.navbar-custom .nav-link {
    font-family: "Oswald", sans-serif;
    color: rgb(255, 255, 255) !important;
}

/* Enhanced navbar-toggler for better mobile visibility */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 8px 10px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    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, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-custom.scrolled .nav-link,
.navbar-custom.scrolled .icono {
    color: rgb(255, 255, 255) !important;
}

.icono {
    font-size: 30px;
    color: whitesmoke;
    transition: color 0.3s ease;
}

/* ===== TARJETAS PROMO ===== */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.promo-card {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.promo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.promo-card:hover::before {
    background: rgba(0,0,0,0.5);
}

.promo-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.promo-content h2 {
    font-size: 28px;
    font-weight: bold;
}

.promo-content a {
    border-bottom: 2px solid white;
    font-weight: bold;
    font-size: 14px;
}

/* ===== BANNER HEADER ===== */
.banner-header {
    position: relative;
    height: 100vh;
    background: url('tu-imagen.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.banner-header .intro,
.banner-header .subtitle {
    font-size: 14px;
    font-weight: bold;
    border-left: 2px solid white;
    border-right: 2px solid white;
    padding: 0 10px;
}

.banner-header .title {
    font-size: 4rem;
    font-weight: 800;
}

/* ===== TESTIMONIOS ===== */
.testimonios-clientes {
    background: #f9f9f9;
    padding: 200px 1rem 3rem;
    text-align: center;
}

.testimonios-clientes h3 {
    letter-spacing: 2px;
    color: #222;
}

.testimonios {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: auto;
}

.testimonio {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.testimonio:hover {
    transform: translateY(-5px);
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1f1f1f;
    color: #fff;
    padding: 40px 0;
}

.l-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.links:hover {
    text-decoration: underline;
}

/* ===== FAQ ===== */
.faq {
    background: rgba(255,255,255,0.5);
    padding: 20px;
    max-width: 900px;
    margin: auto;
    border-radius: 5px;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
}

.faq-category details {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: rgba(255,255,255,0.8);
}

.faq-category summary {
    cursor: pointer;
    font-weight: bold;
    padding: 15px;
    position: relative;
    list-style: none;
}

.faq-category summary::after {
    content: "▼";
    position: absolute;
    right: 15px;
    top: 15px;
    transition: 0.3s;
    font-size: 18px;
}

.faq-category details[open] summary::after {
    transform: rotate(180deg);
}

.faq-category p {
    padding: 0 15px 15px;
    margin: 0;
    color: #333;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-category h3 {
        font-size: 20px;
    }

    .faq-category summary {
        padding: 12px;
        font-size: 14px;
    }

    .faq-category summary::after {
        right: 12px;
        top: 12px;
        font-size: 16px;
    }

    .faq-category p {
        padding: 0 12px 12px;
        font-size: 14px;
    }
}

/* ===== PRODUCTOS / TIENDA ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-info .price {
    font-weight: bold;
    font-size: 16px;
}

.product-info button {
    width: 100%;
    background: #ff6b00;
    border: none;
    padding: 10px;
    color: white;
    border-radius: 8px;
    transition: 0.2s;
}

.product-info button:hover {
    background: #e55a00;
}

/* ===== MINI CARRITO ===== */
.carrito-container {
    position: relative;
}

.contador {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e63946;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

.mini-carrito {
    display: none;
    position: absolute;
    right: 0;
    top: 40px;
    width: 280px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* ===== SOMOS ===== */
.hero {
    background: url('../assets/fondos/fondo_somos.jpeg') center/cover no-repeat;
    padding: 180px 20px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.btn {
    background: #0057ff;
    color: white;
    padding: 12px 24px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 3px;
    display: inline-block;
}

.btn:hover {
    background: #003bcc;
}

/* INTRO */
.intro.improved {
    position: relative;
    padding: 100px 10%;
    color: #f8f9fa;
    display: flex;
    justify-content: center;
    background: url('pelota-fondo.jpg') center/cover no-repeat;
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

.intro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

/* VENTAJAS */
.ventajas {
    background: #000;
    padding: 80px 10%;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 60px;
}

.ventaja {
    display: flex;
    gap: 20px;
}

.ventaja-icon {
    background: #0057ff;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ANIMACIONES */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOGIN ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px 0;
}

.login-box {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    display: flex;
    max-width: 900px;
    width: 90%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.login-left,
.login-right {
    padding: 40px;
}

.login-left {
    width: 45%;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-right {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    color: #1b1b1a;
}

.login-input {
    width: 100%;
    background: #e8e8e8;
    border: none;
    padding: 15px 18px;
    margin-bottom: 18px;
    border-radius: 30px;
}

.login-btn {
    width: 100%;
    background: #1c1d1c;
    padding: 15px;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s ease;
}

.login-btn:hover {
    background: #000;
    transform: scale(1.02);
}

.login-extra,
.login-register {
    text-align: center;
    font-size: 14px;
}

.login-register a {
    font-weight: bold;
    color: #0057ff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .login-box {
        flex-direction: column;
    }
    
    .login-left,
    .login-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Media Query para Dispositivos Móviles (Centrado) --- */
@media (max-width: 768px) {
    
    /* 1. Modificar el Contenedor Principal */
    .l-container {
        flex-direction: column; /* Apila los bloques verticalmente */
        align-items: center; /* ¡CLAVE! Centra todos los bloques (.menu) horizontalmente */
    }

    /* 2. Centrar el Contenido dentro de cada Bloque de Menú */
    .main-footer .menu {
        width: 100%; /* Ocupa todo el ancho disponible */
        max-width: 350px; /* Opcional: limita el ancho máximo para que no se vea demasiado estirado en tabletas */
        text-align: center; /* ¡CLAVE! Centra el texto (títulos, enlaces, descripciones) */
        margin-bottom: 20px; /* Agrega espacio entre los bloques apilados */
    }

    /* 3. Centrar el Formulario del Newsletter */
    /* Dado que el formulario tiene un input y un botón, probablemente necesitemos centrar el contenido de ese bloque específico */
    .menu.-newsletter form {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centra los elementos del formulario (input y botón) */
        width: 100%;
    }

    /* 4. Centrar la sección de Copyright */
    .main-footer #bottom {
        text-align: center; /* Centra el texto de copyright y créditos */
        /* Puede que necesites ajustar el display de #links-credit y #by si son flex o grid */
    }
}

.hero .hero-content h1{
    color: whitesmoke  !important;
}

/* ===== 3D CLOTHING CUSTOMIZER ===== */
.app {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 16px;
    max-width: 1200px;
    margin: 18px auto;
    padding: 0 16px;
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.panel h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.btn {
    appearance: none;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.btn.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.btn.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.btn.btn-secondary {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

.btn.btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.btn.btn-success {
    background: #059669;
    border-color: #059669;
    color: #fff;
}

.btn.btn-success:hover {
    background: #047857;
    border-color: #047857;
}

.btn.btn-danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.btn.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

select, input[type="text"], input[type="email"], input[type="color"], input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

input[type="color"] {
    height: 40px;
    cursor: pointer;
}

#3d-container {
    width: 520px;
    height: 600px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #f9fafb;
}

#popupDatos {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#popupDatos .popup-inner {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#popupDatos h4 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
}

#popupDatos label {
    display: block;
    margin-top: 10px;
    font-weight: 500;
}

#popupDatos input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* Responsive adjustments for 3D customizer */
@media (max-width: 768px) {
    .app {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #3d-container {
        width: 100%;
        height: 400px;
    }

    .panel {
        padding: 12px;
    }
}

@media (max-width: 820px) {
    body {
        background-image: url('../assets/fondos/Fondo_Index.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }

    .banner-header {
        height: 80dvh;
        min-height: 80vh;
    }
}