/* =========================================================
   RINCÓN MATERO
   CSS COMPLETO + RESPONSIVE CORREGIDO
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f7f5f2;
    color: #222;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10000;

    background: rgba(248, 245, 239, 0.97);

    border-bottom: 1px solid rgba(70, 50, 35, 0.10);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topbar {
    width: min(1400px, 100%);
    min-height: 90px;

    margin: 0 auto;
    padding: 16px 40px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    min-width: 0;
    flex-shrink: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #2f251d;
}

.logo h1 {
    margin: 0;

    font-family: "Gabriela", Georgia, serif;

    font-size: clamp(1.6rem, 2.5vw, 2.15rem);
    font-weight: 400;

    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo p {
    margin: 6px 0 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.68rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #8a6848;
}


/* =========================================================
   NAV DESKTOP
   ========================================================= */

.nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(20px, 3vw, 42px);

    margin-left: auto;

    flex-shrink: 0;
}

.nav a {
    position: relative;

    padding: 8px 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.88rem;
    font-weight: 500;

    letter-spacing: 0.4px;

    color: #51463c;

    transition: color 0.25s ease;

}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background: #9b7956;

    transition: width 0.25s ease;
}

.nav a:hover {
    color: #8a6848;
}

.nav a:hover::after,
.nav a.activo::after {
    width: 100%;
}

.nav a.activo {
    color: #8a6848;
}


/* =========================================================
   HEADER RIGHT
   ========================================================= */

.header-right {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    width: auto;
    min-width: 0;

    flex: 0 0 auto;

    z-index: 10001;
}


/* =========================================================
   CARRITO ICONO
   ========================================================= */

.carrito-icono {
    position: relative;

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    user-select: none;

    font-size: 25px;
    line-height: 1;

    border-radius: 50%;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.carrito-icono:hover {
    background: rgba(155, 121, 86, 0.10);
    transform: translateY(-1px);
}


/* =========================================================
   CANTIDAD CARRITO
   ========================================================= */

#carrito-cantidad {
    position: absolute;

    top: -4px;
    right: -4px;

    min-width: 20px;
    height: 20px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #c93636;
    color: #fff;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
    font-weight: 600;

    line-height: 1;

    z-index: 5;
}


/* =========================================================
   DROPDOWN DEL CARRITO
   ========================================================= */

.carrito-dropdown {
    position: absolute;

    top: calc(100% + 15px);
    right: 0;

    width: 380px;
    max-width: calc(100vw - 30px);

    padding: 0;

    box-sizing: border-box;

    background: #f8f5ef;

    border: 1px solid #ddd3c8;
    border-radius: 12px;

    box-shadow: 0 18px 45px rgba(43, 36, 29, 0.20);

    overflow: hidden;

    z-index: 999999;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}


/* CARRITO ABIERTO */

.carrito-dropdown.activo {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================================
   HEADER DEL CARRITO
   ========================================================= */

.carrito-header {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border-bottom: 1px solid #ded5ca;

    background: #f8f5ef;
}

.carrito-header h3 {
    margin: 0;

    font-family: "Gabriela", Georgia, serif;

    font-size: 1.35rem;
    font-weight: 400;

    color: #30261e;
}

#cerrar-carrito {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    color: #6a5e54;

    font-size: 1.5rem;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

#cerrar-carrito:hover {
    color: #30261e;
    background: rgba(0, 0, 0, 0.05);
}


/* =========================================================
   ITEMS CARRITO
   ========================================================= */

#carrito-items {
    width: 100%;

    max-height: 320px;

    padding: 5px 20px;

    overflow-x: hidden;
    overflow-y: auto;

    box-sizing: border-box;

    -webkit-overflow-scrolling: touch;
}

#carrito-items::-webkit-scrollbar {
    width: 5px;
}

#carrito-items::-webkit-scrollbar-track {
    background: transparent;
}

#carrito-items::-webkit-scrollbar-thumb {
    background: #c9c0b7;
    border-radius: 10px;
}


/* =========================================================
   CARRITO VACÍO
   ========================================================= */

