/* Tienda pública de ilumina.tu.casa (index.html). Paleta y tipografías de la marca, las mismas
   de los reels: fondo casi negro, ámbar como único acento, cobre y crema; DM Serif Display + DM Sans. */

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

:root {
  --bg: #0b0907;
  --bg-2: #110d09;
  --sup: #17110c;
  --sup-2: #211810;
  --linea: rgba(245, 230, 208, .09);
  --linea-2: rgba(245, 166, 35, .32);
  --ambar: #f5a623;
  --ambar-2: #ffbe4d;
  --cobre: #d4956a;
  --texto: #f5e6d0;
  --suave: #b39d84;
  --tenue: #8a7560;
  --papel: #f7f0e6;
  --tinta: #1a1008;
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px;
  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --cab-alto: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cab-alto) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--texto); background: var(--bg);
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--ambar); color: var(--tinta); }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }

.cont { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.cont--angosto { max-width: calc(780px + 2 * var(--gutter)); }
.visual-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ambar); color: var(--tinta); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

.antetitulo { font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ambar); margin-bottom: 14px; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .25s, transform .2s;
}
.btn--ambar { background: var(--ambar); color: var(--tinta); box-shadow: 0 10px 30px -10px rgba(245, 166, 35, .55); }
.btn--ambar:hover { background: var(--ambar-2); box-shadow: 0 14px 40px -10px rgba(245, 166, 35, .75); transform: translateY(-1px); }
.btn--linea { border-color: var(--linea-2); color: var(--texto); }
.btn--linea:hover { border-color: var(--ambar); color: var(--ambar); }

/* ── Cabecera ── */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.cab.con-fondo { background: rgba(11, 9, 7, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--linea); }
.cab__fila { height: var(--cab-alto); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.05rem; letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 28px; }
.menu a { text-decoration: none; color: var(--suave); font-size: .92rem; font-weight: 500; transition: color .2s; }
.menu a:hover { color: var(--texto); }
.menu__redes { display: flex; gap: 6px; padding-left: 20px; border-left: 1px solid var(--linea); }
.menu__redes a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.menu__redes a:hover { color: var(--ambar); background: rgba(245, 166, 35, .08); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; place-items: center; }
.menu-btn__barras, .menu-btn__barras::before, .menu-btn__barras::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--texto); transition: transform .25s, opacity .2s; }
.menu-btn__barras { position: relative; }
.menu-btn__barras::before, .menu-btn__barras::after { content: ''; position: absolute; left: 0; }
.menu-btn__barras::before { top: -7px; }
.menu-btn__barras::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__barras { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__barras::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__barras::after { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; padding: calc(var(--cab-alto) + 48px) 0 72px; overflow: hidden; isolation: isolate; }
.hero::before { /* resplandor general del ambiente */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 72% 55%, rgba(245, 166, 35, .10), transparent 70%),
    radial-gradient(50% 40% at 20% 100%, rgba(212, 149, 106, .06), transparent 70%);
}
.hero__luz { position: absolute; z-index: -1; top: var(--cab-alto); bottom: 0; right: max(2vw, calc((100vw - var(--ancho)) / 2 - 20px)); width: min(42vw, 520px); pointer-events: none; }
.lampara { width: 100%; height: 100%; }
.lampara__luz { animation: encender 1.8s .35s both; }
.lampara__bombita { animation: bombita 1.8s .35s both; }
@keyframes encender {
  0% { opacity: 0; } 12% { opacity: .55; } 18% { opacity: .1; } 30% { opacity: .8; } 36% { opacity: .35; } 100% { opacity: 1; }
}
@keyframes bombita {
  0% { opacity: .25; } 12% { opacity: 1; } 18% { opacity: .35; } 30% { opacity: 1; } 36% { opacity: .6; } 100% { opacity: 1; }
}
.hero__cont { position: relative; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.01em; max-width: 15ch; margin-bottom: 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--ambar); display: block; }
.hero__bajada { max-width: 46ch; color: var(--suave); font-size: clamp(1rem, 1.6vw, 1.15rem); margin-bottom: 32px; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Garantías ── */
.garantias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden; padding: 0; }
.garantias li { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: var(--bg-2); }
.garantias svg { flex-shrink: 0; color: var(--ambar); margin-top: 2px; }
.garantias strong { display: block; font-size: .92rem; font-weight: 600; }
.garantias span { display: block; font-size: .82rem; color: var(--suave); }

