/* ════════════════════════════════════════════════════════════════════════
   Rosyvely Furniture — REDESIGN LAYER (capa final · 2026-06-19)
   Eleva todo el sistema visual sobre la cascada existente SIN tocar markup ni JS.
   Dirección: editorial cálido y seguro — sala de exposición soleada de Florida.
   Lienzo crema con atmósfera, tinta espresso, ROJO de marca como acento + oro.
   Solo transform/opacity en motion; respeta prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --rv-cream: #f7f2e9;
  --rv-cream-deep: #efe7d8;
  --rv-paper: #fffdf9;
  --rv-ink: #211a14;          /* espresso, no negro puro */
  --rv-ink-soft: #5b5043;
  --rv-ink-faint: #8a7e6f;
  --rv-red: #c8102e;
  --rv-red-deep: #9e1226;
  --rv-gold: #b8923a;
  --rv-line: rgba(33, 26, 20, 0.10);
  --rv-line-soft: rgba(33, 26, 20, 0.06);
  --rv-sh-sm: 0 1px 2px rgba(33, 26, 20, 0.05), 0 6px 18px rgba(33, 26, 20, 0.06);
  --rv-sh-md: 0 2px 6px rgba(33, 26, 20, 0.06), 0 18px 44px rgba(33, 26, 20, 0.12);
  --rv-sh-lg: 0 4px 10px rgba(33, 26, 20, 0.07), 0 34px 70px rgba(33, 26, 20, 0.18);
  --rv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── 1 · ATMÓSFERA: lienzo cálido con malla de luz + grano fino ─────────── */
body {
  background:
    radial-gradient(120% 90% at 82% -8%, rgba(200, 16, 46, 0.05), transparent 46%),
    radial-gradient(90% 70% at 6% 4%, rgba(184, 146, 58, 0.08), transparent 44%),
    linear-gradient(180deg, var(--rv-cream) 0%, var(--rv-cream-deep) 100%) !important;
  color: var(--rv-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after { /* grano sutil, estático (no anima) */
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer, .rv-mobile-bar { position: relative; z-index: 1; }

::selection { background: var(--rv-red); color: #fff; }
:focus-visible { outline: 2px solid var(--rv-red); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--rv-gold) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(184, 146, 58, 0.55); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--rv-gold); background-clip: padding-box; }

/* ── 2 · TIPOGRAFÍA: display Cormorant más expresiva, jerarquía con tensión ─ */
h1, h2, h3, .font-serif,
.home-hero__title, .home-showcase__title, .home-featured__title,
.home-financing__title, .home-cta-band__title, .catalog-hero__title,
.contact-hero__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.03;
  text-wrap: balance;
}
.home-hero__title { font-weight: 600; letter-spacing: -0.022em; }

/* eyebrows / labels: caja alta con tracking + filete de luz */
.home-hero__eyebrow, .home-showcase__eyebrow, .home-featured__eyebrow,
.home-financing__eyebrow, .home-cta-band__eyebrow, .catalog-hero__eyebrow,
.contact-hero__eyebrow {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.7rem;
  color: var(--rv-red);
  display: inline-flex; align-items: center; gap: 0.7em;
}
.home-showcase__eyebrow::before, .home-featured__eyebrow::before,
.home-financing__eyebrow::before, .home-cta-band__eyebrow::before,
.catalog-hero__eyebrow::before, .contact-hero__eyebrow::before {
  content: ""; width: 1.9rem; height: 1px;
  background: linear-gradient(90deg, var(--rv-red), transparent);
}
/* cifras / precios tabulares */
.na-fnm-card-price, .price, [class*="price"], .na-catalog-count, .catalog-meta {
  font-variant-numeric: tabular-nums;
}

/* ── 3 · BOTONES: sistema premium (rojo con profundidad + fantasma) ──────── */
.btn, .home-hero__btn-primary, .home-financing__cta, .contact-btn,
.home-cta-band__btn-wa, .na-fnm-contact-btn--card {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform 0.32s var(--rv-ease), box-shadow 0.32s var(--rv-ease), background 0.32s var(--rv-ease), color 0.2s;
  will-change: transform;
}
.home-hero__btn-primary, .home-financing__cta--primary, .contact-btn--primary,
.home-cta-band__btn-wa {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #d8203c 0%, var(--rv-red) 55%, var(--rv-red-deep) 100%) !important;
  color: #fff !important; border: 0 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 10px 26px -8px rgba(158, 18, 38, 0.7);
}
.home-hero__btn-primary::after, .home-financing__cta--primary::after,
.contact-btn--primary::after, .home-cta-band__btn-wa::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--rv-ease);
}
.home-hero__btn-primary:hover, .home-financing__cta--primary:hover,
.contact-btn--primary:hover, .home-cta-band__btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 18px 38px -10px rgba(158, 18, 38, 0.8);
}
.home-hero__btn-primary:hover::after, .home-financing__cta--primary:hover::after,
.contact-btn--primary:hover::after, .home-cta-band__btn-wa:hover::after { transform: translateX(120%); }