.carrito-vacio {
    width: 100%;

    margin: 0;

    padding: 30px 10px;

    text-align: center;

    font-size: 14px;

    color: #888;
}


/* =========================================================
   ITEM INDIVIDUAL
   ========================================================= */

.carrito-item {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    padding: 15px 0;

    border-bottom: 1px solid #e3dbd2;
}

.carrito-item:last-child {
    border-bottom: none;
}


/* =========================================================
   INFORMACIÓN PRODUCTO CARRITO
   ========================================================= */

.carrito-item-info {
    min-width: 0;

    overflow: hidden;
}

.carrito-item-info h4 {
    margin: 0 0 5px;

    font-size: 0.85rem;
    font-weight: 600;

    line-height: 1.4;

    color: #30261e;

    overflow-wrap: anywhere;
    word-break: break-word;
}

.carrito-item-info p {
    margin: 0;

    font-size: 0.8rem;
    font-weight: 500;

    color: #8a6848;
}


/* =========================================================
   CONTROLES CARRITO
   ========================================================= */

.carrito-item-controles {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;

    flex-shrink: 0;

    white-space: nowrap;
}

.cantidad-btn {
    width: 28px;
    height: 28px;

    min-width: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #e8e0d7;

    color: #4a3d32;

    font-size: 15px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.cantidad-btn:hover {
    background: #d7c9ba;
}

.carrito-item-controles span {
    min-width: 20px;

    text-align: center;

    font-size: 0.8rem;
    font-weight: 500;

    color: #30261e;
}

.eliminar-btn {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: none;
    background: transparent;

    font-size: 14px;

    cursor: pointer;

    opacity: 0.65;

    transition: opacity 0.2s ease;
}

.eliminar-btn:hover {
    opacity: 1;
}


/* =========================================================
   FOOTER CARRITO
   ========================================================= */

.carrito-footer {
    width: 100%;

    padding: 18px 20px;

    background: #eee8df;

    border-top: 1px solid #ded5ca;

    box-sizing: border-box;
}

.carrito-total-container {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;

    font-size: 15px;

    color: #5c5148;
}

.carrito-total-container strong {
    flex-shrink: 0;

    font-family: "Gabriela", Georgia, serif;

    font-size: 1.3rem;
    font-weight: 400;

    color: #30261e;
}


/* =========================================================
   BOTÓN WHATSAPP
   ========================================================= */

.carrito-wsp-btn {
    position: relative;

    width: 100%;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 15px;

    box-sizing: border-box;

    border: none;
    border-radius: 5px;

    background: #382d24;
    color: #fff;

    font-family: "Poppins", sans-serif;

    font-size: 0.82rem;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    cursor: pointer;

    pointer-events: auto;

    z-index: 2;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.carrito-wsp-btn:hover {
    background: #514136;
    transform: translateY(-1px);
}

.carrito-wsp-btn:active {
    transform: translateY(0);
}


/* =========================================================
   HAMBURGUESA
   ========================================================= */

.menu-toggle {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: none;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;

    z-index: 10002;
}

.menu-toggle span {
    width: 23px;
    height: 1.5px;

    background: #382d24;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* HAMBURGUESA ABIERTA */

.menu-toggle.menu-activo span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.menu-activo span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.menu-activo span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.38),
            rgba(0, 0, 0, 0.38)
        ),
        url("../MEDIA/fondopresentacion.jpg");

    background-size: cover;
    background-position: center;

    z-index: 0;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.55),
            rgba(0, 0, 0, 0.20),
            transparent
        );

    z-index: 1;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 650px;

    padding-left: 120px;

    color: #fff;
}

.hero h2 {
    margin-bottom: 25px;

    font-family: "Gabriela", Georgia, serif;

    font-size: 4rem;
    font-weight: 400;

    line-height: 1.1;
}

.hero p {
    max-width: 520px;

    margin-bottom: 40px;

    font-size: 1.2rem;

    line-height: 1.8;

    color: #eee;
}

