:root {
    --primary-color: #f39c12; /* Vibrant Orange from image */
    --primary-dark: #d68910;
    --brand-blue: #104c7a; /* Deep Blue from image */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #eaeaea;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --transition: all 0.3s ease;

    /* Paleta de la zona debajo de la portada: marfil + azul marino + dorado champagne */
    --ivory: #faf7f2;
    --sand: #f3ece1;
    --ink: #1d2733;
    --ink-soft: #5d6570;
    --navy: #0f2d4c;
    --navy-deep: #0a1f36;
    --gold: #b3864b;        /* líneas, íconos y textos grandes */
    --gold-ink: #8f6a36;    /* dorado para textos pequeños sobre fondo claro */
    --gold-light: #dcc098;  /* dorado para textos sobre fondo oscuro */
    --gold-soft: rgba(179, 134, 75, 0.12);
    --line: #e8e0d4;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 24px 48px -24px rgba(15, 45, 76, 0.35);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1, h2, h3, .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    word-spacing: 0.04em;
}
h1 em, h2 em, h3 em {
    font-style: normal;
}
:is(.btn, .btn-lux, .btn-card, .btn-ghost, .btn-ghost-dark) {
    word-spacing: 0.06em;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Buttons (portada) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.35s ease, color 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: none;
    border-radius: 999px;
}

.btn-primary {
    background-color: var(--white);
    color: #0f2d4c;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover {
    background-color: #b3864b;
    color: var(--white);
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    background-color: var(--white);
    color: var(--text-main);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info-small {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
}
.contact-info-small i {
    margin-right: 5px;
}

.top-bar-msg {
    letter-spacing: 1px;
    font-weight: 600;
}

.top-bar-social {
    display: flex;
    gap: 12px;
}
.top-bar-social a {
    color: var(--text-muted);
    transition: var(--transition);
}
.top-bar-social a:hover {
    color: var(--primary-color);
}

/* Header */
.main-header {
    background-color: var(--brand-blue); /* Deep blue background */
    color: var(--white);
    padding: 15px 0;
}

.header-container {
    max-width: 1400px; /* Made wider */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    text-align: center;
}

.main-logo {
    max-height: 80px;
    object-fit: contain;
    /* In case the logo has a non-perfect black background, mix-blend-mode screen keeps the bright parts and hides black over a black background */
    mix-blend-mode: screen;
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 1.2rem;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Navigation inside Header */
.header-nav {
    flex-grow: 1;
    margin: 0 40px;
}

.header-nav ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.header-nav a {
    font-size: 0.9rem;
    color: var(--white);
    transition: var(--transition);
    font-weight: 500;
}

.header-nav a:hover, .header-nav a.active {
    color: var(--primary-color);
}

.btn-tienda {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
}
.btn-tienda:hover {
    background-color: var(--white) !important;
    color: var(--text-main) !important;
}

.header-nav i {
    font-size: 0.7rem;
    margin-left: 3px;
}

@media (max-width: 1280px) {
    .header-nav { margin: 0 24px; }
    .header-nav ul { gap: 16px; }
    .header-nav a { font-size: 0.85rem; }
}

/* Notification */
.notification-bar {
    background-color: #7f7f7f;
    color: var(--white);
    text-align: center;
    padding: 5px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Section */
.hero {
    position: relative;
    /* Portada + franja + beneficios caben completos en la primera pantalla */
    height: calc(100vh - var(--alto-arriba, 186px) - 48px);
    height: calc(100svh - var(--alto-arriba, 186px) - 48px);
    min-height: 380px;
    background-image: url('https://images.unsplash.com/photo-1540518614846-7eded433c457?ixlib=rb-4.0.3&fm=webp&fit=crop&w=1200&q=55');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* La portada aparece al cargar (igual que antes) */
.js .animate-on-scroll {
    opacity: 0;
}
.js .animate-on-scroll.is-visible {
    opacity: 1;
}


/* =====================================================================
   DEBAJO DE LA PORTADA
   ===================================================================== */

/* ---------- Efectos de aparición al hacer scroll ---------- */

/* Texto y bloques: suben, se desenfocan y aparecen */
.js .reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    filter: blur(6px);
    transition:
        opacity 1s var(--ease-out),
        transform 1.2s var(--ease-out),
        filter 1s var(--ease-out);
    transition-delay: var(--d, 0s);
}
.js .reveal.from-right { transform: translate3d(56px, 0, 0); }
.js .reveal.zoom { transform: scale(0.6) rotate(-25deg); }
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Fotos: "salen de la nada" — se abren desde el centro mientras la imagen se enfoca */
.reveal-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--r, 0);
}
.js .reveal-img {
    opacity: 0;
    clip-path: inset(50% 50% 50% 50% round var(--r, 0));
    transition:
        clip-path 1.5s var(--ease-out),
        opacity 0.5s ease;
    transition-delay: var(--d, 0s);
}
.js .reveal-img img {
    transform: scale(1.4);
    filter: blur(12px) saturate(0.4);
    transition:
        transform 2s var(--ease-out),
        filter 1.4s var(--ease-out),
        opacity 0.35s ease;
    transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}
.js .reveal-img.is-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0 round var(--r, 0));
}
.js .reveal-img.is-visible img {
    transform: scale(1);
    filter: none;
}
/* Terminada la entrada, las fotos responden rápido al pasar el mouse */
.js .reveal-img.reveal-done,
.js .reveal-img.reveal-done img {
    transition-delay: 0s;
}
.js .reveal-img.reveal-done img {
    transition: transform 1s var(--ease-out), filter 0.5s ease, opacity 0.35s ease;
}

