/* =============================================================================
 * polish-components.css — nuevos componentes reutilizables (UI/UX Pro Max XXL)
 * Carga después de polish.css. Patrones editoriales para el sitio completo.
 * ========================================================================== */


/* =============================================================================
 * 1. STAT COUNTER — números grandes que cuentan al entrar en viewport
 * ========================================================================== */

.stat-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
.stat {
    text-align: center;
    position: relative;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    left: calc(-1 * clamp(0.5rem, 1.5vw, 1.25rem));
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--color-gold-dark), transparent);
    opacity: 0.6;
}
.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin: 0 0 0.5rem;
}
.stat__suffix {
    display: inline-block;
    font-size: 0.7em;
    color: var(--color-gold-light);
    margin-left: 0.1em;
    font-weight: 600;
}
.stat__label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
    margin: 0;
}
.stat__sublabel {
    display: block;
    font-size: 0.82rem;
    color: var(--color-text-dim);
    margin-top: 0.35rem;
    font-weight: 300;
}


/* =============================================================================
 * 2. SKELETON LOADER — placeholder elegante con shimmer
 * ========================================================================== */

.skeleton {
    display: block;
    background: linear-gradient(
        90deg,
        var(--color-bg-soft) 0%,
        var(--color-bg-elevated) 50%,
        var(--color-bg-soft) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
    min-height: 14px;
}
.skeleton--title { height: 32px; max-width: 70%; margin-bottom: 12px; }
.skeleton--text  { height: 14px; max-width: 100%; margin-bottom: 8px; }
.skeleton--text:last-child { max-width: 60%; }
.skeleton--img   { width: 100%; aspect-ratio: 1/1; border-radius: 2px; }
.skeleton--button { height: 44px; width: 180px; border-radius: 2px; }

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .skeleton { animation: none; }
}


/* =============================================================================
 * 3. SEGMENTED PROGRESS — barra gamificada (checkout, shipping progress)
 * ========================================================================== */

.seg-progress {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}
.seg-progress__segment {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: background-color 400ms var(--ease-out-expo);
}
.seg-progress__segment.is-filled {
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
    box-shadow: 0 0 12px rgba(226, 190, 101, 0.35);
}
.seg-progress__segment.is-current {
    background: var(--color-gold-dark);
}
.seg-progress__segment.is-current::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(226, 190, 101, 0.8), transparent);
    animation: seg-sweep 1.8s ease-in-out infinite;
}
@keyframes seg-sweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.seg-progress__labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    gap: 4px;
}
.seg-progress__label {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    font-weight: 500;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seg-progress__label.is-reached { color: var(--color-gold); }
.seg-progress__label.is-current { color: var(--color-text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .seg-progress__segment.is-current::after { animation: none; }
}


/* =============================================================================
 * 4. STEPPER — progress numerado horizontal/vertical (checkout wizard)
 * ========================================================================== */

.stepper {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    margin-bottom: var(--space-3);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 70px;
    position: relative;
    gap: 6px;
}
.stepper__item + .stepper__item::before {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(-50% + 16px);
    right: calc(50% + 16px);
    height: 1px;
    background: var(--color-border);
    z-index: 0;
}
.stepper__item.is-reached + .stepper__item::before,
.stepper__item.is-current::before {
    background: var(--color-gold);
}
.stepper__dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-dim);
    position: relative;
    z-index: 1;
    transition: all 300ms var(--ease-out-expo);
    font-variant-numeric: tabular-nums;
}
.stepper__item.is-reached .stepper__dot {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg);
}
.stepper__item.is-reached .stepper__dot::after {
    content: "✓";
    font-size: 0.9rem;
}
.stepper__item.is-reached .stepper__dot > span { display: none; }
.stepper__item.is-current .stepper__dot {
    border-color: var(--color-gold);
    color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(226, 190, 101, 0.18);
}
.stepper__label {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}
.stepper__item.is-reached .stepper__label { color: var(--color-text-muted); }
.stepper__item.is-current .stepper__label { color: var(--color-gold); font-weight: 600; }


/* =============================================================================
 * 5. SPEC SHEET — ficha técnica premium estilo laboratorio
 * ========================================================================== */

