:root {
    --primary: #9ec99b;
    --primary-light: #b0d6ac;
    --primary-dark: #7ab577;
    --secondary: #4F6F6A;
    --bg-main: #f7f9fb;
    --bg-card: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #64748b;
    --text-light: #ffffff;
    --border: rgba(158, 201, 155, 0.2);
    --shadow: 0 2px 8px rgba(158, 201, 155, 0.12);
    --shadow-hover: 0 12px 28px rgba(158, 201, 155, 0.22);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(158, 201, 155, 0.2);
}

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

body {
    background: var(--bg-main);
    font-family: 'Urbanist', sans-serif;
    color: var(--text-primary);
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--secondary);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--secondary); }

/* Botón hamburguesa — oculto en desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    flex-shrink: 0;
}

/* Search bar */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.search-bar input {
    border: none;
    background: transparent;
    padding: 8px 14px;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.9rem;
    outline: none;
    width: 180px;
    color: var(--text-primary);
}

.search-bar button {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    padding: 8px 14px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    border-radius: 50px;
}

.search-bar button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* Carrito */
.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #b0d6ac !important;
    color: #2d5a3d !important;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-btn:hover {
    background: #9ecb97 !important;
    color: #2d5a3d !important;
}

.cart-badge {
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Botón login */
.btn-login {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
}

/* Dropdown usuario */
.user-menu { position: relative; flex-shrink: 0; }

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.user-menu-btn:hover { opacity: 0.88; }

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e0d6cc;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 999;
    overflow: hidden;
}

.user-dropdown.show { display: block; }

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s;
}

.user-dropdown a:hover { background: #f5f0e8; }
.user-dropdown .dropdown-divider { border-top: 1px solid #eee; margin: 0; }
.user-dropdown .logout-link { color: #dc2626 !important; }
.user-dropdown .logout-link:hover { background: #fde8e8 !important; }

.dropdown-header {
    padding: 0.8rem 1.1rem 0.5rem;
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   CAROUSEL
══════════════════════════════════════════ */
.carousel-section {
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel { width: 100%; position: relative; overflow: hidden; }
.slides { display: flex; transition: transform 0.5s ease-in-out; }

.slide {
    min-width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
}

.slide-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.slide-text { flex: 1; max-width: 460px; }

.slide-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.slide-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 380px;
}

.slide-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(158,201,155,0.35);
}

.slide-btn:hover { transform: translateY(-2px); }

.slide-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.slide-img img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 10px;
}

.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    transition: background 0.3s;
    cursor: pointer;
    opacity: 0.4;
}

.dot.active { background: var(--primary-dark); opacity: 1; }

/* ══════════════════════════════════════════
   MARCAS (vieja — compatible)
══════════════════════════════════════════ */
.marcas {
    padding: 2.5rem 5%;
    text-align: center;
    background: rgba(158,201,155,0.05);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marcas h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text-primary); margin-bottom: 1.5rem; }
.marcas-grid { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

.marca-card {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1.2rem 2rem; min-width: 120px;
    transition: all 0.3s ease; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

.marca-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.marca-card i { font-size: 1.8rem; color: var(--primary-dark); }
.marca-card span { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    min-height: 55vh;
    background: linear-gradient(135deg, rgba(158,201,155,0.08) 0%, rgba(176,214,172,0.12) 100%);
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 4rem 5%;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text-primary); margin-bottom: 1rem; line-height: 1.2;
}

.hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; text-decoration: none; padding: 0.75rem 2rem;
    border-radius: 50px; font-weight: 600; transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(158,201,155,0.35);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
    border: 2px solid var(--primary); color: var(--secondary);
    text-decoration: none; padding: 0.75rem 2rem;
    border-radius: 50px; font-weight: 600; transition: all 0.3s ease;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border-color: transparent;
}

/* ══════════════════════════════════════════
   CATEGORIES
══════════════════════════════════════════ */
.categories { padding: 4rem 5%; text-align: center; }

.categories h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 2.5rem; color: var(--text-primary); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: auto;
}

