:root {
    --primary-color: #0074FF;
    --secondary-color: #003399;
    --accent-color: #FF6B35;
    --background-color: #f8f9fa;
    --header-background: #ffffff;
    --card-background: #ffffff;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-medium: 0 6px 20px rgba(0,0,0,0.12);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.15);
    --rating-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --whatsapp-color: #25D366;
    --transition-duration: 0.3s;
    --border-radius: 12px;
}

body.dark-mode {
    --primary-color: #00BFFF;
    --secondary-color: #87CEEB;
    --accent-color: #FF8C69;
    --background-color: #0f172a;
    --header-background: #1e293b;
    --card-background: #334155;
    --text-color: #e2e8f0;
    --heading-color: #ffffff;
    --shadow-light: 0 4px 15px rgba(0,0,0,0.5);
    --shadow-medium: 0 6px 20px rgba(0,0,0,0.6);
    --shadow-heavy: 0 10px 40px rgba(0,0,0,0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color var(--transition-duration), color var(--transition-duration);
    overflow-x: hidden;
}

main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

section {
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease-out;
}

h2 {
    font-size: 2.8rem;
    color: var(--heading-color);
    margin-bottom: 40px;
    text-align: center;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    max-width: 550px;
    width: 90%;
    background: var(--card-background);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    z-index: 9999;
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s;
    opacity: 0;
    border: 2px solid var(--primary-color);
}

.cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.cookie-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cookie-text {
    width: 100%;
}

.cookie-text h4 {
    margin-bottom: 12px;
    color: var(--heading-color);
    font-size: 1.4rem;
    font-weight: 700;
}

.cookie-text p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.cookie-text a:hover {
    color: var(--accent-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.btn-accept, .btn-reject {
    flex: 1;
    min-width: 150px;
    padding: 14px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-accept {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0,116,255,0.3);
}

.btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,116,255,0.5);
}

.btn-reject {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-reject:hover {
    background: var(--text-color);
    color: var(--background-color);
    transform: translateY(-3px);
}

header {
    background-color: var(--header-background);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-duration);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.logo-container h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.whatsapp-nav-btn {
    background: linear-gradient(135deg, var(--whatsapp-color), #1EAB4F);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.whatsapp-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
}

.cart-btn, .theme-switch, .menu-toggle {
    position: relative;
    border: none;
    background: var(--card-background);
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--primary-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-light);
}

.cart-btn:hover, .theme-switch:hover {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 4px 7px;
    min-width: 22px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background-color: var(--header-background);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 15px 30px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-menu a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 40px;
}

.hero-section {
    padding: 100px 40px;
   background: url('principal.jpeg') no-repeat center center/cover;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.4);
    animation: fadeInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 20px 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.stat-item span {
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.features-section {
    padding: 60px 20px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 30px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0,116,255,0.3);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.filtros-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.filtros-container input, .filtros-container select {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.95rem;
    width: 220px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.filtros-container input:focus, .filtros-container select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,116,255,0.1);
}

.productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.producto-item {
    background: var(--card-background);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.producto-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.producto-item:hover::before {
    transform: scaleX(1);
}

.producto-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.producto-item img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: var(--background-color);
    padding: 15px;
    transition: transform 0.3s;
}

.producto-item:hover img {
    transform: scale(1.05);
}

.producto-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--heading-color);
    font-weight: 700;
}

.producto-item p {
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 15px;
}

.precio-container {
    margin: 15px 0;
}

.precio-original {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-bottom: 5px;
}

.precio-descuento {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--danger-color);
}

.precio {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calificaciones {
    margin: 15px 0;
}

.calificaciones i {
    color: var(--rating-color);
    font-size: 1.1rem;
    margin: 0 2px;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.oferta-badge {
    background: linear-gradient(135deg, var(--danger-color), #c82333);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.85rem;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(220,53,69,0.4);
    animation: bounce 2s infinite;
}

.catalogo-vacio-mensaje {
    grid-column: 1 / -1;
    font-size: 1.3rem;
    color: #999;
    padding: 60px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 3px dashed #ddd;
    margin-top: 30px;
    text-align: center;
}

.carrusel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 20px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-color);
}

.carrusel::-webkit-scrollbar {
    height: 8px;
}

.carrusel::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 10px;
}

