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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: #faf8f6;
    color: #2b2525;
    line-height: 1.6;
}

/* HEADER */

.header {
    background-color: #ffffff;
    padding: 20px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.logo {
    color: #2b2525;
    text-decoration: none;
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-list a {
    color: #2b2525;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-list a:hover {
    color: #b47b7b;
}

/* HERO */

.hero {
    min-height: 85vh;
    background-image: linear-gradient(
        rgba(55, 40, 40, 0.35),
        rgba(55, 40, 40, 0.35)
    ), url("../img/piel.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: "Playfair Display", serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-content > p:not(.hero-subtitle) {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* BOTONES */

.btn {
    display: inline-block;
    background-color: #2b2525;
    color: white;
    text-decoration: none;
    border: none;
    padding: 13px 28px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background-color: #b47b7b;
}

/* SECCIONES */

.section {
    padding: 90px 7%;
}

.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title p,
.section-subtitle {
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: #b47b7b;
    margin-bottom: 8px;
}

.section-title h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
}

/* PRODUCTOS */

.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.producto {
    background-color: white;
    width: 280px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.producto > img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

/* PRODUCTO CON DOS FOTOS */

.producto-imagenes {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.producto-imagenes img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.producto-info {
    padding: 20px;
}

.categoria {
    display: block;
    color: #b47b7b;
    font-size: 0.68rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.producto-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.producto-info p {
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 15px;
}

.precio {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-producto {
    color: #2b2525;
    text-decoration: none;
    border-bottom: 1px solid #2b2525;
    font-size: 0.82rem;
    transition: 0.3s;
}

.btn-producto:hover {
    color: #b47b7b;
    border-color: #b47b7b;
}

/* NOSOTROS */

.nosotros {
    background-color: #f0e7e4;
    display: flex;
    align-items: center;
    gap: 70px;
}

.nosotros-imagen,
.nosotros-info {
    flex: 1;
}

.nosotros-imagen img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.nosotros-info h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 10px 0 25px;
}

.nosotros-info p:not(.section-subtitle) {
    color: #5f5757;
    margin-bottom: 18px;
    max-width: 550px;
}

.nosotros-info .btn {
    margin-top: 10px;
}

/* RESEÑAS */

.section-resenas {
    background-color: #faf8f6;
}

.resenas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.resena {
    background-color: white;
    padding: 30px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
}

.estrellas {
    color: #c3956f;
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.resena p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.resena h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

/* CONTACTO */

.contacto {
    background-color: #f0e7e4;
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

.contacto-info,
.formulario {
    flex: 1;
}

.contacto-info h2 {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    margin: 10px 0 20px;
}

.contacto-info > p:not(.section-subtitle) {
    color: #555;
    max-width: 450px;
}

.sociales {
    display: flex;
    gap: 18px;
    margin-top: 30px;
}

.sociales a,
.footer-sociales a {
    color: #2b2525;
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.3s;
}

.sociales a:hover,
.footer-sociales a:hover {
    color: #b47b7b;
}

/* FORMULARIO */

.formulario {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.formulario label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.formulario input,
.formulario select,
.formulario textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid #ddd;
    background-color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
}

.formulario input:focus,
.formulario select:focus,
.formulario textarea:focus {
    outline: none;
    border-color: #b47b7b;
}

.formulario textarea {
    resize: vertical;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-reset {
    background-color: transparent;
    color: #2b2525;
    border: 1px solid #2b2525;
    padding: 13px 28px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    transition: 0.3s;
}

.btn-reset:hover {
    background-color: #2b2525;
    color: white;
}

/* FOOTER */

.footer {
    background-color: #2b2525;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.footer h2 {
    font-family: "Playfair Display", serif;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.footer p {
    color: #ccc;
    font-size: 0.85rem;
}

.footer-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-sociales a {
    color: white;
}

.footer-sociales a:hover {
    color: #d8a5a5;
}

.copyright {
    margin-top: 25px;
    font-size: 0.75rem !important;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .header {
        flex-direction: column;
        gap: 15px;
        padding: 18px 5%;
    }

    .nav-list {
        gap: 13px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        min-height: 75vh;
        padding: 30px 20px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-content > p:not(.hero-subtitle) {
        font-size: 0.95rem;
    }

    .section {
        padding: 60px 5%;
    }

    .section-title h2 {
        font-size: 2.3rem;
    }

    .productos {
        flex-direction: column;
        align-items: center;
    }

    .producto {
        width: 100%;
        max-width: 350px;
    }

    .producto-imagenes img {
        height: 210px;
    }

    .nosotros {
        flex-direction: column;
        gap: 40px;
    }

    .nosotros-imagen,
    .nosotros-info {
        width: 100%;
    }

    .nosotros-info h2 {
        font-size: 2.4rem;
    }

    .resenas {
        grid-template-columns: 1fr;
    }

    .contacto {
        flex-direction: column;
        gap: 40px;
    }

    .contacto-info,
    .formulario {
        width: 100%;
    }

    .contacto-info h2 {
        font-size: 2.5rem;
    }

    .form-buttons {
        flex-wrap: wrap;
    }
}


/* Funciones del proyecto final, manteniendo el diseño original de Lena Beauty */
#products-status { min-height: 1.5rem; text-align: center; margin-bottom: 1.5rem; }
.btn-producto {
    display: inline-block;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #2b2525;
    border-radius: 0;
    background: transparent;
    color: #2b2525;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.3s;
}
.btn-producto:hover, .btn-producto:focus-visible {
    color: #b47b7b;
    border-color: #b47b7b;
    background: transparent;
}
.carrito-section { background-color: #fff; }
.cart-total { display: flex; justify-content: flex-end; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.cart-total p { margin: 0; font-size: 1.2rem; }
.cart-quantity { width: 78px; padding: 7px; border: 1px solid #ddd; }
.btn-remove { border: 1px solid #b47b7b; background: transparent; color: #7b4141; padding: 6px 10px; cursor: pointer; }
:focus-visible { outline: 3px solid #b47b7b; outline-offset: 3px; }
@media (max-width: 768px) { .cart-total { justify-content: center; } }


/* Contenido multimedia de la entrega final */
.multimedia-section { background-color: #faf8f6; }
.multimedia-description { max-width: 720px; margin: 0 auto 22px; text-align: center; color: #666; line-height: 1.7; }
.video-container { position: relative; width: min(100%, 820px); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #2b2525; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-credit { text-align: center; margin-top: 10px; font-size: .8rem; color: #666; }
.video-credit a { color: #7b4141; }


/* Tarjetas generadas con Fetch API dentro de la sección Productos existente */
.api-products-block { margin-top: 54px; padding-top: 28px; border-top: 1px solid #e8dedb; }
.api-subtitle { margin-bottom: 12px; }
.api-subtitle h3 { font-family: inherit; font-size: 1.5rem; font-weight: 500; }
.api-note { max-width: 720px; margin: 0 auto 20px; text-align: center; color: #666; line-height: 1.6; font-size: .9rem; }
.api-producto { display: flex; flex-direction: column; }
.api-producto .producto-info { flex: 1; }
.multimedia-section { background-color: #faf8f6; }
.multimedia-description { max-width: 720px; margin: 0 auto 22px; text-align: center; color: #666; line-height: 1.7; }
.video-container { position: relative; width: min(100%, 820px); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; background: #2b2525; }
.video-container iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-credit { text-align: center; margin-top: 10px; font-size: .8rem; color: #666; }
.video-credit a { color: #7b4141; }
@media (max-width: 768px) { .video-container { aspect-ratio: 16 / 9; } }

/* Recomendaciones integradas al catálogo */
.api-products-block { margin-top: 42px; padding-top: 24px; border-top: 1px solid #e8dedb; }
.api-producto .btn-producto { margin-top: 14px; }


/* Accesibilidad: salto al contenido y foco visible para navegación por teclado */
.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 9999;
    padding: 10px 14px;
    background: #ffffff;
    color: #493b3b;
    border: 2px solid #c9a7a2;
    border-radius: 6px;
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible {
    outline: 3px solid #9b6d68;
    outline-offset: 3px;
}


/* Identidad visual refinada: tipografía, movimiento sutil y tarjetas interactivas */
:root {
    --lb-rose: #b47b7b;
    --lb-rose-dark: #895c60;
    --lb-blush: #f4e9e6;
    --lb-ink: #302727;
    --lb-shadow: 0 16px 38px rgba(65, 42, 42, .10);
}
body { color: var(--lb-ink); }
h1, h2, h3, .logo, .section-title h2 {
    text-wrap: balance;
}
.section-title h2 {
    font-family: "Playfair Display", Georgia, serif;
    letter-spacing: .2px;
}
.section-title > p, .hero-subtitle {
    color: var(--lb-rose-dark);
    font-weight: 600;
    letter-spacing: 3px;
}
.hero {
    position: relative;
    isolation: isolate;
    background-attachment: fixed;
}
.hero-content {
    animation: lb-rise .9s ease both;
}
.hero h1 {
    text-shadow: 0 5px 24px rgba(0,0,0,.22);
    letter-spacing: -.8px;
}
.btn, .btn-producto, .btn-reset {
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover, .btn-producto:hover, .btn-reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 22px rgba(137, 92, 96, .18);
}
.productos .producto {
    overflow: hidden;
    border: 1px solid rgba(180, 123, 123, .12);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(54, 36, 36, .045);
    transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
    animation: lb-rise .65s ease both;
}
.productos .producto:hover {
    transform: translateY(-7px);
    border-color: rgba(180, 123, 123, .42);
    box-shadow: var(--lb-shadow);
}
.productos .producto img {
    cursor: zoom-in;
    transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s ease;
    transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
}
.productos .producto:hover img {
    transform: scale(1.28);
    filter: saturate(1.06);
}
.productos .producto img:focus-visible {
    outline: 3px solid var(--lb-rose);
    outline-offset: -4px;
}
.producto-info h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.18rem;
    line-height: 1.3;
}
.producto-info .precio {
    color: var(--lb-rose-dark);
    font-weight: 700;
    letter-spacing: .2px;
}
.api-products-block {
    background: linear-gradient(180deg, rgba(244,233,230,.38), rgba(255,255,255,0));
    border-radius: 18px;
    padding: 32px 18px 12px;
}
.api-note { color: #665b59; }
.image-lightbox[hidden] { display: none; }
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 3vw, 34px);
    padding: 70px 24px 32px;
    background: rgba(24, 18, 18, .92);
    backdrop-filter: blur(9px);
}
.image-lightbox figure {
    margin: 0;
    max-width: min(82vw, 1050px);
    max-height: 78vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.image-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 65px rgba(0,0,0,.35);
    transform-origin: center center;
    transition: transform .12s ease-out;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}
.image-lightbox figcaption {
    color: #fff;
    text-align: center;
    font-size: .95rem;
}
.lightbox-zoom-controls {
    position: absolute;
    top: 20px;
    left: 24px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.lightbox-zoom-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.lightbox-zoom-controls button:hover {
    background: rgba(255,255,255,.25);
    transform: scale(1.06);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    border: 1px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(255,255,255,.25);
    transform: scale(1.06);
}
.lightbox-close { top: 20px; right: 24px; width: 46px; height: 46px; font-size: 2rem; line-height: 1; }
.lightbox-prev, .lightbox-next { width: 48px; height: 48px; font-size: 2rem; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
body.lightbox-open { overflow: hidden; }
@keyframes lb-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes lb-zoom-in {
    from { opacity: .6; transform: scale(.96); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 700px) {
    .hero { background-attachment: scroll; min-height: 68vh; }
    .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
    .image-lightbox { padding: 82px 12px 28px; }
    .lightbox-zoom-controls { top: 16px; left: 12px; }
    .lightbox-zoom-controls button { width: 38px; height: 38px; }
    .image-lightbox figure { max-width: 100%; }
    .image-lightbox figure img { max-height: 72vh; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Botones de compra unificados para todo el catálogo y recomendaciones */
.productos .producto {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #fff;
}
.productos .producto-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
}
.productos .producto-info .precio {
    margin-top: auto;
    padding-top: 4px;
    margin-bottom: 16px;
    color: #302727;
    font-size: 1.35rem;
    font-weight: 700;
}
.productos .producto .btn-producto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: #c78383;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.productos .producto .btn-producto::before {
    content: "";
    display: inline-block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.productos .producto .btn-producto:hover,
.productos .producto .btn-producto:focus-visible {
    background: #a9686c;
    color: #fff;
    border: 0;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(137, 92, 96, .22);
}
.productos .producto .btn-producto:active { transform: translateY(0); }
@media (max-width: 480px) {
    .productos .producto-info { padding: 17px; }
    .productos .producto .btn-producto { min-height: 46px; font-size: .86rem; }
}