/* Títulos: entran palabra por palabra (app.js envuelve cada palabra) */
.js [data-split] .w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0 0.06em 0.12em;
    margin: 0 -0.06em -0.12em;
}
.js [data-split] .wi {
    display: inline-block;
    transform: translate3d(0, 110%, 0);
    transition: transform 1.1s var(--ease-out);
}
.js [data-split].is-visible .wi {
    transform: none;
}

/* Adorno dorado sobre los títulos: línea — rombo — línea */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}
.ornament::before,
.ornament::after {
    content: '';
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
    transform-origin: right center;
}
.ornament::after {
    background: linear-gradient(90deg, var(--gold), transparent);
    transform-origin: left center;
}
.ornament > span {
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}
.js .ornament::before,
.js .ornament::after {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out) 0.15s;
}
.js .ornament > span {
    transform: rotate(45deg) scale(0);
    transition: transform 0.8s var(--ease-out);
}
.js .ornament.is-visible::before,
.js .ornament.is-visible::after {
    transform: scaleX(1);
}
.js .ornament.is-visible > span {
    transform: rotate(45deg) scale(1);
}
.ornament-light::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.ornament-light::after { background: linear-gradient(90deg, var(--gold-light), transparent); }
.ornament-light > span { border-color: var(--gold-light); }

/* ---------- Botones ---------- */
.btn-lux {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px -12px rgba(15, 45, 76, 0.32);
    transition: background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease, translate 0.45s var(--ease-out);
}
.btn-lux::after {
    content: '';
    position: absolute;
    top: 0;
    left: -130%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.9s var(--ease-out);
}
.btn-lux:hover {
    background: var(--gold);
    translate: 0 -2px;
    box-shadow: 0 20px 34px -16px rgba(179, 134, 75, 0.8);
}
.btn-lux:hover::after {
    left: 140%;
}
.btn-lux .fa-whatsapp {
    font-size: 1.2rem;
}
.btn-lux-gold {
    background: var(--gold);
}
.btn-lux-gold:hover {
    background: #fff;
    color: var(--navy);
}

.btn-arrow {
    transition: transform 0.4s var(--ease-out);
}
.btn-lux:hover .btn-arrow,
.btn-card:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    background: linear-gradient(var(--navy), var(--navy)) no-repeat left bottom / 100% 0, var(--ivory);
    transition: background-size 0.5s var(--ease-out), color 0.4s ease, border-color 0.4s ease;
}
.btn-card:hover {
    background-size: 100% 100%, auto;
    border-color: var(--navy);
    color: #fff;
}

.btn-ghost {
    display: inline-block;
    padding: 14px 34px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold-ink);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-out);
}
.btn-ghost:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}