.category-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2rem 1.5rem;
    transition: all 0.3s ease; cursor: pointer; text-decoration: none;
    color: inherit; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.category-card i { font-size: 2rem; color: var(--primary-dark); margin-bottom: 0.8rem; display: block; }
.category-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text-primary); }
.category-card p { font-size: 0.88rem; color: var(--text-secondary); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    background: linear-gradient(135deg, var(--secondary), #3d5a56);
    padding: 2.5rem 5% 1.5rem;
    color: rgba(255,255,255,0.7); font-size: 0.9rem;
}

.footer-content {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; max-width: 1100px; margin: 0 auto 1.5rem;
}

.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: rgba(255,255,255,0.95); }
.footer-col p { color: rgba(255,255,255,0.65); font-size: 0.88rem; margin-bottom: 0.3rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    text-align: center; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5); font-size: 0.85rem;
    max-width: 1100px; margin: auto;
}

/* ══════════════════════════════════════════
   PRODUCTOS PAGE
══════════════════════════════════════════ */
.products-page { padding: 100px 5% 4rem; min-height: 80vh; background: var(--bg-main); }

.products-page h1 {
    font-family: 'Playfair Display', serif; font-size: 2.2rem;
    text-align: center; margin-bottom: 0.5rem; color: var(--text-primary);
}

.products-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; font-size: 1rem; }

.products-layout {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 2rem; max-width: 1200px; margin: auto; align-items: start;
}

.categories-sidebar {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 1.5rem;
    position: sticky; top: 90px;
    box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

.sidebar-title {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-primary);
    margin-bottom: 1rem; padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--glass-border);
    display: flex; align-items: center; gap: 0.5rem;
}

.sidebar-title i { color: var(--primary-dark); }

.category-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }

.category-link {
    display: block; padding: 0.55rem 0.75rem;
    text-decoration: none; color: var(--text-secondary);
    font-size: 0.9rem; font-weight: 500; border-radius: 10px; transition: all 0.2s;
}

.category-link:hover { background: rgba(158,201,155,0.12); color: var(--secondary); padding-left: 1rem; }

.category-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-weight: 600;
    box-shadow: 0 4px 12px rgba(158,201,155,0.35);
}

.products-main { flex: 1; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
}

.no-products { color: var(--text-secondary); text-align: center; padding: 2rem; grid-column: 1 / -1; }

.product-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: var(--shadow); position: relative; backdrop-filter: blur(10px);
}

.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(158,201,155,0.2); border-color: var(--primary-light); }

.btn-fav {
    position: absolute; top: 10px; right: 10px;
    background: white; border: none; width: 34px; height: 34px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s; z-index: 2; color: #ddd; font-size: 1rem;
}

.btn-fav:hover, .btn-fav.active { color: #e05c7a; transform: scale(1.15); }

.product-img-placeholder {
    width: 100%; height: 180px;
    background: linear-gradient(135deg, rgba(158,201,155,0.1), rgba(176,214,172,0.05));
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); font-size: 3rem;
}

.product-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-info { padding: 1rem; }

.product-category {
    font-size: 0.7rem; color: var(--primary-dark); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem;
}

.product-info h3 { font-size: 0.92rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.3; }

.product-price {
    font-size: 1.1rem; font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 0.8rem;
}

.btn-comprar {
    width: 100%; padding: 0.55rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; border: none; border-radius: 50px;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(158,201,155,0.3);
}

.btn-comprar:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); transform: translateY(-1px); }
.btn-comprar.cargando { opacity: 0.6; pointer-events: none; }

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
.toast-carrito {
    position: fixed; bottom: 2rem; right: 2rem;
    background: #1a1208; color: #fff;
    padding: 0.75rem 1.3rem; border-radius: 10px;
    font-size: 0.9rem; font-weight: 500;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none; z-index: 9999;
}

.toast-carrito.show { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════ */
.about-page { padding-top: 70px; min-height: 80vh; background: var(--bg-main); }

.about-hero {
    background: linear-gradient(135deg, rgba(158,201,155,0.08) 0%, rgba(176,214,172,0.12) 100%);
    text-align: center; padding: 4rem 5%;
}

.about-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3rem); color: var(--text-primary); margin-bottom: 1rem; }
.about-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: auto; }
.about-content { padding: 3rem 5%; max-width: 1100px; margin: auto; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; margin-bottom: 3rem; }

