/* SISTEMA BASE */
:root {
    --brand-gold: #D4AF37;
    --bg-dark: #000;
    --bg-side: #050505;
    --text-muted: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: var(--bg-dark); 
    color: #fff; 
    font-family: 'Inter', sans-serif; 
    overflow: hidden; /* Bloqueamos scroll global */
    height: 100vh;
}

/* LAYOUT PRINCIPAL */
.main-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* SIDEBAR: ESTÉTICA Y CENTRADO */
.sidebar {
    width: 300px;
    min-width: 300px;
    background: var(--bg-side);
    border-right: 1px solid #111;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Mantiene logo arriba y mission abajo */
    padding: 60px 40px;
    height: 100vh;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    text-align: center;
}

/* MENÚ CENTRADO CON AIRE */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 35px; /* MÁS ESPACIO ENTRE BOTONES */
    flex-grow: 1; /* Permite que el menú ocupe el centro */
    justify-content: center; /* CENTRADO VERTICAL DEL MENÚ */
}

.nav-menu button {
    background: none;
    border: none;
    color: var(--text-muted);
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px; /* Aire entre icono y texto */
    transition: 0.3s;
}

.nav-menu button:hover {
    color: var(--brand-gold);
    transform: translateX(10px);
}

.nav-divider {
    height: 1px;
    background: #111;
    margin: 5px 0;
}

/* BLOQUE DE MISIÓN EN EL SIDEBAR */
.sidebar-purpose {
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--brand-gold);
    margin-top: 40px;
}

.sidebar-purpose p {
    font-size: 10px;
    color: var(--brand-gold);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.sidebar-purpose span {
    font-size: 11px;
    color: #444;
    line-height: 1.4;
}

.sidebar-footer {
    margin-top: 30px;
    font-size: 9px;
    color: #222;
    text-align: center;
}

/* CONTENEDOR DERECHO: ÚNICO CON SCROLL */
.content-viewport {
    flex: 1;
    height: 100vh;
    overflow-y: auto; /* El scroll del ratón funciona aquí */
    background: var(--bg-dark);
    scroll-behavior: smooth;
}

/* HERO IMPACTO REVISADO: CON FONDO INMERSIVO */
.hero-full {
    height: 85vh; /* Ocupa casi toda la pantalla */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Configuración de fondo base */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax opcional, si no te gusta, cámbialo a 'scroll' */
    position: relative; /* Necesario para el overlay */
    overflow: hidden;
    padding: 0 5%;
    box-sizing: border-box;
}

/* LA CAPA MÁGICA DEL HOME: CLARA Y CON BLUR SUAVE */
.hero-overlay-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* CORRECCIÓN DE VISIBILIDAD: Aclaramos el fondo (0.65) */
    background: rgba(0, 0, 0, 0.65); 
    
    /* CORRECCIÓN DE DESENFOQUE: Desenfoque suave (4px) */
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); /* Compatibilidad con Safari */
    
    z-index: 1; /* Detrás del texto */
}

/* ASEGURAMOS QUE EL TEXTO ESTÉ ARRIBA */
.hero-content {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2; /* ARRIBA DEL OVERLAY */
}

/* MANTENEMOS EL AIRE QUE PEDISTE */
.hero-mission-text {
    margin-top: 20px;
    margin-bottom: 60px; /* Espacio generoso antes del buscador */
    color: #fff; /* Asegurar legibilidad */
    line-height: 1.8;
}

.search-container {
    margin-bottom: 40px; /* Espacio antes de las pills */
}

.tagline { color: var(--brand-gold); letter-spacing: 6px; font-weight: 700; font-size: 14px; margin-bottom: 20px; display: block; }
.hero-content h1 { font-family: var(--font-display); font-size: 5.5rem; line-height: 0.9; font-weight: 900; margin-bottom: 40px; }

/* BUSCADOR */
.search-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto 40px;
    display: flex;
}