:is(.btn-lux, .btn-card, .btn-ghost, .pf-thumb):focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ---------- Ticker ---------- */
.ticker-wrap {
    background-color: var(--navy);
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    height: 48px;
    display: flex;
    align-items: center;
}

.ticker {
    display: flex;
    width: max-content;
    white-space: nowrap;
    animation: ticker 45s linear infinite;
}

.ticker-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 38px;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}
.ticker-item i {
    color: var(--gold-light);
}

/* El dibujado de la ruleta queda aislado del resto de la página.
   Sin esto, moverla obliga a repintar zonas vecinas y el scroll se siente pesado. */
.ruleta,
.ruleta-card {
    contain: layout paint;
}
.ticker-sub {
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: none;
}
.ticker-item::after {
    content: '✦';
    position: absolute;
    right: -5px;
    color: var(--gold);
    font-size: 0.6rem;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Beneficios ---------- */
.features-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
}
.features-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.feature-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 6px 20px;
}
.feature-item + .feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--line);
}
.feature-icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 1.2rem;
    transition: background-color 0.5s ease, color 0.5s ease, transform 0.6s var(--ease-out);
}
.feature-item:hover .feature-icon {
    background: var(--gold);
    color: #fff;
    transform: rotate(-10deg) scale(1.08);
}
.feature-item h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}
.feature-item p {
    font-size: 0.82rem;
    color: var(--ink-soft);
}

/* ---------- Secciones ---------- */
.products-section {
    position: relative;
    padding: 120px 0;
}
.section-ivory { background: var(--ivory); }
.section-sand { background: var(--sand); }
.section-white { background: #fff; }

.section-title {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}
.section-title h2 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--navy);
    margin-bottom: 14px;
    text-wrap: balance;
}
.section-title h2 em,
.manifesto-header h2 em {
    font-weight: 500;
    color: var(--gold);
}
.section-title p {
    font-size: 1rem;
    color: var(--ink-soft);
}

.section-more {
    margin-top: 56px;
}

/* ---------- Producto destacado (Sábanas / Edredones Pima) ---------- */
.product-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 96px);
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 22px 0; /* espacio para el marco dorado desplazado */
}
.pf-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Marco dorado desplazado detrás de la foto (inspirado en el marco del logo) */
.pf-frame {
    position: relative;
}
.pf-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--gold);
    border-radius: 24px;
    transform: translate(-22px, -22px);
    pointer-events: none;
}
.is-reversed .pf-frame::before {
    transform: translate(22px, -22px);
}
.js .pf-frame::before {
    opacity: 0;
    transform: translate(0, 0) scale(0.94);
    transition: opacity 1s ease 0.5s, transform 1.6s var(--ease-out) 0.5s;
}
.js .pf-frame.is-visible::before {
    opacity: 1;
    transform: translate(-22px, -22px);
}
.js .is-reversed .pf-frame.is-visible::before {
    transform: translate(22px, -22px);
}

.pf-main {
    --r: 22px;
    position: relative;
    z-index: 1;
    aspect-ratio: 1 / 1;
    background: var(--sand);
    box-shadow: var(--shadow-soft);
}
.pf-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pf-main img.is-swapping,
.js .reveal-img.is-visible img.is-swapping {
    opacity: 0;
    transform: scale(1.05);
}

/* Sello giratorio "Algodón Pima · Línea hotelera" */
.pf-stamp {
    position: absolute;
    z-index: 2;
    right: -34px;
    bottom: -34px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--ivory);
    box-shadow: 0 14px 30px -14px rgba(15, 45, 76, 0.45);
    display: grid;
    place-items: center;
}
.is-reversed .pf-stamp {
    right: auto;
    left: -34px;
}
.pf-stamp svg {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    animation: stamp-spin 24s linear infinite;
    will-change: transform;
}
.pf-stamp text {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1px;
    fill: var(--navy);
}
.pf-stamp-core {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold-light);
    font-size: 1rem;
}
@keyframes stamp-spin {
    to { transform: rotate(360deg); }
}

.pf-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.pf-thumbs.pf-thumbs-4 {
    grid-template-columns: repeat(4, 1fr);
}
.pf-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: var(--sand);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    opacity: 0.6;
    transition: opacity 0.3s ease, border-color 0.3s ease, translate 0.4s var(--ease-out);
}
.js .pf-thumb.reveal.is-visible {
    opacity: 0.6;
}
.pf-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}
.pf-thumb:hover,
.js .pf-thumb.reveal.is-visible:hover {
    opacity: 1;
    translate: 0 -3px;
}
.pf-thumb:hover img {
    transform: scale(1.08);
}
.pf-thumb[aria-pressed="true"],
.js .pf-thumb.reveal.is-visible[aria-pressed="true"] {
    border-color: var(--gold);
    opacity: 1;
}

.pf-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}
.pf-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-ink);
}
.pf-eyebrow::before,
.eyebrow::before {
    content: '';
    width: 38px;
    height: 1px;
    background: var(--gold);
}
.pf-info h3 {
    font-size: clamp(1.9rem, 3.2vw, 2.7rem);
    line-height: 1.12;
    color: var(--navy);
    text-wrap: balance;
}
.pf-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pf-meta li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    color: var(--ink);
}
.pf-meta li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.pf-info p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.85;
}
.pf-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.pf-actions .btn-lux {
    padding-left: 24px;
    padding-right: 24px;
}
.btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid var(--navy);
    border-radius: 999px;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.4s ease, color 0.4s ease;
}
.btn-ghost-dark:hover {
    background: var(--navy);
    color: #fff;
}
.btn-ghost-dark:hover .btn-arrow {
    transform: translateX(5px);
}
.btn-ghost-dark:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ---------- Banner de descuentos (fondo con parallax) ---------- */
.discount-banner {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(120px, 16vw, 200px) 20px;
    text-align: center;
    color: #fff;
}
.banner-bg {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: 0;
    right: 0;
    z-index: -2;
    background: url('https://images.unsplash.com/photo-1522771739844-6a9f6d5f14af?ixlib=rb-4.0.3&fm=webp&fit=crop&w=1200&q=55') center / cover;
    will-change: transform;
}
.discount-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(10, 31, 54, 0.35), rgba(10, 31, 54, 0.8)),
        linear-gradient(180deg, rgba(10, 31, 54, 0.2), rgba(10, 31, 54, 0.55));
}
.banner-content {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}
.banner-content h2 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
    margin-bottom: 20px;
}
.banner-content p {
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.86);
}

/* ---------- Tarjetas de producto ---------- */
.products-grid {
    display: grid;
    gap: 32px;
}
.products-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.product-card-modern {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.6s ease;
}
.product-card-modern:hover {
    transform: translateY(-10px);
    border-color: transparent;
    box-shadow: var(--shadow-soft);
}
.product-card-modern .product-image {
    --r: 14px;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--sand);
}
.product-card-modern .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-card-modern:hover .product-image img {
    transform: scale(1.08);
}
/* Brillo que cruza la foto al pasar el mouse */
.product-card-modern .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 1.1s var(--ease-out);
    pointer-events: none;
}
.product-card-modern:hover .product-image::after {
    transform: translateX(100%);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 10px 10px;
    text-align: center;
}
.product-info .price {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.01em;
}
.product-title {
    flex: 1;
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    word-spacing: 0.04em;
    color: var(--ink);
}

