:root {
    --rosa: #e7b9c4;
    --rosa-claro: #f8e9ec;
    --crema: #fffaf7;
    --verde: #69715c;
    --verde-oscuro: #56604b;
    --verde-claro: #edf0e9;
    --dorado: #c7a36b;
    --texto: #403739;
    --gris: #756a6e;
    --blanco: #ffffff;
    --borde: #eadde0;
}


/* =========================
   GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: var(--crema);
    color: var(--texto);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 250, 247, 0.98);
    border-bottom: 1px solid var(--borde);
}

.header-container {
    max-width: 1200px;
    min-height: 100px;
    margin: 0 auto;
    padding: 12px 30px;

    display: grid;
    grid-template-columns: 180px 1fr 180px;

    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    width: 145px;
    height: auto;
    display: block;
}


/* =========================
   MENÚ
========================= */

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
}

.nav a {
    color: var(--verde-oscuro);
    font-size: 15px;
    font-weight: bold;
    transition: 0.2s;
}

.nav a:hover {
    color: var(--rosa);
}


/* =========================
   CARRITO SUPERIOR
========================= */

.cart-button {
    justify-self: end;

    border: none;
    background: var(--verde);
    color: white;

    padding: 11px 18px;

    border-radius: 30px;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.cart-button:hover {
    background: var(--verde-oscuro);
    transform: translateY(-2px);
}


/* =========================
   SECCIONES
========================= */

.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: 90px 0;
}

.section-label {
    text-align: center;
    color: var(--dorado);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    color: var(--verde-oscuro);
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-text {
    max-width: 650px;
    margin: 0 auto 45px;

    text-align: center;

    color: var(--gris);
    font-size: 17px;
}


/* =========================
   INICIO
========================= */

.hero {
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at top,
            #ffffff 0%,
            var(--crema) 65%
        );
}

.hero-content {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.hero-small {
    color: var(--dorado);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero h1 {
    color: var(--verde-oscuro);
    font-family: Georgia, serif;
    font-size: 62px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--rosa);
}

.hero-text {
    max-width: 680px;
    margin: 0 auto;

    color: var(--gris);
    font-size: 19px;
}

.hero-buttons {
    margin-top: 35px;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;
    flex-wrap: wrap;
}


/* =========================
   BOTONES
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;

    padding: 13px 24px;

    border-radius: 30px;

    border: none;

    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

.btn-primary {
    background: var(--verde);
    color: white;
}

.btn-primary:hover {
    background: var(--verde-oscuro);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--rosa-claro);
    color: var(--verde-oscuro);
}

.btn-secondary:hover {
    background: var(--rosa);
}


/* =========================
   CATEGORÍAS
========================= */

.categories {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;

    max-width: 1050px;
    margin: 0 auto;
}

.category-card {
    width: 100%;

    background: var(--blanco);

    border: 1px solid var(--borde);

    border-radius: 22px;

    padding: 30px 20px;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

.category-card:hover {
    transform: translateY(-5px);

    border-color: var(--rosa);

    box-shadow:
        0 12px 30px rgba(86, 96, 75, 0.10);
}

.category-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--rosa-claro);

    border-radius: 50%;

    font-size: 31px;
}

.category-card h3 {
    color: var(--verde-oscuro);

    font-family: Georgia, serif;

    font-size: 21px;

    margin-bottom: 7px;
}

.category-card p {
    color: var(--gris);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================
   TIENDA
========================= */

.shop-section {
    background: #fffdfb;
}

.products {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 25px;

    justify-content: center;
}


/* PRODUCTO */

.product-card {
    width: 100%;
    max-width: 280px;

    justify-self: center;

    background: var(--blanco);

    border: 1px solid var(--borde);

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(86, 96, 75, 0.08);

    transition: 0.25s;
}

.product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(86, 96, 75, 0.13);
}

.product-image {
    width: 100%;
    height: 230px;

    background: var(--verde-claro);

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    color: var(--verde-oscuro);

    font-family: Georgia, serif;

    font-size: 21px;

    margin-bottom: 5px;
}

.product-category {
    color: var(--gris);

    font-size: 13px;

    margin-bottom: 8px;
}

.product-description {
    color: var(--gris);

    font-size: 14px;

    line-height: 1.5;

    margin: 10px 0;
}

