/* Variables de colores */
:root {
    --primary: #FF6A1A;
    --primary-dark: #e55a00;
    --secondary: #003F4A;
    --secondary-light: #005766;
    --dark: #1A1A1A;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #e6e6e6;
    --white: #ffffff;
    --black: #000000;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.tiendea-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Banner superior con texto deslizante */
.top-banner {
    background-color: var(--secondary);
    color: var(--white);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
    font-size: 14px;
    font-weight: 500;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.contact-info {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    font-size: 12px;
}

.contact-info a:hover {
    color: var(--primary);
}

/* Navegación principal */
.main-navigation {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Menú desktop */
.desktop-menu .primary-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.desktop-menu .primary-menu li a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

.desktop-menu .primary-menu li a:hover {
    color: var(--primary);
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--dark);
    text-decoration: none;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 12px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menú hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    transition: 0.3s;
}

/* Menú móvil */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background-color: var(--white);
    padding: 40px 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu {
    list-style: none;
    margin-top: 40px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu li a {
    color: var(--dark);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero-banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.discount {
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Carrito flotante */
.floating-cart-demo {
    position: fixed;
    top: 120px;
    right: 20px;
    width: 350px;
    background-color: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--gray-lighter);
    background-color: var(--secondary);
    color: var(--white);
}

.close-cart {
    cursor: pointer;
    font-size: 24px;
}

.cart-items {
    padding: 15px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-lighter);
}

.item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 12px;
}

.discount-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

.discount-price span {
    color: var(--gray);
    font-size: 12px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--gray-lighter);
    background-color: var(--white);
    border-radius: 4px;
    cursor: pointer;
}

.qty-btn:hover {
    background-color: var(--gray-lighter);
}

.item-quantity input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--gray-lighter);
    border-radius: 4px;
    padding: 5px;
}

.cart-summary {
    padding: 15px;
    border-top: 1px solid var(--gray-lighter);
}

.free-shipping-notice {
    background-color: #f0f9ff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.progress-bar {
    height: 4px;
    background-color: var(--gray-lighter);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
}

.subtotal, .shipping, .total {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-lighter);
}

.total {
    font-weight: bold;
    font-size: 18px;
    border-bottom: none;
}

.cash-discount {
    text-align: center;
    color: var(--primary);
    font-weight: bold;
    margin: 15px 0;
}

.btn-checkout {
    width: 100%;
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-checkout:hover {
    background-color: var(--secondary-light);
}

/* Productos destacados */
.featured-products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 5px;
}

.cash-price {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.product-meta {
    padding: 0 20px 20px;
}

.free-shipping, .in-stock {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
}

.btn-add-to-cart {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-dark);
}

/* Guía de talles */
.size-guide-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.size-guide-table {
    overflow-x: auto;
}

.size-guide-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.size-guide-table th {
    background-color: var(--secondary);
    color: var(--white);
    padding: 15px;
    text-align: left;
}

.size-guide-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-lighter);
}

.size-guide-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.size-guide-table tr:hover {
    background-color: #f0f0f0;
}

.custom-order-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff8e1;
    border-left: 4px solid var(--primary);
    font-style: italic;
}

/* Cómo comprar */
.how-to-buy-section {
    padding: 60px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary);
}

/* Medios de pago */
.payment-methods-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.payment-option {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: 8px;
}

.payment-option .icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.payment-option h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

/* Envíos */
.shipping-info-section {
    padding: 60px 0;
}

.shipping-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.shipping-details h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 24px;
}

.shipping-details ul {
    list-style-position: inside;
    margin-top: 15px;
}

.shipping-details li {
    margin-bottom: 10px;
}

.shipping-calc {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
}

.shipping-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.shipping-form input {
    padding: 12px;
    border: 1px solid var(--gray-lighter);
    border-radius: 4px;
    font-size: 16px;
}

.postal-help {
    font-size: 12px;
    color: var(--gray);
    text-decoration: none;
}

.shipping-result {
    padding: 15px;
    background-color: var(--white);
    border-radius: 4px;
    border: 1px solid var(--gray-lighter);
}

.pickup-info {
    background-color: #fff8e1;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

/* Cambios y devoluciones */
.returns-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.returns-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--gray-lighter);
}

.returns-content p {
    margin-bottom: 15px;
}

/* Footer */
.tiendea-footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.widget-area h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.widget-area ul {
    list-style: none;
}

.widget-area ul li {
    margin-bottom: 10px;
}

.widget-area ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.widget-area ul li a:hover {
    color: var(--primary);
}

.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-methods span {
    background-color: var(--white);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.copyright p {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.copyright a {
    color: var(--primary);
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

.legal-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.legal-links a {
    color: #cccccc;
    font-size: 12px;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .contact-info {
        display: none;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hero-banner h1 {
        font-size: 36px;
    }
    
    .discount {
        font-size: 24px;
    }
    
    .shipping-content {
        grid-template-columns: 1fr;
    }
    
    .floating-cart-demo {
        width: 100%;
        right: 0;
        left: 0;
        bottom: 0;
        top: auto;
        border-radius: 8px 8px 0 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .mobile-contact-info {
        margin-top: 30px;
        text-align: center;
    }
    
    .mobile-contact-info a {
        display: block;
        margin-bottom: 10px;
        color: var(--dark);
        text-decoration: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .logo img {
        height: 30px;
    }
}