.carrusel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.carrusel .producto-item {
    min-width: 300px;
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--card-background);
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 25px;
    z-index: 10000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    transform: translateX(0);
}

.close-cart-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--danger-color);
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-cart-btn:hover {
    transform: rotate(90deg);
    background: #c82333;
}

.cart-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--heading-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.cart-content {
    flex-grow: 1;
    margin-bottom: 20px;
    overflow-y: auto;
}

.empty-cart-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: var(--background-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: var(--shadow-light);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.item-details {
    flex-grow: 1;
    text-align: left;
}

.item-details h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: var(--heading-color);
}

.item-details p {
    margin: 3px 0;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
}

.item-total {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.3s;
}

.remove-btn:hover {
    transform: scale(1.2);
    background: #c82333;
}

.cart-summary-container {
    padding-top: 20px;
    border-top: 3px solid var(--primary-color);
    margin-top: auto;
}

.cart-summary {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: right;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,116,255,0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,116,255,0.4);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-methods {
    padding: 25px;
    text-align: center;
    transition: all 0.5s ease-in-out;
    opacity: 0;
    display: none;
    margin-top: 20px;
    background: var(--background-color);
    border-radius: var(--border-radius);
}

.payment-methods.visible {
    display: block;
    opacity: 1;
}

.payment-methods h4 {
    margin-bottom: 20px;
    color: var(--heading-color);
    font-size: 1.3rem;
}

.payment-methods-logos {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    background-color: var(--card-background);
}

.payment-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: var(--shadow-light);
}

.payment-option img {
    width: 50px;
    height: 30px;
    object-fit: contain;
    margin-right: 15px;
}

.payment-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3);
    accent-color: var(--primary-color);
}

.payment-option span {
    font-weight: 600;
    color: var(--heading-color);
}

.contact-form {
    margin-top: 25px;
    padding: 20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    background: var(--card-background);
}

.contact-form label {
    display: block;
    text-align: left;
    margin-top: 15px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 5px;
}

.contact-form input {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
}

.contact-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,116,255,0.1);
}

.pay-now-btn {
    width: 100%;
padding: 15px;
background: linear-gradient(135deg, var(--whatsapp-color), 
#1EAB4F);
color: white;
border: none;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
margin-top: 20px;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.pay-now-btn:hover { background: linear-gradient(135deg, 
#1EAB4F, var(--whatsapp-color)); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }

.nosotros-section {
padding: 60px 20px;
}

.nosotros-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 30px;
margin-bottom: 60px;
}

.nosotros-card {
background: var(--card-background);
padding: 35px;
border-radius: var(--border-radius);
box-shadow: var(--shadow-light);
transition: all 0.3s;
border-top: 4px solid var(--primary-color);
}

.nosotros-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); }

.card-header {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 20px;
}

.card-header i {
font-size: 2.5rem;
color: var(--primary-color);
}

.card-header h3 {
font-size: 1.6rem;
color: var(--heading-color);
margin: 0;
}

.nosotros-card p {
line-height: 1.8;
color: var(--text-color);
font-size: 1rem;
}

.valores-list {
list-style: none;
padding: 0;
}

.valores-list li {
padding: 12px 0;
display: flex;
align-items: center;
gap: 12px;
font-size: 1rem;
color: var(--text-color);
}

.valores-list i {
color: var(--success-color);
font-size: 1.2rem;
}

.stats-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 30px;
margin-top: 60px;
padding: 40px;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
border-radius: var(--border-radius);
box-shadow: var(--shadow-heavy);
}

.stat-box {
text-align: center;
color: white;
padding: 20px;
}

