/* ============================================================
   styles.css - DragonGol.store
   Estilos premium, oscuros, inspirados en streetwear y deportes
   ============================================================ */

/* ---------- RESET Y VARIABLES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0b0c10;
    --bg-secondary: #101318;
    --bg-card: #15181f;
    --bg-elevated: #1e222b;
    --bg-input: #1e222b;
    --accent: #ff6f2c;
    --accent-hover: #ff874f;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-muted: #7b7f8c;
    --border-color: #252a33;
    --shadow-color: rgba(255, 111, 44, 0.15);
    --radius: 1.5rem;
    --radius-sm: 0.75rem;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- UTILIDADES ---------- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.text-center {
    text-align: center;
}

.accent-orange {
    color: var(--accent);
}

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4, .btn, .nav-links, .badge, .logo {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ---------- HEADER ---------- */
.header {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #ffb086);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 45px;   /* Ajusta según el tamaño de tu logo */
    width: auto;
    display: block;
    -webkit-text-fill-color: initial; /* Para que la imagen no herede el gradiente */
}

.logo-text {
    background: none;
    -webkit-text-fill-color: initial;
}

.logo-text span {
    -webkit-text-fill-color: var(--accent);
}

/* ---------- BUSCADOR ---------- */
.search-box {
    display: flex;
    background: var(--bg-input);
    border-radius: 3rem;
    padding: 0.2rem 0.2rem 0.2rem 1.5rem;
    align-items: center;
    border: 1px solid transparent;
    transition: border-color var(--transition);
    flex: 1 1 280px;
    max-width: 380px;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 44, 0.15);
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.7rem 0;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    background: var(--accent);
    border: none;
    border-radius: 3rem;
    padding: 0.55rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform 0.15s;
    color: var(--bg-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-box button:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

/* ---------- HERO ---------- */
.hero {
    padding: 4rem 1rem;
    text-align: center;
    background: radial-gradient(ellipse at 30% 30%, #1f2a3a, #030405 70%);
    border-radius: 0 0 3rem 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 111, 44, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero .sub {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

/* ---------- FILTROS ---------- */
.filter-section {
    margin: 1.5rem 0 1rem 0;
    padding: 0.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-buttons {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.4rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    user-select: none;
}

.filter-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(255, 111, 44, 0.3);
}

/* Contador de resultados (se genera con JS) */
.filter-results-count,
.search-results-count {
    text-align: center;
    margin: 1rem 0 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---------- PRODUCTOS (GRID) ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    padding-bottom: 1.2rem;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px var(--shadow-color);
    border-color: rgba(255, 111, 44, 0.2);
}

/* Badges */
.badge-limited {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.stock-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.2rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 111, 44, 0.3);
    z-index: 2;
    color: var(--text-primary);
}

.card-img {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    object-fit: cover;
    background: #1a1e26;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .card-img {
    transform: scale(1.02);
}

.card-content {
    padding: 1rem 1rem 0.5rem;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    margin: 0.3rem 0;
}

/* Botones dentro de la tarjeta */
.whatsapp-buy-btn {
    display: block;
    text-align: center;
    margin-top: 0.8rem;
    padding: 0.6rem;
    background: #ff6f2c;
    color: white;
    border-radius: 3rem;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--transition), transform 0.15s;
    font-size: 0.95rem;
    -webkit-border-radius: 3rem;
    -moz-border-radius: 3rem;
    -ms-border-radius: 3rem;
    -o-border-radius: 3rem;
    -webkit-transition: background var(--transition), transform 0.15s;
    -moz-transition: background var(--transition), transform 0.15s;
    -ms-transition: background var(--transition), transform 0.15s;
    -o-transition: background var(--transition), transform 0.15s;
}


#btn-whatsapp-large:hover {
    background: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 4px 20px var(--accent);
}

.whatsapp-buy-btn:hover {
    background: #101318;
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
    -moz-transform: scale(1.02);
    -ms-transform: scale(1.02);
    -o-transform: scale(1.02);
}

.whatsapp-buy-btn i {
    margin-right: 0.4rem;
}

.ver-btn {
    background: transparent;
    border: 1.5px solid var(--accent);
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.6rem;
    border-radius: 3rem;
    font-weight: 700;
    color: white;
    transition: all var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
    -webkit-transition: all var(--transition);
    -moz-transition: all var(--transition);
    -ms-transition: all var(--transition);
    -o-transition: all var(--transition);
    -webkit-border-radius: 3rem;
    -moz-border-radius: 3rem;
    -ms-border-radius: 3rem;
    -o-border-radius: 3rem;
}

.ver-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ---------- DETALLE DE PRODUCTO ---------- */
.detail-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2rem 0;
    display: none;
    border: 1px solid var(--border-color);
    -webkit-border-radius: var(--radius);
    -moz-border-radius: var(--radius);
    -ms-border-radius: var(--radius);
    -o-border-radius: var(--radius);
}

