/* Precios (/precios/): ajustes de la página. Se enlaza solo desde precios/index.html, después de timtul.css. */

/* 1. Sin portada: la página empieza en #planes, bajo la cabecera fija */
.section.tt-precios-first { padding-top: calc(var(--nav) + var(--s-7)) !important; }   /* !important: el padding uniforme de secciones (timtul.css) lo pisaba */
@media (max-width: 1023px) { .section.tt-precios-first { padding-top: calc(var(--nav) + var(--s-6)) !important; } }

/* 2. Filas ocultas de la tabla (créditos de IA): el display de la tabla pisaba el atributo hidden */
.tt-plans [hidden] { display: none !important; }

/* 3. Recomendaciones: icono de regalo en baldosa de degradado + mini-UI con cinco huecos */
  background: linear-gradient(135deg, #6a4fd8 0%, #2f8fdb 55%, #08bcd6 100%); box-shadow: 0 10px 24px -10px rgba(47, 143, 219, .55); }
@property --f { syntax: "<number>"; inherits: false; initial-value: 1; }
  background: #fff; border: 1px dashed rgb(43 47 54 / .3); overflow: hidden;
  color: color-mix(in srgb, #fff calc(var(--f) * 100%), #5b6270); }
@media (prefers-reduced-motion: no-preference) {
}

/* 4. Preguntas frecuentes en la página: pestañas y desplegables (la primera abierta) */
.tt-faq-tabs { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.tt-faq-tab { height: var(--btn-h-sm, 40px); padding: 0 var(--s-4); border-radius: var(--r-btn); border: 1px solid var(--line-strong, rgb(43 47 54 / .24)); background: #fff; color: var(--p-ink, #2b2f36);
  font: 500 var(--t-small)/1 var(--font-text); cursor: pointer; transition: background-color var(--dur, 200ms) var(--ease, ease), color var(--dur, 200ms) var(--ease, ease); }
.tt-faq-tab:hover { border-color: var(--tt-action, #0b5fff); }
.tt-faq-tab[aria-pressed="true"] { background: var(--tt-action, #0b5fff); border-color: var(--tt-action, #0b5fff); color: #fff; }
.tt-faq-tab:focus-visible { outline: 2px solid var(--tt-action, #0b5fff); outline-offset: 2px; }
.tt-faq-inline { max-width: 820px; margin-top: var(--s-6); }
.tt-faq-inline .faq__item { border-bottom: 1px solid var(--line); }
.tt-faq-inline .faq__item:first-child { border-top: 1px solid var(--line); }
.tt-faq-inline .faq__item[hidden] { display: none; }
.tt-faq-inline .faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding-block: var(--s-3); cursor: pointer; list-style: none;
  font: 500 var(--t-body)/1.4 var(--font-text); color: var(--p-ink, #2b2f36); }
.tt-faq-inline .faq__item > summary::-webkit-details-marker { display: none; }
.tt-faq-inline .faq__item > summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur, 200ms) var(--ease, ease); }
.tt-faq-inline .faq__item[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.tt-faq-inline .faq__item > summary:hover { color: var(--tt-action, #0b5fff); }
.tt-faq-inline .faq__item > summary:focus-visible { outline: 2px solid var(--tt-action, #0b5fff); outline-offset: 2px; border-radius: var(--r-sm); }
.tt-faq-inline .faq__item > div { padding-bottom: var(--s-5); max-width: 68ch; color: var(--p-ink, #2b2f36); }
.tt-faq-inline .faq__item > div > * { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tt-faq-inline .faq__item > summary::after, .tt-faq-tab { transition: none; } }

/* 5. El h1 de #planes lleva el tamaño estándar de un título de sección (nunca titulares gigantes) */
#planes-h { font-size: var(--t-h2); line-height: 1.1; }

/* 6. Móvil: timtul.css ocultaba la última fila de cada plan; ahora la última es «Copia de seguridad» y debe verse */
@media (max-width: 639px) { .tt-plan dl > div:last-child { display: block; } }


/* ---------------------------------------------------------------- FAQ de Precios: buscador y animación (18/11/2026)
   Dos columnas desde 1024 px: preguntas a la izquierda y, fija al hacer scroll, una conversación de soporte animada. */
.tt-faqp { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .tt-faqp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.tt-faqp .tt-faq-inline { max-width: none; }
.tt-faq-search { position: relative; margin-top: var(--s-2); max-width: 520px; }
.tt-faq-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--p-muted, #5b6270); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.tt-faq-search input { width: 100%; min-height: 48px; padding: 0 var(--s-4) 0 42px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--p-ink, #2b2f36); font: inherit; font-size: 16px; }
.tt-faq-search input:focus-visible { outline: 2px solid var(--tt-action, #0b5fff); outline-offset: 2px; border-color: transparent; }
.tt-faqp__none { margin: var(--s-5) 0 0; color: var(--p-muted, #5b6270); }
.tt-faqp__art { display: none; }
@media (min-width: 1024px) { .tt-faqp__art { display: block; position: sticky; top: calc(var(--nav, 72px) + var(--s-6)); margin-top: var(--s-8); } }
.tt-faqp__chat { display: grid; gap: 10px; padding: var(--s-5); border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgb(20 30 70 / .06), 0 24px 48px -24px rgb(20 30 70 / .3); }
.tt-faqp__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tt-faqp__head img { width: 22px; height: auto; }
.tt-faqp__head b { flex: 1; font-weight: 600; }
.tt-faqp__msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.tt-faqp__q { justify-self: end; background: #0b5fff; color: #fff; border-bottom-right-radius: 4px; position: relative; }
.tt-faqp__a { justify-self: start; background: #f4f6fd; color: #2b2f36; border-bottom-left-radius: 4px; }
.tt-faqp__dots { display: none; }
.tt-faqp__foot { display: flex; justify-content: flex-end; padding-top: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .tt-faqp__q, .tt-faqp__a { animation: tt-faqp-in1 8s cubic-bezier(.22, 1, .36, 1) infinite; }
  .tt-faqp__a { animation-name: tt-faqp-in2; }
  .tt-faqp__q2 { animation-name: tt-faqp-in3; }
  .tt-faqp__a2 { animation-name: tt-faqp-in4; }
}
@keyframes tt-faqp-in1 { 0% { opacity: 0; transform: translateY(8px); } 5%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes tt-faqp-in2 { 0%, 18% { opacity: 0; transform: translateY(8px); } 24%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes tt-faqp-in3 { 0%, 42% { opacity: 0; transform: translateY(8px); } 48%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes tt-faqp-in4 { 0%, 60% { opacity: 0; transform: translateY(8px); } 66%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