.search-container input {
    width: 100%;
    padding: 22px 35px;
    border-radius: 50px;
    /* Cambiamos de 0.05 a 0.15 y usamos un tono más oscuro */
    background: rgba(0, 0, 0, 0.8); 
    border: 1px solid rgba(212, 175, 55, 0.3); /* Un borde sutil dorado */
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    backdrop-filter: blur(10px); /* Desenfoque dentro del buscador */
}
.search-container button {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: var(--brand-gold);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PILLS */
.hero-pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pill {
    background: rgba(0, 0, 0, 0.85); /* Fondo casi negro sólido */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #eee; /* Texto casi blanco */
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}
.pill i {
    color: var(--brand-gold); /* El icono siempre dorado para guiar el ojo */
}

.pill:hover {
    background: var(--brand-gold);
    color: #000;
    border-color: var(--brand-gold);
}

.pill:hover i {
    color: #000;
}

/* CONTENEDOR DE LA SECCIÓN */
.featured-section {
    padding: 100px 5%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el título H2 */
}

/* GRID DE PRODUCTOS: CAMBIO A FLEX PARA MEJOR CONTROL */
.product-grid {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen si la pantalla es muy pequeña */
    justify-content: center; /* CENTRADO HORIZONTAL DE TODO EL GRUPO */
    gap: 30px; /* Espacio elegante entre tarjetas */
    width: 100%;
    max-width: 1600px; /* Permite que las 4 brillen en pantalla ancha */
    margin: 0 auto;
}

/* TARJETA INDIVIDUAL: Aquí recuperamos la proporción */
.card {
    background: #080808;
    border: 1px solid #111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Fijamos un ancho ideal para que no se vean delgadas */
    width: 320px; 
    flex-shrink: 0; /* Evita que se encojan más de lo debido */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-gold);
}

/* AJUSTE DE IMAGEN PARA QUE SE VEA GRANDE */
.card-img {
    width: 100%;
    height: 380px; /* Altura imponente */
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* CARDS */
.card { background: #080808; border: 1px solid #111; overflow: hidden; display: flex; flex-direction: column; }
.card-img { height: 380px; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-brand-tag { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.85); color: var(--brand-gold); padding: 6px 15px; font-size: 10px; font-weight: 700; z-index: 2; }

.card-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-cat { color: var(--brand-gold); font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.card-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 15px 0; }
.card-body p { color: #666; font-size: 14px; line-height: 1.6; margin-bottom: 30px; }

.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 700; font-size: 1.4rem; }
.btn-buy { background: var(--brand-gold); color: #000; border: none; padding: 12px 25px; font-weight: 700; cursor: pointer; border-radius: 4px; }

/* MARCAS */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; }
.brand-item { background: #080808; padding: 50px 20px; text-align: center; border: 1px solid #111; cursor: pointer; transition: 0.3s; }
.brand-item:hover { border-color: var(--brand-gold); }
.brand-logo-box { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.brand-item img { max-width: 80%; filter: brightness(0) invert(1); opacity: 0.4; }

/* LOGIN */
.login-wrapper { height: 100vh; display: flex; justify-content: center; align-items: center; padding: 5%; }
.login-box { background: #080808; padding: 60px; border-radius: 20px; border: 1px solid #111; width: 100%; max-width: 450px; text-align: center; }
.login-box input { width: 100%; padding: 18px; margin-bottom: 15px; background: #000; border: 1px solid #222; color: #fff; border-radius: 8px; outline: none; }
.btn-login { width: 100%; padding: 18px; background: var(--brand-gold); border: none; font-weight: 700; cursor: pointer; margin-top: 20px; border-radius: 8px; }
.login-links { margin-top: 25px; font-size: 12px; }
.login-links a { color: var(--text-muted); text-decoration: none; }

/* SECCIÓN ABOUT CON FONDO INMERSIVO */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ocupa al menos toda la pantalla */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax opcional, si no te gusta, cámbialo a 'scroll' */
    overflow: hidden;
}


/* LA CAPA MÁGICA REVISADA: MÁS CLARA Y MENOS DESENFOCADA */
.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* CORRECCIÓN 1: Aclaramos el fondo (de 0.85 a 0.65) */
    background: rgba(0, 0, 0, 0.65); 
    
    /* CORRECCIÓN 2: Reducimos el desenfoque drásticamente (de 15px a 4px) */
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px); /* Compatibilidad con Safari */
    
    z-index: 1;
}

/* OPCIONAL: Ajuste para que la caja de información no compita */
.model-info {
    position: relative;
    z-index: 2;
    background: rgba(8, 8, 8, 0.8) !important; /* Un poco más sólida para contraste */
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255,255,255,0.05) !important;
}

/* BOTÓN COMPRAR: EL TOQUE FINAL */
.btn-buy, .card-footer button {
    background: var(--brand-gold); /* Tu dorado corporativo */
    color: #000; /* Texto negro para máximo contraste */
    border: none;
    padding: 12px 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px; /* Estilo editorial */
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px; /* Bordes ligeramente suavizados */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-buy:hover, .card-footer button:hover {
    background: #fff; /* Cambia a blanco al pasar el mouse */
    color: #000;
    transform: translateY(-3px); /* Pequeño salto hacia arriba */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4); /* Resplandor dorado */
}

/* ASEGURAMOS QUE EL FOOTER DE LA CARD ESTÉ ALINEADO */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Empuja el botón siempre al final de la tarjeta */
    padding-top: 15px;
    border-top: 1px solid #111; /* Una línea sutil para separar */
}

.price {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
}

/* TÍTULO DE SECCIÓN: Más aire y elegancia */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    position: relative;
    padding-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;    
}

