:root {
    --verde: #2ecc71;
    --verde-oscuro: #27ae60;
    --blanco: #ffffff;
    --negro: #333333;
    --gris-claro: #f5f5f5;
    --gris: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--negro);
    background-color: var(--gris-claro);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--verde);
}

.logo span {
    color: var(--negro);
}

.search-bar {
    display: flex;
    gap: 10px;
}

.search-bar input {
    padding: 10px 15px;
    border: 2px solid var(--gris);
    border-radius: 5px;
    width: 300px;
    font-size: 16px;
}

.search-bar button {
    background: var(--verde);
    color: var(--blanco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background: var(--verde-oscuro);
}

.main-nav {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid var(--gris);
}

.main-nav a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--verde);
}

.banner {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.banner-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Banner - Overlay verde muy transparente */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(127, 168, 144, 0.425); /* Verde TOKKI muy transparente */
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

/* Indicadores del carrusel */
.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: white;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 900;
    color: #3e9217;
    text-shadow: 
        2px 2px 4px rgba(255, 255, 255, 0.89),
        0px 0px 20px rgb(219, 213, 213);
    letter-spacing: -1px;
    margin-bottom: 15px;
}

.banner-content p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #30791a;
    text-shadow: 
        1px 1px 3px rgb(255, 255, 255),
        0px 0px 15px rgb(255, 253, 253);
    letter-spacing: -0.3px;
}
.banner-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 10px;
    z-index: -1;
    backdrop-filter: blur(1px); /* Efecto de desenfoque sutil */
}

/* Responsive */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    .banner-overlay {
        background: rgba(255, 255, 255, 0.05); /* Aún más transparente en móvil */
    }
}
/* Secciones */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--negro);
}

/* Productos - MODIFICADO */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.product-card {
    background: var(--blanco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    max-width: 350px;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 220px;
    background: #ffffff !important; /* Fondo blanco forzado */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px;
    cursor: pointer;
    overflow: hidden;
}
.product-image::after {
    content: '\f002'; /* Código de lupa de Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(46, 204, 113, 0.9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 2;
}

.product-image:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}


.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05); /* Zoom sutil */
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-image:hover::before {
    opacity: 1;
}
.product-info {
    padding: 25px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%); /* Verde más oscuro */
    border-radius: 0 0 12px 12px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.product-category {
    color: var(--verde);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--verde);
}

/* Categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: var(--blanco);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    background: var(--verde);
    color: var(--blanco);
    transform: translateY(-5px);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--verde);
}

.category-card:hover i {
    color: var(--blanco);
}

.category-card h3 {
    font-size: 1.2rem;
}

/* Productos por categoría - MODIFICADO */
.productos-categoria {
    background: var(--gris-claro);
}

.productos-categoria .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
}

