/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Solstudio Brand Colors */
    --primary-color: #000000; /* black primary for buttons and accents */
    --secondary-color: #e74c3c;
    --accent-color: #f5f5dc; /* soft yellow accent */
    --text-dark: #000000; /* ensure text is black, not blue */
    --text-light: #7f8c8d;
    --text-white: #ffffff;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e9ecef;
    --border-light: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: #6c757d;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: #000000;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

/* Hacer el banner de cabecera full-width como en productos.html */
.header > .container {
    max-width: none;
    width: 100%;
    padding-left: calc(var(--spacing-sm) + env(safe-area-inset-left, 0px));
    padding-right: calc(var(--spacing-sm) + env(safe-area-inset-right, 0px));
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo-img {
    height: 50px;
    width: auto;
    opacity: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: #ffffff;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

/* Colapso adaptativo del nav cuando se acerca al logo (forzar modo móvil) */
.force-mobile-nav .nav { display: none !important; }
.force-mobile-nav .mobile-menu-toggle { display: block !important; }
.force-mobile-nav .header-actions .search-box { display: none !important; }
.force-mobile-nav .nav.mobile-active {
    display: inline-block !important;
    position: absolute;
    top: 100%;
    left: auto !important;
    right: var(--spacing-sm) !important;
    width: fit-content !important;
    max-width: min(420px, 80vw) !important;
    background: #000000 !important;
    box-shadow: 0 4px 20px var(--shadow-medium);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    z-index: 1000;
}
.force-mobile-nav .nav.mobile-active .nav-list { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.force-mobile-nav .nav.mobile-active .dropdown-menu { background: #000000 !important; }
.force-mobile-nav .nav.mobile-active .dropdown-link { color: #ffffff !important; }
.force-mobile-nav .nav.mobile-active .nav-link { color: #ffffff !important; }
/* Estilos de búsqueda dentro del panel forzado */
.force-mobile-nav .nav.mobile-active .search-box { display: flex; width: 100%; margin-bottom: var(--spacing-sm); border-color: rgba(255, 255, 255, 0.3); background: transparent; }
.force-mobile-nav .nav.mobile-active .search-input { width: 100%; color: #ffffff; }
.force-mobile-nav .nav.mobile-active .search-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.force-mobile-nav .nav.mobile-active .search-btn { color: #ffffff; }

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    box-shadow: 0 4px 20px var(--shadow-medium);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-medium);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: #ffffff;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    /* Margen a la derecha para que el carrito no quede debajo de la barra de scroll */
    padding-right: var(--spacing-md);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: transparent;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.search-input {
    border: none;
    background: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    color: #ffffff;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.7); }

.search-btn {
    background: none;
    border: none;
    color: #ffffff;
    padding: var(--spacing-xs);
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--secondary-color);
}

.cart-link {
    position: relative;
    color: #ffffff;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.cart-link:hover {
    color: #ffffff;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.user-btn:hover {
    color: #ffffff;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 1px 2px var(--shadow-dark);
}

.hero-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: 3;
}

.hero-prev,
.hero-next {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.hero-prev:hover,
.hero-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-indicators {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator.active {
    background-color: var(--text-white);
    transform: scale(1.2);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Featured Categories */
.featured-categories {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.category-card {
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: var(--transition-medium);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    padding: var(--spacing-lg);
    text-align: center;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.category-description {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Featured Products */
.featured-products {
    padding: var(--spacing-xxl) 0;
    background-color: #ffffff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}
/* Carrusel para destacados en la portada */
.featured-products .products-grid {
    position: relative;
    overflow: hidden;
    display: block; /* Evita grid en destacados, el carrusel gestiona el layout */
    background-color: #ffffff; /* Fondo blanco para la galería destacada */
}
.featured-products .carousel-track {
    display: flex;
    gap: var(--spacing-lg);
    will-change: transform;
    transition: transform var(--transition-medium);
}
.featured-products .carousel-prev,
.featured-products .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.featured-products .carousel-prev { left: 8px; }
.featured-products .carousel-next { right: 8px; }
.featured-products .carousel-prev:hover,
.featured-products .carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Hover de doble imagen para tarjetas destacadas */
.featured-products .product-image-container {
    position: relative;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    aspect-ratio: 1 / 1;
}
.featured-products .product-image-primary,
.featured-products .product-image-secondary {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.featured-products .product-image-primary { opacity: 1; }
.featured-products .product-image-secondary { opacity: 0; }
/* Flip por hover: secundaria visible en hover, primaria oculta */
.featured-products .product-card:hover .product-image-secondary { opacity: 1; }
.featured-products .product-card:hover .product-image-primary { opacity: 0; }

/* Borde sutil gris en tarjetas destacadas */
.featured-products .product-card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-light);
}
.featured-products .product-card:hover {
    box-shadow: 0 4px 16px var(--shadow-light);
}

/* Ajustes de info y precio en destacados */
.featured-products .product-info { background: #fff; }
.featured-products .product-title a { color: var(--text-dark); }
.featured-products .product-price {
    display: flex;
    gap: var(--spacing-xs);
    align-items: baseline;
}
.featured-products .price-original {
    text-decoration: line-through;
    color: var(--text-light);
}

/* Gaps más pequeños en tablet/móvil */
@media (max-width: 960px) {
  .featured-products .carousel-track { gap: var(--spacing-md); }
}
@media (max-width: 640px) {
  .featured-products .carousel-track { gap: var(--spacing-sm); }
}

.product-card {
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: var(--transition-medium);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background-color: var(--secondary-color);
    color: var(--text-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-info {
    padding: var(--spacing-md);
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-add-cart {
    flex: 1;
    padding: 0.6rem;
    font-size: 0.8rem;
}

.btn-view {
    padding: 0.6rem;
    font-size: 0.8rem;
    background-color: var(--background-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-view:hover {
    background-color: var(--border-color);
}

/* About Section */
.about-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-white);
    /* Asegura que al navegar a #about el título no quede oculto por el header sticky */
    scroll-margin-top: 6rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.about-text {
    padding: var(--spacing-lg);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

/* Newsletter */
.newsletter {
    padding: var(--spacing-xxl) 0;
    background-color: var(--primary-color);
    color: var(--text-white);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    color: var(--text-white);
    margin-bottom: var(--spacing-sm);
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: var(--spacing-md);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
}

/* Footer */
.footer {
    background-color: transparent;
    color: var(--text-dark);
    padding: 0; /* full-width yellow and black bars without extra spacing */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-white);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding: var(--spacing-md) 0;
    background-color: #000000; /* black strip full width */
    color: #ffffff;
}

/* Footer Info Banner */
.footer-info-banner {
    background-color: #f5f5dc; /* yellow strip */
    color: #000000;
    padding: var(--spacing-md) 0;
    border-radius: 0; /* full-width bar edge-to-edge */
    margin: 0; /* no gap between yellow and black bars */
    text-align: center;
}
.footer-info-banner p {
    margin: 0.25rem 0;
    color: #000000;
}
/* Ensure social icons align nicely in the yellow banner */
.footer-info-banner .social-links {
    justify-content: center;
    gap: 0.75rem;
}
.footer-info-banner .social-link {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.footer-info-banner .social-link img {
    width: 34px;
    height: 34px;
    display: block;
    opacity: 1;
    filter: none;
}
.footer-logo {
    width: 140px;
    height: auto;
    margin: 0 auto var(--spacing-sm);
    display: block;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

/* Responsive Design */
@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; }
    
    .nav { display: none; }
    
    .mobile-menu-toggle { display: block; }

    /* Oculta la barra de búsqueda en el header; se mostrará dentro del menú móvil */
    .header-actions .search-box { display: none; }

    /* Estilos de la barra de búsqueda cuando está dentro del menú móvil */
    .nav.mobile-active .search-box { display: flex; width: 100%; margin-bottom: var(--spacing-sm); border-color: rgba(255, 255, 255, 0.3); background: transparent; }
    .nav.mobile-active .search-input { width: 100%; color: #ffffff; }
    .nav.mobile-active .search-input::placeholder { color: rgba(255, 255, 255, 0.7); }
    .nav.mobile-active .search-btn { color: #ffffff; }

    /* Override injected mobile menu styles to keep dark header theme */
    .nav.mobile-active {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000 !important;
        box-shadow: 0 4px 20px var(--shadow-medium);
        padding: var(--spacing-md);
        z-index: 1000;
    }
    .nav.mobile-active .nav-list { display: flex; flex-direction: column; gap: var(--spacing-sm); }
    .nav.mobile-active .dropdown-menu {
        background: #000000 !important;
    }
    .nav.mobile-active .dropdown-link {
        color: #ffffff !important;
    }
    .nav.mobile-active .nav-link {
        color: #ffffff !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Soles Gallery */
.page-soles .header-content { padding-bottom: var(--spacing-xs); }
.page-soles .soles-section { padding-top: 3rem; }
.soles-gallery {
    position: relative;
    width: 100%;
    max-width: 720px; /* escala ligeramente la galería */
    margin: 0 auto;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 24px var(--shadow-medium);
}
.soles-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity var(--transition-medium);
    cursor: pointer;
}
.soles-slide.active { opacity: 1; }

/* Header layout overrides: center logo and align menu to right */
.header-content { position: relative; }
.nav { margin-left: auto; }
.nav-list { justify-content: flex-end; }
.header-actions { margin-left: var(--spacing-md); }

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .search-input {
        width: 150px;
    }
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px var(--shadow-dark);
}

.modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-error {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
}

/* Alert Styles */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
}

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

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

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

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

/* Header layout refinado: una sola línea con logo centrado absoluto */
.header-content { display: flex; align-items: center; justify-content: flex-end; position: relative; }
.logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.header-actions { display: flex; align-items: center; gap: var(--spacing-md); padding-right: var(--spacing-lg); }
.nav-list { justify-content: flex-end; gap: var(--spacing-md); }

/* Ajustes responsivos: el nav permanece visible salvo colapso forzado */
@media (max-width: 992px) {
    /* Panel hamburguesa anclado al margen derecho y ancho ajustado al contenido */
    .header .nav.mobile-active {
        display: inline-block !important;
        position: absolute;
        top: 100%;
        left: auto !important;
        right: var(--spacing-sm) !important;
        width: fit-content !important;
        max-width: min(420px, 90vw) !important;
        background: #000000 !important;
        box-shadow: 0 4px 20px var(--shadow-medium);
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        z-index: 1000;
    }
    .header .nav.mobile-active .nav-list { display: flex; flex-direction: column; gap: var(--spacing-sm); }
    .header .nav.mobile-active .search-box { display: flex; width: 100%; margin-bottom: var(--spacing-sm); border-color: rgba(255, 255, 255, 0.3); background: transparent; }
    .header .nav.mobile-active .search-input { width: 100%; color: #ffffff; }
    .header .nav.mobile-active .search-input::placeholder { color: rgba(255, 255, 255, 0.7); }
    .header .nav.mobile-active .search-btn { color: #ffffff; }
}

@media (max-width: 640px) {
    .header-actions { padding-right: calc(var(--spacing-lg) + 1.5rem); }
}

/* Ubicar hamburguesa junto al carrito (arriba derecha) en móvil */
@media (max-width: 768px) {
    .mobile-menu-toggle { position: absolute; right: var(--spacing-sm); top: 50%; transform: translateY(-50%); display: block; }
    /* Reservar espacio para la hamburguesa junto al carrito */
    .header-actions { padding-right: calc(var(--spacing-lg) + 1.5rem); }
    /* Panel del menú móvil: anclado al margen derecho y ancho ajustado */
    .header .nav.mobile-active {
        display: inline-block !important;
        position: absolute;
        top: 100%;
        left: auto !important;
        right: var(--spacing-sm) !important;
        width: fit-content !important;
        max-width: min(420px, 90vw) !important;
        background: #000000 !important;
        box-shadow: 0 4px 20px var(--shadow-medium);
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
        z-index: 1000;
    }
}