/* CTH Recomendador — hereda tipografía de la web; colores propios con variables */
.cth-reco {
  --reco-accent: #25d366;
  --reco-ink: #10233a;
  --reco-mute: #5b6b7d;
  --reco-line: #e3e8ee;
  --reco-soft: #f5f7fa;
  --reco-card: #fff;
  --reco-radius: 18px;
  color: var(--reco-ink);
  max-width: 1080px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.45;
}
.cth-reco *, .cth-reco *::before, .cth-reco *::after { box-sizing: border-box; }
.cth-reco__kicker { margin: 0 0 .35em; font-size: .78em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--reco-mute); }
.cth-reco__title { margin: 0 0 .3em; font-size: clamp(1.5em, 3.4vw, 2.2em); line-height: 1.1; font-weight: 800; color: var(--reco-ink); }
.cth-reco__sub { margin: 0 0 1.2em; color: var(--reco-mute); max-width: 46em; }
.cth-reco__q { margin: .2em 0 .25em; font-size: 1.25em; font-weight: 800; }
.cth-reco__hint { margin: 0 0 1em; color: var(--reco-mute); font-size: .92em; }

.cth-reco__steps { display: flex; gap: 8px; list-style: none; margin: 0 0 1em; padding: 0; }
.cth-reco__steps li { flex: 0 0 auto; }
.cth-reco__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8em; font-weight: 800; background: var(--reco-soft); color: var(--reco-mute); border: 1px solid var(--reco-line); }
.cth-reco__steps .is-current span { background: var(--reco-ink); color: #fff; border-color: var(--reco-ink); }
.cth-reco__steps .is-done span { background: var(--reco-accent); color: #fff; border-color: var(--reco-accent); }

.cth-reco__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cth-reco__grid--2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cth-reco button { font: inherit; cursor: pointer; }
.cth-reco__opt {
  display: flex; align-items: center; gap: .6em; width: 100%; min-height: 56px;
  padding: .8em 1em; text-align: left; font-weight: 700; color: var(--reco-ink);
  background: var(--reco-card); border: 1.5px solid var(--reco-line); border-radius: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cth-reco__opt:hover, .cth-reco__opt:focus-visible { border-color: var(--reco-ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(16,35,58,.08); outline: none; }
.cth-reco__opt--ghost { background: var(--reco-soft); border-style: dashed; }
.cth-reco__emoji { font-size: 1.35em; line-height: 1; }

.cth-reco__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2em; }
.cth-reco__chip { padding: .65em 1.05em; border-radius: 999px; border: 1.5px solid var(--reco-line); background: var(--reco-card); font-weight: 700; color: var(--reco-ink); }
.cth-reco__chip.is-on { background: var(--reco-ink); border-color: var(--reco-ink); color: #fff; }
.cth-reco__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cth-reco__go { padding: .9em 1.4em; border: 0; border-radius: 999px; background: var(--reco-ink); color: #fff; font-weight: 800; }
.cth-reco__go[disabled] { opacity: .35; cursor: not-allowed; }
.cth-reco__back { background: none; border: 0; padding: .6em 0; color: var(--reco-mute); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cth-reco__loading { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 2em 0; color: var(--reco-mute); }
.cth-reco__loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--reco-accent); animation: cthRecoDot 1s infinite ease-in-out; }
.cth-reco__loading span:nth-child(2) { animation-delay: .15s; }
.cth-reco__loading span:nth-child(3) { animation-delay: .3s; }
.cth-reco__loading p { flex-basis: 100%; margin: .8em 0 0; }
@keyframes cthRecoDot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }

.cth-reco__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1em 0 1.2em; }
.cth-reco__card { display: flex; flex-direction: column; background: var(--reco-card); border: 1px solid var(--reco-line); border-radius: var(--reco-radius); overflow: hidden; box-shadow: 0 8px 24px rgba(16,35,58,.06); }
.cth-reco__card.is-alt { background: var(--reco-soft); }
.cth-reco__img { display: block; aspect-ratio: 3 / 2; background: var(--reco-soft); overflow: hidden; }
.cth-reco__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.cth-reco__card:hover .cth-reco__img img { transform: scale(1.04); }
.cth-reco__info { display: flex; flex-direction: column; gap: .45em; padding: 1em 1.05em 1.1em; flex: 1; }
.cth-reco__info h3 { margin: 0; font-size: 1.08em; line-height: 1.25; font-weight: 800; }
.cth-reco__info h3 a { color: inherit; text-decoration: none; }
.cth-reco__meta { margin: 0; color: var(--reco-mute); font-size: .92em; }
.cth-reco__meta strong { color: var(--reco-ink); }
.cth-reco__badge { align-self: flex-start; font-size: .72em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--reco-mute); background: #fff; border: 1px solid var(--reco-line); border-radius: 999px; padding: .25em .7em; }
.cth-reco__why { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cth-reco__why li { font-size: .78em; font-weight: 700; padding: .25em .6em; border-radius: 999px; background: rgba(37,211,102,.12); color: #12733a; }
.cth-reco__ctas { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: .5em; }
.cth-reco__wa {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1em; border-radius: 999px; background: var(--reco-accent); color: #fff !important;
  font-weight: 800; text-decoration: none !important; transition: filter .15s, transform .15s;
}
.cth-reco__wa:hover { filter: brightness(.95); transform: translateY(-1px); }
.cth-reco__wa svg { width: 20px; height: 20px; flex: 0 0 20px; }
.cth-reco__more { text-align: center; font-size: .9em; font-weight: 700; color: var(--reco-ink) !important; padding: .4em; }
.cth-reco__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: .6em; border-top: 1px solid var(--reco-line); }
.cth-reco__link { font-weight: 700; color: var(--reco-ink) !important; }

/* Ventana emergente */
.cth-reco-lock, .cth-reco-lock body { overflow: hidden; }
.cth-reco-modal[hidden] { display: none !important; }
.cth-reco-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 16px; }
.cth-reco-modal__backdrop { position: absolute; inset: 0; background: rgba(10,22,36,.55); backdrop-filter: blur(3px); }
.cth-reco-modal__panel {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 22px; padding: clamp(18px, 4vw, 34px); box-shadow: 0 24px 60px rgba(0,0,0,.25);
  animation: cthRecoIn .22s ease-out;
}
.cth-reco-modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f1f4f8; color: #10233a; font-size: 26px; line-height: 1; cursor: pointer; }
@keyframes cthRecoIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .cth-reco-modal { padding: 0; align-items: end; }
  .cth-reco-modal__panel { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .cth-reco__grid { grid-template-columns: 1fr 1fr; }
  .cth-reco__grid--2 { grid-template-columns: 1fr; }
  .cth-reco__opt { min-height: 52px; padding: .7em .8em; }
}
@media (prefers-reduced-motion: reduce) {
  .cth-reco *, .cth-reco-modal__panel { animation: none !important; transition: none !important; }
}

/* 1.2 · edades reales por hijo */
.cth-reco__kids { display: flex; flex-wrap: wrap; gap: 6px; min-height: 38px; align-items: center; margin-bottom: 10px; }
.cth-reco__kids-empty { color: var(--reco-mute); font-size: .9em; }
.cth-reco__kid { display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border-radius: 999px; border: 0; background: var(--reco-ink); color: #fff; font-weight: 800; }
.cth-reco__kid span { opacity: .7; font-size: 1.1em; line-height: 1; }
.cth-reco__ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; margin-bottom: 1.2em; }
.cth-reco__age { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--reco-line); background: var(--reco-card); font-weight: 800; color: var(--reco-ink); }
.cth-reco__age:hover, .cth-reco__age:focus-visible { border-color: var(--reco-ink); outline: none; }
.cth-reco__age[disabled] { opacity: .35; cursor: not-allowed; }
.cth-reco__foot.is-strong .cth-reco__link--marga { display: inline-block; padding: .75em 1.1em; border-radius: 999px; background: var(--reco-ink); color: #fff !important; text-decoration: none; }
@media (max-width: 600px) { .cth-reco__ages { grid-template-columns: repeat(6, 1fr); } }

/* 1.4.1 · la propia imagen convierte la recomendación en conversación */
.cth-reco__img--wa{position:relative;display:block;overflow:hidden}
.cth-reco__img-cta{position:absolute;left:12px;right:12px;bottom:12px;padding:9px 12px;border-radius:999px;background:rgba(17,24,39,.88);color:#fff;font-weight:700;font-size:13px;line-height:1.2;text-align:center;opacity:0;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease}
.cth-reco__img--wa:hover .cth-reco__img-cta,.cth-reco__img--wa:focus-visible .cth-reco__img-cta{opacity:1;transform:none}
@media (max-width:700px){.cth-reco__img-cta{opacity:1;transform:none;font-size:12px}}
/* 1.5: el tarifario aporta evidencia, no protagonismo. */
.cth-reco__next{margin:.35rem 0 .7rem;font-size:.88rem;line-height:1.35;color:#40556f}
.cth-reco__next strong{color:#142b45}