.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.btn-volver {
    background: var(--verde);
    color: var(--blanco);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-volver:hover {
    background: var(--verde-oscuro);
}

/* About */
.about {
    background: var(--blanco);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Contacto */
.contacto {
    padding: 30px 0;
    background: #b0ffa9;
}
.contact-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.contact-info {
    flex: 1;
    min-width: 300px;
    min-height: 250px;
}


.contact-info h3 {
    color: var(--verde);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background 0.3s;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.map {
    flex: 1;
    margin-left: 0px;
}

.map iframe {
    width: 50%;
    height: 350px;
    border-radius: 10px;
}

footer {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Black Han Sans', sans-serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: #44b12e;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.footer-section p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #cbd5e0;
    margin-bottom: 15px;
}

/* REDES SOCIALES */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
}

.social-link:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateX(5px);
}

.social-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.social-link:nth-child(1) i { color: #E4405F; } /* Instagram */
.social-link:nth-child(2) i { color: #1877F2; } /* Facebook */
.social-link:nth-child(3) i { color: #69C9D0; } /* TikTok */

/* ENLACES RÁPIDOS */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.quick-links a:hover {
    color: #ff6b6b;
    padding-left: 5px;
}

/* CONTACTO MINI */
.contact-mini p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.contact-mini i {
    color: #ff6b6b;
    width: 16px;
}

/* FOOTER BOTTOM */
.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 300;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .social-link {
        width: 200px;
        justify-content: center;
    }
    
    .contact-mini p {
        justify-content: center;
    }
}

/* Placeholder para imágenes */
.product-image::before {
    content: "TOKKI";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 1rem;
    font-weight: bold;
    z-index: 1;
    display: none;
}

.product-image img[src*="placeholder"] + ::before,
.product-image:not(:has(img[src]))::before {
    display: block;
}

/* Loading para imágenes */
.product-image img {
    transition: opacity 0.3s ease;
}

.product-image img:not([src]) {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px 0;
        justify-content: center;
    }
    .main-nav a {
        font-size: 15px;
        font-weight: 600;
    }
    
    .banner h1 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categoria-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
.logo {
    height: 50px; /* Ajusta según el tamaño de tu logo */
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* O si prefieres un ancho fijo: */
.logo-img {
    width: 150px; /* Ajusta el tamaño */
    height: auto;
}
.product-image {
    height: 220px;
    background: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 15px;
    cursor: pointer;
    overflow: hidden;
}


.product-image img {
    max-width: 100%; /* La imagen ocupa máximo 80% del ancho */
    max-height: 100%; /* La imagen ocupa máximo 80% del alto */
    width: auto;
    height: auto;
    object-fit: contain; /* Mantiene proporciones sin recortar */
    display: block;
}
.product-card:hover .product-info {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%);
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
}

.close-btn:hover {
    color: var(--verde);
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.main-nav a {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    transition: all 0.3s;
    font-family: 'Arial Rounded MT Bold', 'Segoe UI', sans-serif;
    font-size: 17px;
    letter-spacing: 0.3px;
}

.main-nav a:hover {
    color: var(--verde);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.tienda-simple {
    position: absolute;
    top: 1350px; /* Ajusta este valor para bajar la imagen */
    right: 70px;
    text-align: left;
    padding: 15px;
    background: rgb(133, 202, 131);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 470px; /* Ancho fijo */
}

.tienda-img {
    width: 100%;
    height: 380px; /* ← Solo un poco más alta */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.tienda-texto {
    margin-top: 10px;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    .tienda-simple {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 280px;
        margin: 25px auto 0;
        text-align: center;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .map {
        min-width: 100%;
    }
}
.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 20px;
}

.about-content strong {
    color: #6bc74f;
    font-weight: 600;
}

.highlight {
    background: linear-gradient(135deg, #d7eed7 0%, #e0ecdd 100%);
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #5fe53e;
    font-weight: 500;
    font-size: 1.2rem !important;
    margin-top: 25px !important;
}

/* O si prefieres un diseño con iconos */
.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-item i {
    font-size: 2rem;
    color: #35992c;
    margin-bottom: 10px;
}
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    padding: 10px;
    margin-left: 15px; /* Cambiado de margin-right a margin-left */
    order: 2; /* Esto lo mueve a la derecha */
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #26642b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Sidebar del Carrito */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    font-family: 'Black Han Sans', sans-serif;
    color: #1c740b;
    font-size: 1.4rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 40px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Noto Sans KR', sans-serif;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.cart-item-price {
    color: #24d324;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.quantity-btn {
    background: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.remove-item {
    background: none;
    border: none;
    color: #180e0e;
    cursor: pointer;
    margin-left: 10px;
    font-size: 1rem;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-family: 'Black Han Sans', sans-serif;
    color: #333;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Noto Sans KR', sans-serif;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #128C7E;
}

/* Overlay cuando el carrito está abierto */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Botón Añadir al Carrito en Productos */
.add-to-cart-btn {
    background: #3fca52;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    margin-top: 10px;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: #37a546;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 300px;
    }
    
    .cart-icon {
        margin-right: 10px;
        font-size: 1.3rem;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
}
.product-card.agotado {
    position: relative;
    opacity: 0.7;
}

.product-card.agotado::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 10px;
}

.agotado-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.product-card.agotado .product-info {
    position: relative;
    z-index: 1;
}

.product-card.agotado .add-to-cart-btn {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.product-card.agotado .add-to-cart-btn:hover {
    background: #9ca3af !important;
    transform: none !important;
}

/* Estilo para el botón deshabilitado */
.add-to-cart-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.add-to-cart-btn:disabled:hover {
    background: #9ca3af !important;
    transform: none !important;
}