.stat-number {
font-size: 3.5rem;
font-weight: 900;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.stat-label {
font-size: 1rem;
opacity: 0.95;
font-weight: 600;
}

.porque-elegirnos {
margin-top: 60px;
padding: 40px;
background: var(--card-background);
border-radius: var(--border-radius);
box-shadow: var(--shadow-light);
}

.porque-elegirnos h3 {
font-size: 2rem;
color: var(--heading-color);
margin-bottom: 25px;
text-align: center;
}

.porque-elegirnos p {
line-height: 1.8;
color: var(--text-color);
font-size: 1.05rem;
margin-bottom: 20px;
text-align: justify;
}

.blog-section {
padding: 60px 20px;
}

.blog-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 30px;
}

.blog-card {
background: var(--card-background);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--shadow-light);
transition: all 0.3s;
}

.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); }

.blog-image {
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
height: 200px;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
color: white;
}

.blog-content {
padding: 30px;
}

.blog-content h3 {
font-size: 1.4rem;
color: var(--heading-color);
margin-bottom: 15px;
}

.blog-date {
color: var(--text-color);
opacity: 0.7;
font-size: 0.9rem;
margin-bottom: 15px;
}

.blog-content p {
line-height: 1.7;
color: var(--text-color);
margin-bottom: 20px;
}

.blog-link {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.3s;
}

.blog-link:hover { color: var(--accent-color); gap: 12px; }

.resenas-section {
padding: 60px 20px;
}

.resenas-summary {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 30px;
margin-bottom: 50px;
padding: 40px;
background: var(--card-background);
border-radius: var(--border-radius);
box-shadow: var(--shadow-medium);
}

.rating-overview {
text-align: center;
}

.rating-big {
font-size: 4rem;
font-weight: 900;
color: var(--primary-color);
margin-bottom: 10px;
}

.rating-stars {
font-size: 1.8rem;
color: var(--rating-color);
margin-bottom: 10px;
}

.rating-overview p {
color: var(--text-color);
opacity: 0.7;
}

.resenas-actions {
display: flex;
gap: 15px;
flex-wrap: wrap;
}

.btn-ver-resenas, .btn-agregar-resena {
padding: 15px 35px;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
color: white;
border: none;
border-radius: 50px;
font-weight: 700;
font-size: 1.1rem;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(0,116,255,0.3);
}

.btn-ver-resenas:hover, .btn-agregar-resena:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,116,255,0.4); }

.resenas-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 25px;
}

.resena-card {
background: var(--card-background);
padding: 25px;
border-radius: var(--border-radius);
box-shadow: var(--shadow-light);
transition: all 0.3s;
border-left: 4px solid var(--primary-color);
}

.resena-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }

.resena-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}

.resena-autor {
display: flex;
align-items: center;
gap: 12px;
}

.avatar {
width: 50px;
height: 50px;
border-radius: 50%;
background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 700;
font-size: 1.2rem;
}

.resena-info h4 {
margin: 0 0 5px;
font-size: 1.1rem;
color: var(--heading-color);
}

.resena-fecha {
font-size: 0.85rem;
color: var(--text-color);
opacity: 0.6;
}

.resena-estrellas {
color: var(--rating-color);
font-size: 1rem;
}

.resena-texto {
color: var(--text-color);
line-height: 1.7;
font-size: 0.95rem;
}

.resena-verificada {
display: inline-flex;
align-items: center;
gap: 5px;
margin-top: 10px;
font-size: 0.85rem;
color: var(--success-color);
font-weight: 600;
}

.modal-resenas {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.7);
z-index: 10000;
align-items: center;
justify-content: center;
padding: 20px;
animation: fadeIn 0.3s ease-out;
}

.modal-resenas.open {
display: flex;
}

.modal-content-resenas {
background: var(--card-background);
border-radius: var(--border-radius);
max-width: 900px;
width: 100%;
max-height: 85vh;
overflow-y: auto;
padding: 40px;
position: relative;
box-shadow: var(--shadow-heavy);
animation: slideUp 0.4s ease-out;
}

.modal-form {
max-width: 600px;
}

.close-modal-btn {
position: absolute;
top: 15px;
right: 20px;
background: var(--danger-color);
color: white;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
font-size: 1.8rem;
cursor: pointer;
transition: all 0.3s;
}