.detail-section .slider-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.detail-section .slider-container img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    scroll-snap-align: start;
    background: #1a1e26;
    object-fit: cover;
    aspect-ratio: 1 / 1.1;
    margin: 0 auto;
    -webkit-border-radius: var(--radius);
    -moz-border-radius: var(--radius);
    -ms-border-radius: var(--radius);
    -o-border-radius: var(--radius);
}

.size-selector {
    display: flex;
    gap: 0.8rem;
    margin: 1.2rem 0;
}

.size-btn {
    background: var(--bg-elevated);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.95rem;
    -webkit-transition: all var(--transition);
    -moz-transition: all var(--transition);
    -ms-transition: all var(--transition);
    -o-transition: all var(--transition);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.size-btn:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.size-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(255, 111, 44, 0.3);
}

.stock-indicator {
    color: #4caf50;
    font-weight: 700;
}

.shipping-info {
    background: var(--bg-elevated);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    -webkit-border-radius: var(--radius-sm);
    -moz-border-radius: var(--radius-sm);
    -ms-border-radius: var(--radius-sm);
    -o-border-radius: var(--radius-sm);
}

/* ---------- SECCIÓN DE PAGO MEJORADA (estilos adicionales) ---------- */
.payment-section {
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.payment-section:hover {
    border-color: rgba(255, 111, 44, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #25D366;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-weight: 800;
    text-decoration: none;
    transition: background var(--transition), transform 0.15s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-whatsapp-large:hover {
    background: #20bd5a;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.payment-section i[class*="fa-cc-"] {
    transition: transform 0.2s ease;
}

.payment-section i[class*="fa-cc-"]:hover {
    transform: scale(1.15);
}

/* ---------- CONTACTO / REDES ---------- */
.contact-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.social-icon {
    background: var(--bg-elevated);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(255, 111, 44, 0.25);
}

/* ---------- FOOTER ---------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1);
    background: #20bd5a;
}

/* ---------- DOCUMENTACIÓN FLOTANTE (solo desarrollo) ---------- */
.doc-float {
    position: fixed;
    bottom: 110px;
    left: 20px;
    background: var(--bg-elevated);
    padding: 1rem 1.2rem;
    border-radius: 2rem;
    max-width: 250px;
    border: 1px solid var(--accent);
    font-size: 0.75rem;
    opacity: 0.9;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
    color: var(--text-secondary);
    line-height: 1.5;
}

.doc-float code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.1rem 0.4rem;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    color: var(--accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.8rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header .flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .search-box {
        max-width: 100%;
        flex: 1 1 auto;
    }
    .logo {
        font-size: 1.8rem;
        text-align: center;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .hero {
        padding: 3rem 1rem;
    }
    .filter-buttons {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1rem;
    }
    .detail-section {
        padding: 1.2rem;
    }
    .detail-section .slider-container img {
        max-width: 100%;
    }
    .payment-section {
        padding: 1.5rem !important;
    }
    .btn-whatsapp-large {
        width: 100%;
        justify-content: center;
    }
    .payment-section [style*="text-align: right"] {
        text-align: center !important;
        margin-top: 1rem;
    }
    .doc-float {
        display: none; /* Ocultar en móvil para no estorbar */
    }
    .wa-float {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    .card-content h3 {
        font-size: 0.95rem;
    }
    .price {
        font-size: 1.1rem;
    }
    .ver-btn, .whatsapp-buy-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    .size-btn {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }
}

/* ---------- UTILIDADES ADICIONALES ---------- */
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Scrollbar personalizado (opcional) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}