.main-footer {
    background: #050505;
    border-top: 1px solid #111;
    padding: 80px 8% 40px 8%;
    color: #888;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3.footer-logo {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-col h3.footer-logo span {
    color: var(--brand-gold);
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #666;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--brand-gold);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    color: var(--brand-gold);
    transition: 0.3s;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #fff;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    filter: grayscale(1) opacity(0.5); /* Se ve elegante en gris */
    transition: 0.3s;
}

.payment-methods:hover {
    filter: grayscale(0) opacity(1); /* Cobran color al pasar el mouse */
}

.payment-methods img {
    height: 25px;
}

.footer-bottom {
    border-top: 1px solid #111;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
}
.payment-methods img {
    filter: grayscale(1) opacity(0.6);
    transition: all 0.3s ease;
}

.payment-methods:hover img {
    filter: grayscale(0) opacity(1);
}

//* --- CORRECCIÓN EXCLUSIVA: SECCIÓN QUÉ ES RAÍZ --- */

/* Contenedor que divide Texto (izq) de Tarjetas (der) */
.about-main-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-top: 60px;
    width: 100%;
}

/* Columna de la izquierda (El Manifiesto) */
.about-description {
    flex: 1.2; /* Le damos un poco más de ancho al texto */
    text-align: left;
}

.about-description .highlight-text {
    font-size: 2.2rem !important; /* Tamaño grande y legible */
    line-height: 1.3;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 800;
}

.about-description .sub-text {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 40px;
}

.brand-seal {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    font-size: 11px;
    letter-spacing: 4px;
    font-weight: 900;
    text-transform: uppercase;
}

/* Columna de la derecha (Las Tarjetas de Beneficios) */
.benefits-stack {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03); /* Fondo sutil */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: 0.3s ease;
}

.benefit-item:hover {
    border-color: var(--brand-gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateX(10px);
}

.benefit-item i {
    color: var(--brand-gold);
    width: 35px;
    height: 35px;
    flex-shrink: 0;
}

.benefit-info strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-info p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   ESTILOS NUEVOS PARA EL FOOTER MEJORADO
   ============================================ */

/* Redes sociales - íconos y hover effects */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #888;
}

.social-links a:hover {
    background: var(--brand-gold);
    color: #000;
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Footer grid responsive */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 13px;
}

.footer-col p i {
    margin-right: 8px;
}

/* Métodos de pago mejorados */
.payment-methods-text {
    margin-top: 20px;
}

.payment-methods-text p {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #555;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.payment-badges {
    display: flex;
    gap: 15px;
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    flex-wrap: wrap;
}

.payment-badges span {
    transition: opacity 0.3s;
}

.payment-badges span:hover {
    opacity: 0.7;
}

/* Footer bottom mejorado */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #444;
    font-size: 11px;
    letter-spacing: 1px;
    margin: 5px 0;
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .payment-badges {
        justify-content: center;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
}

/* ============================================
   DIRECTORIO DE MARCAS - VERSIÓN PREMIUM
   ============================================ */

.directory-container {
    background: #000;
    min-height: 100vh;
}

.directory-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #000 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.directory-hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 20px;
}

.directory-hero h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-gold);
    margin: 20px auto 0;
}

.directory-hero p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.directory-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.directory-stats span {
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--brand-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.directory-content {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sección de cada categoría */
.brand-category-section {
    margin-bottom: 80px;
}

.brand-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-category-header i {
    color: var(--brand-gold);
    width: 28px;
    height: 28px;
}

.brand-category-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    margin: 0;
}

.brand-count {
    background: rgba(212, 175, 55, 0.15);
    color: var(--brand-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Mosaico de marcas */
.brands-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.brand-card {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.brand-card:hover {
    transform: translateY(-8px);
    border-color: var(--brand-gold);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.5);
}

.brand-card-inner {
    padding: 30px 20px;
    text-align: center;
}

.brand-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin-bottom: 20px;
}

.brand-logo-img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo-img {
    filter: brightness(1) invert(0);
    opacity: 1;
    transform: scale(1.05);
}

.brand-card-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.brand-card-link {
    font-size: 0.75rem;
    color: var(--brand-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover .brand-card-link {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .directory-hero h1 {
        font-size: 2rem;
    }
    
    .directory-stats {
        gap: 15px;
    }
    
    .directory-stats span {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    .brand-category-header {
        flex-wrap: wrap;
    }
    
    .brands-mosaic {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .brand-card-inner {
        padding: 20px 15px;
    }
    
    .brand-logo-wrapper {
        height: 60px;
    }
}