/* ============================================================
   URBAN KICKS - styles.css
   Organización:
   1. Variables y Temas
   2. Reset y Base
   3. Header y Navegación
   4. Hero / Carrusel
   5. Grilla de Productos
   6. Tarjeta de Producto
   7. Detalle de Producto
   8. Carrito
   9. Footer
   10. Panel Admin
   11. Dashboard / Perfil
   12. Login / Registro (Split Screen)
   13. Modales
   14. WhatsApp Flotante
   15. Media Queries (TODOS JUNTOS AL FINAL)
   ============================================================ */

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ============================================================
   1. VARIABLES Y TEMAS
   ============================================================ */
:root {
    --bg-body: #ffffff;
    --bg-header: #000000;
    --bg-hero: #f4f4f4;
    --bg-card: #f9f9f9;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --accent-red: #ff4d4d;
    --success-green: #28a745;
    --success-hover: #218838;
    --urban-red: #ff4d4d;
    --bg-dark: #000000;
    --card-dark: #111111;
    --border-dark: #222222;
    --admin-bg: #f8f9fa;
    --sidebar-black: #111111;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
    --bg-body: #0d0d0d;
    --bg-header: #000000;
    --bg-hero: #1a1a1a;
    --bg-card: #151515;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-color: #333333;
}


/* ============================================================
   2. RESET Y BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.promo-bar {
    background-color: var(--accent-red);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ============================================================
   3. HEADER Y NAVEGACIÓN
   ============================================================ */
header {
    background-color: var(--bg-header);
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--accent-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a.active-link {
    color: #ff4d4d !important;
    font-weight: bold;
}

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff4d4d;
}

.header-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid #444;
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: 0.3s;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.admin-badge-link {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #ff4d4d;
    color: white !important;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-right: 10px;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.2);
}

.admin-badge-link i {
    font-size: 1rem;
}

.admin-badge-link:hover {
    background-color: #000;
    transform: translateY(-2px);
}


/* ============================================================
   4. HERO / CARRUSEL
   ============================================================ */
.hero {
    height: 70vh;
    background-color: #000;
    display: flex;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-container {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 20px; }
.next { right: 20px; }

.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-red);
    width: 30px;
    border-radius: 10px;
}

.hero-content {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5% 0 8%;
    background-color: #000;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: fadeInSlide 0.8s ease-out;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent-red);
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeInSlide 1s ease-out;
}

.hero-image-container {
    flex: 0 0 50%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, #000, transparent);
    z-index: 1;
}

#hero-image {
    width: 85%;
    height: 85%;
    object-fit: contain;
    z-index: 2;
    transition: opacity 0.5s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}


/* ============================================================
   5. GRILLA DE PRODUCTOS
   ============================================================ */
.section-title {
    text-align: center;
    margin: 60px 0 30px;
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.categorias-container {
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ============================================================
   6. TARJETA DE PRODUCTO
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    background: rgba(0,0,0,0.03);
    border-radius: 5px;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    height: 2.4em;
    overflow: hidden;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
}

.precio {
    color: var(--accent-red);
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
}

.btn-comprar {
    background-color: var(--success-green);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-comprar:hover {
    background-color: var(--success-hover);
}

/* --- Filtros de Categoría Dinámicos --- */
.filtro-btn {
    padding: 10px 22px;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filtro-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    transform: translateY(-2px);
}

.filtro-btn.active-filtro {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* ============================================================
   7. DETALLE DE PRODUCTO
   ============================================================ */
.product-detail-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.product-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    background-color: var(--bg-card);
    padding: 20px;
}

.product-info {
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-red);
    margin: 10px 0 20px;
}

.size-options {
    display: flex;
    flex-wrap: wrap; /* Clave para que en celu no se salgan de la pantalla */
    gap: 10px;
    margin: 20px 0 30px;
}

.size-btn {
    width: 55px; /* Un poquito más ancho para que entren talles como "42.5" */
    height: 50px;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 50px;
    padding: 0 10px;
}

.size-btn:hover, .size-btn.active {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.active-size {
    background-color: #ff4d4d !important;
    color: white !important;
    border-color: #ff4d4d !important;
    transform: scale(1.05); /* Le da un efecto de hundido/resaltado */
}

.btn-add-to-cart {
    padding: 20px;
    background-color: var(--accent-red);
    color: white;
    border: none;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 12px;
    width: 100%;
}

.btn-add-to-cart:hover {
    background-color: #e64444;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.2);
}

/* Contenedor de opciones de color */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0 20px;
}

/* Botón de color individual */
.color-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: none;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.color-btn:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Estado activo para el color seleccionado */
.active-color {
    background-color: var(--accent-red) !important;
    color: white !important;
    border-color: var(--accent-red) !important;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.2);
}