.btn--ghost, .home-hero__btn-ghost, .home-cta-band__btn-ghost, .contact-btn--whatsapp {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid currentColor;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.home-hero__btn-ghost:hover, .home-cta-band__btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.16); }

/* ── 4 · HEADER: crema con cristal, filete y sombra al hacer scroll ──────── */
.site-header {
  background: linear-gradient(180deg, rgba(255,253,249,0.96), rgba(247,242,233,0.92)) !important;
  -webkit-backdrop-filter: saturate(1.1) blur(12px); backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--rv-line) !important;
  transition: box-shadow 0.4s var(--rv-ease), background 0.4s var(--rv-ease);
}
body.rv-scrolled .site-header { box-shadow: 0 10px 30px -16px rgba(33,26,20,0.25); }
.site-header .logo__img { filter: drop-shadow(0 4px 10px rgba(33,26,20,0.12)); transition: transform 0.4s var(--rv-ease); }
.site-header .logo:hover .logo__img { transform: scale(1.03) rotate(-0.5deg); }
.site-header .nav a {
  position: relative; color: var(--rv-ink); font-weight: 600;
  letter-spacing: 0.02em; padding-block: 0.3rem;
}
.site-header .nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--rv-red); border-radius: 2px; transition: right 0.36s var(--rv-ease);
}
.site-header .nav a:hover::after, .site-header .nav a[aria-current="page"]::after { right: 0; }
.site-header .nav a[aria-current="page"] { color: var(--rv-red); }
/* lang toggle = pastilla con color de marca */
.site-header .site-lang-toggle {
  border: 1.5px solid var(--rv-line) !important;
  color: var(--rv-ink) !important; background: rgba(255,255,255,0.5) !important;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem;
  border-radius: 999px; padding: 0.45rem 0.9rem;
}
.site-header .site-lang-toggle:hover {
  border-color: var(--rv-red) !important; color: var(--rv-red) !important; background: #fff !important;
}