.about-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2rem; transition: all 0.3s ease;
    box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

.about-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.about-card i { font-size: 2rem; color: var(--primary-dark); margin-bottom: 1rem; display: block; }
.about-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--text-primary); margin-bottom: 0.75rem; }
.about-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.values-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; text-align: center; color: var(--text-primary); margin-bottom: 2rem; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.25rem; }

.value-item {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2rem 1rem; text-align: center;
    transition: all 0.3s ease; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}

.value-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.value-item i { font-size: 2rem; color: var(--primary-dark); margin-bottom: 0.75rem; display: block; }
.value-item h4 { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contact-page { padding-top: 70px; min-height: 80vh; background: var(--bg-main); }

.contact-hero {
    background: linear-gradient(135deg, rgba(158,201,155,0.08) 0%, rgba(176,214,172,0.12) 100%);
    text-align: center; padding: 4rem 5%;
}

.contact-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,3rem); color: var(--text-primary); margin-bottom: 1rem; }
.contact-hero p { color: var(--text-secondary); font-size: 1.1rem; }

.contact-content { padding: 3rem 5%; max-width: 650px; margin: auto; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.contact-info { width: 100%; }
.contact-info h3, .contact-form h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--text-primary); margin-bottom: 1.5rem; text-align: center; }
.contact-form { width: 100%; }

.info-item {
    display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 1rem 1.25rem;
    box-shadow: var(--shadow); backdrop-filter: blur(10px); transition: all 0.3s ease;
}

.info-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary-light); }
.info-item i { font-size: 1.4rem; color: var(--primary-dark); margin-top: 0.2rem; }
.info-item h4 { font-size: 0.85rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.5px; }
.info-item p { color: var(--text-secondary); font-size: 0.95rem; }

.contact-form form { display: flex; flex-direction: column; gap: 1rem; }

.contact-form input,
.contact-form textarea {
    padding: 0.85rem 1rem; border: 1px solid var(--glass-border);
    border-radius: 14px; font-family: 'Urbanist', sans-serif;
    font-size: 0.95rem; color: var(--text-primary); background: var(--glass-bg);
    transition: border-color 0.2s, box-shadow 0.2s; outline: none; backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(158,201,155,0.15); }

.contact-form textarea { resize: vertical; min-height: 140px; }

.contact-form .btn-enviar {
    padding: 0.85rem; background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; border: none; border-radius: 50px; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.3s ease; font-family: 'Urbanist', sans-serif;
    box-shadow: 0 4px 12px rgba(158,201,155,0.35);
}

.contact-form .btn-enviar:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(158,201,155,0.45); }