.spec-sheet {
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, rgba(20, 20, 20, 0.6) 100%);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-gold);
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 4px;
    position: relative;
}
.spec-sheet::before {
    content: "LAB · ANÁLISIS";
    position: absolute;
    top: -1px;
    right: 16px;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: var(--color-gold);
    color: var(--color-bg);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-family: var(--font-mono);
}
.spec-sheet__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-soft);
}
.spec-sheet__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    letter-spacing: -0.01em;
}
.spec-sheet__batch {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
}
.spec-sheet__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px 20px;
}
.spec-sheet__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.spec-sheet__label {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    font-weight: 500;
}
.spec-sheet__value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gold);
    letter-spacing: -0.005em;
    font-variant-numeric: tabular-nums;
}


/* =============================================================================
 * 6. TIMELINE — proceso vertical con puntos conectados
 * ========================================================================== */

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, var(--color-gold), var(--color-gold-dark) 30%, var(--color-border) 100%);
    opacity: 0.5;
}
.timeline__item {
    position: relative;
    padding: 0 0 1.75rem 48px;
    counter-increment: timeline-step;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: counter(timeline-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--color-bg);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-gold);
    font-weight: 600;
    box-shadow: 0 0 0 4px var(--color-bg);
    z-index: 1;
    font-variant-numeric: tabular-nums;
}
.timeline__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.35rem;
    letter-spacing: -0.005em;
}
.timeline__text {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}
.timeline--with-counter {
    counter-reset: timeline-step;
}


/* =============================================================================
 * 7. PILL PREMIUM — chip elevado con icono (usar para filtros, CoA, tags)
 * ========================================================================== */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 100px;
    transition: all 200ms var(--ease-out-expo);
    text-decoration: none;
    white-space: nowrap;
}
.pill svg {
    width: 14px; height: 14px;
    color: var(--color-gold);
    flex-shrink: 0;
}
.pill:hover {
    border-color: var(--color-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(226, 190, 101, 0.25);
}
.pill--active {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-bg);
    font-weight: 600;
}
.pill--active svg { color: var(--color-bg); }
.pill--ghost {
    background: transparent;
    border-color: var(--color-gold-dark);
    color: var(--color-text-muted);
}
.pill--ghost:hover {
    background: rgba(226, 190, 101, 0.08);
    color: var(--color-gold);
}
.pill--sage {
    border-color: var(--color-sage);
    color: var(--color-brand);
}
.pill--sage svg { color: var(--color-brand); }


/* =============================================================================
 * 8. PREMIUM FIGURE — marco decorativo para imágenes destacadas
 * ========================================================================== */

.figure-premium {
    position: relative;
    display: block;
    isolation: isolate;
}
.figure-premium::before,
.figure-premium::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-gold);
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    transition: all 300ms var(--ease-out-expo);
}
.figure-premium::before {
    top: -8px; left: -8px;
    border-right: 0; border-bottom: 0;
}
.figure-premium::after {
    bottom: -8px; right: -8px;
    border-left: 0; border-top: 0;
}
.figure-premium:hover::before { top: -12px; left: -12px; opacity: 1; }
.figure-premium:hover::after  { bottom: -12px; right: -12px; opacity: 1; }


/* =============================================================================
 * 9. BADGE COUNTER — número en chip (para trust/social proof)
 * ========================================================================== */

.badge-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(226, 190, 101, 0.08);
    border: 1px solid rgba(226, 190, 101, 0.3);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--color-text);
}
.badge-count__num {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-gold);
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
}
.badge-count__dot {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-sage-light);
    box-shadow: 0 0 0 0 var(--color-sage-light);
    animation: dot-pulse-sage 2.2s ease-out infinite;
}
@keyframes dot-pulse-sage {
    0%   { box-shadow: 0 0 0 0 rgba(160, 189, 135, 0.6); }
    70%  { box-shadow: 0 0 0 6px rgba(160, 189, 135, 0); }
    100% { box-shadow: 0 0 0 0 rgba(160, 189, 135, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .badge-count__dot { animation: none; }
}


/* =============================================================================
 * 10. QUOTE CALLOUT — destacado de cita (para legales, blog)
 * ========================================================================== */

.quote-callout {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    margin: clamp(2rem, 5vh, 3rem) 0;
    background: linear-gradient(135deg, rgba(226, 190, 101, 0.04) 0%, transparent 60%);
    border-left: 3px solid var(--color-gold);
    border-radius: 0 4px 4px 0;
    isolation: isolate;
}
.quote-callout::before {
    content: "“";
    position: absolute;
    top: -12px;
    left: 16px;
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.25;
    pointer-events: none;
}
.quote-callout__text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.005em;
}
.quote-callout__meta {
    display: block;
    margin-top: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
}


/* =============================================================================
 * 11. HERO DECOR — crosshair abstract en esquinas (para heros premium)
 * ========================================================================== */

.hero-decor {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    opacity: 0.35;
    pointer-events: none;
}
.hero-decor--tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hero-decor--tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hero-decor--bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hero-decor--br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }

@media (max-width: 768px) {
    .hero-decor { display: none; }
}


/* =============================================================================
 * 12. MARQUEE TRUST — banner infinito con trust items (tras hero)
 * ========================================================================== */

.marquee-trust {
    overflow: hidden;
    padding: 14px 0;
    background: linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg-soft) 50%, var(--color-bg) 100%);
    border-top: 1px solid rgba(226, 190, 101, 0.15);
    border-bottom: 1px solid rgba(226, 190, 101, 0.15);
    position: relative;
}
.marquee-trust::before,
.marquee-trust::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-trust::before { left: 0;  background: linear-gradient(to right, var(--color-bg), transparent); }
.marquee-trust::after  { right: 0; background: linear-gradient(to left,  var(--color-bg), transparent); }

.marquee-trust__track {
    display: flex;
    gap: clamp(2rem, 5vw, 4rem);
    width: max-content;
    animation: marquee 36s linear infinite;
}
.marquee-trust:hover .marquee-trust__track { animation-play-state: paused; }

.marquee-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    white-space: nowrap;
    font-weight: 500;
}
.marquee-trust__item svg {
    width: 16px; height: 16px;
    color: var(--color-gold);
    flex-shrink: 0;
}
.marquee-trust__sep {
    color: var(--color-gold);
    opacity: 0.4;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-trust__track { animation: none; }
}


/* =============================================================================
 * 13. AMBIENT BLOBS — background decorativo sutil (secciones hero)
 * ========================================================================== */

.ambient-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.ambient-blobs__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.12;
    mix-blend-mode: screen;
}
.ambient-blobs__blob--gold {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--color-gold), transparent 70%);
    top: -100px;
    right: -100px;
    animation: blob-drift-1 22s ease-in-out infinite alternate;
}
.ambient-blobs__blob--sage {
    width: 320px; height: 320px;
    background: radial-gradient(circle, var(--color-sage), transparent 70%);
    bottom: -80px;
    left: -60px;
    animation: blob-drift-2 28s ease-in-out infinite alternate;
    opacity: 0.08;
}
@keyframes blob-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 40px) scale(1.12); }
}
@keyframes blob-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -30px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .ambient-blobs__blob { animation: none; }
}


/* =============================================================================
 * 14. MAGNETIC BUTTON — botón que se desplaza levemente hacia el cursor
 * El movimiento real lo hace el JS (polish-enhance.js) vía --mx/--my.
 * ========================================================================== */

.magnetic {
    --mx: 0px;
    --my: 0px;
    transform: translate(var(--mx), var(--my));
    transition: transform 200ms var(--ease-out-expo);
    will-change: transform;
}
@media (prefers-reduced-motion: reduce), (hover: none) {
    .magnetic { --mx: 0px !important; --my: 0px !important; }
}


/* =============================================================================
 * 15. GLASS CARD — superficie con blur backdrop para secciones premium
 * ========================================================================== */

.glass-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.01) 100%
    );
    border: 1px solid rgba(226, 190, 101, 0.18);
    border-radius: 6px;
    padding: clamp(1.5rem, 3vw, 2rem);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow:
        inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
        0 16px 40px -20px rgba(0, 0, 0, 0.5);
}


/* =============================================================================
 * 16. CELEBRATION — checkout success / milestone burst
 * ========================================================================== */

