/* === base/variables.css === */
:root {
    --white: #ffffff;
    --gold: #f6bf64;
    --black: #000000;
    --header-h: 140px;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Montserrat", system-ui, sans-serif;
}

@media (max-width: 640px) {
    :root {
        --header-h: 200px;
    }
}

/* === base/reset.css === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.container {
    width: min(1360px, 94vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1.25rem;
    color: var(--black);
    background: var(--gold);
    border-radius: 8px;
    font-weight: 700;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* === base/fonts.css === */
/* Fuentes self-hosted — evita el round-trip a fonts.googleapis.com/fonts.gstatic.com */
/* Ruta relativa asume que este archivo termina bundleado en public/assets/css/bundle.css
   (ver build-css.js). Si se sirve standalone desde css/base/, ajustar a ../../fonts/ */

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/montserrat.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-700.woff2') format('woff2');
}

/* === base/typography.css === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    padding-top: var(--header-h);
    font-family: var(--font-body);
    color: var(--white);
    background: var(--black);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* === components/header.css === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--black);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.site-header--scrolled {
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}

.site-header--hidden {
    transform: translateY(-100%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header-h);
    transition: min-height 0.4s ease;
}

.site-header--compact .site-header__inner {
    min-height: 86px;
}

.site-header__left {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.logo__img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    transition: width 0.4s ease, height 0.4s ease;
}

.site-header--compact .logo__img {
    width: 76px;
    height: 76px;
}

.site-header__divider {
    width: 1px;
    height: 72px;
    background: rgba(255, 255, 255, 0.35);
    transition: height 0.4s ease;
}

.site-header--compact .site-header__divider {
    height: 44px;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .site-header__divider {
        display: none;
    }

    .site-header__inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 0;
    }
}

@media (max-width: 640px) {
    .site-header__actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* === components/nav.css === */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.85rem, 1.8vw, 1.75rem);
}

.nav__link {
    position: relative;
    padding: 0.4rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav__link--active::after,
.nav__link:hover::after {
    transform: scaleX(1);
}

.nav__cerrar {
    display: none;
}

.nav-overlay {
    display: none;
}

/* Botón hamburguesa: solo visible en tablet/mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.nav-toggle__linea {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-activo .nav-toggle__linea:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-activo .nav-toggle__linea:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-activo .nav-toggle__linea:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 150;
        background: rgba(0, 0, 0, 0.75);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 151;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: min(78vw, 300px);
        height: 100vh;
        padding: 5rem 2rem 2rem;
        background: #0d0d0d;
        border-left: 1px solid rgba(246, 191, 100, 0.35);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.5);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        overflow-y: auto;
    }

    .nav.is-abierto {
        transform: translateX(0);
    }

    .nav__cerrar {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        color: var(--white);
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .nav__cerrar:hover {
        color: var(--black);
        background: var(--gold);
        transform: rotate(90deg);
    }

    .nav__link {
        font-size: 0.9rem;
    }
}

/* === components/search.css === */
.search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(280px, 32vw);
    padding: 0.6rem 1.15rem;
    border: 1.5px solid var(--gold);
    border-radius: 999px;
}

.search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.8rem;
    color: var(--white);
}

.search__input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.search__btn {
    display: flex;
    color: var(--gold);
}

@media (max-width: 640px) {
    .search {
        width: 100%;
    }
}

/* === components/cart.css === */
.cart {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

.cart__badge {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--black);
    background: var(--gold);
    border-radius: 999px;
}

/* === components/hero.css === */
.hero-slider {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    overflow: hidden;
    background: var(--black);
}

.hero-slider__slides {
    position: relative;
    min-height: calc(100vh - var(--header-h));
}