.close-modal-btn:hover { transform: rotate(90deg); background: 
#c82333; }

.modal-content-resenas h2 {
margin-bottom: 30px;
font-size: 2.2rem;
}

.filtros-resenas {
display: flex;
gap: 15px;
margin-bottom: 30px;
flex-wrap: wrap;
}

.filtros-resenas select {
padding: 12px 20px;
border: 2px solid 
#e0e0e0;
border-radius: 50px;
font-size: 0.95rem;
background: var(--background-color);
color: var(--text-color);
cursor: pointer;
transition: all 0.3s;
font-family: 'Poppins', sans-serif;
}

.filtros-resenas select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,116,255,0.1); }

.todas-resenas-container {
display: grid;
gap: 20px;
}

.form-resena {
display: flex;
flex-direction: column;
gap: 20px;
}

.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}

.form-group label {
font-weight: 600;
color: var(--heading-color);
}

.form-group input, .form-group textarea {
padding: 12px;
border: 2px solid 
#e0e0e0;
border-radius: 8px;
font-size: 1rem;
font-family: 'Poppins', sans-serif;
background: var(--background-color);
color: var(--text-color);
transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,116,255,0.1); }

.rating-input {
display: flex;
gap: 10px;
font-size: 2rem;
}

.rating-input i {
cursor: pointer;
color: #ddd;
transition: all 0.3s;
}

.rating-input i:hover, .rating-input i.fas { color: var(--rating-color); transform: scale(1.1); }

.btn-submit-resena {
padding: 15px;
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
border-radius: 50px;
font-size: 1.1rem;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(0,116,255,0.3);
}

.btn-submit-resena:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,116,255,0.4); }

.contact-info-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-top: 30px;
}

.contact-item {
background: var(--card-background);
padding: 35px;
border-radius: var(--border-radius);
box-shadow: var(--shadow-light);
text-align: center;
transition: all 0.3s;
border-top: 4px solid var(--primary-color);
}

.contact-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-heavy); }

.contact-item i {
font-size: 2.5rem;
color: var(--primary-color);
margin-bottom: 15px;
}

.contact-item h3 {
font-size: 1.4rem;
margin-bottom: 10px;
color: var(--heading-color);
}

.contact-item p {
color: var(--text-color);
font-size: 1rem;
line-height: 1.6;
}

.contact-item a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
}

.contact-item a:hover { color: var(--accent-color); }

footer {
background: var(--header-background);
color: var(--text-color);
padding: 50px 20px 20px;
box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
margin-top: 80px;
}

.footer-content {
max-width: 1400px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 40px;
padding-bottom: 30px;
border-bottom: 2px solid rgba(0,116,255,0.2);
}

.footer-section h4 {
color: var(--primary-color);
font-size: 1.4rem;
margin-bottom: 20px;
font-weight: 700;
}

.footer-section ul {
list-style: none;
padding: 0;
}

.footer-section ul li {
margin-bottom: 12px;
}

.footer-section a {
color: var(--text-color);
text-decoration: none;
display: block;
transition: all 0.3s;
font-size: 0.95rem;
}

.footer-section a:hover { color: var(--primary-color); padding-left: 5px; }

.footer-section p {
margin-bottom: 12px;
font-size: 0.95rem;
line-height: 1.6;
}

.footer-social-icons {
display: flex;
gap: 15px;
margin-top: 15px;
}

.footer-social-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background: var(--primary-color);
color: white;
font-size: 1.2rem;
transition: all 0.3s;
}

.footer-social-icons a:hover { transform: translateY(-5px) scale(1.1); background: var(--accent-color); }

.footer-map iframe {
border-radius: var(--border-radius);
box-shadow: var(--shadow-light);
}

.footer-bottom {
text-align: center;
padding-top: 25px;
font-size: 0.9rem;
}

.footer-bottom p {
margin: 5px 0;
}

.footer-slogan {
font-weight: 600;
color: var(--primary-color);
margin-top: 10px;
}

