/* T.T AI Firm · el módulo para pedir tu demo: invitación en la página y ventana de preguntas */

/* ── invitación dentro de la página ── */
.invita { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin-top: 12px; }
@media (min-width: 900px) { .invita { grid-template-columns: 1.1fr .9fr; gap: 44px; } }
.invita .parrafo { margin-top: 16px; }
.invita .boton { margin-top: 26px; }
.invita .pista { display: block; margin-top: 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tenue); }
.invita ol { list-style: none; padding: 0; margin: 0; counter-reset: q; }
.invita ol li { counter-increment: q; position: relative; padding: 11px 0 11px 34px; border-top: 1px solid var(--filo); color: var(--apagado); font-size: 14.5px; }
.invita ol li:first-child { border-top: 0; }
.invita ol li::before { content: counter(q); position: absolute; left: 0; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--titulo); background: var(--vidrio-2); box-shadow: inset 0 0 0 1px var(--filo); }

/* ── ventana ── */
#cotizador { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 18px; pointer-events: none; }
#cotizador.abierto { pointer-events: auto; }
#cotizador .fondo { position: absolute; inset: 0; background: rgba(5, 6, 15, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
#cotizador.abierto .fondo { opacity: 1; }

#cotizador .panel {
  position: relative; width: min(100%, 720px); max-height: min(92vh, 880px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; background: var(--profundo); box-shadow: var(--halo-flotante);
  opacity: 0; transform: translateY(18px) scale(.985);
  transition: opacity .3s ease, transform .42s var(--curva);
}
#cotizador.abierto .panel { opacity: 1; transform: none; }
#cotizador .panel:focus { outline: none; }

#cotizador header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px; }
#cotizador header b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--titulo); }
#cotizador .paso { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); margin-top: 3px; }
#cotizador .barra { height: 2px; background: var(--filo); }
#cotizador .barra i { display: block; height: 100%; width: 0; background: var(--violeta-claro); box-shadow: 0 0 12px rgba(139, 107, 255, .8); transition: width .45s var(--curva); }

#cotizador .cuerpo { flex: 1; overflow-y: auto; padding: 24px 22px; -webkit-overflow-scrolling: touch; }
#cotizador footer { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 15px 22px; border-top: 1px solid var(--filo); background: rgba(186, 214, 247, .03); }
#cotizador footer .boton[disabled] { opacity: .4; pointer-events: none; }

/* ── pregunta ── */
.pregunta h3 { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; }
.pregunta > p { color: var(--tenue); font-size: 14px; margin-top: 7px; }
.opciones { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 20px; }
@media (min-width: 620px) { .opciones.varias { grid-template-columns: 1fr 1fr; } }

.opcion { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--filo); transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--curva-suave); }
.opcion:hover { background: var(--vidrio-2); }
.opcion:active { transform: scale(.99); }
.opcion b { display: block; font-weight: 500; font-size: 15px; color: var(--titulo); line-height: 1.3; }
.opcion small { display: block; font-size: 12.5px; color: var(--tenue); margin-top: 3px; line-height: 1.35; }
.opcion i { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--filo-fuerte); color: transparent; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.opcion i svg { width: 11px; height: 11px; }
.opcion.marcada { background: rgba(102, 58, 243, .16); box-shadow: inset 0 0 0 1px rgba(139, 107, 255, .55); }
.opcion.marcada i { background: var(--violeta); color: #fff; box-shadow: none; }

.lista { width: 100%; margin-top: 20px; padding: 15px 44px 15px 16px; border-radius: 12px; font: inherit; font-size: 15.5px; color: var(--titulo); background: var(--vidrio-2); box-shadow: inset 0 0 0 1px var(--filo); appearance: none; -webkit-appearance: none; color-scheme: dark; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7d3ea' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 17px; }

/* ── resultado ── */
.resultado .titulo { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2; margin-top: 4px; }

.auditoria { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: rgba(102, 58, 243, .13); box-shadow: inset 0 0 0 1px rgba(139, 107, 255, .42); }
.auditoria .cabeza { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.auditoria .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--tenue); }
.auditoria .cabeza b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--titulo); margin-top: 4px; line-height: 1.25; }
.auditoria .precio { text-align: right; }
.auditoria .precio b { font-family: var(--mono); font-size: 19px; color: var(--titulo); }
.auditoria .precio span { display: block; font-size: 11.5px; color: var(--tenue); margin-top: 3px; }
.auditoria p { font-size: 14px; line-height: 1.55; color: var(--apagado); margin-top: 12px; }
.auditoria ul { list-style: none; padding: 0; margin-top: 12px; }
.auditoria li { position: relative; padding: 7px 0 7px 16px; font-size: 13.5px; color: var(--apagado); line-height: 1.45; }
.auditoria li::before { content: ''; position: absolute; left: 0; top: 15px; width: 7px; height: 1px; background: var(--violeta-claro); }

.resultado .cifras { margin-top: 18px; }
.resultado .dato { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 13px 0; border-top: 1px solid var(--filo); }
.resultado .dato .k { font-size: 13.5px; color: var(--apagado); }
.resultado .dato b { font-family: var(--mono); font-size: 16px; color: var(--titulo); text-align: right; }
.resultado .dato .n { flex: 1 0 100%; font-size: 11.5px; color: var(--tenue); }
.resultado .nota { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--tenue); }
.insignia.ejemplo { margin-left: 6px; background: rgba(224, 168, 74, .16); color: #e6bc7c; box-shadow: inset 0 0 0 1px rgba(224, 168, 74, .4); font-size: 11px; }

.medida { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--filo); }
.medida b { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--titulo); }
.medida span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--apagado); margin-top: 6px; }