/* Protectores + Salidas de baño */
.dual-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}
.dual-col-inner {
    display: flex;
    flex-direction: column;
}
.dual-col-inner .section-title {
    margin-bottom: 44px;
}
.dual-col-inner .section-title h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}
.dual-col-inner > [data-productos] {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* ---------- Manifiesto y valores (bloque oscuro) ---------- */
.manifesto-section {
    position: relative;
    padding: 130px 0 60px;
    color: #fff;
    background:
        radial-gradient(900px 480px at 12% 0%, rgba(179, 134, 75, 0.2), transparent 65%),
        radial-gradient(600px 360px at 92% 62%, rgba(16, 76, 122, 0.5), transparent 70%),
        var(--navy-deep);
}
.manifesto-header {
    max-width: 820px;
    margin: 0 auto 70px;
    text-align: center;
}
.manifesto-header .eyebrow,
.values-header .eyebrow {
    color: var(--gold-light);
    margin-bottom: 22px;
}
.manifesto-header .eyebrow::before,
.values-header .eyebrow::before {
    background: var(--gold-light);
}
.manifesto-header h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
}
.manifesto-header h2 em {
    color: var(--gold-light);
}
.manifesto-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.8;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.manifesto-card {
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
    transition: border-color 0.5s ease, background-color 0.5s ease, translate 0.6s var(--ease-out);
}
.manifesto-card:hover {
    border-color: rgba(220, 192, 152, 0.5);
    translate: 0 -6px;
}
.card-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: var(--gold-light);
    margin-bottom: 30px;
    text-transform: uppercase;
}
.manifesto-card h3 {
    font-size: clamp(2.8rem, 4.4vw, 3.8rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: linear-gradient(180deg, #fff 30%, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.manifesto-card .card-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}
.manifesto-card .card-text {
    margin-top: auto;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}

.values-section {
    padding: 60px 0 130px;
    color: #fff;
    background: var(--navy-deep);
}
.values-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.values-header .eyebrow {
    display: inline-flex;
}
.values-header h2 {
    display: block;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 600;
    color: #fff;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.value-card {
    position: relative;
    padding: 44px 34px;
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.04);
    transition: background-color 0.5s ease;
}
.value-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    transform-origin: top;
    transition: transform 1.4s var(--ease-out);
    transition-delay: calc(var(--d, 0s) + 0.3s);
}
.js .value-card:not(.is-visible)::before {
    transform: scaleY(0);
}
.value-card:hover {
    background: rgba(255, 255, 255, 0.07);
}
.value-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--gold-light);
    opacity: 0.55;
    margin-bottom: 16px;
}
.value-card h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}
.value-card p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ---------- Opiniones ---------- */
.reviews-section {
    padding: 120px 0;
    background: var(--ivory);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 46px 34px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.js .review-card.is-visible:hover,
.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}
.review-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 26px;
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 1;
    color: var(--gold);
    opacity: 0.25;
}
.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    color: var(--gold);
    font-size: 0.85rem;
}
.review-text {
    flex: 1;
    margin-bottom: 26px;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
}
.review-author {
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

/* ---------- Medios de pago ---------- */
.payment-methods-section {
    padding: 72px 0;
    background: #fff;
    border-top: 1px solid var(--line);
}
.payment-methods-section h3 {
    margin-bottom: 28px;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--navy);
}
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
    font-size: 2.7rem;
}
.payment-icons i {
    color: #a3aab3;
    transition: color 0.4s ease, translate 0.4s var(--ease-out);
}
.payment-icons i:hover {
    color: var(--navy);
    translate: 0 -4px;
}

/* ---------- Footer ---------- */
.main-footer {
    position: relative;
    padding: 96px 0 28px;
    color: rgba(255, 255, 255, 0.68);
    background:
        radial-gradient(800px 380px at 85% 0%, rgba(179, 134, 75, 0.14), transparent 65%),
        var(--navy-deep);
}
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1160px, 90%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
}
.footer-col h4 {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 14px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 1px;
    background: var(--gold);
}
.footer-col p {
    max-width: 280px;
    line-height: 1.8;
    font-size: 0.92rem;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul a {
    font-size: 0.92rem;
    background: linear-gradient(var(--gold-light), var(--gold-light)) no-repeat left bottom / 0 1px;
    padding-bottom: 2px;
    transition: color 0.3s ease, background-size 0.5s var(--ease-out);
}
.footer-col ul a:hover {
    color: var(--gold-light);
    background-size: 100% 1px;
}
.social-icons {
    display: flex;
    gap: 12px;
}
.social-icons a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(220, 192, 152, 0.4);
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, translate 0.4s var(--ease-out);
}
.social-icons a:hover {
    background: var(--gold);
    border-color: var(--gold);
    translate: 0 -3px;
}
.footer-bottom {
    padding: 24px 20px 0;   /* margen lateral para que el texto no toque los bordes */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.3s ease;
    isolation: isolate;
}

