/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: clip;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding-top: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
    width: auto;
}

.search-bar {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

.search-bar form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 16px;
    gap: 12px;
}

.search-icon {
    color: #999;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
    color: #333;
}

.search-bar input::placeholder {
    color: #999;
}

.btn-favoritos {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.btn-favoritos:hover {
    color: #16a34a;
}

.btn-favoritos svg {
    width: 24px;
    height: 24px;
}

.header-user {
    flex-shrink: 0;
    margin-left: auto;
}

.btn-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.btn-user:hover {
    color: #16a34a;
}

.btn-user svg {
    width: 20px;
    height: 20px;
}

.btn-carrito {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-carrito:hover {
    background: #000;
}

.btn-carrito svg {
    width: 22px;
    height: 22px;
}

/* Barra de categorías */
.categories-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}

.categories-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.categories-nav a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.categories-nav a:hover {
    color: #16a34a;
}

.categories-nav a:first-child {
    font-weight: 600;
}

/* Dropdown navigation */
.nav-item-dropdown {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #16a34a;
}

.menu-disabled {
    display: block;
    padding: 10px 16px;
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    cursor: not-allowed;
    opacity: 0.6;
}

.shipping-banner {
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 800;
    overflow: hidden;
    background: #f9f9f9;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide > a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.slide-text {
    max-width: 600px;
    z-index: 2;
}

.slide-tag {
    display: inline-block;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slide-text h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.btn-shop {
    padding: 16px 40px;
    background: white;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #1a1a1a;
}

.btn-shop:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Controles del slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    color: #1a1a1a;
}

.slider-btn:hover {
    background: #1a1a1a;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* Indicadores */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Sección de Categorías */
.categories-section {
    padding: 80px 0;
    background: #fafafa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-icon {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s;
    position: relative;
}

.category-card:hover .category-icon {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    background: white;
    padding: 10px 24px;
    border-radius: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    white-space: nowrap;
    z-index: 2;
    transition: all 0.3s;
}

.category-card:hover .category-name {
    top: 42%;
}

.category-count {
    font-size: 15px;
    color: white;
    font-weight: 500;
    margin-top: 45px;
}

/* Sección de Productos Destacados */
.featured-products {
    padding: 80px 0;
    background: white;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: 30px;
}

.section-header-flex > div:first-child {
    flex: 1;
}

.section-header-flex .section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #16a34a;
    background: #f0fdf4;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-header-flex h2 {
    font-size: 38px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.section-header-flex p {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

.product-filters {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    color: #1a1a1a;
}

.filter-btn.active {
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 2px;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
}

.product-image {
    position: relative;
    width: 100%;
    height: 320px;
    background: #f5f5f5;
    overflow: hidden;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

/* Efecto hover - segunda imagen de galería */
.product-image-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-main,
.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.4s ease, transform 0.3s ease;
}

.product-image-hover {
    opacity: 0;
    z-index: 1;
}

/* Solo hacer el efecto hover si el elemento tiene la clase has-hover-image */
.product-card:hover .product-image-link.has-hover-image .product-image-main {
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badges .product-badge {
    position: static;
}

.product-badge.sold-out {
    background: #e5e5e5;
    color: #666;
}

.product-badge.discount {
    background: #FF9D5C;
    color: white;
}

.btn-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    color: #666;
}

.btn-wishlist:hover {
    background: #1a1a1a;
    color: white;
}

.btn-quickview {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 2;
    color: #16a34a;
}

.btn-quickview:hover {
    background: #16a34a;
    color: white;
    transform: translateY(0) scale(1.1);
}

.product-card:hover .btn-quickview {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    color: #FFD700;
    font-size: 16px;
}

.rating-number {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #16a34a;
}

.product-category {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.product-variants-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #16a34a;
    margin: 8px 0;
    font-weight: 500;
}

.product-variants-indicator svg {
    flex-shrink: 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #FF6B35;
}

.product-price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.product-colors {
    display: flex;
    gap: 6px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* Sección de Artículos / Blog */
.latest-articles {
    padding: 80px 0;
    background: #F5F3EF;
}

.visit-blog {
    font-size: 15px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.visit-blog:hover {
    color: #FF6B35;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.article-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
}

.author-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.article-actions {
    display: flex;
    gap: 12px;
}

.btn-share,
.btn-comments {
    background: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    position: relative;
}

.btn-share:hover,
.btn-comments:hover {
    background: #1a1a1a;
    color: white;
}

.btn-comments {
    position: relative;
}

.comment-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B35;
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-content {
    padding: 25px;
}

.article-category {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
    font-weight: 500;
}

.article-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-read-more {
    font-size: 15px;
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
}

.btn-read-more:hover {
    color: #e55a25;
}

/* Main */
main {
    min-height: 60vh;
    padding: 60px 0;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #16a34a;
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #16a34a;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* =============================================
   FOOTER BRANDING - DIGIN PERÚ
   ============================================= */

/* Divisor con gradiente */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin: 2rem 0;
}

/* Contenedor principal del branding */
.footer-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Copyright */
.footer-copyright p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Contenedor del texto "Desarrollado con ❤️ por" */
.footer-developer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.developer-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Corazón animado */
.developer-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* Link principal del branding */
.digin-brand {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Logo container con gradiente de fondo */
.digin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo que se mueve */
.digin-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: all 0.3s ease;
}

/* Hover: Elevación y borde */
.digin-brand:hover .digin-logo {
    border-color: #2ecc71;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

/* Hover: Animación del brillo */
.digin-brand:hover .digin-logo::before {
    left: 100%;
    transition: left 0.5s ease;
}

/* Icono circular con gradiente */
.digin-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Hover: Rotación del icono */
.digin-brand:hover .digin-icon {
    transform: rotate(360deg);
}

/* Contenedor del texto */
.digin-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* Nombre "Digin Perú" */
.digin-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

/* Tagline "Digital Innovation" */
.digin-tagline {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Responsive Branding */
@media (max-width: 768px) {
    .footer-branding {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-developer {
        justify-content: center;
    }
    
    .digin-logo {
        padding: 0.65rem 1.25rem;
    }
}

/* ============================================= */

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        gap: 16px;
    }
    
    .search-bar {
        max-width: 500px;
    }
    
    .btn-favoritos {
        display: none;
    }
    
    .categories-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .categories-nav {
        overflow-x: auto;
        width: 100%;
        gap: 24px;
        padding-bottom: 8px;
    }
    
    .categories-nav::-webkit-scrollbar {
        height: 4px;
    }
    
    .categories-nav::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }
    
    /* Slider responsive */
    .hero-slider {
        aspect-ratio: 1920 / 800;
    }
    
    .slide-content {
        gap: 30px;
    }
    
    .slide-text h1 {
        font-size: 42px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 0;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    /* Reducir padding del header en móvil */
    .header {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo img {
        height: 38px;
    }

    .logo {
        order: unset;
    }

    /* Ocultar en header en móvil — van en bottom nav / drawer */
    .search-bar,
    .header-user,
    .btn-carrito,
    .btn-favoritos {
        display: none;
    }

    /* Mostrar hamburguesa */
    .btn-hamburger {
        display: flex;
    }

    /* Ocultar categories bar — va dentro del drawer */
    .categories-bar {
        display: none;
    }

    /* Espacio para la barra inferior fija */
    body {
        padding-bottom: 64px;
    }

    .shipping-banner {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    /* Slider mobile */
    .hero-slider {
        height: auto;
        aspect-ratio: 750 / 900;
    }

    .slide-bg {
        object-fit: cover;
        object-position: center top;
    }
    
    .slide-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .slide-text {
        max-width: 100%;
    }
    
    .slide-text h1 {
        font-size: 32px;
    }
    
    .slide-image {
        max-width: 100%;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .slider-btn.prev {
        left: 15px;
    }
    
    .slider-btn.next {
        right: 15px;
    }
    
    /* Categorías responsive */
    .categories-section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 30px;
    }
    
    .category-icon {
        width: 180px;
        height: 180px;
    }
    
    .category-name {
        font-size: 15px;
    }
    
    .category-count {
        font-size: 12px;
    }
}

/* ========================================
   NUEVAS SECCIONES - OPTIMIZACIÓN INDEX
   ======================================== */

/* Benefits Banner */
.benefits-banner {
    background: #1e3136;
    padding: 40px 0;
    margin: 40px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.benefit-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.benefit-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2d3748;
}

.benefit-content p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #16a34a;
    background: #f0fdf4;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Promo Banner Large */
.banner-suscripcion {
    margin: 60px 0;
    line-height: 0;
}

.banner-suscripcion a {
    display: block;
}

.banner-suscripcion img {
    width: 100%;
    height: auto;
    display: block;
}

/* New Products Section */
.new-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card-large {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.product-card-large .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-large .product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.product-card-large .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

/* Solo hacer el efecto hover si el elemento tiene la clase has-hover-image */
.product-card-large:hover .product-image-link.has-hover-image .product-image-main {
    opacity: 0;
}

.product-card-large:hover .product-image-hover {
    opacity: 1;
}

.product-card-large:hover .product-image img {
    transform: scale(1.1);
}

.product-badge.new {
    background: #48bb78;
    color: white;
}

.product-card-large .btn-quickview {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
}

.product-card-large:hover .btn-quickview {
    opacity: 1;
    transform: translateY(0);
}

.product-card-large .product-info {
    padding: 25px;
}

.product-card-large .product-category {
    font-size: 12px;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card-large .product-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-card-large .product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-large .product-name a:hover {
    color: #16a34a;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-add-to-cart {
    width: 100%;
    background: #16a34a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #15803d;
}

.btn-add-to-cart:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
    border-color: #16a34a;
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

.author-location {
    font-size: 14px;
    color: #718096;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    padding: 80px 0;
    margin: 60px 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.newsletter-text {
    color: white;
}

.newsletter-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.newsletter-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.newsletter-text p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.newsletter-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.newsletter-benefits li {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.newsletter-form .form-group {
    margin-bottom: 20px;
}

.newsletter-form .form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.newsletter-form .form-input:focus {
    outline: none;
    border-color: #16a34a;
}

.btn-subscribe {
    width: 100%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.4);
}

.form-note {
    text-align: center;
    font-size: 13px;
    color: #718096;
    margin-top: 15px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .promo-content h2 {
        font-size: 36px;
    }
    
    .newsletter-text h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-filters {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-suscripcion {
        margin: 30px 0;
    }

    .newsletter-section {
        padding: 50px 0;
    }
    
    .newsletter-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        font-size: 14px;
    }
    
    .product-image {
        height: 200px;
    }
}

/* ========================================
   PÁGINA DE PRODUCTO
   ======================================== */

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumbs a {
    color: #16a34a;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #15803d;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #cbd5e0;
}

.breadcrumbs .current {
    color: #718096;
}

/* Product Detail */
.product-detail {
    padding: 60px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Gallery */
.product-gallery {
    position: relative;
    display: flex;
    gap: 12px;
}

/* Cuando no hay thumbnails, imagen principal con aspecto más compacto */
.product-gallery:not(:has(.product-thumbnails)) {
    display: block;
}

.product-gallery:not(:has(.product-thumbnails)) .main-image-wrapper {
    max-width: 100%;
}

.product-gallery:not(:has(.product-thumbnails)) .main-image {
    padding-top: 85%;
}

/* Thumbnails Gallery - Vertical al lado */
.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.thumbnail {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #d4d4d4;
}

.thumbnail.active {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Contenedor de imagen principal */
.main-image-wrapper {
    flex: 1;
    position: relative;
}

.main-image {
    position: relative;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    padding-top: 100%;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #dc2626;
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
}

/* Product Info Detail */
.product-info-detail {
    position: sticky;
    top: 80px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-category-badge {
    background: #f0fdf4;
    color: #16a34a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-sku {
    color: #718096;
    font-size: 13px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-rating-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.stars-large {
    color: #fbbf24;
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-text {
    color: #718096;
    font-size: 15px;
}

.product-price-detail {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.price-old-detail {
    font-size: 20px;
    color: #a0aec0;
    text-decoration: line-through;
}

.price-current {
    font-size: 32px;
    font-weight: 800;
    color: #16a34a;
}

.product-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 20px;
}

.product-stock {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
}

.stock-available {
    color: #15803d;
    background: #f0fdf4;
}

.stock-warning {
    color: #ea580c;
    background: #fff7ed;
}

.stock-out {
    color: #dc2626;
    background: #fef2f2;
}

/* ==================== VARIANTES DE PRODUCTO ==================== */
.product-variants {
    margin-bottom: 24px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 12px;
}

.variant-selected {
    font-weight: 400;
    color: #6b7280;
    font-size: 14px;
}

.variant-selected.selected {
    color: #22c55e;
    font-weight: 600;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.variant-option:hover:not(:disabled) {
    border-color: #22c55e;
    background: #f0fdf4;
}

.variant-option.selected {
    border-color: #22c55e;
    background: #dcfce7;
    color: #166534;
}

.variant-option:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.variant-price {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

/* Variantes de color con swatches */
.variant-colors {
    gap: 12px;
}

.variant-color {
    position: relative;
    padding: 8px 12px;
}

.color-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e5e7eb, 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variant-color.selected .color-swatch {
    box-shadow: 0 0 0 2px #22c55e, 0 2px 6px rgba(34, 197, 94, 0.3);
}

.variant-name {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .variant-option {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .color-swatch {
        width: 20px;
        height: 20px;
    }
}

/* Add to Cart Form */
.add-to-cart-form {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 16px;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 14px;
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    color: #4a5568;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.quantity-input input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.product-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    border: 2px solid #16a34a;
    margin-bottom: 16px;
}

.product-subtotal .subtotal-label {
    font-size: 14px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-subtotal .subtotal-amount {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
}

.btn-add-to-cart-large, .btn-notify-stock {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-to-cart-large {
    background: #16a34a;
    color: white;
}

.btn-add-to-cart-large:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 163, 74, 0.3);
}

.btn-notify-stock {
    background: #f8f9fa;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-notify-stock:hover {
    background: #e2e8f0;
}

/* Product Features */
.product-features {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #4a5568;
    font-size: 14px;
}

.feature-item svg {
    color: #16a34a;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Product Tabs */
.product-tabs {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #16a34a;
}

.tab-btn.active {
    color: #16a34a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #16a34a;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    max-width: 900px;
}

.product-description p {
    margin-bottom: 12px;
}

.desc-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 10px;
}

.desc-separator {
    border: none;
    border-top: 2px solid #e8e8e8;
    margin: 24px 0;
}

.desc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.desc-list li {
    padding: 6px 0 6px 22px;
    position: relative;
    color: #4a5568;
}

.desc-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.info-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.info-table th {
    text-align: left;
    padding: 16px;
    width: 200px;
    font-weight: 600;
    color: #2d3748;
}

.info-table td {
    padding: 16px;
    color: #4a5568;
}

/* Related Products */
.related-products {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a202c;
}

.product-card-simple {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card-simple .product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-simple .product-image {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
}

.product-card-simple .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-simple .product-info {
    padding: 20px;
}

.product-card-simple h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.product-card-simple .price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-card-simple .price {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
}

.product-card-simple .price-old {
    font-size: 16px;
    color: #a0aec0;
    text-decoration: line-through;
}

/* Cart Icon - Update Header */
.btn-carrito {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 30px;
    transition: all 0.3s;
    color: #2d3748;
    text-decoration: none;
}

.btn-carrito:hover {
    background: #e2e8f0;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #16a34a;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.cart-total {
    font-weight: 600;
    color: #16a34a;
}

/* Responsive */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-info-detail {
        position: static;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .price-current {
        font-size: 32px;
    }
    
    /* Thumbnails horizontales en tablets */
    .product-gallery {
        flex-direction: column;
    }
    
    .product-thumbnails {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .thumbnail {
        min-width: 70px;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 30px 0;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .thumbnail {
        min-width: 60px;
    }
    
    .tabs-header {
        overflow-x: auto;
    }
    
    .tab-btn {
        padding: 12px 20px;
        white-space: nowrap;
    }
}

/* ============================================
   CARRITO PAGE
   ============================================ */

.cart-section {
    padding: 60px 0 80px;
    background: #f8fafc;
    min-height: 60vh;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.empty-cart-icon {
    margin-bottom: 30px;
    color: #cbd5e1;
}

.empty-cart h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 12px;
}

.empty-cart p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: #16a34a;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Cart Header */
.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h1 {
    font-size: 36px;
    color: #1e293b;
    margin-bottom: 8px;
}

.cart-header p {
    font-size: 16px;
    color: #64748b;
}

/* Cart Grid */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.item-variant {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0 0;
    font-style: italic;
}

.item-price {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
    margin: 0;
}

.item-price-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-price-old {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-input {
    width: 50px;
    text-align: center;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.item-subtotal {
    text-align: right;
    min-width: 100px;
}

.subtotal-label {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 4px 0;
}

.subtotal-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-cart:hover {
    background: #fecaca;
}

.btn-continue {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-continue:hover {
    background: #e2e8f0;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #475569;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
}

.free-shipping {
    color: #16a34a;
    font-weight: 700;
    font-size: 13px;
}

/* Shipping Progress */
.shipping-progress {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #16a34a;
}

.shipping-text {
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    transition: width 0.5s ease;
}

.shipping-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    margin: 20px 0;
    color: #15803d;
    font-weight: 600;
    font-size: 14px;
}

.shipping-benefit svg {
    flex-shrink: 0;
}

/* Summary Total */
.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 2px solid #e2e8f0;
    border-bottom: 2px solid #e2e8f0;
    font-size: 18px;
    font-weight: 700;
}

.total-value {
    font-size: 28px;
    color: #16a34a;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.payment-methods p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.payment-icons span {
    font-size: 12px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.security-badge svg {
    color: #16a34a;
}

/* ==========================================
   PRODUCTOS COMPLEMENTARIOS
   ========================================== */

.complementos-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px dashed #e2e8f0;
}

.complementos-header {
    text-align: center;
    margin-bottom: 36px;
}

/* Complementos inline dentro del carrito */
.complementos-inline {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px dashed #e2e8f0;
}

.complementos-inline-header {
    margin-bottom: 16px;
}

.complementos-inline-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.complementos-inline-header p {
    font-size: 0.85rem;
    color: #6b7280;
}

.complementos-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.complementos-header p {
    font-size: 16px;
    color: #64748b;
}

.complementos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.complemento-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.complemento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #16a34a;
}

.complemento-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8fafc;
}

.complemento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.complemento-card:hover .complemento-image img {
    transform: scale(1.05);
}

.complemento-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc2626;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 1;
}

.complemento-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.complemento-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.complemento-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.complemento-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.complemento-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.complemento-price .price-old {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.complemento-price .price-current {
    font-size: 20px;
    font-weight: 700;
    color: #16a34a;
}

.btn-complemento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-complemento:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.btn-complemento:active {
    transform: scale(0.98);
}

.btn-complemento.added {
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

.btn-complemento.added:hover {
    transform: none;
    box-shadow: none;
}

.btn-complemento svg {
    flex-shrink: 0;
}

/* Responsive Complementos */
@media (max-width: 768px) {
    .complementos-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .complementos-header h2 {
        font-size: 24px;
    }
    
    .complementos-header p {
        font-size: 14px;
    }
    
    .complementos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .complemento-image {
        height: 150px;
    }
    
    .complemento-name {
        font-size: 15px;
    }
    
    .complemento-desc {
        font-size: 12px;
    }
    
    .complemento-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .btn-complemento {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 40px 0;
    }
    
    .cart-header h1 {
        font-size: 28px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
    }
    
    .item-quantity {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    .item-subtotal {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    .item-remove {
        position: absolute;
        top: 12px;
        right: 12px;
    }
    
    .cart-item {
        position: relative;
        padding: 20px;
        background: #f8fafc;
        border-radius: 12px;
        margin-bottom: 16px;
        border: 1px solid #e2e8f0;
    }
    
    .cart-items {
        padding: 20px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-clear-cart,
    .btn-continue {
        width: 100%;
        justify-content: center;
    }
    
    .cart-summary {
        padding: 24px;
    }
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.quick-view-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.quick-view-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-view-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.quick-view-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    gap: 20px;
}

.quick-view-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.quick-view-loading p {
    color: #64748b;
    font-size: 16px;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    padding: 32px;
}

.quick-view-image {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: #f8fafc;
    border-radius: 14px;
    overflow: hidden;
}

.quick-view-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-view-image .product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
}

/* Quick View Thumbnails Gallery */
.qv-thumbnails {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    z-index: 10;
}

.qv-thumbnail {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qv-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
}

.qv-thumbnail:hover {
    transform: translateY(-4px);
    border-color: #d4d4d4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qv-thumbnail.active {
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.quick-view-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qv-category {
    font-size: 12px;
    color: #16a34a;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin: 0;
}

.qv-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.qv-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qv-rating .stars {
    color: #fbbf24;
    font-size: 16px;
    letter-spacing: 2px;
}

.qv-rating .rating-number {
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.qv-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.qv-price .price-old {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
}

.qv-price .price-current {
    font-size: 28px;
    font-weight: 800;
    color: #16a34a;
}

.qv-stock {
    display: flex;
    align-items: center;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.stock-badge.available {
    background: #dcfce7;
    color: #15803d;
}

.stock-badge.low {
    background: #fed7aa;
    color: #c2410c;
}

.stock-badge.out {
    background: #fee2e2;
    color: #dc2626;
}

.qv-description {
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
    margin: 12px 0;
}

.qv-description p {
    margin: 0;
}

/* Variantes en Quick View */
.qv-variants {
    margin: 16px 0;
}

.qv-variants .product-variants {
    margin: 0;
}

.qv-variants .variant-label {
    font-size: 13px;
    margin-bottom: 8px;
}

.qv-variants .variant-option {
    font-size: 13px;
    padding: 8px 14px;
}

.qv-variants .variant-color {
    min-width: 36px;
}

.qv-cart-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.qv-quantity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.qv-quantity label {
    font-weight: 600;
    color: #334155;
    font-size: 14px;
}

.qv-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    border: 2px solid #16a34a;
}

.qv-subtotal .subtotal-label {
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qv-subtotal .subtotal-amount {
    font-size: 22px;
    font-weight: 800;
    color: #16a34a;
}

.qv-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-add-to-cart-qv {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart-qv:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-add-to-cart-qv:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

.btn-add-to-cart-qv .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-view-details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Quick View */
@media (max-width: 768px) {
    .quick-view-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .quick-view-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .quick-view-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .qv-title {
        font-size: 22px;
    }
    
    .qv-price .price-current {
        font-size: 26px;
    }
    
    .qv-thumbnails {
        gap: 6px;
        bottom: 12px;
        left: 12px;
        right: 12px;
    }
    
    .qv-thumbnail {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
}

/* ============================================
   CATEGORIA PAGE
   ============================================ */

.category-header {
    padding: 40px 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-bottom: 1px solid #e2e8f0;
}

.category-header-content {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    align-items: center;
}

.category-header-image {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header-text h1 {
    font-size: 36px;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.category-header-text p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #16a34a;
    font-weight: 600;
}

.stat-item svg {
    color: #16a34a;
}

/* Category Products Section */
.category-products {
    padding: 60px 0;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .category-products {
        padding: 20px 0;
    }
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* Botón filtros móvil — oculto en desktop */
.btn-filtros-movil {
    display: none;
    align-items: center;
    gap: 8px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
}

/* Overlay oscuro */
.filtros-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 500;
}

/* Drawer panel desde abajo */
.filtros-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 40px;
    z-index: 501;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.filtros-drawer.open {
    transform: translateY(0);
}

.filtros-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filtros-drawer-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.btn-cerrar-filtros {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
}

/* Sidebar Filters */
.category-sidebar {
    background: white;
    border-radius: 16px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-title {
    font-size: 20px;
    color: #1e293b;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    font-size: 15px;
    color: #334155;
    margin: 0 0 16px 0;
    font-weight: 600;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
    max-width: 90px;
    padding: 8px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

.price-inputs input:focus {
    outline: none;
    border-color: #16a34a;
}

.price-inputs span {
    color: #94a3b8;
    flex-shrink: 0;
}

.price-range-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0 0 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #16a34a;
}

.checkbox-label span {
    font-size: 14px;
    color: #475569;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.radio-label:hover {
    background: #f1f5f9;
}

.radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #16a34a;
}

.radio-label span {
    font-size: 14px;
    color: #475569;
    flex: 1;
}

.btn-apply-filters {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-clear-filters {
    display: block;
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: #e2e8f0;
}

/* Products Toolbar */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.products-count {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

.sort-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.sort-select select {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select select:focus {
    outline: none;
    border-color: #16a34a;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.no-products-icon {
    margin-bottom: 24px;
    color: #cbd5e1;
}

.no-products h3 {
    font-size: 24px;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.no-products p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 24px 0;
}

.no-products .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #16a34a;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-products .btn-primary:hover {
    background: #15803d;
    transform: translateY(-2px);
}

/* Responsive Category Page */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .category-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .category-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    
    .category-header-image {
        margin: 0 auto;
    }
    
    .category-header-text h1 {
        font-size: 28px;
    }
    
    .category-stats {
        justify-content: center;
    }
    
    .products-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .sort-select {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .sort-select select {
        width: 100%;
    }
}

/* ========================================
   CHECKOUT STYLES
   ======================================== */

.checkout-section {
    padding: 60px 0;
    background: #f9fafb;
    min-height: 100vh;
}

.checkout-header {
    margin-bottom: 40px;
}

.checkout-header h1 {
    color: #1f2937;
    font-size: 32px;
    margin: 0 0 24px 0;
    text-align: center;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
}

.step-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.step.active .step-label {
    color: #16a34a;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

.checkout-form {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    color: #1f2937;
    font-size: 20px;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title svg {
    stroke: #16a34a;
}

.section-description {
    color: #6b7280;
    margin: -8px 0 20px 0;
    font-size: 14px;
}

/* ==================== BOTÓN FLOTANTE WHATSAPP ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    color: white;
    fill: white;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid #1f2937;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    right: 75px;
}

/* Animación de pulso */
@keyframes whatsapp-pulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        /* 64px barra inferior + 12px margen */
        bottom: 76px;
        right: 16px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 76px;
        right: 12px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ==================== SECCIÓN PRODUCTO DIGITAL ==================== */
.digital-product-banner {
    padding: 80px 0;
    background: #e4ded5;
    position: relative;
    overflow: hidden;
}

.digital-product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.digital-product-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.digital-product-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.digital-product-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.digital-product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.digital-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.digital-badge svg {
    animation: badge-bounce 1.5s ease-in-out infinite;
}

@keyframes badge-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.digital-product-info {
    padding: 20px 0;
}

.product-tag {
    display: inline-block;
    background: white;
    color: #16a34a;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.digital-product-info h2 {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.2;
}

.product-description {
    font-size: 17px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 24px;
}

.product-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.product-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #334155;
    font-weight: 500;
}

.product-highlights li svg {
    color: #16a34a;
    flex-shrink: 0;
}

.product-purchase {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.price-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.price-old {
    font-size: 20px;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-current {
    font-size: 42px;
    font-weight: 800;
    color: #16a34a;
}

.discount-badge {
    background: #dc2626;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.btn-buy-digital {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

.btn-buy-digital:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
}

.btn-buy-digital:active {
    transform: translateY(0);
}

.delivery-note {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* =============================================
   MOBILE NAVIGATION — Hamburger, Drawer, Bottom Nav
   ============================================= */

/* --- Botón hamburguesa --- */
.btn-hamburger {
    display: none; /* visible solo en móvil via media query */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s;
}
.btn-hamburger:hover { background: #f3f4f6; }
.btn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2d5a27;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Overlay oscuro --- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-overlay.open {
    display: block;
    opacity: 1;
}

/* --- Drawer lateral izquierdo --- */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 82%;
    max-width: 320px;
    height: 100dvh;
    background: #fff;
    z-index: 1300;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    overflow: hidden;
}
.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.drawer-logo {
    height: 36px;
    width: auto;
}
.drawer-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.drawer-close:hover { background: #f3f4f6; color: #333; }

.drawer-shipping {
    background: #f0f7ee;
    color: #2d5a27;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-bottom: 1px solid #dcebd8;
    flex-shrink: 0;
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 20px;
}

/* Enlace simple sin submenú */
.drawer-link-single {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.drawer-link-single:hover { background: #f9f9f9; }

/* Acordeón */
.drawer-accordion { border-bottom: 1px solid #f5f5f5; }

.drawer-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.drawer-accordion-btn:hover { background: #f9f9f9; }

.accordion-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #888;
}

.drawer-accordion-content {
    display: none;
    flex-direction: column;
    background: #fafafa;
    padding: 4px 0 8px;
}
.drawer-accordion-content.open { display: flex; }

.drawer-accordion-content a,
.drawer-accordion-content .drawer-link-disabled {
    display: block;
    padding: 10px 20px 10px 32px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.drawer-accordion-content a:hover { background: #eef7ec; color: #2d5a27; }
.drawer-link-disabled {
    color: #bbb !important;
    cursor: default;
}

/* --- Barra inferior fija --- */
.mobile-bottom-nav {
    display: none; /* visible solo en móvil */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 1100;
    flex-direction: row;
    align-items: stretch;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    position: relative;
}
.bottom-nav-item:hover,
.bottom-nav-item:active { color: #2d5a27; }
.bottom-nav-item svg { flex-shrink: 0; }

.bottom-nav-badge {
    position: absolute;
    top: 6px;
    left: calc(50% + 4px);
    background: #e53e3e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* --- Overlay de búsqueda móvil --- */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1400;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom: 2px solid #2d5a27;
}
.mobile-search-overlay.open { display: block; }

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 10px 14px;
}
.mobile-search-form input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px; /* 16px evita zoom en iOS */
    outline: none;
    color: #222;
}
.mobile-search-form input::placeholder { color: #aaa; }
.mobile-search-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #888;
    padding: 2px 4px;
    line-height: 1;
}

/* --- Activar componentes móviles --- */
@media (max-width: 768px) {
    .btn-hamburger { display: flex; }
    .mobile-bottom-nav { display: flex; }
}

/* Responsive */
@media (max-width: 992px) {
    .digital-product-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .digital-product-image {
        transform: none;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .digital-product-info h2 {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .digital-product-banner {
        padding: 60px 0;
    }
    
    .digital-product-info h2 {
        font-size: 26px;
    }
    
    .price-current {
        font-size: 36px;
    }
    
    .product-purchase {
        padding: 24px 20px;
    }
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Estilo específico para input date */
.form-group input[type="date"] {
    cursor: pointer;
    position: relative;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-top: 4px;
}

/* Input con botón (para documento) */
.input-with-button {
    display: flex;
    gap: 8px;
    align-items: center;
}

.input-with-button input {
    flex: 1;
}

.btn-search-doc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-search-doc:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-search-doc:active {
    transform: translateY(0);
}

.btn-search-doc:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-search-doc svg {
    flex-shrink: 0;
}

/* Loading spinner pequeño */
.spinner-small {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Info messages */
.info-message {
    background-color: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 14px;
    color: #0c4a6e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-message svg {
    flex-shrink: 0;
    color: #0284c7;
}

/* Dedicatorias */
.dedicatorias-section {
    background: #f0fdf4;
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 24px;
}

.dedicatoria-item {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.dedicatoria-item:last-child {
    margin-bottom: 0;
}

.dedicatoria-header {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dedicatoria-header img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.dedicatoria-product-info {
    flex: 1;
}

.dedicatoria-product-info h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 16px;
}

.dedicatoria-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dedicatoria-price {
    color: #16a34a;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.dedicatoria-field {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

/* Switch Toggle para Dedicatorias */
.switch-dedicatoria {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.switch-dedicatoria input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-dedicatoria {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 28px;
}

.slider-dedicatoria:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.switch-dedicatoria input:checked + .slider-dedicatoria {
    background-color: #16a34a;
}

.switch-dedicatoria input:focus + .slider-dedicatoria {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.switch-dedicatoria input:checked + .slider-dedicatoria:before {
    transform: translateX(24px);
}

.text-muted {
    color: #6b7280;
    font-size: 14px;
}

/* Métodos de Pago */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.payment-method {
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    background: white;
}

.payment-method input[type="radio"]:checked + .payment-card {
    border-color: #16a34a;
    background: #f0fdf4;
}

.payment-card:hover {
    border-color: #16a34a;
}

.payment-icon {
    font-size: 32px;
}

.payment-info h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 16px;
}

.payment-info p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.payment-note {
    display: flex;
    gap: 12px;
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.payment-note svg {
    stroke: #3b82f6;
    flex-shrink: 0;
}

.payment-note span {
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
}

/* Checkbox personalizado */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #16a34a;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #15803d;
}

/* Botones de acción */
.form-actions-checkout {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

.btn-back {
    background: white;
    color: #6b7280;
    padding: 14px 28px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.btn-submit-order {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-submit-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Resumen del Pedido (Sidebar) */
.order-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-card h2 {
    color: #1f2937;
    font-size: 20px;
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.summary-products {
    margin-bottom: 20px;
}

.summary-product {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-product:last-child {
    border-bottom: none;
}

.product-img {
    position: relative;
}

.product-img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.product-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #16a34a;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.product-details h4 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-size: 14px;
}

.product-price {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.product-total {
    text-align: right;
    color: #1f2937;
    font-weight: 600;
    font-size: 15px;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.summary-calculations {
    margin-bottom: 16px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #6b7280;
    font-size: 15px;
}

.free-text {
    color: #16a34a;
    font-weight: bold;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
}

.total-amount {
    color: #16a34a;
    font-size: 24px;
}

.summary-security {
    display: flex;
    gap: 12px;
    background: #f0fdf4;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-security svg {
    stroke: #16a34a;
    flex-shrink: 0;
}

.summary-security h5 {
    margin: 0 0 4px 0;
    color: #15803d;
    font-size: 14px;
}

.summary-security p {
    margin: 0;
    color: #16a34a;
    font-size: 13px;
}

/* Responsive Checkout */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .checkout-section {
        padding: 30px 0;
    }
    
    .checkout-header h1 {
        font-size: 24px;
    }
    
    .checkout-steps {
        gap: 24px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions-checkout {
        flex-direction: column-reverse;
    }
    
    .btn-back,
    .btn-submit-order {
        width: 100%;
        justify-content: center;
    }
}