.celebrate {
    position: relative;
    isolation: isolate;
}
.celebrate::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(226, 190, 101, 0.15), transparent 60%);
    z-index: -1;
    animation: celebrate-glow 2s ease-out;
    pointer-events: none;
}
@keyframes celebrate-glow {
    0%   { transform: scale(0.5); opacity: 0; }
    50%  { opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .celebrate::before { animation: none; opacity: 0; }
}


/* =============================================================================
 * 17. DIVIDER DOT — separador minimalista con punto central
 * ========================================================================== */

.divider-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: clamp(2rem, 5vh, 3.5rem) 0;
    opacity: 0.6;
}
.divider-dot::before,
.divider-dot::after {
    content: "";
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold-dark), transparent);
}
.divider-dot::after { background: linear-gradient(to left, transparent, var(--color-gold-dark), transparent); }
.divider-dot__mark {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(226, 190, 101, 0.5);
}


/* =============================================================================
 * 18. FILTER CHIP ACTIVE — refinamiento de pill cuando está activa
 * ========================================================================== */

.filter-chip.is-active,
.filter-chip[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-bg);
    border-color: var(--color-gold);
    font-weight: 600;
    box-shadow: 0 4px 14px -4px rgba(226, 190, 101, 0.45);
}


/* =============================================================================
 * 19. SCROLL HINT REFINADO — chevron animado + texto
 * ========================================================================== */

.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    pointer-events: none;
}
.scroll-hint__label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}
.scroll-hint__chevron {
    width: 18px;
    height: 18px;
    color: var(--color-gold);
    animation: scroll-chevron 2s ease-in-out infinite;
}
@keyframes scroll-chevron {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-hint__chevron { animation: none; }
}


/* =============================================================================
 * 20. TEXT REVEAL — efecto palabra por palabra (JS controla .is-revealed)
 * ========================================================================== */

.text-reveal { overflow: hidden; display: inline-block; }
.text-reveal__word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 700ms var(--ease-out-expo), opacity 500ms ease;
}
.text-reveal.is-revealed .text-reveal__word {
    transform: translateY(0);
    opacity: 1;
}
.text-reveal.is-revealed .text-reveal__word:nth-child(1) { transition-delay: 0ms; }
.text-reveal.is-revealed .text-reveal__word:nth-child(2) { transition-delay: 80ms; }
.text-reveal.is-revealed .text-reveal__word:nth-child(3) { transition-delay: 160ms; }
.text-reveal.is-revealed .text-reveal__word:nth-child(4) { transition-delay: 240ms; }
.text-reveal.is-revealed .text-reveal__word:nth-child(5) { transition-delay: 320ms; }
.text-reveal.is-revealed .text-reveal__word:nth-child(n+6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
    .text-reveal__word { transform: none; opacity: 1; transition: none; }
}


/* =============================================================================
 * 21. PRODUCT TRUST STRIP — barra horizontal de 3-4 chips en ficha producto
 * ========================================================================== */

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: var(--space-3) 0;
    padding: 14px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.trust-strip__item {
    flex: 1;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
    border-right: 1px solid var(--color-border-soft);
    gap: 6px;
}
.trust-strip__item:last-child { border-right: 0; }
.trust-strip__item svg {
    width: 22px; height: 22px;
    color: var(--color-gold);
    margin-bottom: 2px;
}
.trust-strip__title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.02em;
    margin: 0;
}
.trust-strip__text {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    margin: 0;
    letter-spacing: 0.02em;
}
@media (max-width: 640px) {
    .trust-strip__item { min-width: 0; flex: 1 1 45%; border-bottom: 1px solid var(--color-border-soft); }
    .trust-strip__item:nth-last-child(-n+2) { border-bottom: 0; }
}


/* =============================================================================
 * 22. SECTION HEADER PRO — eyebrow + title + lead con rule decorativo
 * ========================================================================== */

.section-header-pro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto clamp(2rem, 5vh, 3.5rem);
    position: relative;
}
.section-header-pro__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}
.section-header-pro__eyebrow::before,
.section-header-pro__eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.5;
}
.section-header-pro__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
    color: var(--color-text);
    text-wrap: balance;
}
.section-header-pro__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin: 0 auto;
    max-width: 56ch;
    text-wrap: pretty;
}
.section-header-pro__accent {
    color: var(--color-gold);
    font-style: italic;
}


/* =============================================================================
 * 23. 404 CANVAS — empty state con personalidad
 * ========================================================================== */

.not-found {
    text-align: center;
    padding: clamp(4rem, 10vh, 7rem) 0;
    position: relative;
}
.not-found__code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-dark) 70%, transparent 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin: 0 0 1rem;
    opacity: 0.9;
}
.not-found__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.not-found__lead {
    max-width: 52ch;
    margin: 0 auto var(--space-4);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.65;
}
.not-found__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}


