/* /como-funciona: carta de presentacion. Usa los tokens de app.css (modo claro/oscuro automatico); sin estilos en linea. */
.cf { --cf-r: 16px; }
.cf h2 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.4rem); font-weight: 750; max-width: 22ch; margin-bottom: var(--s4); }
.cf-intro { color: var(--mut); max-width: 46em; font-size: 1.08rem; }
.cf-mas { color: var(--mut); margin: var(--s5) 0 0; }
.cf-ej { font-size: .85rem; color: var(--mut); margin: var(--s3) 0 0; }
.cf-sec { padding-block: clamp(40px, 7vw, 80px); }
.cf-acc { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cf-btn { min-height: 52px; padding-inline: var(--s6); font-size: 1.05rem; }

/* Hero */
.cf-hero { padding-block: clamp(36px, 7vw, 88px) clamp(32px, 5vw, 64px); }
.cf-hero-g { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .cf-hero-g { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; } }
.cf-hero h1 { font-size: clamp(2.05rem, 1.2rem + 4.2vw, 3.6rem); max-width: 14ch; margin-bottom: var(--s4); }
.cf-lead { font-size: 1.2rem; color: var(--mut); max-width: 34em; margin-bottom: var(--s5); }
.cf-mini { font-size: .95rem; color: var(--mut); margin: var(--s4) 0 0; }
.cf-trans { display: grid; gap: var(--s3); min-width: 0; }
.cf-wa, .cf-cat { border-radius: var(--cf-r); padding: var(--s4) var(--s5); box-shadow: var(--sombra); }
.cf-wa { background: var(--surf2); border: 1px dashed var(--line2); font: 500 .95rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); transform: rotate(-1deg); animation: cf-entra .6s ease-out both; overflow-wrap: anywhere; }
.cf-wa strong { display: block; font: 600 .8rem/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--mut); margin-bottom: var(--s2); }
.cf-flecha { justify-self: center; width: 40px; height: 40px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; font-weight: 800; margin-block: -4px; }
.cf-cat { background: var(--surf); border: 1px solid var(--line); }
.cf-cat-t { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; font-weight: 700; margin: 0 0 var(--s2); }
.cf-cat-t span { font-weight: 500; font-size: .85rem; color: var(--mut); }
.cf-filas { list-style: none; margin: 0; padding: 0; }
.cf-filas li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.cf-filas b { white-space: nowrap; }
@keyframes cf-entra { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } to { opacity: 1; transform: rotate(-1deg); } }

/* Recorrido */
.cf-dos { display: grid; gap: var(--s7); margin-top: var(--s6); }
@media (min-width: 960px) { .cf-dos { grid-template-columns: 1fr 1fr; gap: 72px; } }
.cf h3.cf-col { display: inline-block; font-size: .95rem; font-weight: 700; color: var(--marca); padding-bottom: var(--s2); border-bottom: 2px solid var(--acc); margin: 0 0 var(--s2); letter-spacing: 0; }
.cf-camino { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: cf; }
.cf-camino li { counter-increment: cf; position: relative; padding: 0 0 var(--s6) 64px; min-width: 0; }
.cf-camino li:last-child { padding-bottom: 0; }
.cf-camino li::before { content: counter(cf); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 800; font-size: 1.15rem; }
.cf-camino li::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--line2) 0 5px, transparent 5px 11px); }
.cf-camino li:last-child::after { display: none; }
.cf-camino h4 { font-size: 1.15rem; margin: var(--s1) 0 var(--s1); letter-spacing: -.01em; }
.cf-camino p { color: var(--mut); margin: 0; max-width: 40em; }
.cf-tip { display: block; margin-top: var(--s2); font-size: .92rem; color: var(--mut); border-left: 3px solid var(--acc); padding-left: var(--s3); }

/* Que incluye */
.cf-incl { background: var(--surf); border-block: 1px solid var(--line); }
.cf-lista { margin: var(--s6) 0 0; }
.cf-lista > div { display: grid; gap: var(--s1); padding: var(--s4) 0; border-top: 1px solid var(--line); }
.cf-lista > div:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .cf-lista > div { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: var(--s6); } }
.cf-lista dt { font-weight: 700; font-size: 1.1rem; }
.cf-lista dd { margin: 0; color: var(--mut); }

