:root {
    /* Tema oscuro moderno elegante */
    --color-primario: #0f1419;
    --color-secundario: #1a1f2e;
    --color-terciario: #252d3f;
    --color-acento: #6366f1;
    --color-acento-hover: #4f46e5;
    --color-acento-light: #818cf8;
    --color-texto: #e2e8f0;
    --color-texto-secundario: #94a3b8;
    --color-borde: #334155;
    --sidebar-bg: #0a0e14;
    --card-bg: #1e293b;
    --card-hover: #2d3748;
    --sidebar-width: 260px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e293b 0%, #0f1419 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-primario);
    color: var(--color-texto);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   LAYOUT PRINCIPAL: SIDEBAR + CONTENIDO
   ======================================== */

/* Sidebar izquierdo */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Sidebar Brand */
.sidebar-brand {
    padding: 1.5rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand .logo {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 0.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    display: block;
}

.sidebar-brand .logo:hover {
    transform: scale(1.05);
}

.sidebar-brand .brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.sidebar-brand .brand-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Navegación Sidebar */
.navegacion {
    flex: 1;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.boton-seccion {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
    overflow: visible;
}

.boton-seccion:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.boton-seccion.activo {
    background: rgba(92, 106, 196, 0.15);
    color: white;
    border-left-color: var(--color-acento);
    font-weight: 600;
}

/* Badge del carrito en el sidebar */
.boton-seccion .cart-tab-badge {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #ff9800;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.boton-seccion .cart-tab-badge.hidden {
    display: none;
}

/* Contenido principal */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--color-primario);
    position: relative;
    z-index: 1;
}

.contenedor-principal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    position: relative;
}

/* ========================================
   CATÁLOGO PREMIUM
   ======================================== */

.catalogo-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
}

.catalogo-titulo {
    font-size: 2.5rem;
    color: var(--color-texto);
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.catalogo-descripcion {
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch;
    justify-items: center;
}

.catalogo-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-borde);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Permitir overflow solo para el dropdown cuando está abierto */
.catalogo-card.dropdown-open {
    overflow: visible;
}

.catalogo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 0 0 1px var(--color-acento);
    border-color: var(--color-acento);
    z-index: 10;
}

.catalogo-img-wrap {
    width: 100%;
    height: 220px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-borde);
    position: relative;
}

.catalogo-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.catalogo-img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    transition: transform 0.3s;
}

.catalogo-img.nba-img {
    max-width: 280px;
    max-height: 180px;
}

.catalogo-card:hover .catalogo-img {
    transform: scale(1.08);
}

.catalogo-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalogo-info h3 {
    color: var(--color-texto);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.catalogo-info p {
    color: var(--color-texto-secundario);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex: 1;
}

.catalogo-btn {
    background: var(--color-acento);
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.catalogo-btn:hover {
    background: var(--color-acento-hover);
    transform: translateY(-1px);
}

/* Dropdown de opciones de fútbol */
.futbol-dropdown {
    position: relative;
}

.futbol-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    background: var(--color-acento) !important;
    cursor: pointer !important;
}

.futbol-dropdown-btn:hover {
    background: var(--color-acento-hover) !important;
}

.futbol-dropdown-btn.activo {
    background: var(--color-acento-hover) !important;
}

.futbol-dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--color-borde);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid var(--color-borde);
}

.catalogo-card.dropdown-open {
    z-index: 1001;
}

.catalogo-card.dropdown-open .futbol-dropdown-menu {
    display: flex;
}

.futbol-dropdown-menu a {
    color: var(--color-texto);
    padding: 1rem 1.2rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--color-borde);
    font-size: 0.95rem;
    background: transparent;
}

.futbol-dropdown-menu a:last-child {
    border-bottom: none;
}

.futbol-dropdown-menu a:hover {
    background: var(--color-acento);
    color: white;
    transform: translateX(4px);
}

/* ========================================
   FORMULARIO DE PEDIDO
   ======================================== */

.formulario-pedido {
    max-width: 900px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-borde);
}