/* =============================================================================
 * 24. CONFETTI — burst al completar pedido (checkout/success)
 * Solo CSS, JS añade .is-celebrating al <body>.
 * ========================================================================== */

.confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}
.confetti__piece {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 14px;
    opacity: 0;
    animation: confetti-fall 2.4s ease-out forwards;
}
.confetti__piece--gold  { background: var(--color-gold); }
.confetti__piece--sage  { background: var(--color-sage-light); }
.confetti__piece--light { background: #f5f1e8; }
@keyframes confetti-fall {
    0%   { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .confetti { display: none; }
}


/* =============================================================================
 * 24b. PRODUCT DETAILS GRID — descripción + ficha técnica 2 cols desktop
 * (Polish F12b: reducir scroll en ficha producto)
 * ========================================================================== */

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    align-items: start;
}
@media (min-width: 1024px) {
    .product-details-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
        gap: clamp(2rem, 4vw, 3.5rem);
    }
    /* Ficha técnica sticky cuando hay mucho texto en descripción — mejora UX en scroll */
    .product-details-grid__aside {
        position: sticky;
        top: calc(72px + var(--space-3));
    }
}

/* Relacionados inline: mismo grid que home pero sin section--soft */
.product-related-inline {
    margin-top: var(--space-3);
}


/* =============================================================================
 * 24c. UTILITIES SEMÁNTICAS — paleta brand (F10)
 * Solo las que faltan por el sistema. Patrón: `.{prop}-{semantic}` legible.
 * Filosofía: gold = CTA / acento brand · sage = trust / éxito sutil · burgundy = scarcity / urgencia
 * ========================================================================== */

/* Color de texto */
.text-sage     { color: var(--color-brand); }
.text-burgundy { color: var(--color-burgundy-light); }

/* Backgrounds suaves (8-12% opacity para que el texto siga legible) */
.bg-gold-soft     { background: rgba(226, 190, 101, 0.08); }
.bg-sage-soft     { background: rgba(147, 201, 84, 0.10); }
.bg-burgundy-soft { background: rgba(229, 65, 46, 0.10); }

/* Borders semánticos */
.border-gold      { border: 1px solid var(--color-gold); }
.border-sage      { border: 1px solid var(--color-sage); }
.border-burgundy  { border: 1px solid var(--color-burgundy); }
.border-l-gold    { border-left: 3px solid var(--color-gold); }
.border-l-sage    { border-left: 3px solid var(--color-sage); }
.border-l-burgundy{ border-left: 3px solid var(--color-burgundy); }

/* Notice boxes — combinaciones bg+border listas */
.notice {
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.55;
}
.notice--trust {
    background: rgba(147, 201, 84, 0.08);
    border: 1px solid rgba(147, 201, 84, 0.35);
    border-left-width: 3px;
    color: var(--color-text);
}
.notice--trust strong { color: var(--color-brand); }

.notice--scarcity {
    background: rgba(229, 65, 46, 0.08);
    border: 1px solid rgba(229, 65, 46, 0.35);
    border-left-width: 3px;
    color: var(--color-text);
}
.notice--scarcity strong { color: var(--color-burgundy-light); }

.notice--gold {
    background: rgba(226, 190, 101, 0.06);
    border: 1px solid rgba(226, 190, 101, 0.30);
    border-left-width: 3px;
    color: var(--color-text);
}
.notice--gold strong { color: var(--color-gold); }

/* Tagline display — uso estricto: hero, footer, OG, emails */
.tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--color-gold-light);
    letter-spacing: -0.005em;
    font-weight: 400;
}
.tagline--lg { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.tagline--sm { font-size: 0.92rem; }


/* =============================================================================
 * 24e. TASTING NOTES sliders (feature #4)
 * ========================================================================== */

.tasting-row__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.tasting-row__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid var(--color-bg-soft);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(226, 190, 101, 0.4);
    transition: transform 0.15s ease;
}
.tasting-row__slider::-webkit-slider-thumb:active {
    transform: scale(1.18);
    cursor: grabbing;
}
.tasting-row__slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid var(--color-bg-soft);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(226, 190, 101, 0.4);
}
.tasting-row__slider:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 2px;
}


