/* IluminArt3D — configurador de lámparas */
@font-face { /* En la web se sirve Charm (SIL OFL) bajo el nombre Monotype Corsiva: la lampara se graba con la original en Corel */
font-family: "Monotype Corsiva"; src: url(../fonts/Charm-Regular.ttf) format("truetype"); }
@font-face { font-family: "Lucida Calligraphy"; src: url(../fonts/LCALLIG.TTF) format("truetype"); }
@font-face { font-family: "Lucida Handwriting"; src: url(../fonts/LHANDW.TTF) format("truetype"); }
@font-face { font-family: "Playball"; src: url(../fonts/Playball_Regular.ttf) format("truetype"); }
@font-face { font-family: "Brush Script MT"; src: url(../fonts/BRUSHSCI.TTF) format("truetype"); }
@font-face { font-family: "Cooper Black"; src: url(../fonts/COOPBL.TTF) format("truetype"); }
@font-face { font-family: "Forte"; src: url(../fonts/FORTE.TTF) format("truetype"); }
@font-face { font-family: "Embassy BT"; src: url("../fonts/Embassy BT.ttf") format("truetype"); }
@font-face { font-family: "Edwardian Script ITC"; src: url(../fonts/ITCEDSCR.TTF) format("truetype"); }
@font-face { font-family: "Clarendon BT"; src: url("../fonts/Clarendon BT Bold.ttf") format("truetype"); }

/* ---------- tokens ---------- */
:root {
  --fondo: #f7f4ee; --tarjeta: #ffffff; --tinta: #1c1a17; --tinta-2: #5b554c; --tinta-3: #8a8378; --linea: #e6e0d6; --linea-2: #d6cfc2;
  --marca: #2b1d4f; --marca-2: #4a2f8a; --marca-tinte: #f3effc; --marca-tinte-2: #e6ddfb;
  --ambar: #f2a93b; --ambar-2: #ffd58a; --ambar-oscuro: #d98a12; --ambar-tinte: #fff4dd;
  --ok: #1b8a5a; --ok-tinte: #e6f7ee; --peligro: #c62828; --peligro-tinte: #ffe3e3;
  --radio: 16px; --radio-chico: 10px;
  --sombra: 0 6px 24px rgba(30, 20, 60, .08); --sombra-2: 0 14px 34px rgba(30, 20, 60, .14);
  --led-azul: #8fd3ff;
  --alto-cabecera: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--tinta); background: var(--fondo); line-height: 1.5; overflow-x: hidden; }