/* Spotlight que sigue al mouse */
.hero-slider__spotlight {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: radial-gradient(
        circle 320px at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(246, 191, 100, 0.16),
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-slider:hover .hero-slider__spotlight {
    opacity: 1;
}

.hero-slide {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s;
    background-color: var(--black);
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Capa de fondo separada para poder animar el zoom (Ken Burns) */
.hero-slide__bg {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: 72% center;
    background-size: cover;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}

.hero-slide.is-active .hero-slide__bg {
    transform: scale(1.16);
    transition: transform 7s ease-out;
}

.hero-slide--zoom-out .hero-slide__bg {
    background-size: 78% auto;
    background-position: 82% center;
    transform: scale(1);
}

.hero-slide--zoom-out.is-active .hero-slide__bg {
    transform: scale(1.06);
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    padding: 3rem 0 5rem;
}

.hero__content {
    max-width: 560px;
}

/* Título con líneas que entran escalonadas */
.hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__title-line span {
    display: block;
    transform: translateY(110%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.is-active .hero__title-line span {
    transform: translateY(0);
}

.hero-slide.is-active .hero__title-line:nth-child(1) span { transition-delay: 0.15s; }
.hero-slide.is-active .hero__title-line:nth-child(2) span { transition-delay: 0.28s; }
.hero-slide.is-active .hero__title-line:nth-child(3) span { transition-delay: 0.41s; }

.hero__line {
    display: block;
    width: 72px;
    height: 2px;
    margin: 1.5rem 0 1.35rem;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.55s;
}

.hero-slide.is-active .hero__line {
    transform: scaleX(1);
}

.hero__text {
    margin: 0 0 2.25rem;
    max-width: 36ch;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.65s, transform 0.6s ease 0.65s;
}

.hero-slide.is-active .hero__text {
    opacity: 1;
    transform: translateY(0);
}

.btn-hero {
    display: inline-block;
    padding: 0.95rem 2.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Animación de aparición: solo para los botones del hero-slider */
.hero-slide .btn-hero {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.75s, transform 0.6s ease 0.75s, background 0.2s ease, color 0.2s ease;
}

.hero-slide.is-active .btn-hero {
    opacity: 1;
    transform: translateY(0);
}

.btn-hero:hover {
    background: transparent;
    color: var(--gold);
}

/* Flechas de navegación manual */
.hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transform: translateY(-50%);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.hero__arrow:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.08);
}

.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }

.hero__dots {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
}

.hero__dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 2px solid var(--white);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hero__dot--active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.15);
}

@media (max-width: 960px) {
    .hero__arrow { display: none; }

    .hero__inner {
        justify-content: center;
        text-align: center;
    }

    .hero__line { margin-inline: auto; }
    .hero__text { margin-inline: auto; }

    .hero-slide__bg {
        background-position: 75% center;
        background-size: cover;
    }

    .hero-slide--zoom-out .hero-slide__bg {
        background-size: 90% auto;
        background-position: center center;
    }
}

@media (max-width: 640px) {
    .hero-slider,
    .hero-slider__slides {
        min-height: 480px;
        min-height: calc(100vh - var(--header-h));
    }

    .hero-slide {
        position: relative;
        top: auto; right: auto; bottom: auto; left: auto;
        display: none;
        min-height: calc(100vh - var(--header-h));
    }

    .hero-slide.is-active { display: block; }

    .hero__inner {
        min-height: calc(100vh - var(--header-h));
        padding: 2rem 0 4.5rem;
    }

    .hero__title { font-size: 2rem; }
}

@supports (height: 100dvh) {
    @media (max-width: 640px) {
        .hero-slider,
        .hero-slider__slides,
        .hero-slide,
        .hero__inner {
            min-height: calc(100dvh - var(--header-h));
        }
    }
}

/* === components/product-card.css === */
.categoria {
    margin-bottom: 3.5rem;
}

.categoria__title {
    position: relative;
    margin: 0 0 1.75rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.categoria__title::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: 0.75rem auto 0;
    background: var(--gold);
    opacity: 0.6;
}

.categoria__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.producto-card {
    position: relative;
    height: 100%;
}

.producto-card__enlace {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(246, 191, 100, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 14, 4, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.producto-card:hover .producto-card__enlace {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 38px rgba(20, 14, 4, 0.42), 0 8px 20px rgba(246, 191, 100, 0.2);
}

.producto-card__img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 190px;
    padding: 1.5rem;
    background: #ffffff;
}

.producto-card__img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.producto-card:hover .producto-card__img img {
    transform: scale(1.05);
}

.producto-card__badge {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffffff;
    background: #d92c2c;
    border-radius: 6px;
    z-index: 1;
}

.producto-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0.9rem 1.1rem 1.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.producto-card__precio {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
}

.producto-card__precio-actual {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111111;
}

.producto-card__precio-anterior {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: line-through;
}

.producto-card__nombre {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: 2.3em;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #1a1a1a;
}

.producto-card__agregar {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--gold);
    background: #ffffff;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(20, 14, 4, 0.28);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.producto-card__agregar:hover {
    color: #ffffff;
    background: var(--gold);
    transform: scale(1.08);
}



@media (max-width: 640px) {
    .categoria__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .producto-card__img {
        height: 150px;
    }
}

/* === components/cantidad-modal.css === */
.cantidad-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    margin: 0;
    max-width: min(360px, 90vw);
    max-height: 90vh;
    padding: 2rem 1.75rem 1.75rem;
    overflow-y: auto;
    color: var(--white);
    text-align: center;
    background: #0d0d0d;
    border: 1px solid rgba(246, 191, 100, 0.4);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cantidad-modal[open] {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.cantidad-modal.is-closing {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
}

/* Fallback para navegadores sin @starting-style */
@starting-style {
    .cantidad-modal[open] {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }
}

.cantidad-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cantidad-modal[open]::backdrop {
    opacity: 1;
}

@starting-style {
    .cantidad-modal[open]::backdrop {
        opacity: 0;
    }
}

.cantidad-modal__cerrar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cantidad-modal__cerrar:hover {
    color: var(--black);
    background: var(--gold);
    transform: rotate(90deg);
}

#cantidad-modal-imagen {
    max-width: 100%;
    max-height: 200px;
    margin: 0 auto 1.1rem;
    padding: 0.75rem;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
}

.cantidad-modal__categoria {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.cantidad-modal__nombre {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.cantidad-modal__precio {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.cantidad-modal__precio-actual {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
}

.cantidad-modal__precio-anterior {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
}

.cantidad-modal__stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.cantidad-modal__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    color: var(--gold);
    background: rgba(246, 191, 100, 0.1);
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cantidad-modal__boton:hover {
    color: var(--black);
    background: var(--gold);
}

.cantidad-modal__boton:active {
    transform: scale(0.88);
}

.cantidad-modal__valor {
    min-width: 2ch;
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.15s ease;
}

.cantidad-modal__valor.is-bump {
    transform: scale(1.25);
}

.cantidad-modal__subtotal {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.cantidad-modal__subtotal span {
    font-weight: 700;
    color: var(--white);
}

.cantidad-modal__confirmar {
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cantidad-modal__confirmar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 191, 100, 0.35);
}

/* === components/carrito-panel.css === */
.carrito-panel[hidden] {
    display: block;
    pointer-events: none;
}

.carrito-panel {
    position: fixed;
    inset: 0;
    z-index: 110;
}

.carrito-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.carrito-panel__contenido {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, 100%);
    height: 100%;
    padding: 1.75rem;
    background: #0d0d0d;
    border-left: 1px solid rgba(246, 191, 100, 0.35);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.carrito-panel:not([hidden]) .carrito-panel__overlay {
    opacity: 1;
}

.carrito-panel:not([hidden]) .carrito-panel__contenido {
    transform: translateX(0);
}

.carrito-panel__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.carrito-panel__titulo {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
}

.carrito-panel__cerrar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carrito-panel__cerrar:hover {
    color: var(--black);
    background: var(--gold);
    transform: rotate(90deg);
}

.carrito-panel__lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.carrito-panel__item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    animation: carritoItemEntra 0.35s ease;
}

@keyframes carritoItemEntra {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carrito-panel__item.is-saliendo {
    animation: carritoItemSale 0.25s ease forwards;
}

@keyframes carritoItemSale {
    to {
        opacity: 0;
        transform: translateX(24px);
        max-height: 0;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

.carrito-panel__item-imagen {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.25rem;
}

.carrito-panel__item-nombre {
    margin: 0 0 0.15rem;
    font-size: 0.9rem;
    color: var(--white);
}

.carrito-panel__item-categoria {
    margin: 0 0 0.25rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.carrito-panel__item-precio {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0;
}

.carrito-panel__item-precio-actual {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

.carrito-panel__item-precio-anterior {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.carrito-panel__item-stepper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.carrito-panel__item-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 1rem;
    color: var(--gold);
    background: rgba(246, 191, 100, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.carrito-panel__item-boton:hover {
    color: var(--black);
    background: var(--gold);
}

.carrito-panel__item-boton:active {
    transform: scale(0.85);
}

.carrito-panel__item-cantidad {
    min-width: 1.5ch;
    text-align: center;
    font-size: 0.9rem;
    color: var(--white);
    display: inline-block;
    transition: transform 0.15s ease;
}

.carrito-panel__item-cantidad.is-bump {
    transform: scale(1.3);
}

.carrito-panel__vacio {
    display: none;
    margin: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

.carrito-panel__resumen {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.carrito-panel--vacio .carrito-panel__vacio {
    display: block;
}

.carrito-panel--vacio .carrito-panel__lista,
.carrito-panel--vacio .carrito-panel__resumen,
.carrito-panel--vacio .carrito-panel__enviar {
    display: none;
}

.carrito-panel__enviar {
    display: block;
    width: 100%;
    margin-top: auto;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carrito-panel__enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 191, 100, 0.35);
}

/* === components/carrito-resumen.css === */
.carrito-pagina__lista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.carrito-linea {
    display: grid;
    grid-template-columns: 90px 220px 1fr 190px;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.carrito-linea__imagen {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem;
}

.carrito-linea__nombre {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
}

.carrito-linea__eliminar {
    padding: 0;
    font-size: 0.78rem;
    color: #e05252;
    background: none;
    border: none;
    text-decoration: underline;
}

.carrito-linea__etiqueta {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.carrito-linea__cantidad {
    text-align: center;
    justify-self: end;
    padding-right: 1.5rem;
}

.carrito-linea__cantidad .carrito-linea__etiqueta {
    margin-bottom: 0.7rem !important;
}

.carrito-linea__stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.carrito-linea__boton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 1rem;
    color: var(--gold);
    background: rgba(246, 191, 100, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.carrito-linea__boton:hover {
    color: var(--black);
    background: var(--gold);
}

.carrito-linea__valor {
    min-width: 1.5ch;
    text-align: center;
    font-size: 0.9rem;
    color: var(--white);
}

.carrito-linea__precios {
    text-align: right;
}

.carrito-linea__precio {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: var(--white);
}

.carrito-linea__precio--total {
    font-weight: 700;
    color: var(--gold);
}

.carrito-linea__precio-anterior {
    margin-left: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.carrito-pagina__resumen {
    padding: 1.5rem;
    background: #0d0d0d;
    border: 1px solid rgba(246, 191, 100, 0.35);
    border-radius: 14px;
}

.carrito-pagina__resumen-titulo {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
}

.carrito-pagina__resumen-linea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.carrito-pagina__resumen-linea--total {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    border-bottom: none;
}

.carrito-pagina__enviar {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.15rem 1.5rem;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-align: center;
    box-shadow: 0 8px 22px rgba(246, 191, 100, 0.25);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.carrito-pagina__enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(246, 191, 100, 0.35);
}

@media (max-width: 640px) {
    .carrito-linea {
        grid-template-columns: 70px 1fr;
        row-gap: 0.75rem;
    }

    .carrito-linea__cantidad,
    .carrito-linea__precios {
        grid-column: 2;
        text-align: left;
    }

    .carrito-pagina__enviar {
        padding: 1.05rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* === components/toast.css === */
.toast-contenedor {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.toast {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    background: var(--gold);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast--visible {
    opacity: 1;
    transform: translateY(0);
}

/* === components/footer.css === */
.site-footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__marca {
    color: #8fa3b3;
    font-weight: 600;
}

/* === components/contacto.css === */
.contacto {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 20%, rgba(246, 191, 100, 0.08), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(246, 191, 100, 0.06), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 55%),
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)),
        var(--contacto-bg) center/cover no-repeat;
}

.contacto__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
    animation: contactoFloat 12s ease-in-out infinite;
}

.contacto__orb--1 {
    width: 340px; height: 340px;
    top: -100px; left: -120px;
    background: radial-gradient(circle, rgba(246, 191, 100, 0.3), transparent 70%);
}

.contacto__orb--2 {
    width: 280px; height: 280px;
    bottom: -110px; right: -90px;
    background: radial-gradient(circle, rgba(246, 191, 100, 0.22), transparent 70%);
    animation-delay: -4s;
}

.contacto__orb--3 {
    width: 200px; height: 200px;
    top: 40%; left: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    animation-delay: -8s;
    animation-duration: 16s;
}

@keyframes contactoFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.15); }
}

.contacto__inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.contacto__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: center;
}

/* ---------- Columna info ---------- */
.contacto__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.contacto__title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--white);
    line-height: 1.1;
}

.contacto__line {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.25rem 0;
}

.contacto__text {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.contacto__info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
}

.contacto__info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contacto__info-list strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.contacto__info-list span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.contacto__info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(246, 191, 100, 0.1);
    color: var(--gold);
    transition: transform 0.3s ease, background 0.3s ease;
}

.contacto__info-list li:hover .contacto__info-icon {
    transform: scale(1.1) rotate(-6deg);
    background: rgba(246, 191, 100, 0.2);
}

/* ---------- Tarjeta con borde giratorio ---------- */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.contacto__card-wrap {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 0deg, var(--gold) 60deg, transparent 140deg, transparent 360deg);
    animation: contactoSpin 5s linear infinite;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    will-change: transform;
}

@keyframes contactoSpin {
    to { --angle: 360deg; }
}

.contacto__card {
    position: relative;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem;
    border-radius: 18px;
    background: #0b0b0b;
}

.contacto__row {
    display: flex;
    gap: 1.5rem;
}

.contacto__field {
    position: relative;
    flex: 1;
}

.contacto__field--small {
    max-width: 200px;
}

.contacto__field-icon {
    position: absolute;
    left: 0;
    top: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.25s ease;
    pointer-events: none;
}

.contacto__field--textarea .contacto__field-icon {
    top: 0.7rem;
}

.contacto__field:focus-within .contacto__field-icon {
    color: var(--gold);
}

.contacto__field input,
.contacto__field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 0.1rem 0.6rem 1.7rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contacto__field textarea { resize: none; }

.contacto__field input:focus,
.contacto__field textarea:focus { outline: none; }

.contacto__field label {
    position: absolute;
    left: 1.7rem;
    top: 0.65rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-body);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.25s ease, color 0.25s ease, left 0.25s ease;
}

.contacto__field input:focus + label,
.contacto__field input:not(:placeholder-shown) + label,
.contacto__field textarea:focus + label,
.contacto__field textarea:not(:placeholder-shown) + label {
    transform: translateY(-1.35rem) scale(0.8);
    left: 0.1rem;
    color: var(--gold);
}

.contacto__underline {
    position: absolute;
    left: 0; bottom: 0;
    height: 2px; width: 0;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(246, 191, 100, 0.6);
    transition: width 0.35s ease;
}

.contacto__field input:focus ~ .contacto__underline,
.contacto__field textarea:focus ~ .contacto__underline {
    width: 100%;
}

.contacto__field--invalid input,
.contacto__field--invalid textarea {
    animation: contactoShake 0.4s ease;
    border-color: #e0625f;
}

@keyframes contactoShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* ---------- Botón ---------- */
.btn-contacto {
    position: relative;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-contacto:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 25px rgba(246, 191, 100, 0.4);
}

.btn-contacto svg { transition: transform 0.25s ease; }
.btn-contacto:hover svg { transform: translateX(4px); }

.btn-contacto::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn-contacto:hover::before { left: 125%; }

@media (max-width: 900px) {
    .contacto__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contacto__card-wrap { animation-duration: 7s; }
}

@media (max-width: 640px) {
    .contacto__row { flex-direction: column; gap: 1.5rem; }
    .contacto__card { padding: 1.75rem 1.25rem; }
}

/* === components/efectos-3d.css === */
/* ============================================================
   Efectos 3D reutilizables — brillo dorado + sombra ambiental
   ============================================================ */

/* Barrido de luz sobre superficies doradas/oscuras.
   El elemento que la use necesita position:relative + overflow:hidden. */
.brillo-dorado {
    overflow: hidden;
}

.brillo-dorado::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.brillo-dorado:hover::after {
    left: 125%;
}

/* Elemento con tilt 3D activado por tilt-3d.js */
[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
}

/* === components/whatsapp-flotante.css === */
.whatsapp-flotante {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #25d366, #1ea952);
    box-shadow: 0 8px 22px rgba(18, 140, 63, 0.4), 0 2px 6px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-flotante:hover,
.whatsapp-flotante:focus-visible {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 12px 28px rgba(18, 140, 63, 0.5), 0 3px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-flotante__icono {
    position: relative;
    z-index: 1;
}

.whatsapp-flotante__pulso {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.55);
    animation: whatsapp-pulso 2.2s ease-out infinite;
}

@keyframes whatsapp-pulso {
    0% {
        transform: scale(1);
        opacity: 0.55;
    }
    75% {
        transform: scale(1.9);
        opacity: 0;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .whatsapp-flotante {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }
}

/* === components/relacionados.css === */
.relacionados {
    position: relative;
    z-index: 1;
    left: 50%;
    width: min(1600px, 97vw);
    transform: translateX(-50%);
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.relacionados__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.relacionados__titulo {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--white);
}

.relacionados__ver-todos {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    transition: opacity 0.2s ease;
}

.relacionados__ver-todos:hover {
    opacity: 0.75;
}

.relacionados__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.relacionados__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.relacionados__track::-webkit-scrollbar {
    display: none;
}

.relacionados__item {
    flex: 0 0 130px;
    scroll-snap-align: start;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.relacionados__item:last-child {
    border-right: none;
}

.relacionados .producto-card__enlace {
    background: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.relacionados .producto-card:hover .producto-card__enlace {
    transform: none;
    box-shadow: none;
}

.relacionados .producto-card__img {
    height: 110px;
    padding: 0.75rem;
}

.relacionados .producto-card__info {
    padding: 0.6rem 0.6rem 0.75rem;
    border-top: none;
}

.relacionados .producto-card__precio-actual {
    font-size: 0.85rem;
}

.relacionados .producto-card__nombre {
    font-size: 0.72rem;
    min-height: 1.9em;
}

.relacionados .producto-card__agregar {
    width: 28px;
    height: 28px;
    top: 0.5rem;
    right: 0.5rem;
}

.relacionados__flecha {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.relacionados__flecha:hover {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

@media (max-width: 640px) {
    .relacionados__item {
        flex-basis: 105px;
    }

    .relacionados .producto-card__img {
        height: 90px;
    }

    .relacionados__flecha {
        width: 32px;
        height: 32px;
    }
}

/* === pages/home.css === */
.about {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
}

.about::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: min(600px, 70%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(246, 191, 100, 0.55), transparent);
}

.about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 700px 420px at 50% 38%, rgba(246, 191, 100, 0.16), transparent 70%),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.72) 16%,
            rgba(0, 0, 0, 0.5) 48%,
            rgba(0, 0, 0, 0.75) 80%,
            rgba(0, 0, 0, 1) 100%
        ),
        var(--about-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation: about-bg-zoom 24s ease-in-out infinite alternate;
}

@keyframes about-bg-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.about__inner {
    position: relative;
    z-index: 1;
}

.about__intro {
    margin-bottom: 3rem;
    text-align: center;
}

.about__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.about__line {
    display: block;
    width: 56px;
    height: 2px;
    margin: 1.5rem auto 0;
    background: var(--gold);
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    max-width: 720px;
    margin-inline: auto;
}

.about__text p {
    margin: 0;
    line-height: 1.85;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
}

.about__text p:first-of-type::first-letter {
    float: left;
    padding: 0.1rem 0.6rem 0 0;
    font-family: var(--font-display);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 0.8;
    color: var(--gold);
}

.about__highlight {
    color: var(--gold);
    font-weight: 700;
}

.about__closing {
    position: relative;
    margin-top: 3rem;
    padding-top: 1.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--white);
    text-align: center;
}

.about__closing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--gold);
}

/* Utilidad de scroll-reveal: hoy solo se usa en esta página (sección Nosotros).
   Si más adelante se reutiliza en otra vista, promuévela a components/reveal.css */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--line {
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.8s ease;
    transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

.reveal--line.reveal--visible {
    transform: scaleX(1);
}

.reveal--title {
    letter-spacing: 0.35em;
    transition: opacity 0.9s ease, transform 0.9s ease, letter-spacing 0.9s ease;
}

.reveal--title.reveal--visible {
    letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
    .about::before {
        animation: none;
    }

    .reveal,
    .reveal--line {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .about {
        padding: 4rem 0;
    }

    .about__text {
        gap: 1.4rem;
    }

    .about__text p {
        font-size: 0.92rem;
    }

    .about__text p:first-of-type::first-letter {
        font-size: 2.75rem;
    }
}

/* === pages/productos.css === */
.productos-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
}

.productos-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(ellipse 700px 420px at 50% 30%, rgba(246, 191, 100, 0.14), transparent 70%),
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.86) 0%,
            rgba(0, 0, 0, 0.62) 45%,
            rgba(0, 0, 0, 0.9) 100%
        ),
        var(--productos-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    animation: about-bg-zoom 24s ease-in-out infinite alternate;
}

/* Nota: reutiliza la animación about-bg-zoom (definida también en pages/home.css).
   Se duplica aquí a propósito para que este archivo no dependa de otro. */
@keyframes about-bg-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.08);
    }
}

.productos-hero .container {
    position: relative;
    z-index: 1;
}

.productos-hero__eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.productos-hero__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
}