/* =============================================================================
 * 24d. SHAKE-TO-DISCOVER MODAL (feature #18)
 * ========================================================================== */

.shake-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 240ms var(--ease-out-expo, ease);
    pointer-events: none;
}
.shake-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.shake-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.shake-modal__card {
    position: relative;
    max-width: 380px;
    width: 100%;
    background: linear-gradient(180deg, #1a2f24 0%, var(--color-bg-ink) 100%);
    border: 1px solid var(--color-gold);
    border-radius: 6px;
    padding: clamp(22px, 5vw, 32px);
    box-shadow: 0 32px 80px -16px rgba(0,0,0,0.8), 0 0 0 1px rgba(226,190,101,0.2);
    text-align: center;
    transform: translateY(14px) scale(0.96);
    transition: transform 280ms var(--ease-overshoot, cubic-bezier(0.34, 1.56, 0.64, 1));
}
.shake-modal.is-visible .shake-modal__card {
    transform: translateY(0) scale(1);
}
.shake-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shake-modal__close:hover { color: var(--color-gold); }

.shake-modal__eyebrow {
    margin: 0 0 6px;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
}
.shake-modal__title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.1;
}
.shake-modal__sub {
    margin: 0 0 16px;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}
.shake-modal__img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    margin: 6px auto 16px;
    display: block;
}
.shake-modal__product-name {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
}
.shake-modal__price {
    margin: 0 0 18px;
    font-size: 0.92rem;
    color: var(--color-text-muted);
}
.shake-modal__price strong {
    color: var(--color-gold);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    margin-left: 4px;
    font-variant-numeric: tabular-nums;
}

.shake-modal__coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: rgba(226, 190, 101, 0.08);
    border: 1px dashed var(--color-gold);
    border-radius: 2px;
    cursor: pointer;
    color: inherit;
    font: inherit;
    margin-bottom: 14px;
    transition: background 0.2s ease, border-style 0.2s ease;
}
.shake-modal__coupon:hover { background: rgba(226, 190, 101, 0.14); }
.shake-modal__coupon.is-copied {
    border-style: solid;
    background: rgba(160, 189, 135, 0.10);
    border-color: var(--color-sage);
}
.shake-modal__coupon-label {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-gold);
    flex-shrink: 0;
}
.shake-modal__coupon-code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shake-modal__coupon-action {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-weight: 600;
    flex-shrink: 0;
}


/* =============================================================================
 * 25. LEGAL PAGES — dropcap refinado + mejor jerarquía
 * ========================================================================== */

.legal-page p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.2em;
    line-height: 0.85;
    float: left;
    padding: 0.08em 0.12em 0 0;
    color: var(--color-gold);
    font-weight: 700;
}
.legal-page section:first-of-type > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.2em;
    line-height: 0.85;
    float: left;
    padding: 0.08em 0.12em 0 0;
    color: var(--color-gold);
    font-weight: 700;
}
.legal-page h2 {
    position: relative;
    padding-left: 1rem;
}
.legal-page h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    bottom: 0.35em;
    width: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}


/* =============================================================================
 * PWA INSTALL — banner discreto por engagement (lo pinta pwa-install.js)
 * ========================================================================== */

.pwa-install {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 170;                 /* sobre el ticker (160), bajo modales y cookies */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* Padding lateral fijo en px + safe-area para el gesto de iOS */
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-gold-dark);
    box-shadow: 0 -12px 32px rgba(0,0,0,0.5);
    animation: pwa-install-in 260ms ease-out both;
}
.pwa-install__text {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--color-text);
}
.pwa-install__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
/* Tap targets >= 44px sin tocar la escala global de .btn--sm */
.pwa-install__actions .btn { min-height: 44px; }

@keyframes pwa-install-in {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@media (min-width: 768px) {
    .pwa-install {
        left: auto;
        right: 24px;
        bottom: 24px;
        max-width: 420px;
        border: 1px solid var(--color-gold-dark);
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-install { animation: none; }
}


/* =============================================================================
 * VIEW TRANSITIONS — navegación entre páginas con fundido (progressive enhancement)
 * ========================================================================== */
/* Sólo la aplican los navegadores que la soportan; el resto navega igual que
 * siempre. No se anima nada si el usuario pide movimiento reducido. */

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 180ms;   /* por debajo del techo de 400ms del estandar */
        animation-timing-function: ease;
    }
}