.chat-btn {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 9999;
width: 65px;
height: 65px;
border-radius: 50%;
background: linear-gradient(135deg, var(--whatsapp-color), 
#1EAB4F);
color: white;
font-size: 2.2rem;
box-shadow: 0 6px 25px rgba(37,211,102,0.5);
cursor: pointer;
transition: all 0.3s;
display: flex;
justify-content: center;
align-items: center;
text-decoration: none;
animation: float 3s ease-in-out infinite;
}

.chat-btn:hover { transform: scale(1.15); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }

@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes slideIn {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes slideOut {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(100px);
}
}

@media (max-width: 1200px) {
.hero-title {
font-size: 3rem;
}

.stat-number {
    font-size: 3rem;
}
}

@media (max-width: 992px) {
.nav-links {
display: none;
}

.menu-toggle {
    display: flex;
}

.hero-title {
    font-size: 2.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
}

h2 {
    font-size: 2.2rem;
}

.footer-content {
    grid-template-columns: repeat(2, 1fr);
}

.stat-number {
    font-size: 2.5rem;
}
}

@media (max-width: 768px) {
.cookie-banner {
max-width: 90%;
padding: 25px;
}

.cookie-icon {
    font-size: 2.5rem;
}

.cookie-text h4 {
    font-size: 1.2rem;
}

.cookie-buttons {
    flex-direction: column;
    width: 100%;
}

.btn-accept, .btn-reject {
    width: 100%;
}

header {
    padding: 12px 20px;
}

.logo-container img {
    height: 45px;
}

.logo-container h1 {
    font-size: 1.4rem;
}

.whatsapp-nav-btn {
    display: none;
}

.theme-switch, .cart-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

main {
    padding: 30px 15px;
}

.hero-section {
    padding: 60px 20px;
    min-height: 450px;
}

.hero-title {
    font-size: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
}

.hero-stats {
    gap: 20px;
}

.stat-item {
    padding: 15px 20px;
}

.stat-item i {
    font-size: 2rem;
}

.stat-item span {
    font-size: 0.9rem;
}

.cta-btn {
    padding: 14px 30px;
    font-size: 1rem;
}

h2 {
    font-size: 1.8rem;
}

.filtros-container {
    flex-direction: column;
}

.filtros-container input,
.filtros-container select {
    width: 100%;
}

.productos {
    grid-template-columns: 1fr;
}

.resenas-summary {
    flex-direction: column;
    text-align: center;
}

.resenas-actions {
    justify-content: center;
    width: 100%;
}

.btn-ver-resenas, .btn-agregar-resena {
    width: 100%;
    justify-content: center;
}

.rating-big {
    font-size: 3rem;
}

.footer-content {
    grid-template-columns: 1fr;
    text-align: center;
}

.footer-social-icons {
    justify-content: center;
}

.cart-panel {
    max-width: 100%;
}

.modal-content-resenas {
    padding: 25px;
    max-height: 90vh;
}

.stats-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 20px;
}

.stat-number {
    font-size: 2.2rem;
}

.stat-label {
    font-size: 0.9rem;
}
}

@media (max-width: 480px) {
.cookie-banner {
bottom: 20px;
padding: 20px;
}

.cookie-text h4 {
    font-size: 1.1rem;
}

.cookie-text p {
    font-size: 0.85rem;
}

.hero-title {
    font-size: 1.6rem;
}

.hero-subtitle {
    font-size: 0.9rem;
}

h2 {
    font-size: 1.5rem;
}

.feature-card {
    padding: 20px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.nosotros-card {
    padding: 25px;
}

.stats-section {
    grid-template-columns: 1fr;
    padding: 25px 15px;
}

.stat-number {
    font-size: 2.5rem;
}

.contact-item {
    padding: 25px;
}

.chat-btn {
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
    bottom: 20px;
    right: 20px;
}
}

@media print {
header, footer, .chat-btn, .cart-panel, .cookie-banner {
display: none;
}

body {
    background: white;
    color: black;
}
}
/* --- VISOR DE PRODUCTO (MODAL) --- */
.product-modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Fondo oscuro transparente */
    justify-content: center; 
    align-items: center; 
    padding: 20px;
    backdrop-filter: blur(5px); /* Efecto borroso de fondo */
}

.product-modal.open { display: flex; }

