/* Bot de WhatsApp con IA · página del producto, teléfono y panel. Tokens claros/oscuros. */
:root { color-scheme: light; --fondo: #f4f6f5; --sup: #ffffff; --sup-2: #eef2f0; --tinta: #101714; --tinta-2: #4b5752; --tenue: #7b8781; --linea: #dfe5e2; --acento: #0f766e; --acento-2: #115e59; --bien: #15803d; --aviso: #a16207; --mal: #b91c1c; --chat: #ece5dd; --mia: #d9fdd3; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { color-scheme: dark; --fondo: #0b1110; --sup: #131b19; --sup-2: #1b2522; --tinta: #eef3f1; --tinta-2: #b4c0bb; --tenue: #7f8c86; --linea: #26322e; --acento: #2dd4bf; --acento-2: #5eead4; --bien: #4ade80; --aviso: #facc15; --mal: #f87171; --chat: #0b141a; --mia: #005c4b; } }
:root[data-theme="dark"] { color-scheme: dark; --fondo: #0b1110; --sup: #131b19; --sup-2: #1b2522; --tinta: #eef3f1; --tinta-2: #b4c0bb; --tenue: #7f8c86; --linea: #26322e; --acento: #2dd4bf; --acento-2: #5eead4; --bien: #4ade80; --aviso: #facc15; --mal: #f87171; --chat: #0b141a; --mia: #005c4b; }
* { box-sizing: border-box; } html, body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; } body { overflow-x: clip; }
a { color: var(--acento); } button, input, select, textarea { font: inherit; color: inherit; }
.contenedor { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
/* ── Teléfono ── */
.tel { width: 330px; max-width: 100%; margin: 0 auto; }
.tel-marco { height: 660px; border-radius: 48px; background: #101714; padding: 10px; box-shadow: 0 40px 70px -35px rgba(0,0,0,.5); }
.tel-pantalla { position: relative; height: 100%; border-radius: 39px; overflow: hidden; display: flex; flex-direction: column; background: var(--chat); color: var(--tinta); }
.tel-estado { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px 2px; font-size: 12px; font-weight: 600; background: var(--sup); } .tel-isla { width: 86px; height: 20px; border-radius: 99px; background: #101714; }
.tel-cab { display: flex; align-items: center; gap: 10px; padding: 8px 12px 10px; background: var(--sup); border-bottom: 1px solid var(--linea); }
.tel-cab div { flex: 1; min-width: 0; line-height: 1.2; } .tel-cab b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tel-cab small { font-size: 11.5px; color: var(--tenue); }
.tel-cab button { border: 0; background: none; font-size: 17px; color: var(--tenue); cursor: pointer; }
.tel-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tel-acento); color: #fff; font-weight: 700; }
.tel-log { flex: 1; overflow-y: auto; padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13.8px; line-height: 1.38; }
.tel-aviso { align-self: center; max-width: 90%; margin: 2px 0 6px; padding: 5px 10px; border-radius: 8px; background: #fff3c4; color: #5c4a00; font-size: 11.5px; text-align: center; }
.tel-fila { display: flex; } .tel-fila.mia { justify-content: flex-end; }
.tel-b { max-width: 84%; background: var(--sup); border-radius: 10px 10px 10px 3px; padding: 6px 9px 4px; box-shadow: 0 1px .5px rgba(0,0,0,.13); } .mia .tel-b { background: var(--mia); border-radius: 10px 10px 3px 10px; }
.tel-b img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 7px; margin: -2px 0 6px; }
.tel-h { display: block; text-align: right; font-size: 10px; color: var(--tenue); margin-top: 2px; } .tel-t2 { color: var(--tinta-2); font-size: 12.8px; }
.tel-equipo { display: block; font-size: 11px; font-weight: 700; color: var(--tel-acento); }
.tel-botones { display: grid; gap: 4px; margin-top: 6px; } .tel-botones button, .tel-abrir { border: 0; border-radius: 8px; background: var(--sup); color: var(--tel-acento); font-weight: 600; font-size: 13.5px; padding: 8px; cursor: pointer; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.tel-abrir { display: block; width: calc(100% + 18px); margin: 6px -9px -4px; border-radius: 0 0 10px 10px; border-top: 1px solid var(--linea); box-shadow: none; }
.tel-barra { display: flex; gap: 6px; padding: 6px 8px 16px; } .tel-barra input { flex: 1; min-width: 0; border: 0; border-radius: 99px; padding: 10px 14px; background: var(--sup); outline: none; } .tel-barra button { width: 40px; border: 0; border-radius: 50%; background: var(--tel-acento); color: #fff; cursor: pointer; }
.tel-puntos i { display: inline-block; width: 6px; height: 6px; margin: 0 1.5px; border-radius: 50%; background: var(--tenue); animation: pt 1.1s infinite; } .tel-puntos i:nth-child(2) { animation-delay: .15s; } .tel-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes pt { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.tel-velo { position: absolute; inset: 0; background: rgba(0,0,0,.35); } .tel-hoja { position: absolute; inset: auto 0 0; max-height: 75%; overflow-y: auto; background: var(--sup); border-radius: 16px 16px 0 0; padding-bottom: 14px; }
.tel-hoja-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--linea); } .tel-hoja-cab button { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--tenue); }
.tel-opcion { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid var(--linea); background: none; padding: 10px 14px; text-align: left; cursor: pointer; }
.tel-opcion span { flex: 1; min-width: 0; } .tel-opcion b { display: block; font-size: 14px; font-weight: 500; } .tel-opcion small { display: block; font-size: 12px; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-opcion i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--linea); }
@media (prefers-reduced-motion: reduce) { .tel-puntos i { animation: none; } }
.tel-b .tel-botones { gap: 0; margin: 4px -9px -4px; } .tel-b .tel-botones button { border-radius: 0; border-top: 1px solid var(--linea); box-shadow: none; background: none; padding: 9px 8px; }
.tel-b .tel-botones button:last-child { border-radius: 0 0 10px 10px; } .tel-botones button:hover, .tel-abrir:hover { background: var(--sup-2); }
/* En oscuro el color de la marca se aclara para leerse sobre la burbuja */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tel-botones button, :root:not([data-theme="light"]) .tel-abrir, :root:not([data-theme="light"]) .tel-equipo { color: color-mix(in oklab, var(--tel-acento) 55%, white); } }
:root[data-theme="dark"] .tel-botones button, :root[data-theme="dark"] .tel-abrir, :root[data-theme="dark"] .tel-equipo { color: color-mix(in oklab, var(--tel-acento) 55%, white); }
