/* --- VARIABLES --- */
:root {
    --primary: #66bb6a;
    --primary-dark: #388e3c;
    --accent: #ffa726;
    --dark: #2d3436;
    --text: #636e72;
    --white: #ffffff;
    --light-bg: #f5f6fa;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --font: 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font); text-decoration: none; list-style: none; }
body { background: var(--white); color: var(--text); overflow-x: hidden; }

/* --- UTILIDADES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: var(--light-bg); }
.text-center { text-align: center; }

.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.primary-btn { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(102, 187, 106, 0.4); }
.primary-btn:hover { background: var(--primary-dark); transform: translateY(-3px); }
.outline-btn { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.outline-btn:hover { background: var(--primary); color: white; }
.outline-btn.white { border-color: white; color: white; }
.outline-btn.white:hover { background: white; color: var(--dark); }

/* --- TOP BAR --- */
.top-bar { background: var(--dark); color: white; padding: 8px 0; font-size: 0.8rem; }
.top-flex { display: flex; justify-content: space-between; }

/* --- HEADER (FIX RESPONSIVE) --- */
.header { position: sticky; top: 0; background: white; box-shadow: 0 2px 10px rgba(0,0,0,0.05); z-index: 1000; }
.header-flex { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; gap: 20px; height: 70px; }

/* Logo Responsive */
.logo { font-size: 1.6rem; font-weight: 700; color: var(--dark); text-transform: uppercase; white-space: nowrap; }
.logo span { color: var(--primary); }

/* Buscador PC */
.search-bar-wrapper { flex-grow: 1; max-width: 500px; margin: 0 10px; }
.search-form { display: flex; border: 2px solid var(--light-bg); border-radius: 50px; overflow: hidden; background: var(--light-bg); }
.search-form input { flex: 1; border: none; padding: 0 20px; background: transparent; outline: none; }
.search-form button { background: var(--primary); color: white; border: none; width: 40px; cursor: pointer; transition: 0.3s; }
.search-form button:hover { background: var(--primary-dark); }

/* Acciones (Iconos) */
.header-actions { display: flex; gap: 15px; align-items: center; }
.icon-btn { font-size: 1.4rem; color: var(--dark); position: relative; cursor: pointer; transition: 0.3s; }
.icon-btn:hover { color: var(--primary); }
.badge-count { position: absolute; top: -5px; right: -8px; background: var(--accent); color: white; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.mobile-toggle { display: none; } /* Oculto en PC */

/* Navbar PC */
.desktop-nav { border-top: 1px solid #eee; }
.nav-list { display: flex; justify-content: center; gap: 30px; }
.nav-list a { display: block; padding: 15px 0; color: var(--dark); font-weight: 500; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a.active { color: var(--primary); border-color: var(--primary); }

/* --- MENU MOVIL LATERAL --- */
.mobile-nav { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: white; z-index: 2000; transition: 0.4s; box-shadow: -5px 0 15px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.mobile-nav.active { right: 0; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; background: var(--primary); color: white; font-size: 1.2rem; }
.mobile-search { padding: 15px; display: flex; gap: 5px; border-bottom: 1px solid #eee; }
.mobile-search input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.mobile-search button { background: var(--primary); color: white; border: none; padding: 0 12px; border-radius: 4px; }
.mobile-links { padding: 10px; overflow-y: auto; }
.mobile-links a { display: block; padding: 12px 10px; border-bottom: 1px solid #f5f5f5; color: var(--dark); font-size: 1rem; }

/* --- HERO --- */
.hero { height: 500px; position: relative; display: flex; align-items: center; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, transparent 80%); }
.hero-content { position: relative; z-index: 2; color: white; max-width: 600px; padding-left: 5%; }
.tag { background: var(--accent); padding: 5px 12px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; text-transform: uppercase; }
.hero-content h1 { font-size: 3.5rem; margin: 20px 0; line-height: 1.1; }
.hero-btns { display: flex; gap: 15px; margin-top: 30px; }

/* --- MARQUEE --- */
/* --- CINTA MARQUEE CORREGIDA --- */
.marquee-container {
    background: var(--primary);
    padding: 12px 0;
    overflow: hidden; /* Oculta lo que se sale de la pantalla */
    width: 100%;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap; /* Evita que el texto baje de línea */
    
    /* ANIMACIÓN */
    animation: scroll-text 25s linear infinite;
    
    /* ESTILOS DEL TEXTO */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.marquee-content span {
    margin-right: 50px; /* Espacio entre frases */
}

/* LA MAGIA: De la derecha (fuera de pantalla) a la izquierda */
@keyframes scroll-text {
    0% { transform: translateX(100vw); } /* Empieza fuera a la derecha */
    100% { transform: translateX(-100%); } /* Termina fuera a la izquierda */
}
/* --- CATEGORÍAS --- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 2.2rem; color: var(--dark); margin-bottom: 10px; }
.section-title span { color: var(--primary); }

.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.cat-card { position: relative; border-radius: 10px; overflow: hidden; height: 200px; box-shadow: var(--shadow); transition: 0.3s; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.cat-card h3 { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0,0,0,0.6); color: white; text-align: center; padding: 10px; margin: 0; transition: 0.3s; }
.cat-card:hover img { transform: scale(1.1); }
.cat-card:hover h3 { background: var(--primary); }

.hidden-cats { display: none; margin-top: 20px; }
.hidden-cats.active { display: grid; animation: fadeIn 0.5s ease; }
.center-btn { text-align: center; margin-top: 40px; }

/* --- PRODUCTOS --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; position: relative; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 4px; color: white; font-weight: bold; font-size: 0.8rem; z-index: 2; }
.badge.sale { background: #e74c3c; }
.badge.new { background: var(--primary); }

.product-img { height: 250px; position: relative; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.product-card:hover .product-img img { transform: scale(1.05); }

.actions { position: absolute; bottom: -50px; left: 0; width: 100%; display: flex; justify-content: center; gap: 10px; padding: 10px; transition: 0.3s; }
.product-card:hover .actions { bottom: 0; }
.actions button { width: 40px; height: 40px; border-radius: 50%; border: none; background: white; color: var(--dark); cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: 0.3s; }
.actions button:hover { background: var(--primary); color: white; }

.product-info { padding: 15px; }
.product-info small { color: #999; text-transform: uppercase; font-size: 0.75rem; }
.product-info h3 { font-size: 1.1rem; margin: 5px 0; color: var(--dark); }
.price { color: var(--primary); font-weight: 700; font-size: 1.2rem; }
.price del { color: #ccc; font-size: 0.9rem; margin-left: 5px; font-weight: 400; }

/* --- BENEFICIOS --- */
.features-wrapper { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 30px; background: white; padding: 40px; border-radius: 10px; box-shadow: var(--shadow); }
.feature-box { display: flex; align-items: center; gap: 20px; }
.feature-box i { font-size: 2.5rem; color: var(--primary); }
.feature-box h4 { margin: 0; font-size: 1.1rem; color: var(--dark); }
.feature-box p { margin: 0; font-size: 0.9rem; color: #777; }

/* --- TESTIMONIOS --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testi-card { background: white; padding: 30px; border-radius: 10px; box-shadow: var(--shadow); }
.testi-card p { font-style: italic; color: #555; margin-bottom: 20px; }
.testi-card .user { display: flex; align-items: center; gap: 15px; }
.testi-card .user img { width: 50px; height: 50px; border-radius: 50%; }

/* --- BLOG --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.blog-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.blog-content { padding: 20px; }
.blog-content small { color: var(--primary); font-weight: bold; }
.blog-content h4 { margin: 10px 0; font-size: 1.2rem; }
.blog-content a { color: var(--dark); font-weight: 600; font-size: 0.9rem; }
.blog-content a:hover { color: var(--primary); }

/* --- FOOTER --- */
.footer { background: #1e1e1e; color: #b2bec3; padding-top: 70px; margin-top: 50px; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid #333; }
.footer-logo { color: white; font-size: 1.5rem; display: block; margin-bottom: 20px; }
.footer-col h3 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.footer-col a { display: block; color: #b2bec3; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }
.socials a { display: inline-block; font-size: 1.2rem; margin-right: 15px; }
.subscribe-form { display: flex; margin-top: 15px; }
.subscribe-form input { flex: 1; padding: 10px; border: none; border-radius: 4px 0 0 4px; outline: none; }
.subscribe-form button { padding: 10px 15px; background: var(--primary); border: none; color: white; border-radius: 0 4px 4px 0; cursor: pointer; }
.footer-bottom { padding: 20px 0; text-align: center; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.payments i { font-size: 2rem; margin-left: 10px; color: #fff; }

/* --- WHATSAPP --- */
.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; background: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); z-index: 1000; animation: pulse 2s infinite; }

/* --- ANIMACIONES --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE FINAL --- */
@media (max-width: 991px) {
    .search-bar-wrapper, .desktop-nav { display: none; } /* Ocultar en movil */
    .mobile-toggle { display: block; font-size: 1.5rem; }
    .header-flex { padding: 10px 15px; height: 60px; }
    .logo { font-size: 1.4rem; }
    .hero { height: 400px; }
    .hero-content h1 { font-size: 2.2rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 15px; }
}/* --- ESTILOS DEL MENÚ DESPLEGABLE (PRODUCTOS) --- */
.dropdown {
    position: relative; /* Necesario para ubicar la lista debajo */
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%; /* Aparece justo debajo del botón */
    left: 0;
    width: 240px; /* Ancho de la lista */
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Sombrita elegante */
    border-top: 3px solid #66bb6a; /* Borde verde arriba */
    display: none; /* Oculto por defecto */
    border-radius: 0 0 5px 5px;
    z-index: 1000;
}

/* Mostrar la lista al pasar el mouse */
.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s ease; /* Pequeña animación de entrada */
}

/* Estilos de los enlaces dentro de la lista */
.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    text-align: left;
    transition: 0.2s;
}

/* Efecto hover en los items de la lista */
.dropdown-menu li a:hover {
    background: #f9f9f9;
    color: #66bb6a; /* Texto verde */
    padding-left: 25px; /* Se mueve un poco a la derecha */
    border-color: transparent;
}

/* Animación suave */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}/* --- ESTILOS MENÚ MÓVIL (ACORDEÓN) --- */
.mobile-dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 10px;
    font-size: 1rem;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Jost', sans-serif; /* Asegurar misma fuente */
}

.mobile-dropdown-btn:hover {
    color: #66bb6a;
}

.mobile-dropdown-btn i {
    transition: transform 0.3s ease;
}

/* Clase para rotar la flechita cuando está abierto */
.mobile-dropdown-btn.active i {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    display: none; /* Oculto por defecto */
    background-color: #f9f9f9;
    padding-left: 20px; /* Sangría para sub-items */
}

.mobile-dropdown-content a {
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

/* Clase para mostrar el contenido */
.mobile-dropdown-content.active {
    display: block;
    animation: fadeIn 0.3s;
}