.product-modal-content {
    background: white; 
    width: 100%; 
    max-width: 900px; 
    max-height: 90vh; /* Que no sea más alto que la pantalla */
    border-radius: 15px; 
    overflow-y: auto; /* Scroll si es muy largo */
    position: relative;
    display: grid; 
    grid-template-columns: 1fr 1fr; /* Mitad foto, mitad texto en PC */
    gap: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modo oscuro para el modal */
body.dark-mode .product-modal-content { background: #1e293b; color: #f8fafc; }

/* Columna Izquierda: Galería de Fotos */
.pm-gallery { 
    background: #f1f5f9; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
}
body.dark-mode .pm-gallery { background: #0f172a; }

.pm-main-img { 
    width: 100%; 
    max-height: 400px; 
    object-fit: contain; 
    margin-bottom: 15px; 
    border-radius: 8px; 
}

.pm-thumbnails { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    width: 100%; 
    padding-bottom: 5px; 
}

.pm-thumb { 
    width: 60px; 
    height: 60px; 
    object-fit: cover; 
    border-radius: 6px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    opacity: 0.7; 
}
.pm-thumb:hover, .pm-thumb.active { border-color: #007bff; opacity: 1; }

/* Columna Derecha: Información */
.pm-info { padding: 30px; display: flex; flex-direction: column; }

.pm-close { 
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 28px; 
    cursor: pointer; 
    color: #64748b; 
    z-index: 10; 
}
.pm-close:hover { color: #ef4444; }

.pm-category { color: #007bff; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 5px; }
.pm-title { font-size: 1.8rem; margin-bottom: 10px; line-height: 1.2; }
.pm-price { font-size: 1.5rem; color: #10b981; font-weight: 700; margin-bottom: 20px; }

/* Estilo de la Descripción */
.pm-description { 
    background: rgba(0,0,0,0.03); 
    padding: 15px; 
    border-radius: 8px; 
    margin-bottom: 25px; 
    line-height: 1.6; 
    font-size: 0.95rem; 
    color: #475569;
    max-height: 250px; 
    overflow-y: auto; 
    border-left: 4px solid #007bff; 
}
body.dark-mode .pm-description { background: rgba(255,255,255,0.05); color: #cbd5e1; }

.pm-btn-add { 
    width: 100%; 
    padding: 15px; 
    background: #007bff; 
    color: white; 
    border: none; 
    border-radius: 50px; 
    font-size: 1.1rem; 
    cursor: pointer; 
    font-weight: 600; 
    margin-top: auto; 
}
.pm-btn-add:hover { background: #0056b3; transform: translateY(-2px); }

/* --- RESPONSIVE (CELULAR) CORREGIDO --- */
    @media (max-width: 768px) {
        .product-modal-content { 
            display: flex; /* Usar Flex en vez de Grid para mejor control móvil */
            flex-direction: column; /* Uno debajo del otro */
            width: 95%; /* Que ocupe casi todo el ancho */
            max-height: 90vh; /* Altura máxima del 90% de la pantalla */
            overflow-y: auto; /* ¡IMPORTANTE! Permite bajar (scroll) si el texto es largo */
        }

        /* Ajustar la imagen para que no tape todo */
        .pm-gallery { 
            padding: 10px; 
            background: #fff; /* Fondo blanco para que se distinga */
            border-bottom: 1px solid #eee;
            flex-shrink: 0; /* Evita que la galería se aplaste */
        }

        .pm-main-img { 
            max-height: 220px; /* Hacemos la imagen más pequeña en celular */
            width: auto; 
            max-width: 100%; 
            margin: 0 auto 10px auto;
            display: block;
        }

        /* Ajustar la información y descripción */
        .pm-info { 
            padding: 20px; 
            height: auto; /* Altura automática según el texto */
        }

        .pm-title { font-size: 1.3rem; }
        
        .pm-description-box {
            max-height: none; /* En celular dejamos que el texto se expanda */
            overflow: visible; 
        }

        /* Botón cerrar más visible */
        .pm-close {
            top: 5px;
            right: 10px;
            font-size: 35px;
            color: #333;
            background: rgba(255,255,255,0.8);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }