/* =========================================================
   Confianza · Servicios · FAQ · Contacto · WhatsApp · Formularios
   ========================================================= */
.trust, .services, .faq, .contact {
  --ink: #10261b; --ink-2: #4a5e53; --soft: #eaf5ee; --edge: rgba(6, 118, 71, .14);
  color: var(--ink); padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.trust, .services, .faq { background: rgb(244, 250, 246); }
.trust { padding-bottom: 0; }
.services { padding-top: 0; }

.proto-note {
  display: inline-block; margin: 0 0 20px; padding: 6px 12px; border-radius: 8px;
  border: 1px dashed #d99a1e; background: #fff8e6; color: #8a5a00; font-size: 13px; font-weight: 700;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--edge); border-radius: 22px; padding: 24px 22px;
}
.stat strong { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; color: var(--green-deep); font-variant-numeric: tabular-nums; line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }

.badges { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--edge); font-size: 15px; font-weight: 700;
}
.badges li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; }

/* testimonials */
.testis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.testi { margin: 0; background: #fff; border: 1px solid var(--edge); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.t-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: #e3f6eb; color: var(--green-deep); font-size: 13px; font-weight: 800; }
.testi blockquote { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.testi figcaption b { display: block; font-size: 16px; color: var(--ink); }
.t-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #12b76a, #067647); color: #fff; font-weight: 800; font-size: 15px; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { background: #fff; border: 1px solid var(--edge); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(6, 80, 50, .45); }
.svc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #e3f6eb; }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--green-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-q { margin: 20px 0 4px; font-size: 15px; font-weight: 800; color: #c9343f; }
.svc h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; }
.svc p:not(.svc-q) { margin: 0 0 22px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.svc-link { font-weight: 800; color: var(--green-deep); font-size: 16px; }
.svc-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq { padding-top: 0; }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--green-deep); font-size: 20px; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid rgba(18, 183, 106, .4); outline-offset: -3px; border-radius: 18px; }
.faq details p { margin: 0; padding: 0 22px 22px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }

/* contact */
.contact { background: #0f2a1d; color: #eafaf1; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact .kicker { color: #6ff0b0; }
.contact h2 { margin: 0 0 14px; font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.035em; line-height: 1.05; }
.contact-copy > p { margin: 0 0 22px; font-size: 19px; line-height: 1.55; color: rgba(234, 250, 241, .8); }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; font-weight: 600; }
.c-list li { position: relative; padding-left: 28px; line-height: 1.45; }
.c-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #6ff0b0; font-weight: 800; }
.c-list small { color: rgba(234, 250, 241, .55); }
.contact-card { padding: clamp(22px, 3vw, 34px); color: var(--ink); }

/* lead form (contacto + resultado del test) */
.lead { display: grid; gap: 16px; }
.lead-title { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.lead-sub { margin: -8px 0 0; color: var(--ink-2); font-size: 15px; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.lf.full { grid-column: 1 / -1; }
.contact-card .lf-grid { grid-template-columns: 1fr; }
.lf input, .lf select, .tel {
  height: 54px; width: 100%; min-width: 0; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid var(--edge); background: #fbfefc; color: var(--ink);
  font: 700 17px var(--font);
}
.lf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #4a5e53 50%), linear-gradient(135deg, #4a5e53 50%, transparent 50%); background-position: calc(100% - 20px) 24px, calc(100% - 14px) 24px; background-size: 6px 6px; background-repeat: no-repeat; }
.tel { display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px; }
.tel b { color: var(--ink-2); }
.tel input { border: 0; height: 100%; padding-left: 0; background: transparent; }
.lf input:focus, .lf select:focus, .tel:focus-within { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, .14); }
.tel input:focus { box-shadow: none; }
.lf .err { display: none; font-size: 13px; color: #c9343f; font-weight: 700; }
.lf.invalid input, .lf.invalid select, .lf.invalid .tel { border-color: #e8505b; }
.lf.invalid .err { display: block; }
.lf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.lf-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; }
.lf-check.invalid { color: #c9343f; }
.lead .cta { justify-content: center; border: 0; cursor: pointer; font-family: inherit; width: 100%; }
.lf-note { margin: 0; font-size: 13px; color: var(--ink-2); text-align: center; }

.lead-ok { text-align: center; padding: 12px 4px; }
.lead-ok .r-badge { margin: 0 auto 16px; }
.lead-ok h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.02em; }
.lead-ok p { margin: 0 0 6px; color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.lead-ok small { display: block; margin-top: 14px; color: #8a5a00; font-size: 13px; }

/* quiz result + form */
.q-result .lead { margin-top: 6px; padding: 22px; border-radius: 20px; background: #f6fbf8; border: 1px solid var(--edge); }
.r-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.r-links a, .r-links button { font-size: 15px; font-weight: 700; color: var(--ink-2); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-family: inherit; }

/* Indicador de scroll: manito en burbuja de vidrio
   - móvil: .swipe-hint flota sobre la primera tarjeta
   - escritorio: .scroll-hint flota al pie del hero */
.glass-hint {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 14px; border-radius: 24px;
  background: rgba(22, 8, 12, .46);
  -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #fff; white-space: nowrap; pointer-events: none;
  text-transform: none; letter-spacing: normal;
  animation: sh-float 3.2s ease-in-out infinite;
}
.swipe-hint { display: none; }
.scroll-hint.glass-hint { position: static; transform: none; flex-direction: row; padding: 8px 16px 8px 10px; gap: 8px; }
.cta-wrap .cta-note { flex-basis: 100%; }
@media (max-width: 860px) {
  .scroll-hint.glass-hint { display: none; }
  .swipe-hint { display: flex; position: absolute; z-index: 20; left: 50%; top: 130px; transform: translateX(-50%); }
}
.sh-hand { position: relative; width: 44px; height: 50px; flex: none; }
.sh-finger {
  position: absolute; left: 3px; bottom: 0; width: 40px; height: 40px; overflow: visible;
  fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  animation: sh-swipe 1.9s cubic-bezier(.45, 0, .2, 1) infinite;
}
.sh-tap { fill: rgba(111, 240, 176, .35); stroke: none; transform-origin: 10.5px 4.5px; animation: sh-tap 1.9s ease-out infinite; }
.sh-trail {
  position: absolute; left: 11px; top: -8px; width: 16px; height: 26px;
  fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 3 4; animation: sh-trail 1.9s ease-out infinite;
}
.sh-text { display: flex; flex-direction: column; line-height: 1.2; }
.sh-text b { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.sh-text small { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }
@keyframes sh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes sh-swipe {
  0% { transform: translateY(10px); opacity: 0; }
  15% { transform: translateY(10px); opacity: 1; }
  70% { transform: translateY(-6px); opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}
@keyframes sh-tap { 0%, 15% { transform: scale(.6); opacity: 1; } 60% { transform: scale(2); opacity: 0; } 100% { opacity: 0; } }
@keyframes sh-trail { 0%, 30% { opacity: 0; transform: translateY(6px); } 60% { opacity: 1; } 100% { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .glass-hint, .sh-finger, .sh-tap, .sh-trail { animation: none; }
}

/* WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 16px 34px -12px rgba(18, 120, 60, .6);
  transition: transform .2s, opacity .3s, visibility .3s;
}
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 18px 16px; }
  .stat span { font-size: 15px; }
  .badges li { font-size: 14px; }
  .testis, .svc-grid { grid-template-columns: 1fr; }
  .faq-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .faq summary { font-size: 17px; padding: 18px; }
  .lf-grid { grid-template-columns: 1fr; }
  /* En el hero móvil el CTA ocupa el borde inferior: WhatsApp aparece después */
  .wa-float { right: 14px; bottom: 14px; padding: 14px; opacity: 0; visibility: hidden; }
  .wa-float span { display: none; }
  body.past-hero .wa-float { opacity: 1; visibility: visible; }
}