.formulario-pedido h2 {
    text-align: center;
    color: var(--color-texto);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.selector-unidades {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.boton-unidad {
    background: var(--color-primario);
    color: var(--color-texto);
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.boton-unidad:hover {
    border-color: var(--color-acento);
    color: var(--color-acento);
}

.boton-unidad.activo {
    background: var(--color-acento);
    color: white;
    border-color: var(--color-acento);
}

/* Grid de inputs */
.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-texto);
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea,
.input-group select,
.input-talla,
.custom-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    background: var(--color-secundario);
    color: var(--color-texto);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus,
.input-talla:focus,
.custom-select:focus {
    outline: none;
    border-color: var(--color-acento);
    background: var(--color-terciario);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Calculadora de precio */
.calculadora-precio {
    background: var(--gradient-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--color-acento);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.calculadora-precio h3 {
    color: var(--color-texto);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.detalle-precio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-borde);
    font-size: 1rem;
}

.detalle-precio:last-of-type {
    border-bottom: none;
}

.total-container {
    background: var(--color-acento);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    text-align: center;
}

.precio-total {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
}

.moneda {
    font-size: 1.5rem;
}

/* Botones de versión */
.boton-version-especial,
.boton-version-jugador,
.boton-camiseta-nba {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--color-borde);
    border-radius: 8px;
    background: white;
    color: var(--color-texto);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.boton-version-especial:hover,
.boton-version-jugador:hover,
.boton-camiseta-nba:hover {
    border-color: var(--color-acento);
    color: var(--color-acento);
}

.boton-version-especial.activo,
.boton-version-jugador.activo,
.boton-camiseta-nba.activo {
    background: var(--color-acento);
    color: white;
    border-color: var(--color-acento);
}

/* Botón de pago */
.boton-pago {
    background: #ffc439;
    color: #111;
    border: none;
    border-radius: 8px;
    padding: 1rem 2.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem auto 0;
}

.boton-pago:hover {
    background: #ffb800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.3);
}

/* ========================================
   CARRITO
   ======================================== */

/* ========================================
   SECCIÓN CARRITO - REDISEÑADA
   ======================================== */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cart-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--color-borde);
    box-shadow: var(--shadow-md);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-borde);
}

.cart-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-texto);
    margin: 0;
}

.cart-count {
    background: var(--color-acento);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cart-items {
    min-height: 200px;
    margin-bottom: 2rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
}

.cart-empty small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.carrito-item {
    background: var(--color-secundario);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-borde);
    transition: var(--transition-smooth);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 1rem;
    align-items: center;
}

.carrito-item:hover {
    border-color: var(--color-acento);
    transform: translateX(4px);
}

.carrito-item-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-terciario);
}

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

.carrito-item-info h4 {
    color: var(--color-texto);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carrito-item-info p {
    color: var(--color-texto-secundario);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.carrito-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.carrito-item-price {
    color: var(--color-acento);
    font-size: 1.3rem;
    font-weight: 700;
}

.carrito-item .cantidad-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-terciario);
    border-radius: 8px;
    padding: 0.25rem;
}