.map-container { margin-top: 1.5rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow); }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (max 900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .search-bar input { width: 120px; }
    .products-layout { grid-template-columns: 190px 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MÓVIL (max 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* Navbar: logo + hamburguesa + carrito + login */
    .navbar {
        padding: 0.85rem 4%;
        flex-wrap: wrap;
        row-gap: 0;
    }

    /* Menú oculto por defecto, se abre con JS */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        order: 99;
        background: #fff;
        border-top: 1px solid var(--glass-border);
        margin-top: 0.5rem;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: var(--shadow);
    }

    .nav-links.open { display: flex; }

    .nav-links li a {
        display: block;
        padding: 0.85rem 1.2rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links li:last-child a { border-bottom: none; }

    /* Ocultar barra de búsqueda */
    .search-bar { display: none; }

    /* Mostrar hamburguesa */
    .menu-toggle { display: flex; }

    /* Carrusel */
    .slide { height: auto; min-height: 280px; padding: 2rem 0; }
    .slide-content { flex-direction: column; padding: 0 5%; text-align: center; gap: 1rem; }
    .slide-text { max-width: 100%; }
    .slide-text p { max-width: 100%; font-size: 0.9rem; margin-bottom: 1rem; }
    .slide-img { max-width: 200px; }
    .slide-img img { max-height: 180px; }

    /* Productos */
    .products-layout { grid-template-columns: 1fr; }
    .categories-sidebar { position: static; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr 1fr; gap: 1.5rem; }

    /* Nosotros */
    .about-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero */
    .hero-buttons { flex-direction: column; align-items: center; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MÓVIL PEQUEÑO (max 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {

    .logo { font-size: 1rem; }

    /* Ocultar texto "Carrito" en móvil, dejar solo el icono */
    .cart-btn { padding: 0.5rem 0.75rem; font-size: 0; gap: 0; }
    .cart-btn i { font-size: 1.2rem; }

    /* Carrusel */
    .slide { min-height: 220px; }
    .slide-text h2 { font-size: 1.3rem; }
    .slide-img { display: none; }

    /* Productos */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-img, .product-img-placeholder { height: 140px; }
    .product-info { padding: 0.75rem; }
    .product-info h3 { font-size: 0.82rem; }
    .product-price { font-size: 0.95rem; }
    .btn-comprar { font-size: 0.78rem; padding: 0.45rem; }

    /* Categorías home */
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .category-card { padding: 1.5rem 1rem; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; }

    /* Nosotros */
    .values-grid { grid-template-columns: repeat(2, 1fr); }

    /* Hero */
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE ADICIONAL — carrito.css
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .carrito-section { padding: 90px 1rem 2rem; }
    .carrito-titulo { font-size: 1.4rem; }
    .carrito-tabla thead { display: none; }
    .carrito-tabla tbody tr {
        display: flex; flex-wrap: wrap;
        padding: 1rem; border-bottom: 1px solid #f0ebe2;
        gap: 0.5rem;
    }
    .carrito-tabla tbody td {
        border-bottom: none; padding: 0.25rem 0;
        font-size: 0.9rem;
    }
    .td-producto { width: 100%; font-size: 0.9rem; }
    .td-producto img { width: 50px; height: 50px; }
    .carrito-acciones { flex-direction: column; gap: 0.75rem; align-items: stretch; text-align: center; }
    .resumen-box { position: static; }
    .modal-pago { padding: 1.5rem; }
    .metodos-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .carrito-titulo { font-size: 1.2rem; }
    .metodos-grid { grid-template-columns: 1fr; }
    .metodo-btn img { width: 50px; height: 50px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE ADICIONAL — factura.css
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .factura-section { padding: 90px 1rem 2rem; }
    .factura-box { padding: 1.25rem; }
    .factura-top { flex-direction: column; gap: 0.75rem; }
    .factura-cliente { grid-template-columns: 1fr; }
    .factura-tabla thead { display: none; }
    .factura-tabla tbody tr { display: flex; flex-wrap: wrap; padding: 0.75rem 0; border-bottom: 1px solid #eee; }
    .factura-tabla tbody td { border-bottom: none; padding: 0.2rem 0.5rem; font-size: 0.85rem; }
    .factura-totales { max-width: 100%; }
    .factura-acciones { flex-direction: column; }
    .btn-accion { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .exito-badge { font-size: 0.9rem; }
    .factura-num { font-size: 0.95rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE ADICIONAL — contacto / nosotros
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .contact-content { padding: 2rem 1rem; }
    .contact-hero { padding: 3rem 1rem; }
    .contact-hero h1 { font-size: 1.8rem; }
    .about-hero { padding: 3rem 1rem; }
    .about-content { padding: 2rem 1rem; }
    .map-container iframe { height: 200px; }
}

@media (max-width: 480px) {
    .contact-hero h1, .about-hero h1 { font-size: 1.5rem; }
    .info-item { padding: 0.75rem 1rem; }
    .values-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .value-item { padding: 1.25rem 0.75rem; }
}

/* ══════════════════════════════════════════
   RESPONSIVE ADICIONAL — marcas-topventas.css
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .tv-card { width: 100%; flex: 0 0 calc(50% - 12px); }
    .tv-grid { gap: 16px; }
}

@media (max-width: 480px) {
    .tv-card { flex: 0 0 100%; }
    .marcas-header h2 { font-size: 1.6rem; }
    .tv-header h2 { font-size: 1.6rem; }
}