/* ── 5 · HERO: cinematográfico, kinético, con spotlight al cursor ────────── */
.home-hero { isolation: isolate; }
.home-hero__img { transform: scale(1.06) translateY(var(--rv-par, 0)); will-change: transform; }
.home-hero__scrim {
  background:
    radial-gradient(120% 100% at 50% 100%, rgba(20,12,6,0.78), transparent 60%),
    linear-gradient(180deg, rgba(20,12,6,0.5) 0%, rgba(20,12,6,0.2) 38%, rgba(20,12,6,0.55) 100%) !important;
}
.home-hero::after { /* spotlight cálido que sigue el cursor */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(28rem 28rem at var(--rv-mx, 50%) var(--rv-my, 38%), rgba(255,210,150,0.16), transparent 70%);
  opacity: 0; transition: opacity 0.6s var(--rv-ease); mix-blend-mode: screen;
}
.home-hero:hover::after { opacity: 1; }
.home-hero__content { position: relative; z-index: 2; }
.home-hero__title { font-size: clamp(2.5rem, 6.6vw, 5.4rem); text-shadow: 0 2px 30px rgba(0,0,0,0.4); }
.home-hero__eyebrow { color: rgba(255,230,205,0.92); }
.home-hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 34ch; margin-inline: auto; }
.home-hero__badges { gap: 0.6rem; }
.home-hero__badges li {
  background: rgba(20,14,8,0.5) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18) !important;
  border-radius: 999px; padding: 0.5rem 1rem; font-weight: 600; font-size: 0.82rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.home-hero__badges li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rv-gold); box-shadow: 0 0 8px var(--rv-gold);
}
/* reveal kinético del titular (clip por línea) */
.home-hero__content.rv-reveal .home-hero__title { animation: rvRise 1s var(--rv-ease) both 0.15s; }
.home-hero__content.rv-reveal .home-hero__lead { animation: rvRise 1s var(--rv-ease) both 0.3s; }
.home-hero__content.rv-reveal .home-hero__actions { animation: rvRise 1s var(--rv-ease) both 0.42s; }
@keyframes rvRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ── 6 · DIVISOR / MARQUEE refinado ─────────────────────────────────────── */
.rv-marquee {
  background: linear-gradient(90deg, var(--rv-ink) 0%, #2c241b 50%, var(--rv-ink) 100%) !important;
  border-block: 1px solid rgba(184,146,58,0.25);
}
.rv-marquee__item { color: rgba(255,248,238,0.9) !important; letter-spacing: 0.02em; }
.rv-marquee__item::after { color: var(--rv-gold) !important; }

/* ── 7 · SUPERFICIES / CARDS: papel cálido, filete, sombra en capas, hover ─ */
.home-trust__item, .home-showcase__card, .home-financing__card,
.home-categories__grid > *, .grid-products > *, .contact-tile, .contact-card,
.contact-map-card, .home-cta-band {
  background: var(--rv-paper);
  border: 1px solid var(--rv-line);
  border-radius: 18px;
  box-shadow: var(--rv-sh-sm);
  transition: transform 0.4s var(--rv-ease), box-shadow 0.4s var(--rv-ease), border-color 0.4s var(--rv-ease);
}
.home-trust__item:hover, .home-showcase__card:hover, .home-financing__card:hover,
.home-categories__grid > *:hover, .grid-products > *:hover, .contact-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--rv-sh-lg);
  border-color: rgba(184,146,58,0.45);
}
.home-trust__icon { color: var(--rv-red); font-size: 2rem; }
.home-trust__title, .home-showcase__card-title, .home-financing__name { color: var(--rv-ink); }

/* foto de producto con zoom suave al hover */
.home-showcase__media, .grid-products [class*="media"], .grid-products [class*="img"] { overflow: hidden; border-radius: 14px; }
.home-showcase__card:hover .home-showcase__img,
.grid-products > *:hover img { transform: scale(1.05); }
.home-showcase__img, .grid-products img { transition: transform 0.6s var(--rv-ease); }