a { color: var(--marca-2); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
code { background: var(--marca-tinte); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.contenedor { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* foco visible para teclado (accesibilidad) */
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; background: var(--marca); color: #fff; text-decoration: none; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: var(--marca-2); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(43, 29, 79, .18); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ambar { background: var(--ambar); color: var(--marca); box-shadow: 0 4px 14px rgba(242, 169, 59, .35); }
.btn.ambar:hover { background: #ffb84d; box-shadow: 0 8px 20px rgba(242, 169, 59, .45); }
.btn.sec { background: #fff; color: var(--marca); border: 1.5px solid var(--linea-2); }
.btn.sec:hover { background: var(--marca-tinte); border-color: var(--marca-2); box-shadow: none; }
.btn.chico { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn.grande { min-height: 52px; font-size: 1.08rem; }
.btn.bloque { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.whatsapp { background: #25d366; color: #fff; }
.btn.whatsapp:hover { background: #1fb457; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.oculto { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 30; background: rgba(247, 244, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: var(--alto-cabecera); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--marca); font-weight: 800; letter-spacing: .2px; font-size: 1.2rem; border-radius: 8px; }
.logo .bombilla { width: 34px; height: 34px; border-radius: 50%; flex: none; background: radial-gradient(circle at 40% 35%, #fff5d6, var(--ambar) 60%, var(--ambar-oscuro)); box-shadow: 0 0 18px rgba(242, 169, 59, .6); }
.nav { display: flex; gap: 6px; align-items: center; font-weight: 600; }
.nav a:not(.btn) { color: var(--tinta-2); text-decoration: none; padding: 8px 10px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; }
.nav a:not(.btn):hover { color: var(--marca); background: var(--marca-tinte); }
@media (max-width: 640px) {
  :root { --alto-cabecera: 56px; }
  .nav a.solo-escritorio { display: none; }
  .logo { font-size: 1.1rem; } .logo .bombilla { width: 30px; height: 30px; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .sub { font-size: 1.15rem; color: var(--tinta-2); max-width: 48ch; }
.hero .acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero .ventajas { display: flex; gap: 8px 10px; flex-wrap: wrap; margin-top: 24px; font-size: .9rem; color: var(--tinta-2); }
.hero .ventajas span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 5px 12px; }
.hero .ventajas span::before { content: "✓"; color: var(--ok); font-weight: 800; }
.hero-visual { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(30, 20, 60, .22); background: #0b0f18; aspect-ratio: 1000 / 1250; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-visual .lampara-hero { position: absolute; left: 50%; bottom: 32.4%; width: 28.3%; transform: translateX(-50%); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; } }

/* ---------- catálogo ---------- */
.seccion { padding: 40px 0; }
.seccion-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.seccion-titulo h2 { margin: 0; }
.seccion-titulo p { margin: 0; color: var(--tinta-2); }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filtros button { border: 1.5px solid var(--linea-2); background: #fff; border-radius: 999px; min-height: 38px; padding: 6px 14px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--tinta-2); transition: background .12s, color .12s, border-color .12s; }
.filtros button::first-letter { text-transform: uppercase; }
.filtros button:hover { border-color: var(--marca-2); color: var(--marca); }
.filtros button.activo { background: var(--marca); color: #fff; border-color: var(--marca); }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tarjeta { background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; position: relative; }
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra-2); }
.tarjeta:hover .btn { background: var(--marca-2); }
.tarjeta .mini { background: linear-gradient(180deg, #fbf9f5, #f4f0e8); padding: 14px; height: 270px; display: flex; align-items: center; justify-content: center; }
.tarjeta .mini > div { width: 100%; max-height: 100%; display: flex; justify-content: center; }
.tarjeta .mini svg { height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
.tarjeta .cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tarjeta h3 { font-size: 1.05rem; margin: 0; }
.tarjeta .desc { color: var(--tinta-2); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta .pie { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.tarjeta .precio { font-weight: 800; font-size: 1.15rem; color: var(--marca); }
.tarjeta .etiquetas { display: flex; gap: 6px; flex-wrap: wrap; }
.tarjeta .etiquetas span { display: inline-block; font-size: .72rem; font-weight: 600; background: var(--marca-tinte); color: var(--marca-2); padding: 2px 9px; border-radius: 999px; }
.tarjeta .etiquetas span::first-letter { text-transform: uppercase; }
.tarjeta .nuevo { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--ambar); color: var(--marca); font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* ---------- cómo funciona / preguntas ---------- */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.paso { background: #fff; border-radius: var(--radio); padding: 22px; box-shadow: var(--sombra); }
.paso p { margin: 0; color: var(--tinta-2); }
.paso .num { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--ambar-2), var(--ambar)); color: var(--marca); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.faq details { background: #fff; border-radius: 12px; padding: 0 18px; margin-bottom: 8px; box-shadow: var(--sombra); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 28px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--marca-2); border-bottom: 2px solid var(--marca-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 0 16px; color: var(--tinta-2); }
.pie-pagina { padding: 32px 0; color: var(--tinta-2); font-size: .9rem; border-top: 1px solid var(--linea); margin-top: 24px; }
.pie-pagina .contenedor { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.pie-pagina a { color: var(--tinta-3); }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px); gap: 22px; padding: 18px 0 48px; align-items: start; }
.editor-vista { position: sticky; top: calc(var(--alto-cabecera) + 12px); }
.vista-tabs { display: flex; gap: 4px; background: #ebe6dd; border-radius: 999px; padding: 4px; width: max-content; margin-bottom: 10px; }
.vista-tabs button { border: 0; background: transparent; min-height: 40px; padding: 6px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--tinta-2); transition: background .12s, color .12s; }
.vista-tabs button:hover { color: var(--marca); }
.vista-tabs button.activo { background: #fff; color: var(--marca); box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.vista { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 14px; position: relative; overflow: hidden; }
.vista .lienzo-cont { width: 100%; margin: 0 auto; max-height: calc(100vh - 210px); }
.vista.luz { background: #0b0f18; padding: 0; }
.vista.luz .lienzo-cont { position: absolute; left: 50%; transform: translateX(-50%); bottom: 32.4%; width: 28.3%; max-height: none; }
.vista.luz img.fondo { width: 100%; display: block; }
.vista .ayuda, .editor-vista .ayuda { font-size: .82rem; color: var(--tinta-2); margin: 8px 4px 0; text-align: center; }
.led-colores { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.led-colores .led-etiqueta { font-size: .82rem; color: var(--tinta-2); margin-right: 4px; }
.led-colores button { width: 30px; height: 30px; margin: 5px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--linea-2); cursor: pointer; padding: 0; transition: transform .12s; }
.led-colores button:hover { transform: scale(1.12); }
.led-colores button.activo { box-shadow: 0 0 0 2.5px var(--marca); }

.panel { background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 8px 20px 20px; }
.panel-cabecera { padding: 12px 0 6px; }
.panel-titulo { font-size: 1.4rem; margin: 0 0 4px; }
.panel-desc { color: var(--tinta-2); margin: 0; font-size: .92rem; }
.panel h2 { font-size: 1.1rem; margin: 18px 0 10px; display: flex; align-items: center; gap: 10px; }
.panel h2 .num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--marca); color: #fff; font-size: .82rem; display: grid; place-items: center; }
.panel section { border-bottom: 1px solid var(--linea); padding-bottom: 16px; margin-bottom: 4px; }
.panel section:last-child { border: 0; padding-bottom: 0; }
.campo { margin: 10px 0; }
.campo label { display: block; font-size: .85rem; font-weight: 600; color: var(--tinta-2); margin-bottom: 5px; }
.campo input[type=text], .campo input[type=date], .campo input[type=tel], .campo textarea, .campo select, .campo input[type=search],
.texto-item input[type=text], .texto-item textarea, .texto-item select {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--linea-2); border-radius: var(--radio-chico); font: inherit; font-size: 1rem; background: #fff; color: var(--tinta); transition: border-color .12s, box-shadow .12s; }
.campo textarea, .texto-item textarea { min-height: 72px; resize: vertical; }
.campo input:focus, .campo textarea:focus, .campo select:focus, .texto-item input:focus, .texto-item textarea:focus, .texto-item select:focus { outline: none; border-color: var(--marca-2); box-shadow: 0 0 0 3px var(--marca-tinte-2); }
.campo input::placeholder, .texto-item input::placeholder, .texto-item textarea::placeholder { color: #a8a094; }
.fila { display: flex; gap: 10px; align-items: center; }
.fila > * { flex: 1; }
.fila .campo { margin: 10px 0; min-width: 0; }
.texto-item { border: 1.5px solid var(--linea); border-radius: 12px; padding: 12px 14px; margin: 10px 0; transition: border-color .12s, box-shadow .12s; }
.texto-item.sel { border-color: var(--marca-2); box-shadow: 0 0 0 3px var(--marca-tinte-2); }
.texto-item > label { display: block; font-size: .85rem; font-weight: 600; color: var(--tinta-2); margin-bottom: 5px; }
.texto-item .contador { font-size: .75rem; color: var(--tinta-3); text-align: right; margin-top: 3px; }
.texto-item .opciones { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; margin-top: 10px; align-items: end; }
.texto-item .opciones label { font-size: .78rem; color: var(--tinta-2); display: block; margin-bottom: 3px; }
.texto-item .opciones select { min-height: 40px; padding: 6px 10px; font-size: .92rem; }
.texto-item select, .texto-item input[type=range] { width: 100%; }
.fuente-muestra { font-size: 1.05rem; }
input[type=range] { accent-color: var(--marca-2); height: 36px; margin: 0; cursor: pointer; }
.emojis-sugeridos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.emojis-sugeridos button { border: 1px solid var(--linea); background: #fff; border-radius: 10px; font-size: 1.2rem; line-height: 1; cursor: pointer; min-width: 40px; min-height: 40px; padding: 0 6px; transition: background .12s, transform .12s; }
.emojis-sugeridos button:hover { background: var(--marca-tinte); transform: translateY(-1px); }

.fotos-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.foto-item { border: 1.5px solid var(--linea); border-radius: 12px; padding: 6px 6px 7px; text-align: center; cursor: pointer; font-size: .76rem; line-height: 1.2; color: var(--tinta-2); background: #fff; transition: border-color .12s, box-shadow .12s, transform .12s; -webkit-tap-highlight-color: transparent; }
.foto-item:hover { border-color: var(--marca-2); transform: translateY(-1px); }
.foto-item.sel { border-color: var(--marca-2); box-shadow: 0 0 0 3px var(--marca-tinte-2); }
.foto-item .thumb { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #f2efe9 center/cover no-repeat; border: 1.5px dashed var(--linea-2); display: grid; place-items: center; font-size: 1.6rem; color: var(--tinta-3); margin-bottom: 6px; }
.foto-item .thumb.con { color: transparent; border: 0; }
.foto-ctrl { background: var(--marca-tinte); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.foto-ctrl-titulo { font-weight: 700; font-size: .92rem; color: var(--marca); }
.foto-ctrl .fila { margin: 8px 0; flex-wrap: wrap; }
.foto-ctrl .fila label { font-size: .85rem; font-weight: 600; color: var(--tinta-2); }
.foto-ctrl .fila .btn { flex: 1 1 auto; }
.foto-ctrl .modo { display: flex; gap: 6px; }
.foto-ctrl .modo button { flex: 1; border: 1.5px solid var(--linea-2); background: #fff; border-radius: 10px; min-height: 40px; padding: 6px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--tinta-2); }
.foto-ctrl .modo button.activo { background: var(--marca); color: #fff; border-color: var(--marca); }
.aviso { font-size: .84rem; color: #7a4d00; background: var(--ambar-tinte); border-radius: 10px; padding: 9px 12px; margin: 10px 0; line-height: 1.4; }
.aviso.mal { color: #7a1b1b; background: var(--peligro-tinte); }
.aviso.ok { color: #145c3a; background: var(--ok-tinte); }

.resultados { border: 1.5px solid var(--linea); border-radius: var(--radio-chico); max-height: 260px; overflow: auto; margin-top: 8px; }
.resultado { display: flex; gap: 10px; align-items: center; padding: 8px 10px; min-height: 52px; cursor: pointer; border-bottom: 1px solid var(--linea); }
.resultado:last-child { border-bottom: 0; }
.resultado:hover { background: var(--marca-tinte); }
.resultado img { width: 40px; height: 40px; flex: none; border-radius: 6px; object-fit: cover; background: #eee; }
.resultado .t { font-weight: 600; font-size: .9rem; }
.resultado .a { font-size: .8rem; color: var(--tinta-2); }
.cancion-sel { display: flex; gap: 10px; align-items: center; background: var(--ok-tinte); border-radius: var(--radio-chico); padding: 8px 10px; margin-top: 8px; }
.cancion-sel img { width: 44px; height: 44px; flex: none; border-radius: 6px; }
.cancion-sel::before { content: "✓"; color: var(--ok); font-weight: 800; margin-left: 2px; }

.resumen-precio { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; font-size: 1.05rem; }
.resumen-precio strong { font-size: 1.5rem; color: var(--marca); }
.incluye { font-size: .85rem; color: var(--tinta-2); margin: 0 0 12px; }

/* ---------- editor en móvil / tablet ---------- */
@media (max-width: 900px) {
  .editor { grid-template-columns: 1fr; gap: 12px; padding-top: 10px; }
  .editor-vista { position: sticky; top: var(--alto-cabecera); z-index: 5; background: var(--fondo); padding: 6px 16px 4px; margin: 0 -16px; box-shadow: 0 10px 12px -10px rgba(30, 20, 60, .18); }
  .vista-tabs { margin: 0 auto 8px; }
  .vista-tabs button { min-height: 36px; padding: 4px 16px; font-size: .95rem; }
  .vista { padding: 8px; }
  /* la lámpara ocupa como mucho un tercio de la pantalla para dejar espacio al panel */
  .vista:not(.luz) .lienzo-cont { max-height: 32vh; }
  .vista:not(.luz) .lienzo-cont svg { height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
  .vista .ayuda, .editor-vista .ayuda { font-size: .76rem; margin: 6px 0 0; }
  .led-colores { margin-top: 2px; }
  .led-colores button { margin: 3px; }
  .panel { padding: 6px 16px 18px; }
  .btn.chico { min-height: 44px; }
  .texto-item .opciones { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .fotos-lista { grid-template-columns: repeat(3, 1fr); } }

/* ---------- modal de pedido ---------- */
.modal { position: fixed; inset: 0; background: rgba(20, 14, 40, .6); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal .caja { background: #fff; border-radius: 20px; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal h2 { margin-top: 0; font-size: 1.4rem; }
.modal .etiqueta { display: block; font-weight: 600; font-size: .9rem; color: var(--tinta-2); margin: 14px 0 6px; }
.modal .acciones-modal { margin-top: 12px; gap: 10px; }
.modal .acciones-modal .btn[type=submit] { flex: 1.6; }
.modal .resumen-precio { border-top: 1px solid var(--linea); padding-top: 12px; }
.pago-opciones { display: grid; gap: 10px; margin: 6px 0; }
.pago-opcion { border: 1.5px solid var(--linea-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; transition: border-color .12s, background .12s; }
.pago-opcion:hover { border-color: var(--marca-2); }
.pago-opcion input { margin: 4px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--ok); }
.pago-opcion.sel { border-color: var(--ok); background: #f1fbf5; }
.pago-opcion .d { font-size: .85rem; color: var(--tinta-2); }
.pago-opcion strong { display: block; }
@media (max-width: 640px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal .caja { width: 100%; max-height: 94vh; border-radius: 20px 20px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .modal .fila:not(.acciones-modal) { flex-direction: column; gap: 0; align-items: stretch; }
}

/* ---------- confirmación ---------- */
.confirmacion { max-width: 720px; margin: 40px auto; background: #fff; border-radius: 20px; box-shadow: var(--sombra); padding: 32px 28px; text-align: center; }
.confirmacion h1 { color: var(--marca); }
.confirmacion .codigo { display: inline-block; font-size: 1.6rem; font-weight: 800; color: var(--marca); letter-spacing: 1px; background: var(--marca-tinte); border: 1.5px dashed var(--marca-2); border-radius: 12px; padding: 8px 20px; margin: 4px 0 8px; }
.confirmacion img { width: 100%; max-width: 360px; border-radius: 12px; margin: 16px auto; display: block; box-shadow: var(--sombra-2); }
.confirmacion .detalle { color: var(--tinta-2); }
.confirmacion .siguiente { color: var(--tinta-2); max-width: 46ch; margin: 0 auto 16px; }
@media (max-width: 640px) { .confirmacion { margin: 16px auto; padding: 24px 18px; } }

/* ---------- admin ---------- */
table.pedidos { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--sombra); }
table.pedidos th, table.pedidos td { padding: 10px 12px; border-bottom: 1px solid var(--linea); text-align: left; font-size: .92rem; }
table.pedidos th { background: var(--marca-tinte); color: var(--marca); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.pedidos img { width: 56px; border-radius: 6px; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .tarjeta, .foto-item, .led-colores button { transition: none; } .btn:hover, .tarjeta:hover { transform: none; } }

/* ---------- logo real (img/logo.png, sin el "by") ---------- */
.logo .logo-img { height: 56px; width: auto; display: block; flex: none; }
.logo .logo-nombre { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .2px; background: linear-gradient(90deg, #f26a1b, #f2a93b); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .logo .logo-img { height: 46px; } .logo .logo-nombre { font-size: 1.15rem; } }

/* ---------- galería de fotos reales ---------- */
.galeria { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.galeria img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radio); box-shadow: var(--sombra); display: block; background: #111; transition: transform .15s; }
.galeria img:hover { transform: scale(1.02); }
@media (max-width: 900px) { .galeria { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
.pie-pagina .contenedor { align-items: center; }

/* ---------- botón flotante de WhatsApp ---------- */
.wa-flotante { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 2px 6px rgba(0,0,0,.2); transition: transform .15s, box-shadow .15s; }
.wa-flotante:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(37, 211, 102, .55); }
@media (max-width: 900px) { .wa-flotante { right: 14px; bottom: 14px; width: 54px; height: 54px; } }

/* ---------- selector de base ---------- */
.bases { display: grid; gap: 8px; margin: 8px 0; }
.base-opcion { border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; background: #fff; }
.base-opcion input { margin-top: 4px; }
.base-opcion.sel { border-color: var(--ok); background: #f1fbf5; }
.base-opcion strong { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.base-opcion strong em { font-style: normal; color: var(--marca); white-space: nowrap; }
.base-opcion .d { display: block; font-size: .8rem; color: var(--tinta-2); margin-top: 2px; }
.bases-mas { margin-top: 6px; }
.bases-mas summary { cursor: pointer; font-size: .9rem; color: var(--marca-2); font-weight: 600; padding: 6px 0; }
.tarjeta .precio small { font-weight: 500; font-size: .7rem; color: var(--tinta-2); margin-right: 2px; }

/* responsividad — bloque agregado tras la auditoría móvil/tablet/escritorio (13-sep-2026) */
/* r1. el botón flotante de WhatsApp se esconde mientras el modal de pedido está abierto (en móvil tapaba "Confirmar pedido") */
.modal:not(.oculto) ~ .wa-flotante { display: none; }

/* r2. vista "Encendida": el mockup se ajusta a la altura de la pantalla (en 1366x768 medía 923 px y la vista pegajosa no cabía) */
.vista.luz { width: fit-content; max-width: 100%; margin: 0 auto; }
.vista.luz img.fondo { width: auto; max-width: 100%; max-height: calc(100vh - 230px); }

/* r3. hero apilado (tablet/móvil): el mockup no crece más de 480 px (en 768 medía 721x901) */
@media (max-width: 860px) { .hero-visual { width: 100%; max-width: 480px; margin: 0 auto; } }

@media (max-width: 900px) {
  /* r4. en móvil/tablet la vista "Encendida" deja de ser pegajosa: ocupaba 3/4 de la pantalla y no dejaba ver el panel */
  .editor-vista:has(.vista.luz) { position: static; box-shadow: none; }
  .vista.luz img.fondo { max-height: 60vh; }
  /* r5. controles táctiles de al menos 44 px */
  .nav a:not(.btn) { min-height: 44px; }
  .filtros button { min-height: 44px; }
  .vista-tabs { padding: 3px; }
  .vista-tabs button { min-height: 44px; }
  .emojis-sugeridos button { min-width: 44px; min-height: 44px; }
  .texto-item .opciones select, .texto-item select, .campo select { min-height: 44px; }
  input[type=range] { height: 44px; }
  .bases-mas summary { padding: 11px 0; }
  .led-colores { gap: 2px; }
  .led-colores button { width: 44px; height: 44px; margin: 0; border: 7px solid transparent; background-clip: padding-box !important; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14); }
  .led-colores button.activo { box-shadow: inset 0 0 0 3px var(--marca); }
  /* r6. que el botón flotante no tape lo último de cada página */
  .editor { padding-bottom: 96px; }
  .pie-pagina { padding-bottom: 88px; }
  .pie-pagina a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
  .confirmacion { margin-bottom: 88px; }
}

@media (max-width: 640px) {
  /* r7. catálogo en móvil: filtros en una tira deslizable (eran 6 filas) y tarjetas a dos columnas (19 tarjetas en fila = 12 000 px de scroll) */
  .filtros { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filtros::-webkit-scrollbar { display: none; }
  .filtros button { flex: none; }
  .grilla { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tarjeta .mini { height: 190px; padding: 10px; }
  .tarjeta .cuerpo { padding: 10px 12px 12px; gap: 4px; }
  .tarjeta h3 { font-size: .95rem; }
  .tarjeta .desc { font-size: .8rem; }
  .tarjeta .pie { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .tarjeta .pie .btn { width: 100%; }
  .tarjeta .precio { font-size: 1.05rem; }
  .tarjeta .nuevo { top: 8px; left: 8px; }
}

/* miniaturas del catálogo: lámpara encendida sobre fondo oscuro */
.tarjeta .mini { background: radial-gradient(ellipse at 50% 70%, #1a2233 0%, #0b0f18 70%); }