.productos-hero__text {
    margin: 0;
    max-width: 780px;
    line-height: 1.85;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.productos-page {
    padding: 4rem 0 6rem;
}

.productos-toolbar {
    display: flex;
    justify-content: center;
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.productos-resultado-info {
    margin: 0 0 2rem;
    font-size: 0.9rem;
    text-align: center;
    color: rgb(255, 255, 255);
}

.productos-resultado-info__limpiar {
    margin-left: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.productos-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.tab {
    padding: 0.55rem 1.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.tab.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.productos-vacio {
    padding: 3rem 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.productos-closing {
    position: relative;
    max-width: 720px;
    margin: 4rem auto 0;
    padding-top: 1.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--white);
    text-align: center;
}

.productos-closing::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
    .productos-hero::before {
        animation: none;
    }
}

@media (max-width: 640px) {
    .productos-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .productos-page {
        padding: 3rem 0 4rem;
    }
}

/* === pages/errors.css === */
.error-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
}

.error-page__inner {
    text-align: center;
    padding: 4rem 0;
}

.error-page__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--gold);
}

.error-page__text {
    margin: 0 0 2rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* === pages/producto-detalle.css === */
.producto-detalle {
    position: relative;
    padding: 3rem 0 5rem;
    min-height: calc(100vh - var(--header-h));
    overflow: hidden;
    background: linear-gradient(180deg, #140d08 0%, #0b0704 55%, #000000 100%);
}

.producto-detalle::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: 0;
    background: radial-gradient(circle at 50% 15%, rgba(246, 191, 100, 0.14), transparent 65%);
    filter: blur(90px);
    animation: aurora-flotar 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes aurora-flotar {
    0% {
        transform: translate(-3%, -2%) scale(1);
    }
    50% {
        transform: translate(3%, 2%) scale(1.08);
    }
    100% {
        transform: translate(-2%, 3%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .producto-detalle::before {
        animation: none;
    }
}

.producto-detalle__inner {
    position: relative;
    z-index: 1;
}

.producto-detalle__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.producto-detalle__breadcrumb a {
    color: var(--gold);
    transition: opacity 0.2s ease;
}

.producto-detalle__breadcrumb a:hover {
    opacity: 0.75;
}

.producto-detalle__grid {
    display: grid;
    grid-template-columns: minmax(0, 480px) 1fr;
    gap: 3.5rem;
    align-items: center;
}

.producto-detalle__imagen-columna {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.producto-detalle__miniaturas {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-shrink: 0;
}

.producto-detalle__miniatura {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0.4rem;
    background: #ffffff;
    border: 1.5px solid rgba(246, 191, 100, 0.3);
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.producto-detalle__miniatura--activa {
    border-color: var(--gold);
}

.producto-detalle__miniatura img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.producto-detalle__imagen {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    aspect-ratio: 1 / 1;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid rgba(246, 191, 100, 0.55);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.producto-detalle__imagen img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.producto-detalle__categoria {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.producto-detalle__nombre {
    margin: 0 0 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
}

.producto-detalle__precio {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    width: fit-content;
    margin: 0 0 2rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(246, 191, 100, 0.35);
}

.producto-detalle__precio-actual {
    font-family: var(--font-body);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--gold);
}

.producto-detalle__precio-anterior {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.producto-detalle__agregar {
    display: block;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.producto-detalle__volver {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.producto-detalle__volver:hover {
    color: var(--gold);
}

@media (max-width: 780px) {
    .producto-detalle__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .producto-detalle__imagen-columna {
        flex-direction: column-reverse;
        align-items: center;
    }

    .producto-detalle__miniaturas {
        flex-direction: row;
    }

    .producto-detalle__imagen {
        padding: 1.75rem;
        width: 100%;
    }
}

/* === pages/en-construccion.css === */
.en-construccion {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-h));
    padding: 4rem 0;
    text-align: center;
}

.en-construccion__inner {
    max-width: 480px;
    margin: 0 auto;
}

.en-construccion__icono {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 2.5rem;
}

.en-construccion__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.en-construccion__titulo {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.en-construccion__texto {
    margin: 0 0 2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* === pages/ofertas.css === */
.ofertas {
    padding: 3rem 0 4rem;
}

.ofertas__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ofertas__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.ofertas__titulo {
    margin: 0 0 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.ofertas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.ofertas__tarjeta {
    margin: 0;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(246, 191, 100, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.ofertas__imagen {
    display: block;
    width: 100%;
    height: auto;
}

.ofertas__nota {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* === pages/blog.css === */
/* ===== Blog hero ===== */
.blog-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.blog-hero__eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.blog-hero__title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.blog-hero__text {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== Grid de recetas ===== */
.blog-page {
    padding: 1rem 0 5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(246, 191, 100, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 14, 4, 0.32);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 20px 38px rgba(20, 14, 4, 0.42), 0 8px 20px rgba(246, 191, 100, 0.2);
}

.blog-card__img {
    height: 220px;
    overflow: hidden;
}

.blog-card__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__img img {
    transform: scale(1.05);
}

.blog-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.1rem 1.25rem 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-card__categoria {
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #b5842f;
}

.blog-card__nombre {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #111111;
}

.blog-card__resumen {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(0, 0, 0, 0.6);
}

/* ===== Detalle de receta ===== */
.receta-detalle {
    padding-bottom: 5rem;
    background: linear-gradient(180deg, #140d08 0%, #0b0704 55%, #000000 100%);
}

.receta-detalle__hero {
    position: relative;
    height: clamp(260px, 40vw, 460px);
    overflow: hidden;
}

.receta-detalle__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.receta-detalle__hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.85) 100%);
}

.receta-detalle__categoria {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.receta-detalle__nombre {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    color: var(--white);
}

.receta-detalle__inner {
    padding-top: 2.5rem;
}

.receta-detalle__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.receta-detalle__breadcrumb a {
    color: var(--gold);
    transition: opacity 0.2s ease;
}

.receta-detalle__breadcrumb a:hover {
    opacity: 0.75;
}

.receta-detalle__seccion {
    margin-bottom: 2.5rem;
}

.receta-detalle__titulo-seccion {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold);
}

.receta-detalle__historia {
    max-width: 760px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
}

.receta-detalle__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.receta-detalle__ingredientes,
.receta-detalle__pasos {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.85);
}

.receta-detalle__ingredientes li,
.receta-detalle__pasos li {
    margin-bottom: 0.4rem;
}

.receta-detalle__volver {
    display: inline-block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease;
}

.receta-detalle__volver:hover {
    color: var(--gold);
}

@media (max-width: 640px) {
    .blog-card__img {
        height: 180px;
    }
}

/* === pages/carrito.css === */
.carrito-pagina {
    padding: 3rem 0 5rem;
    min-height: 60vh;
}

.carrito-pagina__encabezado {
    margin: 0 0 3rem;
    text-align: center;
}

.carrito-pagina__eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.carrito-pagina__titulo {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--white);
}

.carrito-pagina__line {
    display: block;
    width: 56px;
    height: 2px;
    margin: 1.25rem auto 0;
    background: var(--gold);
}

.carrito-pagina__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.carrito-pagina__vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 4rem 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.carrito-pagina__vacio[hidden] {
    display: none;
}

@media (max-width: 900px) {
    .carrito-pagina__layout {
        grid-template-columns: 1fr;
    }
}

/* === components/gramo.css === */
/* Grano de película sutil sobre toda la página */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    animation: granoParpadeo 0.6s steps(4) infinite;
}

@keyframes granoParpadeo {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-2%, 1%); }
    50%  { transform: translate(1%, -2%); }
    75%  { transform: translate(-1%, 2%); }
    100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

/* === components/transicion.css === */
/* Transición suave entre navegación de páginas */
body {
    opacity: 0;
    transition: opacity 350ms ease-in-out;
}

body.transicion--oculta {
    opacity: 1;
}
