:root {
    --primary: #1a3a5f;
    --secondary: #c41e3a;
    --accent: #ffd700;
    --light: #f5f7fa;
    --dark: #0d1f2d;
    --gray: #8e9aaf;
    --success: #27ae60;
    --danger: #e74c3c;
    --text: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: #a0162a;
    transform: translateY(-2px);
}

.btn-checkout {
    background-color: var(--success);
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.btn-checkout:hover {
    background-color: #219653;
}

/* Header Styles */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    text-align: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary);
    line-height: 1.2;
}

.logo .slogan {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 1rem;
}

.search-bar button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 20px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    cursor: pointer;
}

.header-action i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Navigation */
nav {
    background-color: var(--primary);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-links a {
    display: block;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Promo Bar */
.promo-bar {
    background: linear-gradient(90deg, var(--secondary), #e74c3c);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.promo-content {
    display: flex;
    animation: slide 20s linear infinite;
    white-space: nowrap;
}

.promo-item {
    padding: 0 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.promo-item i {
    margin-right: 10px;
    color: var(--accent);
}

@keyframes slide {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Products Grid */
.featured-products {
    padding: 60px 0;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    margin: 10px auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-available {
    background-color: var(--success);
    color: white;
}

.stock-out {
    background-color: var(--danger);
    color: white;
}

.product-info {
    padding: 15px;
}

.product-category {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.2rem;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
    margin-left: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.cart-modal {
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

.close:hover {
    color: var(--text);
}

/* Product Modal Details */
.product-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.product-details-image {
    flex: 1;
    min-width: 250px;
}

.product-details-image img {
    width: 100%;
    border-radius: 8px;
}

.product-details-info {
    flex: 2;
    min-width: 300px;
}

.tallas-selector {
    margin: 15px 0;
}

.tallas-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tallas-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.talla-option {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.talla-option:hover {
    border-color: var(--primary);
}

.talla-option.selected {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.talla-option.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-talla {
    color: var(--gray);
    font-size: 0.9rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--secondary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.quantity-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item {
    color: var(--danger);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-total {
    text-align: right;
    padding: 20px 0;
    font-size: 1.2rem;
    border-top: 2px solid #eee;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-links li {
    margin-bottom: 10px;
    list-style: none;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    color: white;
}

.social-links a:hover {
    background-color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar {
        margin: 15px 0;
        max-width: 100%;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-details {
        flex-direction: column;
    }
    
    /* Estilos para las flechas del carrusel de testimonios */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-arrow:hover {
    background: #5a6fd8;
    transform: translateY(-50%) scale(1.1);
}

#prev-testimonio {
    left: -20px;
}

#next-testimonio {
    right: -20px;
}

.testimonial-container {
    position: relative;
    padding: 0 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    #prev-testimonio {
        left: -15px;
    }
    
    #next-testimonio {
        right: -15px;
    }
    
    .testimonial-container {
        padding: 0 30px;
    }
}
}