/* ═══════════════════════════════════════════════
   Landing Renderer — Estilos base
   Variables --l-* se setean desde JS (tema de la landing)
   ═══════════════════════════════════════════════ */

:root {
  --l-fondo: #1a1a1a;
  --l-texto: #ffffff;
  --l-acento: #b8943e;
  --l-acento-cta: #2e7d32;
  --l-fuente-titulos: 'Inter', -apple-system, sans-serif;
  --l-fuente-cuerpo: 'Inter', -apple-system, sans-serif;
  --l-radius: 2px;
}

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

html { overflow-x: hidden; scroll-behavior: smooth; }

body {
  font-family: var(--l-fuente-cuerpo);
  background: var(--l-fondo);
  color: var(--l-texto);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; outline: none; font-family: var(--l-fuente-cuerpo); background: none; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════
   MARQUEE
   ═══════════════════════════════ */
.lr-marquee {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--l-fondo);
  overflow: hidden;
  white-space: nowrap;
  height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lr-marquee-track {
  display: inline-flex;
  animation: lr-marquee-scroll 20s linear infinite;
}

.lr-marquee-track span {
  display: inline-block;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--l-texto);
}

.lr-marquee-track .lr-dot {
  color: var(--l-acento);
  padding: 0 8px;
}

.lr-marquee-track .lr-accent {
  color: var(--l-acento);
}

@keyframes lr-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.lr-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.lr-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.lr-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 24px 40px;
  max-width: 600px;
}

.lr-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--l-acento);
  margin-bottom: 10px;
}

.lr-hero h1 {
  font-family: var(--l-fuente-titulos);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}

.lr-hero p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  max-width: 42ch;
}

.lr-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 32px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--l-radius);
  background: var(--l-acento);
  color: #fff;
  transition: opacity 0.15s;
}

.lr-hero-btn:active { opacity: 0.9; }

/* ═══════════════════════════════
   IMAGEN (full-width)
   ═══════════════════════════════ */
.lr-imagen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════
   CTA (full-width button)
   ═══════════════════════════════ */
.lr-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  border-radius: 0;
  background: var(--l-acento-cta);
  color: #fff;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--l-fuente-cuerpo);
}

.lr-cta:active { filter: brightness(0.9); }

.lr-cta .lr-cta-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lr-cta .lr-cta-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.lr-cta .lr-cta-arrow {
  display: inline-block;
  margin-left: 4px;
  animation: lr-arrow-bounce 1.3s ease-in-out infinite;
}

/* Shimmer */
.lr-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: lr-shimmer 3s ease-in-out infinite;
}

@keyframes lr-shimmer {
  0% { left: -100%; }
  55%, 100% { left: 150%; }
}

@keyframes lr-arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ═══════════════════════════════
   TEXTO (bloque con titulo)
   ═══════════════════════════════ */
.lr-texto {
  padding: 48px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.lr-texto .lr-eyebrow {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--l-acento);
  margin-bottom: 10px;
}

.lr-texto h2 {
  font-family: var(--l-fuente-titulos);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 16px;
}

.lr-texto .lr-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--l-texto) 75%, transparent);
  text-align: center;
}

.lr-texto[data-align="left"] h2,
.lr-texto[data-align="left"] .lr-eyebrow,
.lr-texto[data-align="left"] .lr-body { text-align: left; }

/* ═══════════════════════════════
   GALERIA
   ═══════════════════════════════ */
.lr-galeria {
  padding: 32px 16px;
}

.lr-galeria-grid {
  display: grid;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto;
}

.lr-galeria-grid[data-cols="2"] { grid-template-columns: 1fr 1fr; }
.lr-galeria-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.lr-galeria-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

.lr-galeria-grid img {
  width: 100%;
  height: auto;
  border-radius: var(--l-radius);
  object-fit: cover;
}

@media (max-width: 600px) {
  .lr-galeria-grid[data-cols="3"],
  .lr-galeria-grid[data-cols="4"] {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════
   FAQ
   ═══════════════════════════════ */
.lr-faq {
  padding: 48px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.lr-faq h2 {
  font-family: var(--l-fuente-titulos);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.lr-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.lr-faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--l-texto);
  text-align: left;
}

.lr-faq-btn .lr-faq-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.lr-faq-item.open .lr-faq-arrow {
  transform: rotate(45deg);
}

.lr-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.lr-faq-item.open .lr-faq-answer {
  max-height: 500px;
}

.lr-faq-answer p {
  padding: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--l-texto) 70%, transparent);
}