.product-price {
    color: var(--verde-oscuro);

    font-size: 22px;

    font-weight: bold;

    margin: 12px 0 5px;
}

.product-stock {
    color: #5f7650;

    font-size: 13px;

    font-weight: bold;

    margin-bottom: 15px;
}

.product-info .btn {
    width: 100%;
}


/* =========================
   NOSOTROS
========================= */

.about {
    background: var(--rosa-claro);
}

.about-content {
    max-width: 750px;
    margin: 0 auto;

    text-align: center;
}

.about-content p:not(.section-label) {
    color: var(--gris);

    margin-bottom: 15px;

    font-size: 16px;
}


/* =========================
   BENEFICIOS
========================= */

.features {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    max-width: 1000px;

    margin: 0 auto;
}

.feature {
    background: white;

    border: 1px solid var(--borde);

    border-radius: 22px;

    padding: 32px 22px;

    text-align: center;
}

.feature-icon {
    font-size: 36px;

    margin-bottom: 12px;
}

.feature h3 {
    color: var(--verde-oscuro);

    font-family: Georgia, serif;

    margin-bottom: 8px;
}

.feature p {
    color: var(--gris);

    font-size: 14px;
}


/* =========================
   CONTACTO
========================= */

.contact {
    background: var(--verde-claro);

    text-align: center;
}

.contact-buttons {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: var(--verde-oscuro);

    color: white;

    text-align: center;

    padding: 45px 20px;
}

.footer-logo {
    width: 105px;

    background: white;

    border-radius: 50%;

    padding: 5px;

    margin-bottom: 15px;
}

.footer p {
    margin-bottom: 8px;
}

.footer-small {
    max-width: 450px;

    margin: 0 auto 20px;

    opacity: 0.85;

    font-size: 14px;
}

.copyright {
    opacity: 0.65;

    font-size: 12px;

    margin-top: 20px;
}


/* =========================
   CARRITO
========================= */

.modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 2000;

    background: rgba(0, 0, 0, 0.45);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;

    width: 100%;

    max-width: 550px;

    max-height: 85vh;

    overflow-y: auto;

    background: white;

    border-radius: 25px;

    padding: 30px;
}

.modal-close {
    position: absolute;

    top: 12px;
    right: 18px;

    border: none;

    background: none;

    font-size: 30px;

    color: var(--gris);

    cursor: pointer;
}

.modal h2 {
    color: var(--verde-oscuro);

    font-family: Georgia, serif;

    margin-bottom: 20px;
}

.cart-item {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 15px 0;

    border-bottom: 1px solid var(--borde);
}

.cart-total {
    text-align: right;

    margin-top: 20px;

    font-size: 20px;

    font-weight: bold;

    color: var(--verde-oscuro);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

    .header-container {
        grid-template-columns: 150px 1fr 150px;
    }

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 13px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        max-width: 310px;
    }
}


/* =========================
   CELULAR
========================= */

@media (max-width: 700px) {

    .header-container {
        display: flex;

        flex-wrap: wrap;

        justify-content: center;

        padding: 15px 20px;
    }

    .logo {
        width: 100%;

        justify-content: center;
    }

    .logo img {
        width: 125px;
    }

    .nav {
        width: 100%;

        order: 2;

        justify-content: center;

        flex-wrap: wrap;

        gap: 12px;
    }

    .cart-button {
        order: 3;

        justify-self: auto;

        margin-top: 5px;
    }

    .hero {
        min-height: 500px;

        padding: 70px 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 17px;
    }

    .section {
        padding: 65px 0;
    }

    .section-title {
        font-size: 34px;
    }

    .categories {
        grid-template-columns: 1fr 1fr;

        gap: 15px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 340px;
    }

    .features {
        grid-template-columns: 1fr;
    }
}


/* =========================
   CELULAR PEQUEÑO
========================= */

@media (max-width: 430px) {

    .categories {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 35px;
    }

    .section-title {
        font-size: 30px;
    }

    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn,
    .contact-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}
/* ==============================
   VENTANA EMERGENTE DE PRODUCTOS
============================== */