/* financiación: tarjeta destacada con corona de marca */
.home-financing__card--featured { border-color: rgba(200,16,46,0.4); box-shadow: 0 24px 60px -22px rgba(158,18,38,0.4); }
.home-financing__badge { background: var(--rv-red); color: #fff; border-radius: 999px; font-weight: 700; letter-spacing: 0.06em; }
.home-financing__badge--soft { background: rgba(184,146,58,0.18); color: var(--rv-gold); }
.home-financing__badge--accent { background: rgba(33,26,20,0.08); color: var(--rv-ink-soft); }

/* CTA band */
.home-cta-band { padding: clamp(1.6rem, 3vw, 2.8rem); border-radius: 24px; }
.home-cta-band__card { background: var(--rv-cream); border: 1px solid var(--rv-line); border-radius: 14px; }
.home-cta-band__card-icon { color: var(--rv-red); }
.home-cta-band__map { border-radius: 16px; overflow: hidden; }
/* Texto oscuro sobre el fondo claro del band (premium.css lo dejaba blanco → sin contraste) */
.home-cta-band__title { color: var(--rv-ink) !important; }
.home-cta-band__text { color: var(--rv-ink-soft) !important; }
.home-cta-band__card-label { color: var(--rv-ink-soft) !important; }
.home-cta-band__card-value,
.home-cta-band__card-value--link { color: var(--rv-ink) !important; }
.home-cta-band__card-value--link:hover { color: var(--rv-red) !important; }

/* ── 8 · CATÁLOGO + CONTACTO: heroes y tiles coherentes ─────────────────── */
.catalog-hero, .contact-hero { position: relative; }
.catalog-hero__title, .contact-hero__title { font-size: clamp(2.2rem, 5vw, 3.8rem); color: var(--rv-ink); }
.catalog-hero__panel { background: var(--rv-paper); border: 1px solid var(--rv-line); border-radius: 18px; box-shadow: var(--rv-sh-md); }
.catalog-sidebar__panel { background: var(--rv-paper); border: 1px solid var(--rv-line); border-radius: 16px; }
.na-catalog-pills .na-catalog-pill, .contact-directions__pills a {
  border-radius: 999px; transition: transform 0.25s var(--rv-ease), background 0.25s, color 0.2s, border-color 0.2s;
}
.na-catalog-pills .na-catalog-pill:hover { transform: translateY(-1px); border-color: var(--rv-red); color: var(--rv-red); }
.contact-tile__icon, .contact-card__icon { color: var(--rv-red); }
.contact-hours-banner { border-radius: 999px; border: 1px solid var(--rv-line); background: rgba(184,146,58,0.1); }

/* ── 9 · FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #2a221a 0%, var(--rv-ink) 100%) !important;
  color: rgba(255,248,238,0.78) !important;
  border-top: 3px solid var(--rv-red);
}
.site-footer a { color: rgba(255,248,238,0.78) !important; transition: color 0.2s; }
.site-footer a:hover { color: var(--rv-gold) !important; }
.site-footer strong { color: #fff !important; letter-spacing: 0.04em; }
.site-footer__bar { border-top: 1px solid rgba(255,255,255,0.1); }

/* ── 10 · MOBILE BAR ────────────────────────────────────────────────────── */
.rv-mobile-bar { box-shadow: 0 -8px 30px -10px rgba(33,26,20,0.3); border-top: 1px solid var(--rv-line); }
.rv-mobile-bar__btn--wa { background: #25d366 !important; color: #fff !important; }
.rv-mobile-bar__btn--call { color: var(--rv-red); }

/* ── 11 · MICRO-INTERACCIONES de reveal (refina el motion existente) ─────── */
.rv-reveal { transition-timing-function: var(--rv-ease); }

/* ── 12 · reduced motion: deja TODO visible y quieto ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .home-hero__img { transform: scale(1.04) !important; }
  .home-hero__content.rv-reveal .home-hero__title,
  .home-hero__content.rv-reveal .home-hero__lead,
  .home-hero__content.rv-reveal .home-hero__actions { animation: none !important; opacity: 1 !important; transform: none !important; }
  .home-hero::after { display: none; }
  * { scroll-behavior: auto !important; }
}

/* ── responsive: el texto del hero cede protagonismo a la foto en móvil ──── */
@media (max-width: 600px) {
  .home-hero__title { font-size: clamp(2rem, 8.5vw, 2.8rem); }
  .home-hero__lead { font-size: 0.98rem; }
  .home-trust__item, .home-showcase__card, .home-financing__card,
  .grid-products > *, .contact-tile { border-radius: 14px; }
}
