:root {
    /* Colores primarios - consistentes en todos los temas */
    --primary-color: #1e3a8a;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    
    /* Colores de texto - cambiarán según el tema */
    --text-primary: #111827;      /* Negro en tema claro, blanco en tema oscuro */
    --text-secondary: #6b7280;    /* Gris oscuro en tema claro, gris claro en tema oscuro */
    --text-accent: #1e3a8a;       /* Para títulos y precios */
    --text-success: #059669;      /* Para información de entrega */
    
    /* Colores de fondo - cambiarán según el tema */
    --background-color: #ffffff;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    
    /* Variables para sombras y otros elementos */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-family: 'Poppins', sans-serif;
}

/* Tema Claro (por defecto) */
.theme-light {
    --text-primary: #111827;      /* Negro */
    --text-secondary: #6b7280;    /* Gris oscuro */
    --text-accent: #1e3a8a;       /* Azul para títulos y precios */
    --text-success: #059669;      /* Verde para entrega */
    --background-color: #ffffff;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --dark-color: #000000; /* Forzar el fondo del footer a negro puro */
}

/* Tema Oscuro */
.theme-dark {
    --text-primary: #f9fafb;      /* Blanco */
    --text-secondary: #d1d5db;    /* Gris claro */
    --text-accent: #60a5fa;       /* Azul claro para títulos y precios */
    --text-success: #34d399;      /* Verde claro para entrega */
    --background-color: #111827;
    --light-color: #1f2937;
    --border-color: #374151;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Tema Daltónico */
.theme-daltonic {
    --text-primary: #111827;      /* Negro */
    --text-secondary: #6b7280;    /* Gris oscuro */
    --text-accent: #0066cc;       /* Azul intenso para títulos y precios */
    --text-success: #009966;      /* Verde para entrega */
    --background-color: #ffffff;
    --light-color: #f5f5f5;
    --border-color: #cccccc;
}

/* Tema Sakura Pastel */
.theme-sakura {
    --text-primary: #555555;      /* Gris oscuro */
    --text-secondary: #777777;    /* Gris medio */
    --text-accent: #ff69b4;       /* Rosa para títulos y precios */
    --text-success: #ffb7c5;      /* Rosa claro para entrega */
    --background-color: #fff0f5;
    --light-color: #ffeef8;
    --border-color: #ffb7c5;
}

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

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

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

/* Aplicar colores de texto a elementos específicos */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-accent);
}

.price, .current-price, .original-price {
    color: var(--text-accent);
}

.delivery-info, .delivery-animation, .benefit-bar-item {
    color: var(--text-success);
}

.text-light, .tagline, .rating-count, .stat-label, .section-subtitle {
    color: var(--text-secondary);
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Header Styles */
.header {
    background-color: var(--light-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.logo {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-accent);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-actions button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--text-primary);
}

.header-actions button:hover,
.header-actions button:focus {
    background-color: var(--light-color);
    outline: 2px solid var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.main-nav {
    padding: 0.5rem 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--text-accent);
    background-color: rgba(30, 58, 138, 0.1);
    outline: none;
}

/* Selector de idioma y tema */
.language-selector, .theme-selector {
    position: relative;
    margin-right: 10px;
}

.btn-language, .btn-theme {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--text-primary);
}

.btn-language:hover, .btn-theme:hover {
    background-color: var(--light-color);
}

.current-lang {
    margin-left: 5px;
    font-weight: bold;
}

.language-dropdown, .theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    min-width: 150px;
    display: none;
    overflow: hidden;
}

.language-dropdown.show, .theme-dropdown.show {
    display: block;
}

.language-dropdown li, .theme-dropdown li {
    list-style: none;
}