/* Etiqueta pequeña sobre los selectores */
.detail-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

/* --- Selectores de Cantidad (Específico Ropa) --- */
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* --- Botón WhatsApp en Detalle --- */
.wsp-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: 0.3s;
    border: none;
}

.wsp-detail-btn:hover {
    background-color: #128c7e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* --- Breadcrumb (Navegación de rastro) --- */
.breadcrumb {
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-red);
}

/* ============================================================
   8. CARRITO
   ============================================================ */
.cart-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 5%;
    min-height: 60vh;
}

.cart-container h1 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 5px;
}

#cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
}

.cart-item:hover {
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 5px;
}

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

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    color: var(--text-main);
}

.cart-item-info p {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-remove {
    background: #ff4d4d;
    border: 1px solid var(--accent-red);
    color: #ffffff !important;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-remove:hover {
    background: var(--accent-red);
    color: white;
}

.cart-summary {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: right;
    border: 1px solid var(--border-color);
    margin-top: 20px;
}

.cart-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.cart-summary span {
    color: var(--accent-red);
    font-size: 1.8rem;
    font-weight: 900;
}

.cart-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-checkout {
    background-color: var(--accent-red);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    background-color: #e64444;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

.btn-continue {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-continue:hover {
    background-color: var(--text-main);
    color: var(--bg-body);
}


/* ============================================================
   9. FOOTER
   ============================================================ */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 5% 20px;
    margin-top: 50px;
    border-top: 3px solid var(--accent-red);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-column h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--accent-red);
}

.footer-column p, .footer-column ul li a {
    font-size: 0.9rem;
    color: #bbbbbb;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column ul li a:hover { color: #ffffff; }

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: var(--accent-red);
}

.payment-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ccc;
}

.payment-item i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #ff4500;
}

.payment-item span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.75rem;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
    text-align: center;
    color: #888;
}


/* ============================================================
   10. PANEL ADMIN
   ============================================================ */
.admin-body {
    background-color: var(--admin-bg) !important;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background-color: var(--sidebar-black);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

/* Usamos .admin-layout .sidebar para el sidebar del admin sin pisar el del perfil */
.admin-layout .sidebar {
    width: 280px;
    background-color: var(--sidebar-black);
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1100;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.admin-logo {
    width: 160px;
    margin: 0 auto 50px;
    display: block;
    object-fit: contain;
}

.sidebar-nav { flex-grow: 1; }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ababab;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-nav a i { font-size: 1.2rem; }

.sidebar-nav a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav a.active {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.3);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 50px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 25px 35px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border-left: 6px solid var(--accent-red);
}

.admin-header h2 {
    color: #000 !important;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-size: 1.5rem;
}

.admin-section { margin-bottom: 40px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.admin-table thead th {
    text-align: left;
    padding: 15px 20px;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr {
    transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.admin-table tbody tr:hover { background-color: #fcfcfc; }

.admin-table td {
    padding: 20px;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #444;
}

.btn-nuevo {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-nuevo:hover {
    background-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.2);
}

.btn-del {
    background-color: #fff0f0;
    color: var(--accent-red);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-del:hover {
    background-color: var(--accent-red);
    color: white;
}

.btn-cargar {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cargar:hover { background: var(--accent-red); }

.stock-container {
    margin: 15px 0;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
}

.size-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.size-input { flex: 2; padding: 8px; background: #f4f4f4; border: 1px solid #444; color: #333 !important; border-radius: 4px; }
.stock-input { flex: 1; padding: 8px; background: #f4f4f4; border: 1px solid #444; color: #333 !important; border-radius: 4px; }

.btn-size {
    padding: 0 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: white;
}

.btn-add { background: #444; }
.btn-remove-size, .btn-remove { background: #ff4d4d; }

.admin-stock-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 250px;
}

.btn-venta {
    background: #222;
    color: #eee;
    border: 1px solid #444;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-venta:hover {
    background: #ff4d4d;
    border-color: #ff4d4d;
    color: white;
}

.btn-venta span {
    font-weight: bold;
    margin-left: 3px;
    color: #ff4d4d;
}

.btn-venta:hover span { color: white; }

/* Estilos para filas de colores en el Admin */
.color-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-input {
    flex: 1;
    padding: 8px;
    background: #f4f4f4;
    border: 1px solid #444;
    color: #333 !important;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

/* ============================================================
   11. DASHBOARD / PERFIL
   ============================================================ */
.dashboard-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

/* Sidebar del perfil (diferente al del admin) */
.dashboard-container .sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #0a0a0a;
    border-right: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    position: relative;
    height: auto;
}

.sidebar-header h3 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-top: 10px;
    color: #fff;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sidebar-link:hover, .sidebar-link.active {
    background: #1a1a1a;
    color: var(--urban-red);
}

.main-content {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    min-width: 0;
}

.section-card {
    width: 100%;
    max-width: 900px;
    background: var(--card-dark);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.section-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card h2 i { color: var(--urban-red); }

.perfil-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.full-width { grid-column: span 2; }

.form-group-grande label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group-grande input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-dark);
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group-grande input:focus {
    outline: none;
    border-bottom-color: var(--urban-red);
}

.btn-guardar-grande {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-guardar-grande:hover {
    background: var(--urban-red);
    color: #fff;
    transform: translateY(-3px);
}

.table-container { overflow-x: auto; }

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    text-align: left;
    padding: 15px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-dark);
}

.orders-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.9rem;
}

.status-pill {
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.shipped { background: rgba(46, 204, 113, 0.1); color: #2ecc71; }

/* Avatar */
.avatar-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    cursor: pointer;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--urban-red);
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ff4d4d;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    border: 2px solid #000;
}

.seguridad-seccion {
    grid-column: span 2;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.seguridad-seccion h3 {
    font-size: 0.9rem;
    color: #ff4d4d;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}


/* ============================================================
   12. LOGIN / REGISTRO (Split Screen)
   ============================================================ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
}

.split-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.auth-image-side {
    flex: 1.2;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.auth-image-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo-large {
    width: 85%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.05));
}

.auth-form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.auth-form-content {
    width: 100%;
    max-width: 360px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #000;
}

.form-header p {
    color: #666;
    margin-bottom: 40px;
    font-size: 1rem;
}

.input-group { margin-bottom: 25px; }

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
}

.input-group input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #eee;
    background-color: transparent;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}

.input-group input:focus {
    outline: none;
    border-bottom-color: #ff4d4d;
}

.btn-entrar-split {
    width: 100%;
    padding: 18px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-entrar-split:hover {
    background-color: #ff4d4d;
    transform: translateY(-3px);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.auth-footer p a {
    color: #ff4d4d;
    text-decoration: none;
    font-weight: 700;
}


/* ============================================================
   13. MODALES
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-top: 0;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #000;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #f9f9f9;
    font-family: inherit;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent-red);
    background: #fff;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ccc;
}

/* Modal recuperación de contraseña */
.modal-recuperar {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.modal-recuperar .modal-content {
    margin: 10vh auto;
    max-width: 420px;
    text-align: center;
}

.modal-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: -1px;
    color: #000;
}

.modal-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: 0.3s;
}

.modal-input:focus {
    outline: none;
    border-color: #ff4d4d;
    background-color: #fff;
}

.btn-modal {
    width: 100%;
    padding: 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-modal:hover {
    background-color: #ff4d4d;
    transform: translateY(-2px);
}

.btn-cancelar {
    display: inline-block;
    margin-top: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-cancelar:hover { color: #ff4d4d; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* ============================================================
   14. WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
}


/* ============================================================
   15. MEDIA QUERIES (TODOS JUNTOS)
   ============================================================ */

/* Tablets grandes */
@media (max-width: 1100px) {
    .grid-productos { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets */
@media (max-width: 992px) {
    /* Admin sidebar compacto */
    .admin-layout .sidebar {
        width: 80px;
        padding: 20px 10px;
    }
    .admin-layout .sidebar span,
    .admin-layout .sidebar .admin-logo {
        display: none;
    }
    .admin-main {
        margin-left: 80px;
        padding: 20px;
    }
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    /* Grilla */
    .grid-productos { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile grande */
@media (max-width: 850px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    /* Login split screen apilado */
    .split-container { flex-direction: column; }
    .auth-image-side { padding: 40px; }
    .auth-form-side { padding: 40px 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* WhatsApp */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }

    /* Header nav en mobile */
    header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 4%;
    }
    .nav-links {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    .nav-links a {
        margin: 0;
        font-size: 0.75rem;
    }

    /* Hero en mobile */
    .hero {
        height: auto !important;
        min-height: 400px;
    }
    .hero-container {
        flex-direction: column !important;
    }
    .hero-content {
        flex: 0 0 auto !important;
        padding: 20px !important;
        text-align: center !important;
        order: 2 !important;
    }
    .hero-image-container {
        flex: 0 0 250px !important;
        min-height: 250px !important;
        width: 100% !important;
        order: 1 !important;
    }
    .hero-image-container::before {
        width: 100%;
        height: 50px;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, #000, transparent);
    }
    .hero-content h1 { font-size: 2rem !important; }

    /* Detalle en mobile */
    .product-detail-container {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 20px !important;
        min-height: auto !important;
        align-items: center !important;
    }
    .product-image img {
        max-width: 100% !important;
    }
    .product-info {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Dashboard / Perfil en mobile */
    .dashboard-container {
        flex-direction: column !important;
    }
    .dashboard-container .sidebar {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        padding: 8px 10px !important;
        overflow-x: auto !important;
        min-height: auto !important;
    }
    .dashboard-container .sidebar .sidebar-header,
    .dashboard-container .sidebar .user-avatar-side {
        display: none !important;
    }
    .main-content {
        padding: 15px !important;
    }
    .perfil-form-grid {
        grid-template-columns: 1fr !important;
    }
    .full-width {
        grid-column: span 1 !important;
    }
    .seguridad-seccion {
        grid-column: span 1 !important;
    }
    .section-card {
        padding: 20px !important;
    }
}

/* Botones de cantidad - detalle */
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.qty-btn:hover {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

/* Botón WhatsApp - detalle */
.wsp-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #25D366;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.wsp-detail-btn:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

.wsp-detail-btn i {
    font-size: 1.2rem;
}

/* AGG DE MAS IMAGENES DE PRODUCTOS */
.qty-btn-small {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #444;
    background: var(--bg-card);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;    
    justify-content: center;
    font-weight: bold;
    transition: 0.3s;
}

.qty-btn-small:hover {
    background: var(--urban-red);
    color: white;
    border-color: var(--urban-red);
}

.filtro-wrapper {
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filtro-label {
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1.5px;
}

/* Estilo para las miniaturas laterales */
.thumb-lateral:hover {
    border-color: #ff4d4d !important; /* Rojo Urban Kicks */
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.3);
}

/* ============================================================
   16. ROPA
   ============================================================ */
/* --- Contenedor de Carga de Ropa --- */
.admin-clothing-form {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-top: 20px;
    border-top: 4px solid #000; /* Color distintivo para ropa */
}

/* --- Selector de Talles de Ropa (Letras) --- */
.size-letter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.size-letter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.size-letter-item label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* --- Badge de Categoría en Tabla --- */
.category-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #eee;
    color: #333;
}

.badge-remera { background: #e3f2fd; color: #1976d2; }
.badge-pantalon { background: #f3e5f5; color: #7b1fa2; }
.badge-accesorios { background: #fff3e0; color: #f57c00; } 


/* Ajuste para móviles */
@media (max-width: 768px) {
    .product-gallery-container {
        flex-direction: column-reverse !important; /* Miniaturas pasan arriba de la imagen en celu */
    }
    #contenedor-miniaturas-lateral {
        flex-direction: row !important; /* Se ponen horizontales en celu */
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

/* Mobile chico */
@media (max-width: 600px) {
    .grid-productos { grid-template-columns: 1fr; }
    /* Admin badge sin texto */
    .admin-badge-link span { display: none; }
    .admin-badge-link { padding: 5px 8px; margin-right: 5px; }
    /* Carrito apilado */
    .cart-item { flex-direction: column; text-align: center; }
    .cart-buttons { flex-direction: column; }
    .btn-checkout, .btn-continue { width: 100%; text-align: center; }
}

/* Mobile muy chico */
@media (max-width: 500px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-socials, .payment-methods { justify-content: center; }
}

@media (max-width: 480px) {
    .modal-content { margin: 15vh auto; padding: 30px 20px; }
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .product-image img {
        max-width: 100%;
    }

    .product-info h1 {
        font-size: 1.8rem;
    }

    .filtro-categorias-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
    }
}