/* ── Secciones ── */
.seccion { padding: clamp(72px, 10vw, 120px) 0; }
.seccion--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg) 90%); border-top: 1px solid var(--linea); }
.seccion__cab { max-width: 640px; margin-bottom: 40px; }
.seccion__cab h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.05; margin-bottom: 14px; text-wrap: balance; }
.seccion__cab p:not(.antetitulo) { color: var(--suave); font-size: 1.05rem; }
.seccion__cab--fila { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.seccion__cab--fila > div { max-width: 640px; }

/* ── Filtros ── */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.filtros[hidden] { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--sup); border: 1px solid var(--linea); color: var(--suave); font-size: .9rem; font-weight: 500; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--linea-2); color: var(--texto); }
.chip[aria-pressed="true"] { background: var(--ambar); border-color: var(--ambar); color: var(--tinta); font-weight: 600; }
.chip__n { font-size: .78rem; opacity: .7; font-variant-numeric: tabular-nums; }
.orden select {
  appearance: none; min-height: 40px; padding: 8px 40px 8px 16px; border-radius: 999px; cursor: pointer; font-size: .9rem;
  background: var(--sup) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b39d84' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--linea); color: var(--texto);
}
.orden select:hover { border-color: var(--linea-2); }

/* ── Grilla de productos ── */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.prod {
  position: relative; display: flex; flex-direction: column; background: var(--sup); border: 1px solid var(--linea); border-radius: var(--r); overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  animation: aparecer .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms);
}
.prod:hover { border-color: var(--linea-2); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(245, 166, 35, .45); }
@keyframes aparecer { from { opacity: 0; transform: translateY(16px); } }
.prod__foto {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(110% 90% at 50% 0%, #fffaf3 0%, var(--papel) 55%, #e9dccb 100%);
}
.prod__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px; mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.prod:hover .prod__foto img { transform: scale(1.04); }
.prod__emoji { font-size: 4.5rem; line-height: 1; }
.prod__badge { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(11, 9, 7, .88); color: var(--texto); font-size: .75rem; font-weight: 600; }
.prod__cuerpo { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; }
.prod__cat { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cobre); }
.prod__nombre { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.prod__desc { font-size: .9rem; line-height: 1.55; color: var(--suave); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod__pie { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.prod__precio { font-family: var(--serif); font-size: 1.75rem; line-height: 1; color: var(--ambar); font-variant-numeric: lining-nums; }
.prod__precio small { display: block; margin-top: 6px; font-family: var(--sans); font-size: .72rem; color: var(--tenue); }
.btn-ml {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 16px; border-radius: 12px;
  background: rgba(245, 166, 35, .1); border: 1px solid var(--linea-2); color: var(--ambar); font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-ml:hover, .prod:hover .btn-ml { background: var(--ambar); border-color: var(--ambar); color: var(--tinta); }
.btn-ml::after { content: ''; position: absolute; inset: 0; } /* toda la tarjeta es clickeable */
.btn-ml svg { flex-shrink: 0; }

.prod--esqueleto { animation: none; }
.prod--esqueleto .prod__foto { background: var(--sup-2); }
.prod--esqueleto i { display: block; height: 12px; border-radius: 6px; background: var(--sup-2); }
.prod--esqueleto i:nth-child(1) { width: 35%; }
.prod--esqueleto i:nth-child(2) { width: 85%; height: 16px; }
.prod--esqueleto i:nth-child(3) { width: 65%; margin-bottom: 60px; }
.prod--esqueleto .prod__foto, .prod--esqueleto i { animation: titilar 1.4s ease-in-out infinite; }
@keyframes titilar { 50% { opacity: .5; } }

.aviso { grid-column: 1 / -1; text-align: center; padding: 56px 24px; border: 1px dashed var(--linea-2); border-radius: var(--r); color: var(--suave); }
.aviso strong { display: block; color: var(--texto); font-size: 1.1rem; margin-bottom: 6px; }
.aviso .btn { margin-top: 18px; }
.nota-precios { margin-top: 24px; font-size: .82rem; color: var(--tenue); }

/* ── Cómo elegimos ── */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pasos li { position: relative; padding-top: 28px; border-top: 1px solid var(--linea-2); }
.pasos li::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--ambar); box-shadow: 0 0 14px 2px rgba(245, 166, 35, .6); }
.pasos__num { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--ambar); margin-bottom: 14px; }
.pasos h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.pasos p { font-size: .93rem; color: var(--suave); }
.transparencia {
  margin-top: 56px; display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: var(--r);
  border: 1px solid var(--linea-2); background: linear-gradient(135deg, rgba(245, 166, 35, .08), rgba(245, 166, 35, .015));
}
.transparencia svg { flex-shrink: 0; color: var(--ambar); }
.transparencia h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.transparencia p { color: var(--suave); font-size: .95rem; max-width: 80ch; }

/* ── Videos ── */
.videos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--sup-2) transparent; }
.video { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.video__portada { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid var(--linea); background: var(--sup); }
.video__portada img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.video__play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ambar); color: var(--tinta); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); transition: transform .25s; }
.video__titulo { font-size: .9rem; font-weight: 500; line-height: 1.4; color: var(--suave); transition: color .2s; }
.video:hover .video__portada img { transform: scale(1.04); }
.video:hover .video__play { transform: scale(1.1); }
.video:hover .video__titulo { color: var(--texto); }