/* ═══════════════════════════════
   PRECIOS
   ═══════════════════════════════ */
.lr-precios {
  padding: 48px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.lr-precios h2 {
  font-family: var(--l-fuente-titulos);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.lr-precios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.lr-precio-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  min-width: 140px;
  flex: 1;
}

.lr-precio-card.lr-destacado {
  border-color: var(--l-acento);
  background: rgba(255,255,255,0.1);
  transform: scale(1.04);
}

.lr-precio-card .lr-precio-qty {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--l-acento);
  margin-bottom: 8px;
}

.lr-precio-card .lr-precio-valor {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lr-precio-card .lr-precio-label {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ═══════════════════════════════
   TESTIMONIOS
   ═══════════════════════════════ */
.lr-testimonios {
  padding: 48px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.lr-testimonios h2 {
  font-family: var(--l-fuente-titulos);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.lr-testimonio {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}

.lr-testimonio-estrellas {
  color: var(--l-acento);
  font-size: 14px;
  margin-bottom: 8px;
}

.lr-testimonio-texto {
  font-size: 0.92rem;
  line-height: 1.6;
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 8px;
}

.lr-testimonio-nombre {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--l-acento);
}

/* ═══════════════════════════════
   HTML LIBRE
   ═══════════════════════════════ */
.lr-html-libre {
  width: 100%;
}

/* ═══════════════════════════════
   CATALOGO (productos desde Supabase)
   ═══════════════════════════════ */
.lr-catalogo {
  padding: 48px 16px;
  max-width: 1120px;
  margin: 0 auto;
}

.lr-catalogo h2 {
  font-family: var(--l-fuente-titulos);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.lr-catalogo .lr-cat-sub {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 24px;
}

.lr-catalogo-grid {
  display: grid;
  gap: 16px;
}

.lr-catalogo-grid[data-cols="2"] { grid-template-columns: 1fr 1fr; }
.lr-catalogo-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.lr-catalogo-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 600px) {
  .lr-catalogo-grid[data-cols="3"],
  .lr-catalogo-grid[data-cols="4"] {
    grid-template-columns: 1fr 1fr;
  }
}

.lr-producto-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.lr-producto-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.lr-producto-info {
  padding: 12px;
}

.lr-producto-nombre {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.lr-producto-color {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-bottom: 4px;
}

.lr-producto-precio {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--l-acento);
}

/* ═══════════════════════════════
   SEPARADOR
   ═══════════════════════════════ */
.lr-separador-linea {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0;
}

.lr-separador-ornamento {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
}

.lr-separador-ornamento::before,
.lr-separador-ornamento::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--l-acento);
  opacity: 0.6;
}

.lr-separador-ornamento i {
  width: 5px;
  height: 5px;
  background: var(--l-acento);
  transform: rotate(45deg);
  display: block;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.lr-footer {
  padding: 24px 20px 40px;
  text-align: center;
  background: rgba(0,0,0,0.2);
}

.lr-footer p {
  font-size: 0.78rem;
  opacity: 0.4;
}

.lr-footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
}

.lr-footer-links a {
  font-size: 0.82rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.lr-footer-links a:hover { opacity: 1; }

/* ═══════════════════════════════
   STICKY CTA
   ═══════════════════════════════ */
.lr-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--l-acento-cta);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: none;
}

.lr-sticky-cta a {
  display: block;
  width: 100%;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px;
}

.lr-sticky-cta.visible { display: block; }

/* WhatsApp FAB */
.lr-wa-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.15s;
}

.lr-wa-fab:active { transform: scale(0.95); }
.lr-wa-fab svg { width: 28px; height: 28px; fill: #fff; }

/* Sticky CTA presente = mover WAB arriba */
.lr-sticky-cta.visible ~ .lr-wa-fab { bottom: 72px; }

@media (prefers-reduced-motion: reduce) {
  .lr-marquee-track,
  .lr-cta .lr-cta-arrow { animation: none; }
  .lr-cta::after { display: none; }
}
