﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

/* Map theme.css variables to main.css aliases for consistency */
:root {
    /* Aliases for theme.css variables */
    --bg-primary: var(--bg-dark);
    --bg-light: var(--bg-card);
    --bg-secondary: var(--bg-card);
    --bg-tertiary: var(--bg-card-hover);
    --accent: var(--accent-primary);
    --border-color: var(--border-subtle);
    --shadow-soft: var(--shadow-sm);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-primary); 
    color: var(--text-primary); 
    transition: background-color 0.35s var(--transition), color 0.35s var(--transition);
}
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.header { 
    background: rgba(18, 18, 18, 0.92); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--border-color); 
    position: sticky; 
    top: 0; 
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 0;
}
.logo { 
    font-size: 1.3rem; 
    font-weight: 800; 
    color: var(--accent);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav { 
    display: flex; 
    gap: 2.5rem; 
    align-items: center;
    flex: 1;
    margin-left: 3rem;
}
.nav-link { 
    color: var(--text-secondary); 
    position: relative; 
    transition: color var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--accent); 
    transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

.header-actions { 
    display: flex; 
    gap: 2rem; 
    align-items: center;
    margin-left: auto;
}
.btn-theme { 
    background: none; 
    border: 1px solid var(--border-color); 
    padding: 0.5rem 0.75rem; 
    color: var(--text-primary); 
    cursor: pointer; 
    transition: all var(--transition);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.btn-theme:hover { 
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-carrito { 
    position: relative; 
    color: var(--text-secondary); 
    transition: color var(--transition);
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-carrito:hover { 
    color: var(--accent);
}
.carrito-count { 
    position: absolute; 
    top: -8px; 
    right: -12px; 
    background: var(--accent); 
    color: white; 
    border-radius: 50%; 
    width: 22px; 
    height: 22px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero { 
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(42, 125, 215, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary); 
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 { 
    color: var(--text-primary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}
.hero p { 
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn { 
    padding: 0.95rem 2rem; 
    border: none; 
    border-radius: 50px;
    font-weight: 600; 
    cursor: pointer; 
    transition: all var(--transition);
    min-height: 44px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}
.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 158, 255, 0.4);
}
.btn-secondary { 
    background: transparent;
    color: var(--text-primary); 
    border: 1.5px solid var(--border-color);
    transition: all var(--transition);
}
.btn-secondary:hover { 
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
}
.btn-secondary:active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.productos-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem;
    margin-top: 3rem;
}
.producto-card { 
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    overflow: hidden; 
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.producto-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 16px 32px rgba(74, 158, 255, 0.15);
    border-color: var(--accent);
}

.producto-imagen { 
    position: relative; 
    width: 100%; 
     aspect-ratio: 3 / 4; /* proporción blister Hot Wheels */
    background: var(--bg-light);
}
.producto-imagen img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
     object-fit: contain;  
    transition: transform var(--transition);
}


.imagen-placeholder { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-secondary) 100%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-secondary); 
    padding: 1rem;
    text-align: center;
}
.imagen-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.producto-card > div:not(.producto-imagen) { padding: 1.5rem; }
.producto-card h3 { 
    font-size: 1.1rem; 
    margin: 0.5rem 0;
    color: var(--text-primary);
}
.producto-card .descripcion { 
    font-size: 0.9rem; 
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}
.producto-card .precio { 
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.preventa-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    z-index: 10;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);

    /*CLAVE */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.producto-card:hover .preventa-badge {
    opacity: 1;
}


.catalogo, .preventa-section, .contacto-section { 
    padding: 5rem 0;
}
.catalogo h2, .preventa-section h2 { 
    text-align: center; 
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.catalogo > .container > p, .preventa-section > .container > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.preventa-info { 
    text-align: center; 
    max-width: 700px; 
    margin: 0 auto 3rem; 
    padding: 2rem; 
    background: rgba(74, 158, 255, 0.08);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    color: var(--text-secondary);
}

.catalogo-vacio { 
    text-align: center; 
    padding: 4rem 2rem; 
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed var(--border-subtle);
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.catalogo-vacio i {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.catalogo-vacio h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.catalogo-vacio p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
}

.contacto-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 2rem; 
    margin-bottom: 3rem;
}
.contacto-card { 
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    text-align: center; 
    transition: all var(--transition);
    border: 1px solid var(--border-color);
}
.contacto-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
    background: rgba(74, 158, 255, 0.03);
}
.contacto-icono { 
    font-size: 2.8rem; 
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.contacto-form { 
    max-width: 700px; 
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.contacto-form h2 {
    margin-bottom: 0.5rem;
}

.contacto-form > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mensaje-enviado {
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid #16a34a;
    color: #86efac;
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.form-group { 
    margin-bottom: 1.5rem;
}

.form-group label { 
    display: block; 
    margin-bottom: 0.7rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input, 
.form-group textarea { 
    width: 100%; 
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus, 
.form-group textarea:focus { 
    outline: none; 
    border-bottom-color: var(--accent);
    box-shadow: 0 2px 0 var(--accent);
    background: transparent;
}

.footer { 
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-content { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-col h4 { 
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.footer-col p, .footer-col a { 
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer-col a { 
    display: block;
    transition: color var(--transition);
}
.footer-col a:hover { 
    color: var(--accent);
}
.footer-bottom { 
    text-align: center; 
    padding-top: 2rem; 
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.carrito-section { 
    padding: 5rem 0;
}
.carrito-contenido {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}
.tabla-carrito { 
    width: 100%; 
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
}
.tabla-carrito th { 
    padding: 1.5rem;
    text-align: left; 
    font-weight: 700;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
}
.tabla-carrito td { 
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
.tabla-carrito tr:last-child td {
    border-bottom: none;
}

.carrito-resumen { 
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.carrito-vacio {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
}

.carrito-vacio p {
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
}
.resumen-fila { 
    display: flex; 
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.resumen-fila.total { 
    border-top: 2px solid var(--border-color);
    padding-top: 1rem; 
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

.checkout-section { 
    padding: 5rem 0;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}
.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1rem;
}

.acerca-section { 
    padding: 5rem 0;
}
.acerca-contenido { 
    max-width: 900px; 
    margin: 0 auto;
}
.acerca-contenido h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.acerca-contenido p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none; }


/* =========================
   FIX SELECT PROVINCIAS
   ========================= */

select {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* OPCIONES DEL SELECT (el problema real) */
select option {
    background-color: #ffffff;
    color: #000000;
}

/* Hover opcional */
select option:hover {
    background-color: #eaeaea;
    color: #000000;
}


/* =========================
   MENSAJE WHATSAPP CHECKOUT
   ========================= */

.mensaje-whatsapp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.mensaje-whatsapp-texto {
    margin-top: 1rem;

    white-space: pre-wrap;
    word-break: break-word;

    font-size: 0.9rem;
    line-height: 1.5;

    max-height: 320px;     /* 🔑 NO crece infinito */
    overflow-y: auto;     /* 🔑 scroll interno */
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .mensaje-whatsapp-texto {
        max-height: 260px;
    }
}