.hero-btn {
    display: inline-block;

    padding: 18px 38px;

    border-radius: 50px;

    background: #9c6b3d;
    color: #fff;

    font-weight: 600;

    transition:
        background 0.35s ease,
        transform 0.35s ease;
}

.hero-btn:hover {
    background: #7d532d;
    transform: translateY(-3px);
}


/* =========================================================
   CATEGORÍAS
   ========================================================= */

.categorias-superiores {
    width: min(1350px, 100%);

    margin: 70px auto;

    padding: 0 30px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.categoria-card {
    width: 100%;

    padding: 0;

    overflow: hidden;

    border: none;
    border-radius: 18px;

    background: #fff;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.categoria-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
}

.categoria-card img {
    width: 70%;
    height: 300px;

    margin: 0 auto;

    object-fit: cover;
}

.categoria-card span {
    display: block;

    padding: 22px;

    border-top: 2px solid #ccc;

    font-size: 1.3rem;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   PRODUCTOS
   ========================================================= */

.productos-section {
    width: min(1450px, 100%);

    margin: 0 auto;

    padding: 40px;
}

.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 50px;
}

.productos-header h2 {
    font-family: "Gabriela", Georgia, serif;

    font-size: 2.6rem;
    font-weight: 400;
}

.productos-header p {
    margin-top: 8px;

    color: #777;
}


/* =========================================================
   GRID PRODUCTOS
   ========================================================= */

.productos-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(280px, 1fr));

    gap: 35px;
}


/* =========================================================
   CARD PRODUCTO
   ========================================================= */

.producto-card {
    overflow: hidden;

    border-radius: 20px;

    background: #fff;

    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.producto-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.14);
}


/* =========================================================
   IMAGEN PRODUCTO
   ========================================================= */

.producto-imagen {
    position: relative;

    height: 320px;

    overflow: hidden;

    background: #ddd;
}

.producto-imagen img,
.producto-imagen video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.producto-card:hover .producto-imagen img,
.producto-card:hover .producto-imagen video {
    transform: scale(1.08);
}

.bombilla-img {
    object-fit: contain !important;
}


/* =========================================================
   BADGE
   ========================================================= */

.badge {
    position: absolute;

    top: 18px;
    left: 18px;

    padding: 8px 15px;

    border-radius: 30px;

    background: #9c6b3d;
    color: #fff;

    font-size: 0.75rem;
    font-weight: 600;
}


/* =========================================================
   INFORMACIÓN PRODUCTO
   ========================================================= */

.producto-info {
    padding: 28px;
}

.producto-info h3 {
    min-height: 58px;

    margin-bottom: 18px;

    font-size: 1.2rem;
    font-weight: 600;

    line-height: 1.4;
}

.precio {
    margin-bottom: 25px;

    font-size: 1.6rem;
    font-weight: 700;

    color: #9c6b3d;
}


/* =========================================================
   BOTÓN AGREGAR
   ========================================================= */

.add {
    width: 100%;

    padding: 16px;

    border: none;
    border-radius: 12px;

    background: #4b2f21;
    color: #fff;

    font-size: 1rem;
    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.2s ease;
}

.add:hover {
    background: #2f1d15;
}