.language-dropdown a, .theme-dropdown a {
    display: block;
    padding: 10px 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.language-dropdown a:hover, .theme-dropdown a:hover {
    background-color: var(--background-color);
}

.language-dropdown a.active, .theme-dropdown a.active {
    background-color: rgba(30, 58, 138, 0.1);
    font-weight: bold;
    color: var(--text-accent);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-emoji {
    font-size: 8rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.delivery-animation {
    margin-top: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
    color: white;
}

.delivery-animation i {
    margin-right: 0.5rem;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Barra de Beneficios */
.benefits-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
}

.benefits-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.benefit-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: white;
}

/* Sección Regala */
.gift-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.gift-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gift-category {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gift-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.gift-category:hover,
.gift-category:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.gift-category:hover::before,
.gift-category:focus::before {
    transform: scaleX(1);
}

.gift-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.gift-category h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
}

.gift-category p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.gift-count {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
}

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

.category-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-count {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Productos Grid Estilo Tienda */
.products-grid-store {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card-store {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card-store:hover,
.product-card-store:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.product-image-store {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    overflow: hidden;
}

.product-emoji {
    font-size: 4rem;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

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

.product-badge.popular {
    background-color: var(--success-color);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.product-image-store:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view,
.btn-add-wishlist {
    background-color: white;
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-quick-view:hover,
.btn-quick-view:focus,
.btn-add-wishlist:hover,
.btn-add-wishlist:focus {
    background-color: var(--primary-color);
    color: white;
    outline: none;
}

.btn-add-wishlist {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.product-info-store {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: var(--warning-color);
}

.rating-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-price-store {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-accent);
}

.original-price {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-success);
    font-weight: 500;
}

.btn-add-cart-store {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-add-cart-store:hover,
.btn-add-cart-store:focus {
    background-color: #1e40af;
    outline: none;
}

/* Cómo Funciona */
.how-it-works {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
}

.how-it-works .section-title,
.how-it-works .section-subtitle {
    color: white;
}

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

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.step-content p {
    opacity: 0.9;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

/* Special Offers */
.special-offers {
    background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
    color: white;
    padding: 3rem 0;
}

.offer-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.offer-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.offer-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.offer-timer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.timer-block {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: var(--border-radius);
    min-width: 80px;
    backdrop-filter: blur(10px);
}

.timer-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: white;
}

/* Zonas de Cobertura */
.coverage-section {
    padding: 4rem 0;
    background-color: var(--light-color);
}

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

.coverage-item {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.coverage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.coverage-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.coverage-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-accent);
}

.coverage-item p {
    color: var(--text-success);
    font-weight: 600;
}

/* Testimonios */
.testimonials {
    padding: 4rem 0;
}

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

.testimonial-card {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content .stars {
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--text-accent);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

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

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

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    outline: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    transform: translateY(-3px);
    outline: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.payment-methods i {
    font-size: 1.5rem;
    color: #009cde; /* Color PayPal */
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
    font-size: 1rem;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    outline: none;
}

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

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    color: var(--text-primary);
}

.modal-close:hover,
.modal-close:focus {
    background-color: var(--light-color);
    outline: none;
}

.modal-body {
    padding: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    margin-bottom: 1rem;
    background-color: var(--background-color);
    color: var(--text-primary);
}

.search-suggestions p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tags .tag {
    background-color: var(--light-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-tags .tag:hover,
.suggestion-tags .tag:focus {
    background-color: var(--primary-color);
    color: white;
    outline: none;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .offer-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-list {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-emoji {
        font-size: 5rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .products-grid-store {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para RTL en idiomas como árabe y hebreo */
[dir="rtl"] .header-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .language-dropdown, 
[dir="rtl"] .theme-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .hero .container {
    direction: rtl;
}

[dir="rtl"] .steps-container {
    direction: rtl;
}

[dir="rtl"] .testimonial-author {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-bottom {
    flex-direction: column-reverse;
}
/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
}

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

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover,
.newsletter-form button:focus {
    background-color: #059669;
    outline: none;
}

.newsletter-terms {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    transition: var(--transition);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

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

.footer-section a:hover,
.footer-section a:focus {
    color: white;
    outline: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    transform: translateY(-3px);
    outline: none;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-methods i {
    font-size: 1.5rem;
    color: #009cde; /* Color PayPal */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Tema Oscuro - Footer y Newsletter */
.theme-dark .footer {
    background-color: #0f172a;
}

.theme-dark .newsletter {
    background-color: #1e3a8a;
}

.theme-dark .footer-section a:hover,
.theme-dark .footer-section a:focus {
    color: #60a5fa;
}

/* Tema Daltónico - Footer y Newsletter */
.theme-daltonic .footer {
    background-color: #0066cc;
}

.theme-daltonic .newsletter {
    background-color: #0052a3;
}

.theme-daltonic .footer-section a:hover,
.theme-daltonic .footer-section a:focus {
    color: #ff9900;
}

/* Tema Sakura - Footer y Newsletter */
.theme-sakura .footer {
    background-color: #ff69b4;
}

.theme-sakura .newsletter {
    background-color: #ff50a0;
}

.theme-sakura .footer-section a:hover,
.theme-sakura .footer-section a:focus {
    color: #ffb7c5;
}

/* Responsive Design para Footer y Newsletter */
@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