/* ── Guía de temperatura ── */
.temperaturas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.temp { position: relative; overflow: hidden; padding: 30px 26px 28px; border-radius: var(--r); background: var(--sup); border: 1px solid var(--linea); }
.temp__luz { position: absolute; top: -90px; right: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 65%); opacity: .55; }
.temp--calida { --c: #ff9d3c; }
.temp--neutra { --c: #fff0d6; }
.temp--fria { --c: #bcd6ff; }
.temp__k { position: relative; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--suave); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.temp h3 { position: relative; font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1.1; margin-bottom: 10px; }
.temp p:last-child { position: relative; color: var(--suave); font-size: .93rem; }

/* ── Preguntas ── */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 1.05rem; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--linea-2); color: var(--ambar); font-size: 1.2rem; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ambar); }
.faq details p { padding: 0 48px 24px 0; color: var(--suave); }

/* ── Pie ── */
.pie { border-top: 1px solid var(--linea); background: var(--bg-2); padding: 56px 0 32px; }
.pie__fila { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.pie__marca p { margin-top: 12px; color: var(--suave); font-size: .92rem; max-width: 36ch; }
.pie__links { display: flex; flex-direction: column; gap: 10px; }
.pie__links a { color: var(--suave); text-decoration: none; font-size: .92rem; }
.pie__links a:hover { color: var(--ambar); }
.pie__legal { display: flex; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--linea); color: var(--tenue); font-size: .8rem; }
.pie__legal p:first-child { max-width: 70ch; }
.pie__legal p:last-child { white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .garantias { grid-template-columns: repeat(2, 1fr); }
  .hero__luz { right: -40px; width: min(52vw, 420px); opacity: .85; }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .menu {
    position: absolute; top: var(--cab-alto); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(11, 9, 7, .97); border-bottom: 1px solid var(--linea); visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .menu.abierto { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 14px 0; font-size: 1.05rem; color: var(--texto); border-bottom: 1px solid var(--linea); }
  .menu__redes { border: 0; padding: 14px 0 0; }
  .cab:has(.menu.abierto) { background: rgba(11, 9, 7, .97); }
  .temperaturas { grid-template-columns: 1fr; }
  .pie__fila { grid-template-columns: 1fr 1fr; }
  .pie__marca { grid-column: 1 / -1; }
  .pie__legal { flex-direction: column; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: calc(var(--cab-alto) + 200px); padding-bottom: 56px; }
  .hero__luz { top: calc(var(--cab-alto) - 30px); bottom: auto; height: 420px; width: 260px; right: -56px; opacity: .7; }
  .hero__acciones .btn { flex: 1 1 auto; }
  .garantias li { padding: 16px; gap: 10px; flex-direction: column; }
  .barra { flex-direction: column; align-items: stretch; }
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
  .filtros::-webkit-scrollbar { display: none; }
  .orden select { width: 100%; }
  .grilla { grid-template-columns: 1fr; gap: 16px; }
  .pasos { grid-template-columns: 1fr; gap: 32px; }
  .transparencia { flex-direction: column; padding: 22px; }
  .videos { grid-auto-columns: 62%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