.resultado .marcas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--filo); }
.resultado .marcas .insignia { font-size: 11.5px; color: var(--apagado); }

/* ── teléfono: la ventana ocupa la pantalla ── */
@media (max-width: 720px) {
  #cotizador { padding: 0; }
  #cotizador .panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  #cotizador .cuerpo { padding: 20px 16px; }
  #cotizador header, #cotizador footer { padding-inline: 16px; }
  #cotizador footer { padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
  #cotizador footer .boton { flex: 1; justify-content: center; }
  .auditoria .precio { text-align: left; }
}

/* ── formulario de solicitud (resultado del módulo y cierre) ── */
.pedir { margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--filo); text-align: left; }
.pedir .encabezado b { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; color: var(--titulo); }
.pedir .encabezado span { display: block; font-size: 13px; color: var(--tenue); margin-top: 4px; line-height: 1.45; }
.pedir .campos { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
@media (min-width: 620px) { .pedir .campos { grid-template-columns: 1fr 1fr; } .pedir .campos .ancho { grid-column: 1 / -1; } }
.pedir label span { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tenue); margin-bottom: 6px; }
.pedir input, .pedir textarea {
  width: 100%; padding: 12px 14px; border: 0; border-radius: 11px; font: inherit; font-size: 15px;
  color: var(--titulo); background: var(--vidrio-2); box-shadow: inset 0 0 0 1px var(--filo);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.pedir textarea { resize: vertical; min-height: 78px; line-height: 1.45; }
.pedir input::placeholder, .pedir textarea::placeholder { color: var(--tenue); }
.pedir input:focus, .pedir textarea:focus { outline: none; background: var(--vidrio-3); box-shadow: inset 0 0 0 1px rgba(139, 107, 255, .6); }
.pedir .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pedir .abajo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.pedir .aviso { font-size: 13px; line-height: 1.45; color: var(--tenue); margin: 0; }
.pedir .aviso.malo { color: #e6bc7c; }
.pedir button[disabled] { opacity: .55; pointer-events: none; }
.pedir .listo b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--titulo); }
.pedir .listo span { display: block; font-size: 14px; color: var(--apagado); margin-top: 6px; line-height: 1.5; }

/* en el cierre la tarjeta va sobre fondo oscuro y con su propio aire */
.cierre .pedir { margin-top: 28px; background: var(--vidrio-2); }
.cierre .pedir .encabezado { text-align: center; }
@media (min-width: 620px) { .cierre .pedir .abajo { justify-content: center; } }
@media (max-width: 620px) { .pedir .abajo .boton { width: 100%; justify-content: center; } }

/* ── las dos puertas: primera pantalla de la ventana ── */
.puertas .titulo { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.2; margin-top: 4px; }
.puerta {
  display: block; width: 100%; text-align: left; margin-top: 14px;
  padding: 18px 20px; border-radius: 14px;
  background: var(--vidrio); box-shadow: inset 0 0 0 1px var(--filo);
  transition: background-color .22s ease, box-shadow .22s ease, transform .22s var(--curva-suave);
}
.puerta:hover { background: rgba(102, 58, 243, .13); box-shadow: inset 0 0 0 1px rgba(139, 107, 255, .45); transform: translateY(-2px); }
.puerta .k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--tenue); }
.puerta b { display: block; font-family: var(--display); font-weight: 500; font-size: 19px; color: var(--titulo); margin-top: 5px; line-height: 1.22; }
.puerta .d { display: block; font-size: 13.5px; line-height: 1.5; color: var(--apagado); margin-top: 8px; }
.puerta .ir { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--azul); }
.puerta .ir svg { width: 14px; height: 14px; transition: transform .26s var(--curva-suave); }
.puerta:hover .ir svg { transform: translateX(4px); }

/* el desplegable chico que vive dentro del formulario */
.pedir .lista.chica { margin-top: 0; padding: 12px 40px 12px 14px; font-size: 15px; background: var(--vidrio-2); background-position: right 13px center; background-size: 16px; }

/* la ventana de contacto ocupa el cuerpo entero, y el aviso de que ya llegó */
#cotizador .cuerpo > .pedir { margin-top: 0; background: none; box-shadow: none; padding: 0; }
#cotizador .cuerpo > .pedir .encabezado b { font-size: clamp(20px, 2.4vw, 25px); line-height: 1.2; }
#cotizador .cuerpo > .pedir .encabezado span { font-size: 14px; margin-top: 7px; }
.llego { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin-bottom: 18px; border-radius: 12px; background: rgba(110, 231, 168, .12); box-shadow: inset 0 0 0 1px rgba(110, 231, 168, .4); }
.llego b { font-family: var(--display); font-weight: 500; font-size: 16px; color: #8ff0bd; }
.llego span { font-size: 13.5px; line-height: 1.5; color: var(--apagado); }

/* el párrafo grande de la pantalla final, cuando no se enseñan números */
.resultado .nota.grande { font-size: 14.5px; line-height: 1.55; color: var(--apagado); margin-top: 14px; }