.add:active {
    transform: scale(0.98);
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.beneficios {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    margin-top: 80px;
}

.beneficio {
    padding: 30px;

    text-align: center;
}

.beneficio i {
    margin-bottom: 20px;

    font-size: 42px;

    color: #4b2f21;
}

.beneficio h3 {
    margin-bottom: 10px;

    font-family: "Gabriela", Georgia, serif;

    font-size: 22px;
}

.beneficio p {
    color: #666;

    line-height: 1.7;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 60px;

    padding: 60px 8% 45px;

    background: #2b1d17;
    color: #fff;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col h3 {
    margin-bottom: 18px;

    font-size: 22px;
    font-weight: 700;

    color: #fff;
}

.footer-col p {
    margin: 0;

    font-size: 16px;
    line-height: 1.7;

    color: #e8e1dc;
}

.footer-col a {
    display: inline-block;

    margin-bottom: 10px;

    color: #e8e1dc;

    font-size: 16px;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-col a:hover {
    color: #c99a63;

    transform: translateX(4px);
}


/* =========================================================
   NOSOTROS
   ========================================================= */

.nosotros {
    width: 100%;

    padding: 100px 20px 120px;

    background: #f8f5ef;
    color: #2b241d;

    overflow: hidden;
}

.nosotros-container {
    width: min(1150px, 100%);

    margin: 0 auto;
}

.nosotros-intro {
    max-width: 850px;

    margin: 0 auto 110px;

    text-align: center;
}

.nosotros-label {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 3px;

    color: #8a6848;
}

.nosotros-titulo {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;

    line-height: 1.1;

    color: #30261e;
}

.nosotros-linea {
    width: 55px;
    height: 1px;

    margin: 30px auto 35px;

    background: #9b7956;
}

.nosotros-texto {
    max-width: 780px;

    margin: 0 auto 22px;

    font-size: 17px;

    line-height: 1.85;

    color: #5c5148;
}

.nosotros-diferencial {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    margin-bottom: 100px;

    border: 1px solid #ded5ca;

    background: #eee8df;
}

.diferencial-contenido {
    padding: 65px 60px;
}

.diferencial-titulo {
    margin: 0 0 30px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;

    color: #30261e;
}

.diferencial-texto {
    margin-bottom: 20px;

    font-size: 16px;

    line-height: 1.8;

    color: #5c5148;
}

.diferencial-frase {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 50px 35px;

    background: #382d24;
    color: #f5eee5;

    text-align: center;
}

.diferencial-frase span {
    margin-bottom: 8px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.5rem;

    font-style: italic;
}

.diferencial-frase strong {
    max-width: 280px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 2rem;

    line-height: 1.2;

    font-weight: 400;

    color: #d9b98f;
}

.nosotros-valores {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    margin-bottom: 110px;

    background: #d9d0c5;

    border: 1px solid #d9d0c5;
}

.valor {
    min-height: 240px;

    padding: 40px 35px;

    background: #f8f5ef;
}

.valor-numero {
    display: block;

    margin-bottom: 25px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 15px;

    color: #9b7956;
}

.valor h4 {
    margin-bottom: 15px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.7rem;

    font-weight: 400;

    color: #30261e;
}

.valor p {
    font-size: 15px;

    line-height: 1.7;

    color: #6a5e54;
}

.nosotros-cierre {
    max-width: 750px;

    margin: 0 auto;

    text-align: center;
}

.cierre-decoracion {
    display: block;

    margin-bottom: 25px;

    font-size: 20px;

    color: #9b7956;
}

.nosotros-cierre p {
    margin-bottom: 10px;

    font-size: 16px;

    color: #6a5e54;
}

.nosotros-cierre h3 {
    margin: 0;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.25;

    font-weight: 400;

    color: #30261e;
}


/* =========================================================
   ANIMACIONES
   ========================================================= */

.fade-up {
    opacity: 0;

    transform: translateY(40px);

    animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoom {
    overflow: hidden;
}

.zoom img {
    transition: transform 0.5s ease;
}

.zoom:hover img {
    transform: scale(1.08);
}


/* =========================================================
   TABLET — 1200PX
   ========================================================= */

@media (max-width: 1200px) {

    .topbar {
        padding: 15px 30px;
    }

    .hero-content {
        padding-left: 70px;
    }

    .beneficios {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   TABLET — 1000PX
   ========================================================= */

@media (max-width: 1000px) {

    .topbar {
        gap: 20px;
    }

    .nav {
        gap: 20px;
    }

    .nav a {
        font-size: 0.82rem;
    }

    .carrito-dropdown {
        width: 360px;
    }

    .hero-content {
        padding-left: 50px;
    }

    .hero h2 {
        font-size: 3.4rem;
    }
}


/* =========================================================
   TABLET — 900PX
   ========================================================= */

@media (max-width: 900px) {

    .topbar {
        padding: 15px 25px;
    }

    .logo h1 {
        font-size: 1.7rem;
    }

    .logo p {
        font-size: 0.58rem;
    }

    .hero {
        min-height: 520px;
    }

    .hero-content {
        max-width: 650px;

        padding: 0 40px;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .categorias-superiores {
        gap: 15px;

        padding: 35px 25px;
    }

    .categoria-card img {
        width: 80%;
        height: 240px;
    }

    .categoria-card span {
        font-size: 1rem;
    }

    .productos-section {
        padding: 60px 30px;
    }

    .productos-header h2 {
        font-size: 2.2rem;
    }

    .productos-grid {
        grid-template-columns: repeat(2, 1fr);

        gap: 25px;
    }

    .nosotros-diferencial {
        grid-template-columns: 1fr;
    }

    .diferencial-contenido {
        padding: 50px 40px;
    }

    .diferencial-frase {
        min-height: 220px;
    }

    .nosotros-valores {
        grid-template-columns: 1fr;
    }

    .valor {
        min-height: auto;
    }

    .footer {
        grid-template-columns: repeat(2, 1fr);

        gap: 45px;

        padding: 50px 7% 40px;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   MOBILE — 760PX
   ========================================================= */

@media (max-width: 760px) {

    /* -----------------------------------------------------
       HEADER
       ----------------------------------------------------- */

    .header {
        z-index: 10000;
    }

    .topbar {
        width: 100%;

        min-height: 75px;

        padding: 12px 18px;

        gap: 8px;
    }

    .logo {
        min-width: 0;

        max-width: calc(100% - 100px);
    }

    .logo h1 {
        font-size: 1.45rem;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }

    .logo p {
        max-width: 100%;

        margin-top: 4px;

        font-size: 0.52rem;

        letter-spacing: 0.8px;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    /* -----------------------------------------------------
       HEADER RIGHT
       ----------------------------------------------------- */

    .header-right {
        width: auto !important;

        flex: 0 0 auto;

        gap: 2px;

        z-index: 10001;
    }


    /* -----------------------------------------------------
       HAMBURGUESA
       ----------------------------------------------------- */

    .menu-toggle {
        display: flex;

        width: 42px;
        height: 42px;

        flex: 0 0 42px;

        z-index: 10003;
    }


    /* -----------------------------------------------------
       NAV MOBILE
       ----------------------------------------------------- */

    .nav {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        width: 100%;

        margin: 0;

        padding: 8px 18px 15px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        background: rgba(248, 245, 239, 0.99);

        border-bottom: 1px solid #ded5ca;

        box-shadow: 0 12px 25px rgba(43, 36, 29, 0.10);

        opacity: 0;
        visibility: hidden;

        pointer-events: none;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;

        z-index: 10002;
    }


    /* NAV ABIERTA */

    .nav.menu-abierto {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform: translateY(0);
    }

    .nav a {
        width: 100%;

        padding: 14px 5px;

        border-bottom: 1px solid #e7dfd6;

        font-size: 0.88rem;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a::after {
        display: none;
    }

    .nav a.activo {
        font-weight: 600;
    }


    /* -----------------------------------------------------
       CARRITO MOBILE
       ----------------------------------------------------- */

    .carrito-icono {
        width: 42px;
        height: 42px;

        flex: 0 0 42px;

        font-size: 23px;

        z-index: 10004;
    }

    #carrito-cantidad {
        top: -3px;
        right: -3px;
    }

/* -----------------------------------------------------
   DROPDOWN MOBILE
   ----------------------------------------------------- */

.carrito-dropdown {
    position: absolute;

    /*
       El dropdown queda anclado al .header-right,
       que ya tiene position: relative.
    */
    top: calc(100% + 10px);
    right: -20px;
    left: 0;

    width: min(380px, calc(100vw - 16px));
    max-width: calc(100vw - 60px);

    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);

    display: flex;
    flex-direction: column;

    padding: 0;

    overflow: hidden;

    border-radius: 12px;

    /*
       Importante:
       queda por encima del menú y del contenido.
    */
    z-index: 100000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}


/* CARRITO ABIERTO */

.carrito-dropdown.activo {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


    /* -----------------------------------------------------
       LISTA CARRITO MOBILE
       ----------------------------------------------------- */

    #carrito-items {
        flex: 1 1 auto;

        min-height: 0;

        max-height: min(48dvh, 360px);

        padding: 5px 16px;

        overflow-x: hidden;

        overflow-y: auto;

        -webkit-overflow-scrolling: touch;
    }

    .carrito-item {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 8px;

        padding: 13px 0;
    }

    .carrito-item-info h4 {
        font-size: 0.8rem;

        line-height: 1.35;
    }

    .carrito-item-info p {
        font-size: 0.73rem;
    }

    .carrito-item-controles {
        gap: 4px;
    }

    .cantidad-btn {
        width: 27px;
        height: 27px;

        min-width: 27px;
    }

    .carrito-item-controles span {
        min-width: 20px;

        font-size: 0.78rem;
    }

    .eliminar-btn {
        width: 27px;
        height: 27px;

        flex: 0 0 27px;
    }


    /* -----------------------------------------------------
       FOOTER CARRITO MOBILE
       ----------------------------------------------------- */

    .carrito-footer {
        flex: 0 0 auto;

        padding: 15px 16px;
    }

    .carrito-total-container {
        margin-bottom: 12px;

        font-size: 0.82rem;
    }

    .carrito-total-container strong {
        font-size: 1.15rem;
    }

    .carrito-wsp-btn {
        min-height: 46px;

        padding: 11px 12px;

        font-size: 0.76rem;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero {
        min-height: 450px;
    }

    .hero-content {
        width: 100%;

        max-width: none;

        padding: 0 25px;

        text-align: center;
    }

    .hero h2 {
        font-size: 2.35rem;

        line-height: 1.1;

        margin-bottom: 18px;
    }

    .hero p {
        max-width: 450px;

        margin: 0 auto 25px;

        font-size: 0.92rem;

        line-height: 1.6;
    }

    .hero-btn {
        padding: 13px 25px;

        font-size: 0.8rem;
    }


    /* -----------------------------------------------------
       CATEGORÍAS
       ----------------------------------------------------- */

    .categorias-superiores {
        grid-template-columns: 1fr;

        gap: 15px;

        padding: 30px 20px;

        margin: 45px auto;
    }

    .categoria-card {
        width: 100%;

        min-height: auto;
    }

    .categoria-card img {
        width: 100%;

        height: 180px;

        object-fit: contain;
    }

    .categoria-card span {
        padding: 16px;

        font-size: 1rem;
    }


    /* -----------------------------------------------------
       PRODUCTOS
       ----------------------------------------------------- */

    .productos-section {
        padding: 50px 20px;
    }

    .productos-header {
        margin-bottom: 35px;

        text-align: center;
    }

    .productos-header h2 {
        font-size: 2rem;

        line-height: 1.2;
    }

    .productos-header p {
        font-size: 0.9rem;
    }

    .productos-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .producto-imagen {
        height: 300px;
    }

    .producto-info {
        padding: 22px;
    }

    .producto-info h3 {
        min-height: auto;

        font-size: 1.05rem;
    }

    .precio {
        font-size: 1.45rem;
    }


    /* -----------------------------------------------------
       BENEFICIOS
       ----------------------------------------------------- */

    .beneficios {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    /* -----------------------------------------------------
       NOSOTROS
       ----------------------------------------------------- */

    .nosotros {
        padding: 65px 18px 80px;
    }

    .nosotros-intro {
        margin-bottom: 70px;
    }

    .nosotros-label {
        font-size: 10px;

        letter-spacing: 2.5px;
    }

    .nosotros-titulo {
        font-size: 2.7rem;
    }

    .nosotros-texto {
        font-size: 15px;

        line-height: 1.75;
    }

    .nosotros-diferencial {
        margin-bottom: 70px;
    }

    .diferencial-contenido {
        padding: 40px 25px;
    }

    .diferencial-titulo {
        font-size: 2.2rem;

        margin-bottom: 25px;
    }

    .diferencial-texto {
        font-size: 15px;

        line-height: 1.75;
    }

    .diferencial-frase {
        min-height: 190px;

        padding: 35px 25px;
    }

    .diferencial-frase span {
        font-size: 1.25rem;
    }

    .diferencial-frase strong {
        font-size: 1.7rem;
    }

    .nosotros-valores {
        margin-bottom: 75px;
    }

    .valor {
        padding: 32px 25px;
    }

    .valor h4 {
        font-size: 1.5rem;
    }

    .valor p {
        font-size: 14px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .footer {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 45px 25px 35px;
    }

    .footer-col:first-child {
        grid-column: auto;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h3 {
        font-size: 20px;

        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 15px;
    }
}


/* =========================================================
   MOBILE PEQUEÑO — 500PX
   ========================================================= */

@media (max-width: 500px) {

    .topbar {
        padding: 10px 12px;
    }

    .logo {
        max-width: calc(100% - 88px);
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .logo p {
        font-size: 0.46rem;

        letter-spacing: 0.5px;
    }

    .header-right {
        gap: 1px;
    }

    .carrito-icono {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }


    /* Carrito */

    .carrito-dropdown {
        width: min(380px, calc(100vw - 16px));
        max-width: calc(100vw - 60px);

        top: calc(100% + 8px);
        right: -30px;
        left: auto;

        max-height: calc(100vh - 84px);
        max-height: calc(100dvh - 84px);

        border-radius: 10px;
    }

    .carrito-header {
        padding: 15px 17px;
    }

    .carrito-header h3 {
        font-size: 1.2rem;
    }

    #carrito-items {
        max-height: 43dvh;

        padding-left: 14px;
        padding-right: 14px;
    }

    .carrito-item {
        gap: 6px;
    }

    .carrito-item-info h4 {
        font-size: 0.76rem;
    }

    .carrito-item-info p {
        font-size: 0.7rem;
    }

    .cantidad-btn {
        width: 26px;
        height: 26px;

        min-width: 26px;
    }

    .eliminar-btn {
        width: 26px;
        height: 26px;

        flex-basis: 26px;
    }

    .carrito-footer {
        padding: 13px 14px;
    }

    .carrito-total-container {
        font-size: 0.8rem;
    }

    .carrito-total-container strong {
        font-size: 1.1rem;
    }

    .carrito-wsp-btn {
        min-height: 44px;

        font-size: 0.72rem;
    }


    /* Hero */

    .hero {
        min-height: 410px;
    }

    .hero-content {
        padding: 0 18px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        max-width: 330px;

        font-size: 0.85rem;
    }

    .hero-btn {
        padding: 12px 22px;

        font-size: 0.75rem;
    }


    /* Categorías */

    .categorias-superiores {
        padding: 25px 15px;

        gap: 12px;
    }

    .categoria-card img {
        height: 180px;
    }

    .categoria-card span {
        font-size: 0.9rem;
    }


    /* Productos */

    .productos-section {
        padding: 45px 15px;
    }

    .productos-header h2 {
        font-size: 1.75rem;
    }

    .productos-header p {
        font-size: 0.82rem;
    }

    .producto-imagen {
        height: 280px;
    }

    .producto-info {
        padding: 20px;
    }

    .add {
        font-size: 0.9rem;

        padding: 13px;
    }
}


/* =========================================================
   MUY PEQUEÑO — 380PX
   ========================================================= */

@media (max-width: 380px) {

    .topbar {
        padding: 9px 8px;

        gap: 2px;
    }

    .logo {
        max-width: calc(100% - 82px);
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .logo p {
        font-size: 0.40rem;
    }

    .header-right {
        width: auto !important;

        gap: 0;
    }

    .carrito-icono {
        width: 37px;
        height: 37px;

        flex-basis: 37px;

        font-size: 21px;
    }

    .menu-toggle {
        width: 37px;
        height: 37px;

        flex-basis: 37px;
    }

    .menu-toggle span {
        width: 21px;
    }


    /* Carrito */

    .carrito-dropdown {
        width: min(360px, calc(100vw - 12px));
        max-width: calc(100vw - 40px);

        top: calc(100% + 7px);
        right: -30px;
        left: auto;

        max-height: calc(100vh - 75px);
        max-height: calc(100dvh - 75px);

        border-radius: 9px;
    }

    .carrito-header {
        padding: 13px 14px;
    }

    .carrito-header h3 {
        font-size: 1.05rem;
    }

    #carrito-items {
        max-height: 42dvh;

        padding-left: 12px;
        padding-right: 12px;
    }

    .carrito-item {
        gap: 4px;

        padding: 11px 0;
    }

    .carrito-item-info h4 {
        font-size: 0.72rem;
    }

    .carrito-item-info p {
        font-size: 0.67rem;
    }

    .carrito-item-controles {
        gap: 2px;
    }

    .cantidad-btn {
        width: 24px;
        height: 24px;

        min-width: 24px;

        font-size: 14px;
    }

    .carrito-item-controles span {
        min-width: 16px;

        font-size: 11px;
    }

    .eliminar-btn {
        width: 24px;
        height: 24px;

        flex-basis: 24px;

        font-size: 11px;
    }

    .carrito-footer {
        padding: 12px;
    }

    .carrito-total-container {
        font-size: 0.75rem;
    }

    .carrito-total-container strong {
        font-size: 1rem;
    }

    .carrito-wsp-btn {
        min-height: 42px;

        padding: 10px 8px;

        font-size: 0.68rem;
    }


    /* Hero */

    .hero {
        min-height: 380px;
    }

    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.8rem;
    }

    .hero-btn {
        padding: 11px 20px;
    }


    /* Categorías */

    .categoria-card img {
        height: 130px;
    }

    .categoria-card {
        min-height: 130px;
    }


    /* Productos */

    .productos-header h2 {
        font-size: 1.55rem;
    }


    /* Footer */

    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-col h3 {
        font-size: 19px;
    }

    .footer-col p,
    .footer-col a {
        font-size: 14px;
    }
}


/* =========================================================
   SEGURIDAD FINAL DE CLICS
   ========================================================= */

/*
   Evita que elementos invisibles del menú bloqueen
   los botones del carrito o del contenido.
*/

.nav:not(.menu-abierto) {
    pointer-events: none;
}

.nav.menu-abierto {
    pointer-events: auto;
}

.carrito-dropdown:not(.activo) {
    pointer-events: none;
}

.carrito-dropdown.activo {
    pointer-events: auto;
}


/* El botón de WhatsApp siempre debe poder recibir el clic */

.carrito-wsp-btn {
    pointer-events: auto !important;
}


/* =========================================================
   FIN
   ========================================================= */


   

   /* Corregir clics de navegación en desktop y móvil */
.header {
    position: sticky;
    top: 0;
    z-index: 99999;
}

.topbar {
    position: relative;
    z-index: 99999;
}

.nav {
    position: relative;
    z-index: 100000;
    pointer-events: auto;
}

.nav a {
    position: relative;
    z-index: 100001;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
}

/* El menú cerrado no debe bloquear otros elementos */
@media (max-width: 760px) {
    .nav:not(.menu-abierto) {
        pointer-events: none;
    }

    .nav.menu-abierto {
        pointer-events: auto;
    }
}

/* ================================
   NAVEGACIÓN — CORRECCIÓN CLICS
================================ */

.nav {
    position: relative;
    z-index: 10002;
}

.nav a {
    position: relative;
    z-index: 10003;
    pointer-events: auto;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 760px) {

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;

        z-index: 10002;

        /* Mantener tu comportamiento responsive */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
    }

    .nav.menu-abierto {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        position: relative;
        z-index: 10003;
        pointer-events: auto;
    }

    /*
       El header-right no puede quedar
       por encima del menú abierto.
    */
    .header-right {
        z-index: 10001;
    }

    .menu-toggle {
        position: relative;
        z-index: 10004;
    }
}