/* Variables CSS con paleta dinámica */
:root {
    --primary-color: #00BCD4;
    --secondary-color: #1a1a1a;
    --accent-color: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-light: #757575;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #FF9800;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg, white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    background: var(--primary-color);
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--header-top-text, #ffffff);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact, .header-social {
    display: flex;
    gap: 1.5rem;
}

.header-contact a, .header-social a {
    color: var(--header-top-text, #ffffff);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s;
}

.header-contact a:hover, .header-social a:hover {
    opacity: 0.8;
}

.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo img {
    height: 60px;
    max-width: 200px;
    object-fit: contain;
}

.site-name {
    font-size: 1.8rem;
    color: var(--header-text, var(--primary-color));
    font-weight: 700;
}

.header-nav > ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    color: var(--header-text, var(--text-dark));
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.header-nav a:hover, .header-nav a.active {
    color: var(--primary-color);
}

.header-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Dropdown menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 2px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 0.5rem 0;
    list-style: none;
    z-index: 200;
    margin-top: 10px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    color: var(--text-dark) !important;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.dropdown-menu li a::after {
    display: none;
}

.header-actions {
    display: flex;
    gap: 1rem;
    color: var(--header-text, var(--text-dark));
}

.header-actions a {
    color: inherit;
}

.search-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--header-text, var(--text-dark));
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.search-toggle:hover, .mobile-menu-toggle:hover {
    background: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
}

.search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 2rem;
}

.search-bar.active {
    max-height: 100px;
    padding: 1rem 2rem;
}

.search-bar form {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

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

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

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

.btn-light:hover {
    background: var(--accent-color);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-disabled {
    background: #6c757d;
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* === HERO SLIDER === */
.hero-slider, .hero-banner {
    margin-bottom: 3rem;
}

.slide-content, .banner-content {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-overlay, .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,188,212,0.7), rgba(26,26,26,0.8));
}

.slide-text, .banner-text {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 3rem 2rem;
}

.slide-text.left, .banner-text.left, .slide-text.izquierda, .banner-text.izquierda {
    text-align: left;
}

.slide-text.center, .banner-text.center, .slide-text.centro, .banner-text.centro {
    text-align: center;
    margin: 0 auto;
}

.slide-text.right, .banner-text.right, .slide-text.derecha, .banner-text.derecha {
    text-align: right;
    margin-left: auto;
}

.banner-text h1, .slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.banner-text p, .slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0.95;
}

.banner-text .btn, .slide-text .btn {
    margin-top: 1rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.banner-text .btn:hover, .slide-text .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0,0,0,0.4);
}

.swiper-button-next, .swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* === SECTIONS === */
.categories-section, .products-section, .cta-section, .welcome-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

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

.section-header .section-title {
    margin: 0;
    text-align: left;
}

/* === WELCOME SECTION === */
.welcome-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 6rem 0;
}

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

.welcome-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

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

