/* =========================================================
   Centella Luces — estilos (demo de Tereré Estudio)
   Mínimo y sofisticado. Dos estados: día (apagado) y noche (encendido).
   ========================================================= */

@font-face { font-family: "Poppins"; src: url("../../fonts/poppins-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --fondo: #f3f0ea;
  --fondo-2: #ebe6de;
  --texto: #1b1a18;
  --suave: #6a645b;
  --linea: rgba(27, 26, 24, .14);
  --calida: #ffcf8a;
  --pared: #ebe6de;
  --piso: #e0d9ce;
  --tarjeta: #f8f6f1;
  --t: .9s;
  --wa: #148a47;
  --ig: #b4246f;
  --tit: "Poppins", "Inter", system-ui, sans-serif;
  --txt: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cab: 92px;
}
body.noche {
  --fondo: #121110;
  --fondo-2: #181614;
  --texto: #efe9df;
  --suave: #b1a797;
  --linea: rgba(239, 233, 223, .14);
  --pared: #191715;
  --piso: #201d1a;
  --tarjeta: #161412;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--cab); }
body { margin: 0; font: 400 1rem/1.6 var(--txt); color: var(--texto); background: var(--fondo); overflow-x: hidden;
  transition: background-color var(--t) ease, color var(--t) ease; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } :root { --t: 0s; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--tit); font-weight: 300; margin: 0; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #c98a2e; outline-offset: 3px; }
[hidden] { display: none !important; }
.defs-ocultas { position: absolute; width: 0; height: 0; overflow: hidden; }
.saltar { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--texto); color: var(--fondo); padding: 8px 14px; }
.saltar:focus { left: 8px; }
.envoltura { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .envoltura { padding: 0 40px; } }
.antetitulo { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--suave); }
.nota { margin-top: 18px; font-size: .84rem; color: var(--suave); }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color var(--t) ease, box-shadow .3s ease; }
.cab--fondo { background: color-mix(in srgb, var(--fondo) 94%, transparent); box-shadow: 0 1px 0 var(--linea); }
.demo-barra { display: block; padding: 6px 12px; background: #1b1a18; color: #f3f0ea; font-size: .74rem; letter-spacing: .03em; text-align: center; text-decoration: none; }
.noche .demo-barra { background: #2a2622; }
.cab__fila { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.cab__logo { margin-right: auto; text-decoration: none; }
.logo { width: 136px; height: auto; }
.logo__chispa { fill: #c98a2e; transition: fill var(--t) ease; }
.noche .logo__chispa { fill: var(--calida); filter: drop-shadow(0 0 6px rgba(255, 207, 138, .9)); }
.btn-pedido { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 6px 6px 16px; border: 1px solid var(--linea); border-radius: 999px; background: none; cursor: pointer; font-size: .9rem; }
.btn-pedido__n { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: var(--texto); color: var(--fondo); font-size: .8rem; font-weight: 600; transition: background-color var(--t) ease, color var(--t) ease; }

/* ---------- Interruptor ---------- */
.interruptor { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 22px 6px 8px; border: 1px solid var(--texto); border-radius: 999px; background: transparent; cursor: pointer; font-size: 1rem; }
.interruptor__pista { position: relative; width: 58px; height: 34px; border-radius: 999px; background: #d8d1c5; transition: background-color var(--t) ease, box-shadow var(--t) ease; }
.interruptor__perilla { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .4s cubic-bezier(.5, 0, .2, 1), background-color var(--t) ease; }
.interruptor[aria-pressed="true"] .interruptor__pista { background: #3a332b; box-shadow: 0 0 22px rgba(255, 207, 138, .45); }
.interruptor[aria-pressed="true"] .interruptor__perilla { transform: translateX(24px); background: var(--calida); box-shadow: 0 0 14px var(--calida); }
.interruptor--chico { min-height: 40px; padding: 4px 14px 4px 4px; border-color: var(--linea); font-size: .88rem; gap: 8px; }
.interruptor--chico .interruptor__pista { width: 44px; height: 26px; }
.interruptor--chico .interruptor__perilla { width: 20px; height: 20px; top: 3px; left: 3px; }
.interruptor--chico[aria-pressed="true"] .interruptor__perilla { transform: translateX(18px); }
@media (max-width: 479px) { .interruptor--chico .interruptor__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .interruptor--chico { padding: 4px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--cab) + 20px) 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(42% 46% at 72% 40%, rgba(255, 207, 138, .28), transparent 70%); opacity: 0; transition: opacity var(--t) ease; pointer-events: none; }
.noche .hero::before { opacity: 1; }
.hero__grilla { position: relative; display: grid; gap: 12px; align-items: center; }
.hero__texto { display: grid; gap: 18px; justify-items: start; order: 2; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); line-height: 1.02; text-wrap: balance; }
.hero h1 span { color: var(--suave); }
.noche .hero h1 span { color: var(--calida); }
.hero__bajada { max-width: 36ch; color: var(--suave); font-size: 1.05rem; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.enlace { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 6px; }
.hero__arte { order: 1; justify-self: center; width: min(56%, 220px); margin: -12px 0 -40px; }
.hero__lampara { width: 100%; height: auto; overflow: visible; }
@media (min-width: 900px) {
  .hero { padding: calc(var(--cab) + 10px) 0 24px; min-height: 560px; }
  .hero__grilla { grid-template-columns: 1.1fr .9fr; }
  .hero__texto { order: 1; }
  .hero__arte { order: 2; width: 100%; max-width: 360px; margin: -40px 0 0; }
}

/* ---------- Dibujos: estado apagado / encendido ---------- */
.lampara { width: 100%; height: auto; }
.lampara .pared { fill: var(--pared); transition: fill var(--t) ease; }
.lampara .piso { fill: var(--piso); transition: fill var(--t) ease; }
.cable { stroke: #8a8378; stroke-width: 1.4; fill: none; }
.noche .cable { stroke: #3a3631; }
.metal { fill: #2b2926; }
.metal-anillo { fill: none; stroke: #2b2926; stroke-width: 6; }
.pantalla { fill: #2b2926; }
.pantalla-clara { fill: #e9e3d8; stroke: #cfc6b8; stroke-width: 1; }
.vidrio { fill: #f6f3ee; stroke: #cfc7ba; stroke-width: 1.5; transition: fill var(--t) ease, stroke var(--t) ease; }
.foco { fill: #d6cfc3; transition: fill var(--t) ease; }
.linea-led { fill: none; stroke: #bdb6aa; stroke-width: 4; transition: stroke var(--t) ease; }
.aureola { fill: #e2dbd0; transition: fill var(--t) ease; }
.disco { fill: #d9d2c6; }
.marmol { fill: #e6e1d9; stroke: #cfc6b8; }
.patas { stroke: #7a5a3a; stroke-width: 5; fill: none; stroke-linecap: round; }
.tela { fill: #efe7d8; stroke: #d1c6b4; stroke-width: 1.2; transition: fill var(--t) ease; }
.ceramica { fill: #cdbba3; }
.pliegue { stroke: #d6cab6; stroke-width: 1.2; }
.luz { opacity: 0; transition: opacity var(--t) ease; }
.noche .luz { opacity: 1; }
.noche .vidrio { fill: url(#cl-opal); stroke: transparent; }
.noche .foco { fill: #ffe9c4; }
.noche .linea-led { stroke: #ffe1a8; }
.noche .aureola { fill: #ffd9a0; }
.noche .tela { fill: #ffe9c4; stroke: transparent; }
.noche .pliegue { stroke: #e9cfa2; }
/* encendido en cascada (solo al usar el interruptor) */
.cascada .tarjeta .luz, .cascada .tarjeta .foco, .cascada .tarjeta .vidrio, .cascada .tarjeta .tela, .cascada .tarjeta .aureola, .cascada .tarjeta .linea-led { transition-delay: var(--retraso, 0ms); }

/* Tono de luz por lámpara: los degradados de cada dibujo toman estas variables (2700 K por defecto) */
.tarjeta, .pedido__mini { --l-c: #ffe2b0; --l-m: #ffc977; --l-e: #ffb35c; --l-f: #ffe9c4; }
.t-c { stop-color: var(--l-c); } .t-m { stop-color: var(--l-m); } .t-e { stop-color: var(--l-e); } .t-f { stop-color: var(--l-f); }
.noche .tarjeta .vidrio, .noche .pedido__mini .vidrio { fill: var(--vidrio, url(#cl-opal)); }
.noche .tarjeta .foco, .noche .tarjeta .tela, .noche .pedido__mini .foco, .noche .pedido__mini .tela { fill: var(--l-f); }
.noche .tarjeta .linea-led, .noche .pedido__mini .linea-led { stroke: var(--l-f); }
.noche .tarjeta .aureola, .noche .pedido__mini .aureola { fill: var(--l-c); }
.tarjeta--ajustando .foco, .tarjeta--ajustando .vidrio, .tarjeta--ajustando .tela, .tarjeta--ajustando .aureola, .tarjeta--ajustando .linea-led { transition: none; }

.tono { margin: 0 0 10px; }
.tono__cab { display: flex; justify-content: space-between; align-items: baseline; font-size: .72rem; letter-spacing: .04em; color: var(--suave); }
.tono__k { font-variant-numeric: tabular-nums; }
.tono__barra { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: none; cursor: pointer; }
.tono__barra::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffb35c, #ffe2b0 30%, #fff8ee 55%, #d3e1ff); }
.tono__barra::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffb35c, #ffe2b0 30%, #fff8ee 55%, #d3e1ff); }
.tono__barra::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--tarjeta); border: 1.5px solid var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.tono__barra::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--tarjeta); border: 1.5px solid var(--texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.tono__barra:focus-visible { outline: 2px solid var(--texto); outline-offset: 2px; border-radius: 4px; }
.noche .tono__barra::-webkit-slider-thumb { background: var(--l-f); border-color: var(--l-f); box-shadow: 0 0 10px var(--l-m); }
.noche .tono__barra::-moz-range-thumb { background: var(--l-f); border-color: var(--l-f); box-shadow: 0 0 10px var(--l-m); }
.pedido__tono { display: block; font-size: .78rem; color: var(--suave); }
.noche .hero__lampara .luz { transition-duration: 1.4s; }

/* ---------- Catálogo ---------- */
.seccion { padding: 56px 0; }
@media (min-width: 900px) { .seccion { padding: 80px 0; } }
.seccion--linea { border-top: 1px solid var(--linea); }
.catalogo__cab { display: grid; gap: 16px; margin-bottom: 28px; }
@media (min-width: 900px) { .catalogo__cab { grid-template-columns: auto 1fr; align-items: end; } .filtros { justify-self: end; } }
.filtros { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 4px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filtros { margin: 0; padding: 0; flex-wrap: wrap; } }
.filtros button { flex: none; min-height: 40px; padding: 8px 18px; border: 1px solid var(--linea); border-radius: 999px; background: none; cursor: pointer; font-size: .9rem; }
.filtros button[aria-pressed="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); }
.grilla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.tarjeta { display: flex; flex-direction: column; background: var(--tarjeta); border-radius: 4px; overflow: hidden; transition: background-color var(--t) ease; }
.tarjeta__luz { background: var(--pared); transition: background-color var(--t) ease; }
.tarjeta__info { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 16px; flex: 1; }
.tarjeta h3 { font-size: 1.25rem; }
.tarjeta__mat { font-size: .8rem; color: var(--suave); line-height: 1.4; }
.tarjeta__precio { margin: 8px 0 12px; font-weight: 600; }
.agregar { margin-top: auto; min-height: 42px; border: 1px solid var(--texto); border-radius: 999px; background: none; cursor: pointer; font-size: .88rem; transition: background-color .2s ease, color .2s ease; }
.agregar:hover, .agregar--hecho { background: var(--texto); color: var(--fondo); }

.como { display: grid; gap: 24px; }
@media (min-width: 900px) { .como { grid-template-columns: .6fr 1.4fr; } }
.como__pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: c; }
@media (min-width: 768px) { .como__pasos { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.como__pasos li { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--linea); }
.como__pasos strong { font: 300 1.3rem/1.2 var(--tit); }
.como__pasos span { color: var(--suave); font-size: .92rem; }

/* ---------- Botones generales, CTA y pie ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px; font: 600 .95rem/1.15 var(--txt); text-decoration: none; cursor: pointer; }
.btn svg { width: 20px; height: 20px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--ig { background: var(--ig); color: #fff; min-height: 40px; padding: 8px 16px; }
.btn--bloque { width: 100%; }
.quiero { background: var(--fondo-2); padding: 44px 0; transition: background-color var(--t) ease; }
.quiero__fila { display: grid; gap: 16px; align-items: center; }
.quiero h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.2rem); }
.quiero p { margin-top: 8px; color: var(--suave); max-width: 54ch; }
.quiero .btn--wa { justify-self: start; }
@media (min-width: 768px) { .quiero__fila { grid-template-columns: 1fr auto; } }
.pie { padding: 44px 0 16px; border-top: 1px solid var(--linea); font-size: .9rem; color: var(--suave); }
.pie__grilla { display: grid; gap: 22px; }
.pie__grilla > div { display: grid; gap: 8px; align-content: start; }
.pie__marca { font: 300 1.8rem/1 var(--tit); color: var(--texto); }
.pie__t { color: var(--texto); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.pie .btn { justify-self: start; }
.pie__aviso { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--linea); font-size: .8rem; }
@media (min-width: 768px) { .pie__grilla { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Pedido ---------- */
.pedido { width: min(440px, 100%); max-height: 100dvh; height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--fondo); color: var(--texto); }
.pedido::backdrop { background: rgba(10, 9, 8, .55); }
.pedido__caja { display: grid; gap: 16px; padding: 20px; }
.pedido__cab { display: flex; justify-content: space-between; align-items: center; }
.pedido__cerrar { width: 44px; height: 44px; border: 1px solid var(--linea); border-radius: 50%; background: none; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.pedido__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pedido__lista li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--linea); }
.pedido__mini { width: 56px; background: var(--pared); border-radius: 4px; overflow: hidden; }
.pedido__n { display: grid; font-size: .86rem; color: var(--suave); }
.pedido__n strong { color: var(--texto); font-weight: 600; }
.pedido__cant { display: inline-flex; align-items: center; gap: 6px; }
.pedido__cant button { width: 36px; height: 36px; border: 1px solid var(--linea); border-radius: 50%; background: none; cursor: pointer; font-size: 1.1rem; }
.pedido__vacio { color: var(--suave); }
#pedido-datos { display: grid; gap: 14px; }
.pedido__total { display: flex; justify-content: space-between; align-items: baseline; }
.pedido__total strong { font: 300 1.8rem/1 var(--tit); }
.campo { display: grid; gap: 6px; font-size: .9rem; }
.campo input { width: 100%; padding: 12px 14px; border: 1px solid var(--linea); border-radius: 10px; background: var(--tarjeta); font-size: 1rem; }
.segmentos { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--linea); border-radius: 999px; justify-self: start; }
.segmentos button { min-height: 38px; padding: 6px 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.segmentos button[aria-checked="true"] { background: var(--texto); color: var(--fondo); }
.pedido__vista { display: grid; gap: 8px; padding: 14px; border-radius: 12px; background: #efe6dc; color: #1b1a18; }
.pedido__vista-t { font-weight: 600; font-size: .9rem; }
.chat__globo { padding: 10px 12px; background: #d6f0c9; border-radius: 10px 0 10px 10px; white-space: pre-line; font-size: .86rem; line-height: 1.45; overflow-wrap: anywhere; }
.pedido__vista .nota { color: #6a645b; margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 20px; background: var(--texto); color: var(--fondo); border-radius: 999px; font-size: .9rem; }

/* ---------- Firma Tereré Estudio (no modificar) ---------- */
.firma-te { background: #161415; padding: 14px 16px; text-align: center; }
.firma-te a { display: inline-flex; align-items: center; gap: 10px; color: #F3E9DA; text-decoration: none; font: 500 14px/1 system-ui, sans-serif; }
.firma-te img { height: 28px; width: auto; opacity: 0.9; }
.firma-te a:hover img, .firma-te a:focus-visible img { opacity: 1; }
.firma-te a:focus-visible { outline: 2px solid #9FBD2B; outline-offset: 4px; }
@media (max-width: 600px) { .firma-te img { height: 24px; } }

/* ---------- Páginas internas ---------- */
.interna { padding: calc(var(--cab) + 32px) 0 56px; }
.interna .envoltura { max-width: 760px; display: grid; gap: 14px; }
.interna h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
.interna h2 { font-size: 1.3rem; margin-top: 10px; }
.interna ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.interna .aviso { padding: 12px 16px; border-left: 2px solid #c98a2e; background: var(--fondo-2); }