/* El aro que late: capa propia, solo cambia tamaño y opacidad (no repinta la página) */
.whatsapp-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.5);
    animation: wppulse 2s ease-out infinite;
    will-change: transform, opacity;
    pointer-events: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    background: white;
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    white-space: nowrap;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes wppulse {
    0% { transform: scale(1); opacity: 0.55; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 10px;
    }
    .header-nav {
        display: none; /* Hide on tablet/mobile for now, would need hamburger menu */
    }

    .products-section,
    .reviews-section {
        padding: 96px 0;
    }
    .product-feature {
        grid-template-columns: 1fr;
        max-width: 620px;
    }
    .products-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .manifesto-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .values-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 993px) {
    .product-feature.is-reversed .pf-gallery {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .feature-item {
        justify-content: flex-start;
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
    .feature-item + .feature-item::before {
        display: none;
    }

    .products-section,
    .reviews-section {
        padding: 80px 0;
    }
    .section-title {
        margin-bottom: 44px;
    }
    .products-grid.cols-3,
    .dual-columns,
    .manifesto-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .products-grid.cols-3 {
        max-width: 420px;
        margin: 0 auto;
    }
    .dual-columns {
        gap: 80px;
    }
    .product-feature {
        padding: 12px 12px 0;
    }
    .pf-frame::before,
    .js .pf-frame.is-visible::before {
        transform: translate(-12px, -12px);
    }
    .is-reversed .pf-frame::before,
    .js .is-reversed .pf-frame.is-visible::before {
        transform: translate(12px, -12px);
    }
    .pf-stamp {
        width: 104px;
        height: 104px;
        right: -8px;
        bottom: -26px;
    }
    .is-reversed .pf-stamp {
        left: -8px;
    }
    .pf-stamp-core {
        width: 38px;
        height: 38px;
    }
    .manifesto-section {
        padding-top: 96px;
    }
    .values-section {
        padding-bottom: 96px;
    }
}

/* Quien prefiera menos movimiento ve todo directamente, sin animaciones */
@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal-img,
    .js .reveal-img img,
    .js [data-split] .wi,
    .js .ornament::before,
    .js .ornament::after,
    .js .ornament > span,
    .js .pf-frame::before,
    .js .value-card::before {
        opacity: 1;
        filter: none;
        clip-path: none;
        transition: none;
    }
    .js .reveal,
    .js .reveal-img img,
    .js [data-split] .wi {
        transform: none;
    }
    .ticker,
    .pf-stamp svg {
        animation: none;
    }
    .pf-main img,
    .pf-thumb {
        transition: none;
    }
}

/* Beneficios bajo la portada: visibles desde el primer momento, con entrada suave al cargar */
.features-bar .feature-item {
    animation: rise 0.9s var(--ease-out) both;
    animation-delay: calc(var(--d, 0s) + 0.3s);
}
@media (prefers-reduced-motion: reduce) {
    .features-bar .feature-item { animation: none; }
}

/* Seis beneficios en una fila (computadora), compactos */
@media (min-width: 993px) {
    .features-bar .features-inner {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 1560px;
    }
    .features-bar .feature-item { gap: 12px; padding: 6px 12px; justify-content: flex-start; }
    .features-bar .feature-icon { width: 44px; height: 44px; font-size: 1rem; }
    .features-bar .feature-item h4 { font-size: 0.95rem; }
    .features-bar .feature-item p { font-size: 0.76rem; line-height: 1.35; }
}
/* Tablet y celular: dos columnas */
@media (max-width: 992px) {
    .features-bar .features-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
    .features-bar .feature-item { justify-content: flex-start; max-width: none; margin: 0; }
    .features-bar .feature-item + .feature-item::before { display: none; }
}
@media (min-width: 993px) {
    .features-bar .feature-item h4,
    .features-bar .feature-item p { white-space: nowrap; }
}
@media (min-width: 993px) and (max-width: 1440px) {
    .features-bar .feature-item { gap: 10px; padding: 6px 8px; }
    .features-bar .feature-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .features-bar .feature-item h4 { font-size: 0.86rem; }
    .features-bar .feature-item p { font-size: 0.72rem; }
}
@media (min-width: 993px) and (max-width: 1440px) {
    .features-bar .features-inner { padding-right: 96px; } /* espacio para el botón de WhatsApp */
}

/* Pulso suave en el botón "Tienda" */
.btn-tienda { animation: tienda-pulso 2.2s ease-out infinite; }
@keyframes tienda-pulso {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .btn-tienda { animation: none; }
}

/* ---------- Portada con varias imágenes ---------- */
.hero { overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 2;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}
.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.4s ease, background-color 0.4s ease;
}
.hero-dots button[aria-pressed="true"] {
    width: 30px;
    background: #fff;
}
.hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }


/* La primera imagen empieza a moverse apenas carga la página */
.hero-slide.is-active:first-child { animation: hero-zoom-inicial 6s ease-out both; }
@keyframes hero-zoom-inicial { from { transform: scale(1.08); } to { transform: scale(1); } }

/* =====================================================================
   RULETA DE CATEGORÍAS: franja infinita de extremo a extremo
   ===================================================================== */
.ruleta-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0 70px;
    color: #fff;
    background:
        radial-gradient(800px 360px at 50% 70%, rgba(179, 134, 75, 0.26), transparent 70%),
        radial-gradient(900px 500px at 0% 0%, rgba(16, 76, 122, 0.55), transparent 65%),
        linear-gradient(180deg, var(--navy-deep), #0c2742);
}
.ruleta-section .section-title { margin-bottom: 30px; }
.ruleta-section .section-title h2 { color: #fff; }
.ruleta-section .section-title h2 em { color: var(--gold-light); }
.ruleta-section .section-title p { color: rgba(255, 255, 255, 0.72); }

.ruleta {
    --card-w: 260px;
    --card-h: 340px;
    position: relative;
    width: 100%;
    padding: 34px 0 110px;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* Las tarjetas se desvanecen al llegar a los bordes de la pantalla */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    opacity: 0;
    transition: opacity 1.2s var(--ease-out);
}
.ruleta.is-visible { opacity: 1; }
.ruleta.arrastrando { cursor: grabbing; }
.ruleta-pista {
    display: flex;
    gap: 26px;
    width: max-content;
    will-change: transform;
}
.ruleta-item {
    position: relative;
    flex: none;
    display: block;
    width: var(--card-w);
    height: var(--card-h);
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.ruleta-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--navy);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    transition: border-color 0.6s ease, box-shadow 0.6s ease;
    will-change: transform;
    -webkit-box-reflect: below 12px linear-gradient(transparent 74%, rgba(255, 255, 255, 0.14));
}
.ruleta-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transform: scale(1.02);
    filter: saturate(0.8) brightness(0.85);
    transition: transform 1.4s var(--ease-out), filter 0.7s ease;
}
.ruleta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 31, 54, 0) 35%, rgba(10, 31, 54, 0.55) 62%, rgba(10, 31, 54, 0.92));
}
/* Brillo que cruza la tarjeta central */
.ruleta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
}
.ruleta-item.is-front .ruleta-card {
    border-color: rgba(220, 192, 152, 0.9);
    box-shadow: 0 0 0 1px rgba(220, 192, 152, 0.6), 0 0 48px -6px rgba(220, 192, 152, 0.55), 0 40px 80px -26px rgba(0, 0, 0, 0.8);
}
.ruleta-item.is-front .ruleta-card::before { animation: ruleta-brillo 1.4s var(--ease-out) 0.15s both; }
.ruleta-item.is-front .ruleta-card img { transform: scale(1.1); filter: saturate(1.05) brightness(1); }
.ruleta-item:hover .ruleta-card img { transform: scale(1.12); filter: saturate(1.05) brightness(1); }
@keyframes ruleta-brillo { to { transform: translateX(120%); } }