.welcome-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.welcome-description {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.welcome-cta {
    margin-top: 3rem;
}

.welcome-cta .btn {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* === CATEGORIES === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.category-icon {
    width: 100%;
    height: 180px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card .category-info {
    padding: 1.2rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.category-card h3 {
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

/* === PRODUCTS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    display: block;
    width: 100%;
    height: 280px;
    background: var(--accent-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--danger-color);
    color: white;
}

.product-badge.stock {
    background: var(--warning-color);
    color: white;
}

.product-badge.out-of-stock {
    background: var(--text-light);
    color: white;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-title {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-actions-grid {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-actions-grid .btn {
    white-space: nowrap;
}

.product-actions-grid .btn-success {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* === WHATSAPP FLOAT === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

/* === FOOTER === */
.site-footer {
    background: var(--footer-bg, var(--secondary-color));
    color: var(--footer-text, white);
    margin-top: 4rem;
}

.footer-main {
    padding: 3rem 0;
}

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

.footer-column h3, .footer-column h4 {
    margin-bottom: 1rem;
    color: var(--footer-text, white);
}

.footer-logo {
    max-width: 150px;
    margin-top: 1rem;
    filter: var(--footer-logo-filter, brightness(0) invert(1));
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-text, rgba(255,255,255,0.8));
    opacity: 0.8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--footer-text, rgba(255,255,255,0.8));
    opacity: 0.8;
}

.footer-contact a {
    color: var(--footer-text, rgba(255,255,255,0.8));
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

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

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

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--footer-text, rgba(255,255,255,0.7));
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* === BREADCRUMB === */
.breadcrumb-section {
    background: var(--accent-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    margin: 0 0.5rem;
    color: var(--text-light);
}

/* === PRODUCTS LISTING === */
.products-listing-section {
    padding: 2rem 0 4rem;
}

.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.filters-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filters-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.filters-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-inputs .form-control {
    flex: 1;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

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

.results-info h2 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.results-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.sort-options form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-options label {
    font-weight: 600;
    white-space: nowrap;
}

.sort-options .form-control {
    width: auto;
    min-width: 180px;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.3rem;
}

.page-number {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.page-number:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-number.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination-dots {
    padding: 0.6rem 0.5rem;
    color: var(--text-light);
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state svg {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* === PRODUCT DETAIL === */
.product-detail-section {
    padding: 2rem 0 4rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--accent-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

.main-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.2rem;
    color: var(--text-light);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    height: 80px;
    background: var(--accent-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
}

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

.product-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.product-meta span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-meta a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.product-meta a:hover {
    text-decoration: underline;
}

.product-price-box {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.product-price-box .price-current {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.product-price-box .price-old {
    font-size: 1.3rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 0.5rem;
}

.savings {
    color: var(--success-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.stock-info {
    margin: 1rem 0;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
}

.stock-info.in-stock {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.stock-info.low-stock {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.stock-info.out-of-stock {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    padding: 0.8rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.share-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.product-description-box {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-description-box h3 {
    margin-bottom: 1rem;
}

.product-description-box p {
    line-height: 1.8;
    color: var(--text-dark);
}

.product-specs {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.product-specs li {
    display: grid;
    grid-template-columns: 150px 1fr;
    padding: 0.8rem;
    background: var(--accent-color);
    border-radius: 8px;
}

.product-specs strong {
    color: var(--text-dark);
}

.product-specs span {
    color: var(--text-light);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* === RELATED PRODUCTS === */
.related-products-section {
    padding: 3rem 0;
    background: var(--accent-color);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 250px 1fr;
        gap: 1.5rem;
    }
    
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg, white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 1rem;
    }
    
    .header-nav.mobile-active {
        display: block;
    }
    
    .header-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-nav a {
        color: var(--header-text, var(--text-dark));
    }
    
    .has-dropdown > a::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        transform: none;
        box-shadow: none;
        min-width: 0;
        margin-top: 0;
        padding-left: 1rem;
        border-left: 2px solid var(--primary-color);
        border-radius: 0;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .has-dropdown::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-options form {
        width: 100%;
    }
    
    .sort-options .form-control {
        flex: 1;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* === CHECKOUT STYLES === */
.checkout-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.checkout-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.checkout-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.checkout-progress .step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.checkout-progress .step:last-child::after {
    display: none;
}

.checkout-progress .step.completed::after {
    background: var(--success-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-color);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--success-color);
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.checkout-form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
}

.checkout-form-container h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.checkout-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.checkout-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.checkout-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.checkout-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.checkout-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.loading-envio {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.opciones-envio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opcion-envio {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.opcion-envio:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.opcion-envio.selected {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.opcion-envio input[type="radio"] {
    display: none;
}

.opcion-envio label {
    cursor: pointer;
    margin: 0;
}

.opcion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.opcion-header h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.opcion-detalles {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.precio-envio {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.precio-envio.gratis {
    color: var(--success-color);
}

.opcion-descripcion {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
}

.error-envio {
    text-align: center;
    padding: 3rem;
}

.error-envio svg {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.error-envio h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.metodos-pago {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metodo-pago {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metodo-pago:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.metodo-pago.selected {
    border-color: var(--primary-color);
    background: rgba(0, 188, 212, 0.05);
}

.metodo-pago input[type="radio"] {
    display: none;
}

.metodo-pago label {
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.metodo-logo {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metodo-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.metodo-info h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.metodo-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.resumen-seccion {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.resumen-header h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin: 0;
}

.btn-editar {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.btn-editar:hover {
    text-decoration: underline;
}

.resumen-contenido p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.productos-resumen {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.producto-resumen-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.producto-resumen-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.producto-resumen-info {
    flex: 1;
}

.producto-resumen-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.producto-resumen-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.producto-resumen-precio {
    font-weight: 700;
    color: var(--text-dark);
}

.resumen-total {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.total-linea {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.total-final {
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.cart-summary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.cart-summary h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.items-resumen {
    margin-bottom: 1rem;
}

.item-resumen-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.item-cantidad {
    font-weight: 700;
    color: var(--primary-color);
}

.item-nombre {
    flex: 1;
    color: var(--text-dark);
}

.item-precio {
    font-weight: 600;
    color: var(--text-dark);
}

.totales-resumen {
    border-top: 2px solid var(--border-color);
    padding-top: 1rem;
}

.linea-total {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-weight: 600;
}

.loading-small {
    text-align: center;
    padding: 2rem 0;
}

.spinner-small {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
        order: -1;
    }
    
    .checkout-progress {
        padding: 1rem;
    }
    
    .checkout-progress .step {
        flex: 0 0 auto;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .checkout-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===========================================
   Tienda de Neumáticos: filtro + lupa flotante
   =========================================== */
.filtro-neumaticos { padding: 24px 0; background: var(--accent-color, #f5f5f5); }
.filtro-neumaticos--modal { padding: 0; background: transparent; }
.filtro-neumaticos--sidebar { padding: 0; background: transparent; }
.filtro-neum-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.filtro-neum-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.filtro-neum-icon { font-size: 36px; }
.filtro-neum-header h2 { margin: 0; font-size: 22px; color: var(--secondary-color); }
.filtro-neum-header p  { margin: 2px 0 0 0; color: #666; font-size: 14px; }
.filtro-neum-form .filtro-neum-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    align-items: end;
}
.filtro-neumaticos--sidebar .filtro-neum-row,
.filtro-neumaticos--modal   .filtro-neum-row { grid-template-columns: 1fr; }
.filtro-neum-field label {
    display: block; font-size: 12px; font-weight: 600;
    color: #555; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px;
}
.filtro-neum-field select {
    width: 100%; padding: 10px 12px; border: 1px solid #d0d0d0;
    border-radius: 8px; background: #fff; font-size: 14px;
}
.filtro-neum-actions { display: flex; align-items: end; }
.filtro-neum-actions .btn { width: 100%; }
@media (max-width: 768px) {
    .filtro-neum-form .filtro-neum-row { grid-template-columns: 1fr 1fr; }
    .filtro-neum-actions { grid-column: 1 / -1; }
}

/* Lupa flotante */
.btn-lupa-flotante {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary-color, #00BCD4);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-lupa-flotante:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Modal del filtro */
.modal-filtro-neum {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1100;
    padding: 16px;
}
.modal-filtro-neum.active { display: flex; }
.modal-filtro-neum-content {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    width: 100%; max-width: 440px;
    position: relative;
    box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.modal-filtro-neum-content h3 { margin: 0 0 14px 0; }
.modal-filtro-neum-close {
    position: absolute; top: 8px; right: 12px;
    background: none; border: none;
    font-size: 28px; cursor: pointer; color: #888;
    line-height: 1;
}
.modal-filtro-neum-close:hover { color: #222; }

/* Medida en card de producto */
.product-medida {
    display: inline-block;
    margin: 4px 0 8px 0;
    padding: 3px 8px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    font-size: 13px;
    color: var(--secondary-color, #1a1a1a);
    font-weight: 600;
}