.modal-detalle-producto {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(40, 25, 30, 0.65);
    padding: 20px;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-detalle-producto.abierto {
    display: flex;
}

.detalle-producto-contenido {
    position: relative;
    background: #fffafa;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.detalle-cerrar {
    position: sticky;
    top: 0;
    float: right;
    margin-top: -12px;
    margin-right: -10px;
    border: none;
    background: #f4e1e6;
    color: #805965;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.detalle-producto-imagen {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 15px;
    margin: 10px auto 20px;
}

#detalle-producto-titulo {
    color: #8f6170;
    margin: 15px 0;
}

.detalle-producto-descripcion {
    color: #555;
    line-height: 1.7;
    white-space: pre-line;
    overflow-wrap: anywhere;
    text-align: left;
    margin: 18px 0;
}

.detalle-producto-contenido .product-price {
    font-size: 24px;
    font-weight: bold;
    color: #8f6170;
}

.detalle-producto-contenido .detalle-agregar {
    width: 100%;
    margin-top: 15px;
}

.product-card .product-image,
.product-card .product-info h3 {
    cursor: pointer;
}

@media (max-width: 480px) {
    .modal-detalle-producto {
        padding: 12px;
    }

    .detalle-producto-contenido {
        padding: 20px;
        border-radius: 18px;
    }

    .detalle-producto-imagen {
        max-height: 250px;
    }
}
/* =====================================
   TARJETAS DE PRODUCTOS ORDENADAS
===================================== */

#products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

#products .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

#products .product-image {
    width: 100%;
    height: 190px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#products .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: stretch;
}

#products .product-info h3 {
    min-height: 3.2em;
    line-height: 1.6;
    margin-bottom: 8px;
}

#products .product-category {
    margin-bottom: 8px;
}

#products .product-price {
    margin-top: auto;
    padding-top: 10px;
}

#products .product-stock {
    margin-bottom: 12px;
}

#products .btn-ver-producto,
#products .btn-agregar-producto {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    #products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    #products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #products .product-image {
        height: 135px;
    }

    #products .product-card {
        padding: 10px;
    }

    #products .product-info h3 {
        font-size: 14px;
        min-height: 3.2em;
    }

    #products .btn-ver-producto,
    #products .btn-agregar-producto {
        font-size: 12px;
        padding: 8px 4px;
    }
}
.shipping-note {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    margin: 12px 0;
}
/* =========================================
   AJUSTES PARA CELULAR
   ========================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

@media (max-width: 768px) {

    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
    }

    .logo img {
        height: 46px;
        width: auto;
    }

    .nav {
        order: 3;
        width: 100%;
        display: flex;
        gap: 6px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
    }

    .nav a {
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 14px;
    }

    .cart-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .hero {
        padding: 48px 16px;
    }

    .hero h1 {
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.15;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 44px 0;
    }

    .section-title {
        font-size: 26px;
    }

    .categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        padding: 16px 10px;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-image img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 16px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-info .btn {
        width: 100%;
        font-size: 13px;
        padding: 10px 8px;
        margin-top: 6px;
    }

    .features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .contact-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 94%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 20px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-controls {
        width: 100%;
        justify-content: space-between;
    }

    .checkout-content input,
    .checkout-content select {
        width: 100%;
        font-size: 16px;
    }

    .detalle-producto-contenido {
        width: 94%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .detalle-producto-imagen {
        width: 100%;
    }
}

@media (max-width: 380px) {

    .products {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   AVISO DE LA TIENDA
   ========================================= */

.aviso-tienda {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 20px);
    z-index: 3000;

    display: flex;
    align-items: center;
    gap: 14px;

    max-width: min(92vw, 420px);
    padding: 14px 18px;

    background: #ffffff;
    color: #5b765f;
    border: 1px solid #f0d9de;
    border-left: 6px solid #e9b6bd;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(143, 97, 112, 0.22);

    font-size: 15px;
    font-weight: bold;
    line-height: 1.4;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.aviso-tienda.visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.aviso-tienda.aviso-alerta {
    border-left-color: #d9b86c;
    color: #8f6170;
}

.aviso-texto {
    flex: 1;
}

.aviso-boton {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: #5b765f;
    color: #ffffff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

.aviso-boton:hover {
    background: #4b644f;
}
/* =========================================
   SECCIÓN "MI HISTORIA" CON ILUSTRACIÓN
   ========================================= */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 48px;
}

.about-layout .about-content {
    max-width: none;
    margin: 0;
    text-align: left;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    mix-blend-mode: multiply;
}

@media (max-width: 768px) {

    .about-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 240px;
    }
}