.carrito-item .cantidad-controls button {
    background: var(--color-acento);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrito-item .cantidad-controls button:hover {
    background: var(--color-acento-hover);
    transform: scale(1.1);
}

.carrito-item .cantidad-controls span {
    color: var(--color-texto);
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-divider {
    height: 2px;
    background: var(--gradient-primary);
    margin: 2rem 0;
    border-radius: 2px;
}

.cart-discount-section {
    margin: 1.5rem 0;
}

.discount-dropdown-btn {
    width: 100%;
    background: var(--color-secundario);
    border: 2px solid var(--color-borde);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--color-texto);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.discount-dropdown-btn:hover {
    border-color: var(--color-acento);
    background: var(--color-terciario);
}

.cart-summary {
    background: var(--gradient-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--color-acento);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.cart-summary h3 {
    color: var(--color-texto);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    color: var(--color-texto-secundario);
    font-size: 1rem;
}

.summary-row.total {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-borde);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-texto);
}

.summary-row.total span:last-child {
    color: var(--color-acento);
}

.btn-checkout {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-remove {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SECCIÓN "QUIÉNES SOMOS"
   ======================================== */

/* ========================================
   SECCIÓN QUIÉNES SOMOS - REDISEÑADA
   ======================================== */

.quienes-somos-ui {
    max-width: 1100px;
    margin: 0 auto 3rem;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid var(--color-borde);
    position: relative;
    overflow: hidden;
}

.quienes-somos-ui::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.quienes-somos-ui h2 {
    color: var(--color-texto);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quienes-somos-ui p {
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quienes-somos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quienes-somos-card {
    background: var(--color-secundario);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-borde);
    position: relative;
}

.quienes-somos-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 16px;
}

.quienes-somos-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
    border-color: var(--color-acento);
}

.quienes-somos-card:hover::before {
    opacity: 0.05;
}

.quienes-somos-card .icon {
    font-size: 3rem;
    color: var(--color-acento);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quienes-somos-card h3 {
    color: var(--color-texto);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.quienes-somos-card p {
    color: var(--color-texto-secundario);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========================================
   CARRUSEL DE CLIENTES
   ======================================== */

.clientes-carrusel-section {
    margin: 2.5rem auto;
    max-width: 600px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--color-borde);
}

.clientes-carrusel-section h3 {
    color: var(--color-texto);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.clientes-carrusel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.carrusel-btn {
    background: var(--color-acento);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.carrusel-btn:hover {
    background: var(--color-acento-hover);
    transform: scale(1.05);
}

.carrusel-imagenes {
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-secundario);
    position: relative;
    border: 1px solid var(--color-borde);
}

.carrusel-img-bg {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    position: absolute;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s;
    cursor: pointer;
}

.carrusel-img-bg.activa {
    opacity: 1;
    z-index: 2;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 2px solid var(--color-borde);
    text-align: center;
    background: var(--card-bg);
    position: relative;
}

footer p {
    color: var(--color-texto-secundario);
}

footer a {
    color: var(--color-acento);
}

footer a:hover {
    color: var(--color-acento-light);
}

.redes-sociales,
.redes_sociales {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.redes-sociales a,
.redes_sociales a {
    color: var(--color-texto-secundario);
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.redes-sociales a:hover,
.redes_sociales a:hover {
    color: var(--color-acento);
    transform: translateY(-3px);
}

/* ========================================
   SECCIONES
   ======================================== */

.seccion {
    display: none;
    animation: aparecer 0.5s ease forwards;
}

.seccion.activa {
    display: block;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .grid-catalogo {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .contenedor-principal {
        padding: 2rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 2000;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }

    .main-content {
        margin-left: 0;
    }

    /* Botón hamburguesa móvil */
    .mobile-menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1500;
        background: var(--color-acento);
        color: white;
        border: none;
        border-radius: 8px;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: var(--transition-smooth);
    }

    .mobile-menu-toggle:hover {
        background: var(--color-acento-hover);
        transform: scale(1.05);
    }

    .mobile-menu-toggle i {
        font-size: 1.5rem;
    }

    /* Overlay para cerrar sidebar */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1900;
        opacity: 0;
        transition: opacity 0.3s;
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .contenedor-principal {
        padding: 1.5rem 1rem;
    }

    .catalogo-titulo {
        font-size: 2rem;
    }

    .grid-catalogo {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .formulario-pedido {
        padding: 1.5rem;
    }

    .selector-unidades {
        flex-direction: column;
    }

    .boton-unidad {
        width: 100%;
    }

    /* Navegación móvil inferior */
    .navegacion {
        display: none;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: white;
        border-top: 1px solid var(--color-borde);
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .bottom-nav__btn {
        flex: 1;
        height: 100%;
        background: transparent;
        color: var(--color-texto-secundario);
        border: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition-smooth);
        position: relative;
    }

    .bottom-nav__btn.activo {
        color: var(--color-acento);
    }

    .bottom-nav__btn .icon {
        font-size: 1.4rem;
    }

    body {
        padding-bottom: 64px;
    }
}

@media (max-width: 480px) {
    .catalogo-titulo {
        font-size: 1.7rem;
    }

    .grid-catalogo {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .clientes-carrusel-section {
        padding: 1.5rem 1rem;
    }

    .carrusel-imagenes {
        width: 250px;
        height: 250px;
    }
}

/* ========================================
   CUSTOM DROPDOWN
   ======================================== */

.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: white;
    border: 2px solid var(--color-borde);
    color: var(--color-texto);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-dropdown-button:focus {
    outline: none;
    border-color: var(--color-acento);
    box-shadow: 0 0 0 3px rgba(92, 106, 196, 0.1);
}

.custom-dropdown-menu {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 6px;
    z-index: 100;
    max-height: 300px;
    overflow: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-borde);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-dropdown-item {
    padding: 0.85rem 1rem;
    color: var(--color-texto);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 0.95rem;
}

.custom-dropdown-item:hover {
    background: var(--color-secundario);
}

.custom-dropdown-item[aria-selected="true"] {
    background: var(--color-acento);
    color: white;
}

/* ========================================
   MODALES
   ======================================== */

#modal-imagen-clientes {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
}

#modal-img-clientes {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.modal-cerrar {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    color: var(--color-texto);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10000;
    transition: var(--transition-smooth);
}

.modal-cerrar:hover {
    background: var(--color-acento);
    color: white;
}

/* Toast del carrito */
#cartTotalToast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: white;
    color: var(--color-texto);
    border: 1px solid var(--color-borde);
    box-shadow: var(--shadow-lg);
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

#cartTotalToast.show {
    opacity: 1;
    pointer-events: auto;
}

/* Barra de navegación móvil oculta por defecto */
.bottom-nav {
    display: none;
}

/* Brand header oculto en desktop */
.brand-header {
    display: none;
}

/* ========================================
   CONTENEDOR DE UNIDADES
   ======================================== */

.contenedor-unidades {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.unidad {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-borde);
}

.unidad h4 {
    margin-bottom: 1rem;
    color: var(--color-texto);
    font-weight: 600;
}

.unidad-fullwidth {
    grid-column: span 2;
}

/* ========================================
   BADGES Y ETIQUETAS
   ======================================== */

.badge-envio {
    display: inline-block;
    background: #17a2b8;
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 14px;
    margin-left: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.badge-megapack {
    display: inline-block;
    background: linear-gradient(90deg, #ff8a00, #ff3d00);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 14px;
    margin-left: 0.6rem;
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.badge-extra {
    background: #28a745;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-left: 1rem;
    color: white;
    font-weight: 600;
}

/* ========================================
   MODAL DE PERSONALIZACIÓN
   ======================================== */

.modal-personalizacion {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-personalizacion.activo {
    display: flex;
}

.modal-contenido {
    background: white;
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-tienda-panel,
.tienda-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.close-modal,
.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--color-texto-secundario);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-smooth);
}

.close-modal:hover,
.cerrar-modal:hover {
    color: var(--color-acento);
}

/* ========================================
   FORMULARIOS Y INPUTS MEJORADOS
   ======================================== */

textarea {
    min-height: 100px;
    resize: vertical;
}

select option {
    padding: 0.5rem;
}

/* Estilos para inputs deshabilitados */
input:disabled,
select:disabled,
textarea:disabled {
    background: var(--color-secundario);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes flotar {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate__animated {
    animation-duration: 0.8s;
}

/* Lazy loading skeleton */
img[data-src] {
    background: linear-gradient(90deg, var(--color-secundario) 25%, var(--color-terciario) 50%, var(--color-secundario) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

img.loaded {
    animation: none;
    background: none;
}

/* Animación de entrada para tarjetas */
.catalogo-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.catalogo-card.visible,
.catalogo-card.animate__fadeInUp {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   GUÍAS DE TALLAS
   ======================================== */

.guias-tallas {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-borde);
}

.guias-tallas h3 {
    color: var(--color-texto);
    margin-bottom: 1rem;
    font-weight: 600;
}

.guias-tallas img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ========================================
   LOADER / SPINNER
   ======================================== */

.loader {
    border: 4px solid var(--color-secundario);
    border-top: 4px solid var(--color-acento);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   ALERTAS Y NOTIFICACIONES
   ======================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ========================================
   TABLA DE PRECIOS
   ======================================== */

.tabla-precios {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.tabla-precios th,
.tabla-precios td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--color-borde);
}

.tabla-precios th {
    background: var(--color-secundario);
    font-weight: 600;
    color: var(--color-texto);
}

.tabla-precios tr:hover {
    background: var(--color-secundario);
}

/* ========================================
   ICONOS EN BOTONES
   ======================================== */

.boton-seccion i,
.catalogo-btn i,
.bottom-nav__btn i {
    margin-right: 0.3rem;
}

/* ========================================
   SCROLLBAR PERSONALIZADA
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-secundario);
}

::-webkit-scrollbar-thumb {
    background: var(--color-texto-secundario);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-acento);
}

/* ========================================
   TEXTO Y TIPOGRAFÍA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-texto);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-acento);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-acento-hover);
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ========================================
   MEJORAS PARA DESKTOP GRANDE
   ======================================== */

@media (min-width: 1441px) {
    .contenedor-principal {
        max-width: 1600px;
    }

    .grid-catalogo {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.8rem;
    }
}

/* ========================================
   AJUSTES PARA TABLET
   ======================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }

    .sidebar-brand .logo {
        width: 60px;
        height: 60px;
    }

    .sidebar-brand .brand-title {
        font-size: 1.2rem;
    }

    .contenedor-principal {
        padding: 2rem 1.5rem;
    }

    /* Grid de catálogo para tablet - 3 columnas */
    .grid-catalogo {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ========================================
   FIX PARA COMPONENTES ESPECÍFICOS
   ======================================== */

/* Asegurar que las imágenes no se desborden */
img {
    max-width: 100%;
    height: auto;
}

/* Botones con ancho completo en móvil */
@media (max-width: 768px) {
    .boton-unidad,
    .catalogo-btn {
        width: 100%;
    }

    .contenedor-unidades {
        grid-template-columns: 1fr;
    }

    .unidad-fullwidth {
        grid-column: span 1;
    }

    .catalogo-card {
        overflow: hidden;
    }

    .quienes-somos-ui {
        padding: 2rem 1.5rem;
    }

    .quienes-somos-grid {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        padding: 0 1rem;
    }
    
    /* OVERRIDE: Forzar 2 columnas en el grid de catálogo para móvil */
    html body .grid-catalogo {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejoras de contraste para accesibilidad */
@media (prefers-contrast: high) {
    :root {
        --color-texto: #ffffff;
        --color-borde: #ffffff;
        --color-acento: #818cf8;
    }
}