.ruleta-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.ruleta-info {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ruleta-n {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-light);
}
.ruleta-info strong {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
}
.ruleta-ir {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.ruleta-item.is-front .ruleta-ir,
.ruleta-item:hover .ruleta-ir { opacity: 1; transform: none; }

.ruleta-controles {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: -40px;
}
.ruleta-btn {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-out);
}
.ruleta-btn:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.ruleta-actual {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-family: var(--font-display);
    font-weight: 700;
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.6);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.ruleta-actual:hover { background: var(--gold); color: #fff; }
.ruleta-actual-nombre { display: inline-block; }
.ruleta-actual.cambia .ruleta-actual-nombre { animation: ruleta-nombre 0.5s var(--ease-out); }
@keyframes ruleta-nombre { from { opacity: 0; transform: translateY(8px); } }
:is(.ruleta-btn, .ruleta-actual):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.ruleta-ayuda {
    margin-top: 18px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}
.ruleta-ayuda i { margin-right: 6px; color: var(--gold-light); display: inline-block; animation: ruleta-mano 2.4s ease-in-out infinite; }
@keyframes ruleta-mano { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

@media (max-width: 768px) {
    .ruleta-section { padding: 80px 0 56px; }
    .ruleta { --card-w: 190px; --card-h: 260px; padding: 26px 0 90px; }
    .ruleta-pista { gap: 16px; }
    .ruleta-info { left: 14px; right: 14px; bottom: 14px; }
    .ruleta-info strong { font-size: 1.15rem; }
    .ruleta-ir { font-size: 0.7rem; padding: 6px 11px; }
    .ruleta-actual { min-width: 0; padding: 12px 20px; font-size: 0.9rem; }
    .ruleta-btn { width: 44px; height: 44px; }
    .ruleta-controles { margin-top: -30px; }
}

/* ---------- Celular y tablet: ruleta circular 3D (ruleta.js elige el modo) ---------- */
.ruleta.modo-anillo {
    --card-w: 220px;
    --card-h: 300px;
    padding: 0;
    height: calc(var(--card-h) + 120px);
    overflow: visible;
    perspective: 1200px;
    perspective-origin: 50% 35%;
    -webkit-mask-image: none;
    mask-image: none;
}
.modo-anillo .ruleta-escena {
    position: absolute;
    top: 26px;
    left: 50%;
    width: var(--card-w);
    height: var(--card-h);
    margin-left: calc(var(--card-w) / -2);
    transform-style: preserve-3d;
    pointer-events: none;
}
.modo-anillo .ruleta-anillo {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
    pointer-events: none;
}
.modo-anillo .ruleta-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.modo-anillo .ruleta-card { transition: transform 0.7s var(--ease-out), border-color 0.6s ease, box-shadow 0.6s ease; }
.modo-anillo .ruleta-item.is-front .ruleta-card { transform: scale(1.07); }
.modo-anillo .ruleta-item:hover:not(.is-front) .ruleta-ir { opacity: 0; }
.modo-anillo .ruleta-suelo {
    position: absolute;
    left: 50%;
    bottom: 30px;
    width: min(880px, 92%);
    height: 80px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(220, 192, 152, 0.32), rgba(220, 192, 152, 0.06) 55%, transparent 72%);
    filter: blur(6px);
    pointer-events: none;
}
.ruleta.modo-anillo + .ruleta-controles { margin-top: 0; }
@media (max-width: 768px) {
    .ruleta.modo-anillo { --card-w: 170px; --card-h: 240px; perspective: 1000px; height: calc(var(--card-h) + 100px); }
}


/* ---------- Fluidez: lo que está fuera de pantalla no se anima ---------- */
.fuera-de-vista,
.fuera-de-vista .ticker,
.fuera-de-vista svg,
.fuera-de-vista .pulse-dot,
.fuera-de-vista .ruleta-pista,
.fuera-de-vista .ruleta-ayuda i {
    animation-play-state: paused !important;
}

/* ---------- Entrada por secciones: cada bloque aparece completo ----------
   Animar cada elemento por separado obligaba al navegador a repintar sin parar
   y el desplazamiento se sentía pesado. */
.js .reveal,
.js .reveal-img,
.js .reveal-img img,
.js .ornament,
.js .frame-reveal,
.js .animate-on-scroll {
    transition: none !important;
}
.js .bloque-anim {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
}
.js .bloque-anim.bloque-visible {
    opacity: 1;
    transform: none;
}

/* Mientras se desliza en celular, lo decorativo no se anima (ver app.js) */
.bajando .ticker,
.bajando .pf-stamp svg,
.bajando .whatsapp-btn::after,
.bajando .pulse-dot,
.bajando .ruleta-ayuda i,
.bajando .btn-tienda {
    animation-play-state: paused !important;
}