/* Tranquilidad (reparto: lo que cuidamos / lo que no hacemos) */
.cf-calma { background: var(--surf2); border-block: 1px solid var(--line); padding-block: clamp(40px, 7vw, 80px); }
.cf-calma-g { display: grid; gap: var(--s6); }
@media (min-width: 960px) { .cf-calma-g { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; } .cf-calma-enc { position: sticky; top: var(--s5); } }
.cf-escudo { width: 56px; height: 56px; border-radius: 16px; background: var(--hero); display: grid; place-items: center; margin-bottom: var(--s4); }
.cf-escudo svg { width: 30px; height: 30px; stroke: var(--acc); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cf-dir { margin: var(--s5) 0 0; padding: var(--s4) var(--s4); border-radius: 14px; border: 1.5px solid var(--marca); font-weight: 600; }
.cf-grupos { display: grid; gap: var(--s6); min-width: 0; }
.cf-grupo h3 { font-size: 1.2rem; margin-bottom: var(--s3); }
.cf-tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.cf-tarjetas li { position: relative; display: block; background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: var(--s4) var(--s4) var(--s4) 60px; min-width: 0; }
.cf-tarjetas li::before { content: ""; position: absolute; left: var(--s4); top: var(--s4); width: 28px; height: 28px; border-radius: 50%; }
.cf-tarjetas li::after { content: ""; position: absolute; left: var(--s4); top: var(--s4); width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--cf-icono) center / 16px 16px no-repeat; mask: var(--cf-icono) center / 16px 16px no-repeat; }
.cf-si li::before { background: var(--ok-bg); } .cf-si li::after { color: var(--ok); --cf-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cf-no li::before { background: var(--warn-bg); } .cf-no li::after { color: var(--warn-ink); --cf-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cf-tarjetas strong { display: block; margin-bottom: var(--s1); }
.cf-tarjetas span { color: var(--mut); font-size: .96rem; display: block; }

/* Gancho + chat de ejemplo */
.cf-gancho { background: var(--surf); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--sombra); display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .cf-gancho { grid-template-columns: 1.1fr .9fr; } }
.cf-chat { background: var(--hero); border-radius: 18px; padding: var(--s4); display: grid; gap: var(--s3); color: var(--hero-ink); min-width: 0; }
.cf-bb { max-width: 90%; padding: var(--s3) var(--s4); border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.cf-u { justify-self: end; background: var(--hero2); color: #fff; }
.cf-a { background: #fff; color: #12232b; }
.cf-sug { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.cf-sug li { border: 1.5px solid var(--hero-mut); color: #fff; border-radius: 99px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.cf-chat .cf-ej { color: var(--hero-mut); margin: 0; }

/* FAQ */
.cf-faq-sec { padding-top: 0; }
.cf-faq { margin-top: var(--s5); max-width: 760px; }
.cf-q { border-top: 1px solid var(--line); }
.cf-q:last-child { border-bottom: 1px solid var(--line); }
.cf-q summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 56px; padding: var(--s3) 0; font-weight: 700; font-size: 1.08rem; border-radius: var(--r1); }
.cf-q summary::-webkit-details-marker { display: none; }
.cf-q summary::after { content: "+"; flex: none; font-size: 1.6rem; line-height: 1; color: var(--marca); transition: transform .2s ease-out; }
.cf-q[open] summary::after { transform: rotate(45deg); }
.cf-q .faq-resp { padding: 0; }
.cf-q .faq-resp p { color: var(--mut); margin: 0 0 var(--s4); max-width: 42em; }

@media (prefers-reduced-motion: reduce) { .cf *, .cf *::before, .cf *::after { animation: none !important; transition: none !important; } }
@media (forced-colors: active) { .cf-tarjetas li::before { border: 1px solid CanvasText; } .cf-tarjetas li::after { background: CanvasText; } }
