/* webs.hypecenter.cl · landing de la línea pyme y su asistente. Se carga después de estilo.css,
   en todas las páginas del subdominio (/, /terminos/, /gracias/ y la 404).
   Misma marca y misma lista negra: negro pleno, violeta escaso (banda del pie y la palabra en
   itálica del h1), Poppins, hairlines en vez de cajas. Sin cards con sombra, sin pills, sin barras
   de color al costado, sin rótulos en MAYÚSCULAS con tracking, sin fade-up. */

/* ------------------------------------------------------------- cabecera */
.webs-cabeza .boton { padding: 12px 18px; background: var(--blanco); color: var(--negro); }
.webs-cabeza .boton:hover { background: var(--violeta); color: var(--blanco); }
@media (max-width: 600px) {
  .webs-cabeza .contenedor { height: 64px; }
  .webs-cabeza .logo { width: 140px; }
  .webs-cabeza .boton { padding: 11px 14px; font-size: 14px; }
}

/* ------------------------------------------------------------------ hero */
.webs-hero { padding-bottom: clamp(48px, 6vw, 96px); }
.webs-hero .grilla { align-items: center; }
.webs-hero .hero-texto { grid-column: 1 / span 7; padding-bottom: 0; }
.webs-hero-maqueta { grid-column: 9 / span 4; }
.webs-precio { margin: 44px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.webs-precio .monto { font-size: clamp(52px, 6.4vw, 96px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.webs-precio .iva { font-size: clamp(22px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.01em; }
.webs-precio-nota { margin: 10px 0 0; color: var(--gris-n); font-size: 15px; }
.webs-descuento { margin: 14px 0 0; font-size: 16px; font-weight: 500; max-width: 32em; }
.webs-dos-partes { margin: 8px 0 0; font-size: 15px; color: var(--gris-n); max-width: 32em; }
.webs-garantia-linea { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--linea-n); max-width: 32em; font-size: 16px; line-height: 1.55; }
.webs-hero .hero-acciones { margin-top: 32px; }
.webs-nota { margin: 18px 0 0; font-size: 14px; color: var(--gris-n); }
button.boton { font-family: 'Poppins', sans-serif; }

/* Maqueta: un celular a línea fina con una landing genérica, rotulada como ejemplo.
   Todo en em: el tamaño de la maqueta se cambia solo con el font-size de .maqueta. */
.maqueta { margin: 0 0 0 auto; width: 27.3em; font-size: 11px; }
.maqueta-tel { width: 27.3em; aspect-ratio: 300 / 600; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 3.6em; padding: .82em; }
.maqueta-pantalla { height: 100%; border-radius: 2.8em; overflow: hidden; background: #f3f2ee; color: #141414; display: flex; flex-direction: column; line-height: 1.45; }
.maqueta-barra { display: flex; align-items: center; justify-content: space-between; padding: 2.4em 1.8em 1.1em; font-weight: 600; letter-spacing: -.01em; }
.maqueta-barra > span:first-child { font-size: 1.18em; }
.maqueta-menu { display: grid; gap: .36em; }
.maqueta-menu i { display: block; width: 1.45em; height: 1.5px; background: currentColor; }
.maqueta-foto { margin: 0 1.1em; flex: 0 0 34%; background: #cfccc3; border-radius: .3em; display: flex; align-items: flex-end; padding: .9em 1.1em; }
.maqueta-foto span { font-size: .9em; color: #5d5a52; }
.maqueta-titulo { margin: 0; padding: .85em 1.05em .3em; font-size: 1.73em; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.maqueta-texto { margin: 0; padding: 0 1.8em; color: #5c5c5c; }
.maqueta-wa { margin: 1.2em 1.65em 0; padding: .95em .5em; background: #1d6b4a; color: #fff; border-radius: .27em; text-align: center; font-weight: 600; font-size: 1.09em; white-space: nowrap; }
.maqueta-lista { margin: 1.45em 1.8em 0; border-top: 1px solid #d9d6cd; }
.maqueta-lista span { display: flex; justify-content: space-between; padding: .73em 0; border-bottom: 1px solid #d9d6cd; }
.maqueta-lista b { font-weight: 400; color: #8a877e; }
.maqueta figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--gris-n); max-width: 300px; }
@media (max-width: 960px) {
  .webs-hero .hero-texto, .webs-hero-maqueta { grid-column: 1 / -1; }
  .webs-hero-maqueta { margin-top: 52px; }
  /* en el celular: maqueta chica y el rótulo al lado */
  .maqueta { margin: 0; width: auto; font-size: 6.6px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; align-items: end; }
  .maqueta figcaption { margin: 0; max-width: 16em; }
}

.nw { white-space: nowrap; }

/* -------------------------------------------------------------- secciones */
.webs-incluye .lista li { font-size: 17px; }
.webs-otro { margin: 28px 0 0; font-size: 16px; }
.webs-accion { margin-top: 48px; }
.oscuro .webs-accion .boton { background: var(--blanco); color: var(--negro); }
.oscuro .webs-accion .boton:hover { background: var(--violeta); color: var(--blanco); }
.webs-garantia .rotulo { grid-column: 1 / span 3; align-self: start; }
.webs-garantia-texto { grid-column: 4 / span 9; }
.webs-garantia-texto .t2 { font-size: clamp(30px, 3.8vw, 56px); line-height: 1.08; }
.webs-garantia-texto .bajada { margin-top: 28px; }
@media (max-width: 960px) {
  .webs-garantia .rotulo, .webs-garantia-texto { grid-column: 1 / -1; }
  .webs-garantia .rotulo { margin-bottom: 24px; }
}
.webs-cierre .t2 { max-width: 14em; }
.webs-cierre .chico { margin-top: 20px; }
.faq details a { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------- gracias */
.webs-gracias-num { margin: 28px 0 0; font-size: clamp(20px, 2vw, 26px); }
.webs-gracias-num strong { font-weight: 600; }
.webs-gracias-nota { margin: 20px 0 0; font-size: 15px; color: var(--gris-n); max-width: 36em; }
.webs-gracias-nota a { color: var(--blanco); }
@media (max-width: 600px) {
  .hero.sin-foto.webs-gracias .hero-texto { grid-column: 1 / -1; }
  .webs-gracias .hero-acciones .boton { width: 100%; justify-content: space-between; padding: 16px 18px; }
}
/* lo que viene después de pagar: los pasos y las 5 preguntas para los textos a la vista */
.webs-sigue .paso > div { grid-column: 7 / span 6; }
.webs-sigue .paso > div p { margin: 0; }
@media (max-width: 960px) { .webs-sigue .paso > div { grid-column: 1 / -1; } }
.webs-preguntas { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: pregunta; }
.webs-preguntas li { counter-increment: pregunta; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); padding: 10px 0; border-top: 1px solid var(--linea-b); }
.webs-preguntas li:last-child { border-bottom: 1px solid var(--linea-b); }
.webs-preguntas li::before { content: counter(pregunta) "."; font-weight: 600; }
[hidden] { display: none !important; }

/* ================================================================ el chat */
html.chat-abierto, html.chat-abierto body { overflow: hidden; }
.chat {
  padding: 0; border: 0; margin: 0 0 0 auto; inset: 0 0 0 auto;
  width: min(460px, 100vw); max-width: 100vw;
  height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  background: var(--blanco); color: var(--texto-b);
}
.chat::backdrop { background: rgba(0, 0, 0, .62); }
.chat-marco { display: flex; flex-direction: column; height: 100%; }
.chat-cabeza { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 22px; background: var(--negro); color: var(--blanco); }
.chat-cabeza p { margin: 0; font-size: 15px; line-height: 1.35; }
.chat-cabeza strong { font-weight: 600; }
.chat-cabeza span { color: var(--gris-n); }
.chat-cerrar { flex: none; background: none; border: 0; padding: 10px 0; color: inherit; font: 500 15px 'Poppins', sans-serif; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; cursor: pointer; }
.chat-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 26px 22px 56px; }
.chat :focus-visible { outline: 2px solid var(--violeta); outline-offset: 3px; }

.chat-msg { margin: 0 0 20px; }
.chat-msg p { margin: 0 0 .55em; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg.bot { font-size: 17px; line-height: 1.5; max-width: 30em; }
.chat-msg.tu { margin-left: 20%; text-align: right; font-weight: 600; font-size: 16px; }
.chat-msg.chat-espera { color: var(--gris-b); }
.chat-sub { font-size: 14px; color: var(--gris-b); }
.chat-ia-rotulo { display: block; margin-bottom: 4px; font-size: 13px; color: var(--gris-b); }
.chat-prueba { font-weight: 600; }
.chat-aviso { padding-top: 14px; border-top: 2px solid var(--texto-b); }

.chat-zona { margin-top: 6px; }
.chat-opciones { display: flex; flex-direction: column; margin-top: 4px; }
.chat-op {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 15px 2px; border: 0; border-top: 1px solid var(--linea-b); background: none; color: var(--texto-b);
  font: 400 17px/1.35 'Poppins', sans-serif; text-align: left; cursor: pointer; text-decoration: none;
}
.chat-opciones .chat-op:last-child, .chat-zona > .chat-op:last-of-type { border-bottom: 1px solid var(--linea-b); }
@media (hover: hover) { .chat-op:hover { color: var(--violeta); } }
.chat-op .flecha { opacity: .55; }
.chat-op-fuerte { font-weight: 600; }
.chat .boton { background: var(--negro); color: var(--blanco); }
@media (hover: hover) { .chat .boton:hover { background: var(--violeta); color: var(--blanco); } }
/* en pantallas táctiles el :hover queda pegado después del toque: sin violeta */
@media (hover: none) {
  .chat .boton:hover, .webs-cabeza .boton:hover { background: var(--negro); color: var(--blanco); }
  .webs-cabeza .boton:hover, .oscuro .webs-accion .boton:hover, .oscuro .hero-acciones .boton:hover { background: var(--blanco); color: var(--negro); }
}
.chat .boton[disabled] { opacity: .5; cursor: default; }
.chat-principal { width: 100%; justify-content: space-between; margin: 4px 0 14px; text-align: left; line-height: 1.3; padding: 15px 20px; }
.chat-principal span { flex: 1; }
.chat-chico { display: inline-block; margin-top: 18px; padding: 0; border: 0; background: none; color: var(--gris-b); font: 500 14px 'Poppins', sans-serif; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.chat-zona > .chat-chico + .chat-op { margin-top: 18px; border-top: 1px solid var(--linea-b); }

/* Bloque de la oferta dentro del chat */
.chat-oferta { margin-top: 12px; padding-top: 16px; border-top: 1.5px solid var(--texto-b); }
.chat-oferta p { margin: 0; }
.chat-oferta-prod { font-size: 15px; font-weight: 500; }
.chat-oferta-precio { margin-top: 6px !important; }
.chat-oferta-precio .monto { font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.chat-oferta-precio .iva { font-size: 20px; font-weight: 300; }
.chat-oferta-total { margin-top: 8px !important; font-size: 14px; color: var(--gris-b); }
.chat-oferta-descuento { margin-top: 8px !important; font-size: 15px; font-weight: 500; }
.chat-oferta-dos { margin-top: 6px !important; font-size: 14px; color: var(--gris-b); }
.chat-pedido-num strong { font-weight: 600; }
.chat-despues { margin: 18px 0 0; }
.chat-oferta ul { margin: 16px 0 0; }
.chat-oferta li { padding: 9px 0; border-top: 1px solid var(--linea-b); font-size: 15px; line-height: 1.45; }
.chat-oferta li:last-child { border-bottom: 1px solid var(--linea-b); }
.chat-oferta-nota { margin-top: 12px !important; font-size: 14px; color: var(--gris-b); }
.chat-oferta-nota a, .chat-check a { color: var(--texto-b); text-underline-offset: 3px; }
.chat-oferta-caso { margin-top: 14px !important; font-size: 15px; }
.chat-oferta-caso span { font-weight: 600; }
.chat-datos { margin: 10px 0 12px; }
.chat-datos li { padding: 7px 0; border-top: 1px solid var(--linea-b); font-size: 15px; }
.chat-datos li:last-child { border-bottom: 1px solid var(--linea-b); }
.chat-datos span { color: var(--gris-b); }

/* Formularios del chat: los campos usan .campo de estilo.css */
.chat-form .campo { margin-bottom: 20px; }
.chat-form .error { margin: 0 0 10px; }
.chat-form textarea { min-height: 96px; }
.chat-doc { margin: 4px 0 18px; }
.chat-doc .opciones { display: flex; gap: 0 28px; }
.chat-doc .opciones label { border: 0 !important; padding: 8px 0; }
.chat-factura { margin-bottom: 4px; }
.chat-check { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 18px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.chat-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violeta); }
.chat-ayuda { margin-top: 4px; }
.chat-sin-js { padding: 16px var(--margen); background: var(--blanco); color: var(--texto-b); margin: 0; }

@media (max-width: 600px) {
  .chat { width: 100vw; inset: 0; }
  .chat-cabeza { padding: 0 18px; min-height: 58px; }
  .chat-cabeza p { font-size: 14px; }
  .chat-cuerpo { padding: 22px 18px 48px; }
  .chat-msg.bot { font-size: 16.5px; }
  .chat-op { font-size: 16.5px; padding: 14px 2px; }
}
