@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2-variations"), url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --azul: #0e2a5c;
  --azul-hondo: #08193a;
  --azul-medio: #1d4596;
  --verde: #157a42;
  --verde-claro: #8fe0ad;
  --papel: #f3f6fa;
  --blanco: #ffffff;
  --tinta: #131a26;
  --gris: #4a5466;
  --linea: #cfd7e3;
  --apagado: #9fb0cf;
  --logo-k: #ffffff;
  --focus: #f5b301;
  --radius: 6px;
  --wrap: 1180px;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.8rem, 1.2rem + 1.6vw, 2.35rem); /* every section and widget title, same size (S, October 30, 2026) */
  --step-3: clamp(2.1rem, 1.2rem + 3.6vw, 4rem);
  --step-4: clamp(2.6rem, 1rem + 6.4vw, 6.2rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.big-text { font-size: 118.75%; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--blanco);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--azul-medio); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

h1, h2, h3, .h3 {
  font-stretch: 74%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.005em;
  margin: 0 0 .5em;
  color: var(--azul);
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3, .h3 { font-size: var(--step-1); font-stretch: 85%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.3rem); line-height: 1.55; max-width: 60ch; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--focus); color: var(--tinta); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; font-stretch: 90%; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-solid { background: var(--verde); color: var(--blanco); }
.btn-solid:hover { background: #0f6334; }
.btn-line { background: transparent; color: var(--azul); border-color: currentColor; }
.btn-line:hover { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--blanco); border-bottom: 1px solid var(--linea); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { color: var(--azul); display: inline-flex; }
.brand { border-radius: var(--radius); }
.brand .logo { width: 171px; height: 30px; display: block; }
.menu-btn { display: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--tinta); text-decoration: none; font-weight: 600; font-stretch: 92%; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--verde); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { min-height: 44px; padding: .55em 1em; white-space: nowrap; }
@media (max-width: 1200px) { .site-nav ul { gap: 14px; } .nav-actions { gap: 12px; } }

@media (max-width: 1060px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
    background: none; border: 2px solid var(--azul); border-radius: var(--radius); color: var(--azul); font: inherit; font-weight: 700; cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blanco); border-bottom: 1px solid var(--linea); padding: 8px 20px 24px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 1.125rem; }
  .site-nav ul a[aria-current="page"] { color: var(--verde); border-bottom-color: var(--linea); }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { min-height: 48px; }
}

/* Page hero */
.page-hero { background: var(--papel); border-bottom: 1px solid var(--linea); padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 60px); }
.page-hero h1 { max-width: 20ch; }
.kicker { font-weight: 700; color: var(--verde); }

/* Sections */
.section { padding: clamp(40px, 5vw, 72px) 0; }
.section-tint { background: var(--papel); }
.section-dark { background: var(--azul-hondo); color: var(--blanco); }
.section-dark h2, .section-dark h3 { color: var(--blanco); }
.section-lead { font-size: 1.15rem; color: var(--gris); }
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.pull { font-size: clamp(1.35rem, 1rem + 1.4vw, 1.9rem); font-weight: 700; font-stretch: 82%; line-height: 1.25; color: var(--azul); border-left: 6px solid var(--verde); padding-left: 20px; }

/* Steps (true sequences only) */
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--azul); }
.steps li { counter-increment: s; padding: 24px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--linea); }
.steps li::before { content: counter(s); display: block; font-stretch: 66%; font-weight: 850; font-size: 3.4rem; line-height: 1; color: var(--verde); margin-bottom: 12px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--linea); }
}

/* Areas */
.areas { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--linea); }
.areas li { border-bottom: 1px solid var(--linea); }
.areas li:nth-child(odd) { border-right: 1px solid var(--linea); }
.areas a { display: block; padding: 28px 28px 20px 0; color: inherit; text-decoration: none; height: 100%; }
.areas li:nth-child(even) a { padding-left: 28px; }
.areas a:hover h3 { text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 3px; }
@media (max-width: 700px) {
  .areas { grid-template-columns: 1fr; }
  .areas li:nth-child(odd) { border-right: 0; }
  .areas li:nth-child(even) a { padding-left: 0; }
}

/* Events */
.next-event { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .next-event { grid-template-columns: 1fr; } }
.event-card { border: 1px solid var(--linea); border-radius: var(--radius); padding: 24px; background: var(--blanco); color: var(--tinta); }
.section-dark .event-card { background: var(--azul); border-color: #2c4a85; color: var(--blanco); }
.section-dark .event-card h3 { color: var(--blanco); }
.event-when { font-weight: 700; color: var(--verde); margin-bottom: .4em; }
.section-dark .event-when { color: var(--verde-claro); }
.event-where { color: var(--gris); }
.section-dark .event-where { color: #c9d5ea; }
.event-list { display: grid; gap: 16px; margin: 24px 0; }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.roadmap li { padding: 20px 20px 0 0; border-top: 6px solid var(--linea); }
.roadmap li.is-now { border-top-color: var(--verde); }
.roadmap li + li { padding-left: 20px; }
.status { display: inline-block; font-weight: 700; font-size: .9rem; color: var(--gris); margin-bottom: 8px; }
.is-now .status { color: var(--verde); }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .roadmap li:nth-child(3) { padding-left: 0; }
}
@media (max-width: 480px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li, .roadmap li + li { padding-left: 0; }
}

.course-mini { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--linea); }
.course-mini li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linea); font-weight: 600; }
.course-mini li span:last-child { color: var(--gris); font-weight: 400; white-space: nowrap; }

/* CTA band */
.cta-band { background: var(--verde); color: var(--blanco); padding: 48px 0; }
.cta-band h2 { color: var(--blanco); }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band .btn-row { margin-top: 0; }
.cta-band .btn-solid { background: var(--blanco); color: var(--azul); }
.cta-band .btn-solid:hover { background: var(--papel); }
.cta-band .btn-line { color: var(--blanco); }
.cta-band .btn-line:hover { background: var(--blanco); color: var(--verde); border-color: var(--blanco); }

/* Benefits, values, team */
.benefits { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; gap: 20px; } }
.benefits li { border-top: 3px solid var(--azul); padding-top: 16px; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin: 24px 0 0; }
.values dt { font-weight: 800; font-stretch: 80%; font-size: 1.3rem; color: var(--azul); }
.values dd { margin: 4px 0 0; }
.team { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
.monogram { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--azul); color: var(--blanco); font-weight: 850; font-stretch: 70%; font-size: 2.2rem; margin-bottom: 16px; }
.role { font-weight: 700; color: var(--verde); margin-bottom: .3em; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 32px; border-left: 3px solid var(--linea); }
.timeline li { padding: 0 0 28px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--blanco); border: 3px solid var(--azul); }
.tl-when { font-weight: 700; color: var(--verde); margin-bottom: 4px; }
.timeline .h3 { margin-bottom: 4px; }
.timeline p:last-child { color: var(--gris); margin: 0; }

/* Tabs and gallery */
[role="tablist"] { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid var(--linea); margin-bottom: 24px; }
[role="tab"] { font: inherit; font-weight: 700; padding: 10px 18px; min-height: 44px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--gris); cursor: pointer; }
[role="tab"][aria-selected="true"] { color: var(--azul); border-bottom-color: var(--verde); }
.gallery-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.photo-slot { aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--papel) 0 14px, #e7ecf3 14px 28px); border: 1px solid var(--linea); margin-bottom: 12px; }

/* Courses */
.courses { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course { border: 1px solid var(--linea); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.course .btn { margin-top: auto; align-self: flex-start; }
.course-meta { color: var(--gris); font-size: .95rem; }

.plain-steps { margin: 0; padding-left: 1.3em; }
.plain-steps li { margin-bottom: 12px; padding-left: 4px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.8rem; font-weight: 400; color: var(--verde); }
.faq[open] summary::after { content: "\2212"; }
.faq summary .h3 { display: inline; margin: 0; }
.faq p { padding-bottom: 12px; }

/* Contact */
.contact-ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .contact-ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .contact-ways { grid-template-columns: 1fr; } }
.contact-ways > div { border-top: 3px solid var(--azul); padding-top: 12px; }
.contact-ways p { overflow-wrap: anywhere; }

/* Forms */
.form-section { padding: clamp(48px, 7vw, 96px) 0; background: var(--papel); border-top: 1px solid var(--linea); }
.form-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 820px) { .form-grid { grid-template-columns: 1fr; } }
.lead-form { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--gris); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #8793a6; border-radius: var(--radius); background: var(--blanco); color: var(--tinta);
}
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--azul); }
[aria-invalid="true"] { border-color: #b3261e; }
.field.check { display: flex; gap: 12px; align-items: flex-start; }
.field.check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--verde); }
.field.check label { font-weight: 400; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-size: .9rem; color: var(--gris); background: var(--papel); padding: 12px 14px; border-radius: var(--radius); max-width: none; }
.form-status { margin: 12px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--verde); }
.form-status.err { color: #b3261e; }
.turnstile-slot:empty { display: none; }
.alt-contact { color: var(--gris); }

/* Quiz */
.quiz .q { border: 0; border-bottom: 1px solid var(--linea); margin: 0; padding: 20px 0; }
.quiz legend { font-weight: 700; font-size: 1.1rem; padding: 0; margin-bottom: 12px; }
.q-num { color: var(--verde); font-stretch: 75%; font-weight: 850; }
/* Small area indicator above each diagnostic question: area number, area name, then the topic of that question. */
.quiz legend .q-area { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--gris); }
.q-sub { padding: 2px 6px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 3px; color: var(--verde); text-transform: none; letter-spacing: 0; font-weight: 700; }
.quiz legend .q-text { display: block; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.scale span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 4px; border: 1.5px solid #8793a6; border-radius: var(--radius); font-size: .9rem; line-height: 1.2; }
.scale input:checked + span { background: var(--azul); border-color: var(--azul); color: var(--blanco); font-weight: 700; }
.scale input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) { .scale span { font-size: .8rem; } }
.quiz .btn { margin-top: 24px; }
.results { margin-top: 32px; }
.results:focus { outline: none; }
.scores { margin: 0; }
.score { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.score dt { font-weight: 700; }
.score dd { margin: 0; display: flex; align-items: center; gap: 12px; }
.bar { flex: 1; height: 14px; background: var(--papel); border: 1px solid var(--linea); border-radius: 7px; overflow: hidden; }
.fill { display: block; height: 100%; width: 0; background: var(--verde); }
.num { font-weight: 850; font-stretch: 75%; font-size: 1.5rem; min-width: 2.5ch; text-align: right; color: var(--azul); }
@media (max-width: 480px) { .score { grid-template-columns: 1fr; gap: 4px; } }

/* Legal */
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.draft { background: #fff4d6; border: 1px solid #e6c464; padding: 12px 16px; border-radius: var(--radius); font-weight: 600; max-width: none; }
.pending { background: #fde8e7; border-left: 4px solid #b3261e; padding: 8px 12px; }
.updated { color: var(--gris); }

/* Footer */
.site-footer { background: var(--azul-hondo); color: #d6dfee; padding: 56px 0 24px; }
.site-footer a { color: var(--blanco); }
.site-footer .logo { width: 171px; height: 30px; color: var(--blanco); }
.site-footer .brand-footer { color: var(--blanco); margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { color: var(--blanco); font-size: 1.05rem; font-stretch: 90%; margin-bottom: 12px; }
.footer-list, .social { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 8px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; }
address { font-style: normal; margin-bottom: 1em; overflow-wrap: anywhere; }
.footer-base { border-top: 1px solid #23386a; margin-top: 40px; padding-top: 20px; font-size: .9rem; }
.footer-base p { max-width: none; margin-bottom: .4em; }

/* Floating WhatsApp, chat, accessibility */
.wa-float {
  position: fixed; right: 16px; bottom: 88px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
  border-radius: 26px; background: #0b6b39; color: var(--blanco); text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(8, 25, 58, .28); transition: opacity .2s, transform .2s;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden; }
@media (max-width: 640px) {
  .wa-float { width: 52px; padding: 0; justify-content: center; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body { padding-bottom: 84px; }
}

.chat-toggle {
  position: fixed; right: 16px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  border: 0; background: var(--azul); color: var(--blanco); cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(8, 25, 58, .3);
}
.chat-toggle svg { width: 24px; height: 24px; grid-area: 1 / 1; }
.chat-panel {
  position: fixed; right: 16px; bottom: 88px; z-index: 60; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); border-radius: 10px; box-shadow: 0 16px 48px rgba(8, 25, 58, .3); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
@media (max-width: 640px) {
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: min(100dvh, 100vh); border-radius: 0; }
}
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--azul); color: var(--blanco); }
.chat-head h2 { color: var(--blanco); font-size: 1.1rem; font-stretch: 90%; margin: 0 0 2px; }
.chat-badge { margin: 0; font-size: .85rem; color: var(--verde-claro); font-weight: 700; }
.chat-close { background: none; border: 0; color: var(--blanco); font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; margin: -8px -8px 0 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--papel); }
.msg { margin: 0; padding: 10px 14px; border-radius: 12px; max-width: 88%; font-size: .98rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { background: var(--blanco); border: 1px solid var(--linea); align-self: flex-start; }
.msg-user { background: var(--azul); color: var(--blanco); align-self: flex-end; }
.msg-bot a { color: var(--azul-medio); }
.msg-note { align-self: center; font-size: .85rem; color: var(--gris); background: none; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--linea); align-items: flex-end; }
.chat-form textarea { min-height: 48px; max-height: 140px; }
.chat-form .btn { min-height: 48px; padding: 0 16px; }
.chat-turnstile { position: absolute; width: 0; height: 0; overflow: hidden; }
.chat-privacy { font-size: .8rem; color: var(--gris); padding: 0 12px 10px; margin: 0; max-width: none; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gris); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } * { scroll-behavior: auto !important; transition: none !important; } }

.a11y { position: fixed; left: 16px; bottom: 20px; z-index: 50; }
.a11y-toggle { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--azul); background: var(--blanco); color: var(--azul); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(8, 25, 58, .2); }
.a11y-panel { position: absolute; left: 0; bottom: 60px; width: 230px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radius); padding: 14px; box-shadow: 0 10px 30px rgba(8, 25, 58, .25); display: grid; gap: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 800; margin: 0 0 4px; }
.a11y-panel button { font: inherit; min-height: 44px; border: 1.5px solid var(--azul); background: var(--blanco); color: var(--azul); border-radius: var(--radius); cursor: pointer; font-weight: 600; }
.a11y-panel button[aria-pressed="true"] { background: var(--azul); color: var(--blanco); }
.chat-open .a11y, .chat-open .wa-float { visibility: hidden; }
@media (max-width: 640px) { .chat-open .chat-toggle { display: none; } }

.sms-dialog { border: 0; border-radius: 10px; padding: 24px; max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 16px 48px rgba(8, 25, 58, .35); }
.sms-dialog::backdrop { background: rgba(8, 25, 58, .55); }
.sms-number { font-size: 1.5rem; font-weight: 800; }
.sms-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* High contrast */
html.hc { --gris: #1f2633; --linea: #5b6475; --apagado: #ffffff; --verde: #0c5a2f; }
html.hc .home-hero .lead, html.hc .event-where { color: #ffffff; }
html.hc a { text-decoration-thickness: 2px; }

@media print {
  .site-header, .wa-float, .chat, .a11y, .cta-band, .form-section { display: none !important; }
}

/* =====================================================================
   Konfronta visual language: a working document marked up by a coach.
   Marker strikes over old habits, a ruled worksheet, rubber stamps for
   status, ledger totals with a double rule, and signature lines.
   ===================================================================== */
@font-face { font-family: "Marker"; src: url("/fonts/caveat-brush.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --renglon: #d3ddec;
  --margen: rgba(29, 69, 150, .22);
  --strike-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 50 9, 90 17, 150 12 S 250 10, 297 13' stroke='%238fe0ad' stroke-width='3.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --strike-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 60 10, 110 16, 170 12 S 260 11, 297 13' stroke='%231a8a4a' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.strike { text-decoration: none; background-image: var(--strike-light); background-repeat: no-repeat; background-position: 0 60%; background-size: 100% .26em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .05em; }
.strike-ink { background-image: var(--strike-ink); background-size: 100% .24em; }
.margin-note { font-family: "Marker", "Archivo", cursive; font-weight: 400; font-stretch: 100%; line-height: 1; transform: rotate(-6deg); margin: 0; max-width: none; }

/* Hero: the confrontation */
.khero { background: var(--azul); color: var(--blanco); padding: clamp(44px, 7vw, 96px) 0 clamp(52px, 8vw, 104px); overflow: hidden; }
.khero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "main habits"; column-gap: clamp(32px, 5vw, 80px); row-gap: 28px; align-items: center; }
.brandline { grid-area: brand; font-weight: 700; font-stretch: 90%; color: var(--verde-claro); margin: 0; }
.khero-main { grid-area: main; }
.habits-struck { grid-area: habits; position: relative; padding-left: 28px; border-left: 2px solid rgba(143, 224, 173, .35); }
.habits-struck ul { list-style: none; margin: 0; padding: 0; }
.habits-struck li { font-stretch: 66%; font-weight: 800; font-size: clamp(1.7rem, .9rem + 2.6vw, 3.1rem); line-height: 1.08; color: #b9c7e0; margin-bottom: .32em; }
.habits-struck .margin-note { color: var(--verde-claro); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.5rem); text-align: right; margin-top: .2em; }
.khero h1 { color: var(--blanco); margin: 0 0 .5em; max-width: none; }
.h1-a { display: block; font-size: clamp(2.7rem, 1.1rem + 6vw, 6rem); font-stretch: 64%; font-weight: 850; line-height: .92; }
.h1-b { display: block; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.15rem); font-stretch: 84%; font-weight: 700; line-height: 1.12; color: #dbe4f3; margin-top: .35em; max-width: 22ch; }
.khero .lead { color: #dbe4f3; }
.khero .btn-line { color: var(--blanco); }
.khero .btn-line:hover { background: var(--blanco); color: var(--azul); border-color: var(--blanco); }
@media (prefers-reduced-motion: no-preference) {
  .js .habits-struck .strike { background-size: 0% .26em; animation: strike-in .55s calc(.35s + var(--i) * .42s) cubic-bezier(.6, 0, .25, 1) forwards; }
  .js .habits-struck .margin-note { opacity: 0; animation: note-in .5s 2.2s ease-out forwards; }
  @keyframes strike-in { to { background-size: 100% .26em; } }
  @keyframes note-in { from { opacity: 0; transform: rotate(-6deg) translateY(8px); } to { opacity: 1; transform: rotate(-6deg); } }
}
@media (max-width: 860px) {
  .khero-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "habits" "main"; }
  .habits-struck { padding-left: 18px; }
}

/* Ledger totals */
.totals { padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--linea); }
.totals-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 760px) { .totals-grid { grid-template-columns: 1fr; } }
.ledger-lines { margin: 0; border-bottom: 5px double var(--azul); padding-bottom: 6px; }
.ledger-lines div { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; }
.ledger-lines dt { order: 1; }
.ledger-lines div::after { content: ""; order: 2; flex: 1; border-bottom: 2px dotted #9aa8bf; transform: translateY(-.3em); min-width: 24px; }
.ledger-lines dd { order: 3; margin: 0; font-weight: 850; font-stretch: 70%; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); color: var(--azul); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-source { font-size: .9rem; color: var(--gris); margin-top: 12px; }
@media (max-width: 480px) { .ledger-lines dt { font-size: .95rem; } }

/* Worksheet */
.worksheet-section { background: var(--papel); }
.worksheet { position: relative; background: var(--blanco); border: 1px solid var(--renglon); border-left: 3px solid var(--margen); padding: 8px clamp(12px, 2vw, 24px) 8px; margin: 34px 0 22px; box-shadow: 0 1px 0 var(--renglon), 0 4px 0 -1px var(--blanco), 0 5px 0 -1px var(--renglon); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th { text-align: left; font-stretch: 84%; font-weight: 800; font-size: .95rem; color: var(--azul); padding: 14px 14px 10px; border-bottom: 3px solid var(--azul); vertical-align: bottom; }
.ledger tbody th, .ledger tbody td { text-align: left; vertical-align: top; padding: 18px 14px; border-bottom: 1px solid var(--renglon); }
.ledger tbody tr:last-child > * { border-bottom: 0; }
.ledger tbody th { font-weight: 800; font-stretch: 80%; font-size: 1.15rem; width: 22%; color: var(--tinta); }
.ledger td.fix { font-weight: 700; color: var(--azul); box-shadow: inset 4px 0 0 var(--verde); padding-left: 18px; }
.worksheet .margin-note-ink { position: absolute; right: 18px; top: -1.4em; color: var(--verde); font-size: 1.9rem; }
@media (max-width: 860px) {
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tbody tr { display: block; padding: 16px 0; border-bottom: 2px solid var(--renglon); }
  .ledger tbody tr:last-child { border-bottom: 0; }
  .ledger tbody th, .ledger tbody td { display: block; width: auto; border: 0; padding: 6px 4px; }
  .ledger tbody td::before { content: attr(data-label); display: block; font-size: .85rem; font-weight: 700; color: var(--gris); }
  .ledger td.fix { box-shadow: inset 4px 0 0 var(--verde); padding-left: 14px; margin-top: 6px; }
}

/* Five balls on ruled paper */
.attribution { font-size: .9rem; color: var(--gris); font-style: italic; }
.balls { background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--renglon) 39px 40px); border-top: 3px solid var(--azul); padding: 20px 0 8px; }
.balls-hint { font-weight: 700; margin-bottom: 0; }
.ball-row { list-style: none; margin: 0 0 8px; padding: 80px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; }
.ball { width: 100%; background: none; border: 0; padding: 8px 0; cursor: pointer; font: inherit; color: var(--tinta); display: flex; flex-direction: column; align-items: center; gap: 10px; border-radius: 6px; }
.ball-shape { position: relative; width: clamp(42px, 9vw, 66px); aspect-ratio: 1; border-radius: 50%; display: block; transform: translateY(-74px); }
.is-rubber .ball-shape { background: var(--verde); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .16); }
.is-glass .ball-shape { background: var(--blanco); border: 2px solid var(--azul); }
.is-glass .ball-shape::after { content: ""; position: absolute; left: 22%; top: 16%; width: 28%; height: 18%; border-top: 2px solid var(--azul-medio); border-radius: 50%; transform: rotate(-30deg); opacity: .6; }
.crack { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--azul); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ball-name { font-weight: 700; font-size: .9rem; }
.ball.is-dropped .ball-shape { transform: translateY(0); }
.ball.is-dropped.is-rubber .ball-shape { transform: translateY(-74px); }
.ball.is-broken .crack { opacity: 1; }
.ball.is-broken .ball-shape { transform: translateY(0) rotate(14deg); }
@media (prefers-reduced-motion: no-preference) {
  .ball.is-dropped.is-rubber .ball-shape { animation: bounce .9s cubic-bezier(.3, .8, .4, 1) forwards; }
  .ball.is-dropped.is-glass .ball-shape { animation: fall .35s ease-in forwards; }
  @keyframes bounce { 0% { transform: translateY(-74px); } 35% { transform: translateY(0); } 60% { transform: translateY(-36px); } 80% { transform: translateY(0); } 90% { transform: translateY(-10px); } 100% { transform: translateY(-74px); } }
  @keyframes fall { to { transform: translateY(0); } }
}
.balls-result { min-height: 3.2em; font-weight: 600; margin: 8px 0 0; }
@media (max-width: 420px) { .ball-name { font-size: .78rem; } }

/* Services: an index, plus stamped future pillars */
.service-live { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin: 12px 0 8px; }
.service-name { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.8rem); font-stretch: 66%; font-weight: 850; margin: 0; }
.status-ok { margin: 0; font-weight: 700; color: var(--verde); }
.status-ok::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); margin-right: 8px; }
.index-list { margin: 0; border-top: 3px solid var(--azul); }
.index-list div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--renglon); }
.index-list dt a { font-stretch: 72%; font-weight: 850; font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); color: var(--azul); text-decoration: none; line-height: 1.05; }
.index-list dt a:hover { text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 3px; }
.index-list dd { margin: 0; }
@media (max-width: 640px) { .index-list div { grid-template-columns: 1fr; } }
/* Proof: client names and case files */
.proof { background: var(--papel); }
.clients { margin: 8px 0 40px; }
.clients-label { font-size: var(--step-2); color: var(--azul); margin-bottom: 8px; }
.client-region { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px 24px; padding: 18px 0; border-bottom: 1px solid var(--renglon); }
.client-region:first-of-type { border-top: 3px solid var(--azul); }
.region-name { font-size: 1.05rem; font-stretch: 85%; color: var(--gris); margin: 10px 0 0; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.logo-grid figure { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--renglon); }
.logo-grid img { display: block; width: 100%; max-width: 150px; height: auto; aspect-ratio: 150 / 81; object-fit: contain; margin: 8px auto 0; }
.logo-grid figcaption { font-size: .85rem; font-weight: 600; line-height: 1.25; color: var(--tinta); padding: 6px 10px 10px; border-top: 1px dashed var(--renglon); margin-top: auto; text-align: center; }
@media (max-width: 640px) { .client-region { grid-template-columns: 1fr; gap: 8px; } .region-name { margin: 0; } .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cases-h { margin-top: 8px; }
.case-files { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
@media (max-width: 760px) { .case-files { grid-template-columns: 1fr; } }
.case-file article { height: 100%; display: flex; flex-direction: column; }
.file-tab { align-self: flex-start; margin: 0; background: #e3eaf5; color: var(--azul); font-weight: 800; font-stretch: 85%; padding: 7px 18px 5px; border: 1px solid #b9c8df; border-bottom: 0; border-radius: 6px 6px 0 0; }
.file-body { flex: 1; background: var(--blanco); border: 1px solid #b9c8df; border-radius: 0 6px 6px 6px; padding: 22px 24px 14px; background-image: repeating-linear-gradient(to bottom, transparent 0 29px, #eef2f8 29px 30px); background-position: 0 64px; }
.file-notes { margin: 0 0 8px; padding-left: 1.1em; }
.file-notes li { margin-bottom: 4px; }
.file-notes li::marker { color: var(--verde); content: "\2713  "; }

/* Stage: event footage on a framed screen */
.stage { background: var(--azul-hondo); color: var(--blanco); padding: clamp(48px, 7vw, 96px) 0; }
.stage h2 { color: var(--blanco); }
.stage a { color: var(--blanco); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) {
  .stage-grid { grid-template-columns: 1fr; row-gap: 0; }
  /* Phones: heading, line, then the video, then the event card (S, October 29, 2026: video right under the hero). */
  .stage-grid > div { display: contents; }
  .stage-grid h2 { order: 1; } .stage-grid > div > p:first-of-type { order: 2; } .stage .screen { order: 3; margin: 8px 0 0; }
  .stage-grid > div > :not(h2):not(p:first-of-type) { order: 4; }
}
.screen { margin: 0; }
.screen-frame { position: relative; aspect-ratio: 16 / 9; border: 8px solid #03091a; border-radius: 6px; box-shadow: 0 0 0 1px #2c4a85; background: #03091a; overflow: hidden; }
.stage-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.screen figcaption { font-size: .85rem; color: #c3d0e6; margin-top: 8px; }

/* Signatures */
.signatures { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
@media (max-width: 900px) { .signatures { grid-template-columns: 1fr; gap: 28px; } }
.signatures > li { display: flex; flex-direction: column; }
.sig-facts { margin: 0; padding: 0; list-style: none; }
.sig-facts li { padding: 8px 0; border-bottom: 1px solid var(--renglon); font-size: .98rem; }
.sig-line { margin: auto 0 0; padding-top: 44px; max-width: none; }
.sig-line .sig-name { display: block; border-top: 2px solid var(--azul); padding-top: 10px; font-stretch: 70%; font-weight: 850; font-size: 1.6rem; color: var(--azul); line-height: 1.1; }
.sig-role { display: block; color: var(--gris); font-weight: 600; }

/* Calmer shared pieces in the same language */
.page-hero { background: var(--blanco); border-bottom: 6px solid var(--azul); }
.page-hero h1 { font-stretch: 66%; font-weight: 850; }
.cta-band { background: var(--blanco); color: var(--tinta); border-top: 6px solid var(--azul); border-bottom: 1px solid var(--linea); }
.cta-band h2 { color: var(--azul); }
.cta-band p { color: var(--tinta); }
.cta-band .btn-solid { background: var(--verde); color: var(--blanco); }
.cta-band .btn-solid:hover { background: #0f6334; }
.cta-band .btn-line { color: var(--azul); }
.cta-band .btn-line:hover { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.btn { border-radius: 3px; }
.event-card { border-radius: 3px; }
.monogram { display: none; }

/* Testimonials and video facades (render only with real content) */
.testimonials { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonials blockquote { margin: 0 0 12px; font-size: 1.2rem; font-stretch: 90%; border-left: 4px solid var(--verde); padding-left: 16px; }
.video-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border: 6px solid #03091a; border-radius: 6px; overflow: hidden; background: #03091a; }
.video-frame iframe, .video-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; color: var(--blanco); font: inherit; text-align: left; }
.video-len { position: absolute; top: 10px; right: 10px; background: rgba(3, 9, 26, .85); padding: 2px 8px; border-radius: 4px; font-size: .85rem; }
.preview-banner { margin: 0; padding: 8px 16px; background: #fff4c2; color: #1f2633; text-align: center; font-size: .9rem; font-weight: 600; }
.video-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.video-card { margin: 0; }
.video-play picture { position: absolute; inset: 0; }
.video-icon { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(3, 9, 26, .78); border: 2px solid var(--blanco); transition: background .15s; }
.video-icon::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent var(--blanco); }
.video-play:hover .video-icon, .video-play:focus-visible .video-icon { background: var(--verde); }
.video-play:focus-visible { outline: 3px solid var(--verde); outline-offset: -3px; }
.video-name { margin: 12px 0 0; font-weight: 700; line-height: 1.3; }
.video-desc { margin: 4px 0 0; font-size: .95rem; }
.video-more { margin-top: 24px; }
.video-more summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--azul); }


.stage .event-card { margin-top: 24px; background: transparent; border: 1.5px solid #2c4a85; color: var(--blanco); }
.stage .event-card h3 { color: var(--blanco); }
.stage .event-when { color: var(--verde-claro); }
.stage .event-where { color: #c9d5ea; }

.chat-toggle.is-hidden, .a11y.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s; }
@media (max-width: 860px) { .worksheet .margin-note-ink { position: static; display: block; text-align: right; margin: -4px 0 10px; } }

/* Translate toggle (header, every page) */
.lang-toggle { order: 3; display: inline-flex; align-items: stretch; min-height: 40px; border: 2px solid var(--azul); border-radius: 3px; text-decoration: none; color: var(--azul); font-weight: 800; font-stretch: 85%; font-size: .9rem; line-height: 1; flex: none; }
.lang-toggle .lt-opt { display: inline-flex; align-items: center; padding: 0 9px; }
.lang-toggle .lt-opt.is-on { background: var(--azul); color: var(--blanco); }
.lang-toggle:hover .lt-opt:not(.is-on) { background: var(--papel); }
.site-nav { order: 2; }
.menu-btn { order: 4; }
.header-row { gap: 14px; }
@media (max-width: 1060px) { .lang-toggle { margin-left: auto; } }
@media (min-width: 1061px) { .site-nav { margin-left: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

.logo-text { display: grid; place-items: center; aspect-ratio: 150 / 81; width: 100%; max-width: 150px; margin: 8px auto 0; padding: 0 8px; text-align: center; font-weight: 850; font-stretch: 70%; font-size: 1.3rem; line-height: 1.05; color: var(--azul); }
.logo-text.is-person { width: 64px; height: 64px; aspect-ratio: auto; border-radius: 50%; border: 2px solid var(--azul); margin: 16px auto 0; font-size: 1.4rem; }
.logo-note { display: block; font-weight: 400; color: var(--gris); font-size: .8rem; margin-top: 2px; }
.logo-text { overflow: hidden; }
.logo-text.is-long { font-size: .95rem; line-height: 1.1; }

/* Person card in the partners row */
.logo-grid .person-card { grid-column: span 2; }
.person-card figure { flex-direction: row; align-items: center; gap: 16px; padding: 14px 16px; }
.person-card img { width: 96px; height: 96px; max-width: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin: 0; flex: none; border: 2px solid var(--azul); }
.person-card figcaption { border-top: 0; padding: 0; margin: 0; text-align: left; }
.person-card .person-name { display: block; font-size: 1.15rem; font-weight: 800; color: var(--azul); }
@media (max-width: 640px) { .logo-grid .person-card { grid-column: 1 / -1; } }

.logo-grid .is-wide { grid-column: span 2; }
.logo-grid .is-wide img { max-width: 300px; aspect-ratio: 300 / 162; }
@media (max-width: 640px) { .logo-grid .is-wide { grid-column: 1 / -1; } }
/* Carlos Morett: same size as every other tile */
.logo-grid .person-card { grid-column: auto; }
.person-card figure { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
.person-card picture { display: grid; place-items: center; aspect-ratio: 150 / 81; width: 100%; max-width: 150px; margin: 8px auto 0; }
.person-card img { width: 72px; height: 72px; }
.person-card figcaption { border-top: 1px dashed var(--renglon); padding: 6px 10px 10px; margin-top: auto; text-align: center; }
.person-card .person-name { font-size: .875rem; font-weight: 600; font-stretch: 100%; color: var(--tinta); }
@media (max-width: 640px) { .logo-grid .person-card { grid-column: auto; } }
.logo-grid .is-wide img { aspect-ratio: 300 / 81; max-width: 300px; }

/* =====================================================================
   Trust above the fold, client ticker, balance audit, free diagnostic
   ===================================================================== */
.khero:has(.hero-trust) { padding: clamp(32px, 4vw, 52px) 0 clamp(20px, 2.5vw, 28px); }
.khero:has(.hero-trust) .khero-grid { row-gap: 18px; }
.khero:has(.hero-trust) .h1-a { font-size: clamp(2.7rem, 1.1rem + 5vw, 5.2rem); }
.khero:has(.hero-trust) .h1-b { max-width: 34ch; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.95rem); }
.khero:has(.hero-trust) .habits-struck li { font-size: clamp(1.7rem, .9rem + 2.2vw, 2.7rem); }
.hero-trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: 16px clamp(20px, 3vw, 48px); margin-top: clamp(22px, 3vw, 30px); padding-top: 16px; border-top: 1px solid rgba(143, 224, 173, .35); }
.hero-trust a { color: var(--blanco); }
.trust-founder { display: flex; align-items: center; gap: 14px; text-decoration: none; border-radius: var(--radius); padding: 4px; }
.trust-founder:hover .trust-name { text-decoration: underline; text-underline-offset: 3px; }
.trust-text { font-size: .95rem; line-height: 1.35; color: #e6edf8; }
.trust-name { display: block; font-size: 1.05rem; color: var(--blanco); }
.trust-role { display: block; color: var(--verde-claro); font-weight: 600; }
.trust-founder picture { flex: none; display: block; }
.trust-founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--verde-claro); flex: none; }
.trust-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.trust-facts > div { padding: 2px 0 2px clamp(14px, 1.6vw, 22px); border-left: 1px solid rgba(143, 224, 173, .35); }
.trust-facts dt { font-size: .8rem; font-weight: 800; font-stretch: 84%; letter-spacing: .05em; text-transform: uppercase; color: var(--verde-claro); }
.trust-facts dd { margin: 2px 0 0; font-size: .95rem; line-height: 1.35; color: #e6edf8; }
.trust-facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--verde-claro); }
.trust-facts a:hover { text-decoration-thickness: 2px; }
@media (max-width: 1060px) { .hero-trust { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .trust-facts { grid-template-columns: 1fr; gap: 8px; } .trust-facts > div { display: flex; gap: 10px; align-items: baseline; padding-left: 0; border-left: 0; } .trust-facts dt { flex: none; width: 8.5em; } }

.logo-ticker { background: var(--blanco); border-bottom: 1px solid var(--linea); padding: 14px 0; }
.ticker-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.ticker-label { font-size: var(--step-2); margin: 0 0 12px; } /* full-size title like every section (S, October 30, 2026) */
.ticker-viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 40px); width: max-content; }
.ticker-track li { flex: none; }
.ticker-track picture { display: block; }
.ticker-track img { height: 72px; width: auto; display: block; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .logo-ticker .ticker-track { animation: ticker 60s linear infinite; }
  .logo-ticker:focus-within .ticker-track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-viewport { overflow-x: auto; }
  .ticker-track li[aria-hidden="true"] { display: none; }
}
@media (max-width: 560px) { .ticker-track img { height: 56px; } }

.audit-section { background-color: var(--papel); background-image: repeating-linear-gradient(transparent 0 31px, var(--renglon) 31px 32px); }
.audit-intro { max-width: 68ch; }
.audit-intro .attribution { font-size: .875rem; color: var(--gris); }
.audit { margin-top: 20px; }
.audit-how { margin: 0 0 16px; font-size: var(--step-0); max-width: 70ch; }
.audit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.audit-q { margin: 0; padding: 14px 12px 12px; border: 1.5px solid var(--linea); border-radius: var(--radius); background: var(--blanco); min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.audit-q.is-done { border-color: var(--azul); }
.audit-q legend { padding: 0; margin: 0 0 4px; }
.audit-body { display: flex; flex-direction: column; gap: 10px; }
.ball-label { display: block; font-weight: 800; font-stretch: 84%; font-size: var(--step-1); color: var(--azul); }
.ball-kind { display: block; font-weight: 500; color: var(--gris); font-size: .875rem; line-height: 1.3; }
.audit-ball { height: 96px; display: flex; justify-content: center; align-items: flex-end; border-bottom: 3px double var(--azul); padding-bottom: 4px; }
.audit-ball .ball-shape { width: 46px; transform: translateY(-46px); transition: transform .5s cubic-bezier(.3, .8, .4, 1); }
.audit-ball[data-level="1"] .ball-shape { transform: translateY(-22px) rotate(-8deg); }
.audit-ball[data-level="0"] .ball-shape { transform: translateY(0) rotate(14deg); }
.audit-ball.is-rubber[data-level="0"] .ball-shape { transform: translateY(-6px); }
.audit-ball.is-glass[data-level="0"] .crack { opacity: 1; }
.audit-options { display: grid; gap: 6px; }
.audit-options label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 8px; border: 1.5px solid #8793a6; border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.audit-options input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.audit-options label:hover { background: var(--papel); }
.audit-options label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.audit-options label.lvl-0:has(input:checked) { background: #8a1c23; border-color: #8a1c23; color: var(--blanco); }
.audit-options label.lvl-1:has(input:checked) { background: var(--azul-medio); border-color: var(--azul-medio); color: var(--blanco); }
.audit-options label.lvl-2:has(input:checked) { background: var(--verde); border-color: var(--verde); color: var(--blanco); }
@media (max-width: 980px) { .audit-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (max-width: 560px) {
  .audit-grid { grid-template-columns: 1fr; gap: 8px; }
  .audit-q { padding: 10px 10px 12px; gap: 6px; }
  .ball-label, .ball-kind { display: inline; }
  .ball-kind::before { content: " \00b7 "; }
  .audit-body { display: flex; flex-direction: row; align-items: stretch; gap: 10px; }
  .audit-ball { flex: none; width: 56px; height: auto; min-height: 76px; border-bottom: 3px double var(--azul); padding-bottom: 2px; }
  .audit-ball .ball-shape { width: 36px; transform: translateY(-34px); }
  .audit-ball[data-level="1"] .ball-shape { transform: translateY(-16px) rotate(-8deg); }
  .audit-options { flex: 1; grid-template-columns: repeat(3, 1fr); align-content: end; }
  .audit-options label { font-size: .85rem; padding: 4px; }
}
.audit-result { margin: 20px 0 0; padding: 16px 18px; border-left: 4px solid var(--azul-medio); background: var(--blanco); font-size: var(--step-1); font-weight: 600; max-width: 70ch; }
.audit-result:empty, .audit-result:has(.audit-msg:empty) { display: none; }
.audit-result.is-alert { border-left-color: #b4232c; }
.audit-result.is-ok { border-left-color: var(--verde); }
.audit-msg { margin: 0; }
.audit-cta { margin: 20px 0 0; }

.diag-form .req { color: #b4232c; font-weight: 800; }
.diag-form select { width: 100%; font: inherit; padding: 12px; border: 1.5px solid var(--gris); border-radius: var(--radius); background: var(--blanco); color: var(--tinta); min-height: 48px; }
.diag-form [aria-invalid="true"] { border-color: #b4232c; box-shadow: 0 0 0 1px #b4232c; }
.confirm-modal { border: 0; border-top: 6px solid var(--verde); border-radius: 10px; padding: 28px 26px 24px; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(8, 25, 58, .35); color: var(--tinta); }
.confirm-modal::backdrop { background: rgba(8, 25, 58, .6); }
.confirm-modal h2, .confirm-modal h3 { margin-top: 0; color: var(--azul); }

.sig-photo img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 12px; border: 2px solid var(--linea); }
.file-stat { margin: 6px 0 12px; font-stretch: 66%; font-weight: 850; font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; color: var(--azul); }
.file-stat span { font-size: 1rem; font-stretch: 100%; font-weight: 700; color: var(--gris); }

.blog-cat { padding: 22px 0 26px; border-top: 3px double var(--azul); }
.blog-cat:first-child { border-top: 0; padding-top: 0; }
.blog-topics { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.blog-topics li { padding: 12px 0; border-bottom: 1px solid var(--renglon); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.blog-soon { font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.blog-topic { font-weight: 700; flex: 1 1 28ch; }

.h1-line { display: block; color: var(--verde-claro); }

.diag-section { background: var(--papel); border-top: 1px solid var(--linea); }
.score-total { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 12px; color: var(--azul); }
.score-total-num { font-stretch: 66%; font-weight: 850; font-size: clamp(3.2rem, 2rem + 4vw, 5rem); line-height: 1; }
.score-total-of { font-weight: 700; font-size: var(--step-1); color: var(--gris); }
.diag-contact { margin-top: 32px; padding-top: 24px; border-top: 3px double var(--azul); }
.diag-contact .lead-form { margin-top: 12px; }

.menu-text { white-space: nowrap; }

/* Konfronta in one minute: page index, stat grid, habits on the income statement */
.page-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 28px; padding-bottom: 18px; border-bottom: 1px solid var(--linea); }
.page-index-label { font-weight: 800; font-stretch: 84%; color: var(--azul); margin-right: 4px; }
.page-index a { color: var(--azul); font-weight: 600; text-decoration: none; padding: 8px 12px; border: 1.5px solid var(--linea); border-radius: var(--radius); min-height: 40px; display: inline-flex; align-items: center; }
.page-index a:hover { border-color: var(--azul); background: var(--papel); }
.totals h2 { margin-bottom: 18px; }
.stat-grid { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 3px solid var(--azul); border-bottom: 5px double var(--azul); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 20px clamp(12px, 2vw, 24px); border-left: 1px solid var(--linea); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dd { margin: 0; font-weight: 850; font-stretch: 66%; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; color: var(--azul); font-variant-numeric: tabular-nums; }
.stat dt { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: var(--tinta); }
@media (max-width: 1100px) { .stat dd { font-size: clamp(2.2rem, 1.4rem + 2.2vw, 3rem); } }
@media (max-width: 860px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(odd) { border-left: 0; padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--linea); } .stat:first-child { grid-column: 1 / -1; } .stat:first-child ~ .stat:nth-child(even) { border-left: 0; padding-left: 0; } .stat:first-child ~ .stat:nth-child(odd) { border-left: 1px solid var(--linea); padding-left: clamp(12px, 2vw, 24px); } }
@media (max-width: 420px) { .page-index-label { width: 100%; } .page-index a { padding: 6px 10px; } }

.eyebrow { font-weight: 800; font-stretch: 84%; text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; color: var(--verde); margin: 0 0 6px; }
.habit-h { font-size: var(--step-2); max-width: 24ch; }
.habit-flow { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-weight: 800; font-stretch: 84%; font-size: var(--step-1); color: var(--azul); }
.habit-flow li:not(:last-child)::after { content: "\2192"; color: var(--verde); margin: 0 12px; font-stretch: 100%; }
.habit-flow li:last-child { color: #8a1c23; }
.ledger td.cost { color: #8a1c23; font-weight: 600; }
.ledger tbody th, .ledger tbody td { padding: 14px 12px; }
@media (max-width: 760px) { .ledger tbody th, .ledger tbody td { padding: 4px 4px; } .ledger tbody tr { padding: 12px 0; } }

/* Diagnostic questions: two columns on wide screens so the whole set fits in less scrolling */
@media (min-width: 980px) {
  .diag-section .wrap.narrow { max-width: 1180px; }
  .diag-section .quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; align-items: start; }
  .diag-section .quiz > button, .diag-section .quiz > .quiz-status { grid-column: 1 / -1; justify-self: start; }
  .diag-section .results, .diag-section .diag-contact, .diag-section > .wrap > p, .diag-section > .wrap > h2 { max-width: 760px; }
}

/* Phone: shorter scroll for busy owners */
@media (max-width: 760px) {
  .ledger td:nth-child(2) { display: none; }
  .why-k .ledger td:nth-child(2) { display: block; }
  .ledger tbody th { font-size: 1.1rem; }
}

/* Home services: how we work, compact (same numbered ledger steps as Consultoría) */
.how-h { margin: clamp(32px, 4vw, 48px) 0 0; font-size: var(--step-1); font-stretch: 84%; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.steps-compact { margin-top: 12px; }
.steps-compact li { padding-top: 18px; }
.steps-compact li::before { font-size: 2.4rem; margin-bottom: 8px; }
.steps-compact h4 { margin: 0 0 .35em; font-size: var(--step-1); font-stretch: 84%; color: var(--azul); }
.steps-compact p { margin: 0; font-size: .975rem; }


.quiz fieldset, .quiz input { scroll-margin-top: calc(var(--header-h, 68px) + 16px); }
@media (max-width: 1060px) { .trust-facts > div:first-child { padding-left: 0; border-left: 0; } }
.req-note { margin: 0 0 12px; font-size: .9rem; color: var(--gris); }

/* October 28 (S): hero without the brand line, more air above the buttons */
.khero-grid { grid-template-areas: "main habits"; }
.khero .lead { margin: 0 0 16px; max-width: 58ch; }
.khero .lead-2 { color: #c9d5ea; }
.khero .btn-row { margin-top: 40px; }
@media (max-width: 860px) { .khero-grid { grid-template-areas: "habits" "main"; } .khero .btn-row { margin-top: 32px; } }

/* Consultoría: a compact page title instead of the big hero screen */
.page-intro { padding-top: clamp(32px, 4vw, 48px); }
.page-title { font-size: var(--step-3); font-stretch: 66%; font-weight: 850; line-height: 1; margin: 0 0 clamp(24px, 3vw, 40px); padding-bottom: 16px; border-bottom: 3px double var(--azul); max-width: none; }

/* Ticker: "Ver todos" in place of the pause button (S, October 28, 2026) */
.logo-ticker { padding: 32px 0 16px; }
.ticker-all { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; font-weight: 700; font-size: .95rem; color: var(--azul); text-decoration: none; border: 1.5px solid var(--azul); border-radius: var(--radius); white-space: nowrap; }
.ticker-all:hover { background: var(--azul); color: var(--blanco); }
.ticker-track { gap: clamp(24px, 3.5vw, 48px); }

/* Business ball: feedback as soon as it is marked halfway or neglected */
.ball-note { margin: 0; font-size: .9rem; line-height: 1.35; font-weight: 600; }
.ball-note:empty { display: none; }
.ball-note .ojo { display: block; font-family: "Marker", "Archivo", cursive; font-weight: 400; font-size: 1.35rem; line-height: 1; transform: rotate(-4deg); transform-origin: left; margin-bottom: 4px; }
.audit-q.is-warn-0 { border-color: #8a1c23; box-shadow: inset 0 0 0 1px #8a1c23; }
.audit-q.is-warn-0 .ball-note { color: #8a1c23; }
.audit-q.is-warn-1 { border-color: var(--azul-medio); box-shadow: inset 0 0 0 1px var(--azul-medio); }
.audit-q.is-warn-1 .ball-note { color: var(--azul-medio); }
.audit-result.is-warn { border-left-color: #8a1c23; }

/* 8 point spacing: a little more air between sections, one solid button per section */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.btn-row { gap: 16px; }
.text-link { font-weight: 700; color: var(--azul); text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--verde); align-self: center; }
.text-link:hover { text-decoration-color: var(--azul); }
@media (max-width: 560px) {
  .audit-body { flex-wrap: wrap; }
  .audit-body .audit-options { flex: 1; }
  .ball-note { flex: 1 0 100%; }
  .ball-note .ojo { display: inline; margin: 0 6px 0 0; font-size: 1.2rem; }
}

/* Hero quick call-back form (October 28, S): two fields and one big button */
.quick-form { margin-top: 32px; max-width: 640px; }
.qf-h { margin: 0 0 8px; font-weight: 800; font-stretch: 84%; font-size: var(--step-1); color: var(--verde-claro); }
.qf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.qf-field label { display: block; font-size: .875rem; font-weight: 700; color: #e6edf8; margin-bottom: 4px; }
.qf-field input { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 1.0625rem; color: var(--tinta); background: var(--blanco); border: 2px solid var(--blanco); border-radius: var(--radius); }
.qf-field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qf-field input[aria-invalid="true"] { border-color: #ffb3b8; box-shadow: 0 0 0 2px #ffb3b8; }
.qf-btn { min-height: 52px; white-space: nowrap; font-size: 1.0625rem; padding-inline: 24px; }
.qf-note { margin: 8px 0 0; font-size: .875rem; color: #c9d5ea; }
.qf-note a, .qf-alt a { color: var(--blanco); text-underline-offset: 3px; }
.quick-form .form-status { margin: 6px 0 0; color: var(--blanco); font-weight: 600; }
.quick-form .form-status.err { color: #ffc9cd; }
.qf-alt { margin: 16px 0 0; font-weight: 600; color: #c9d5ea; }
@media (max-width: 640px) {
  .qf-row { grid-template-columns: 1fr 1fr; }
  .qf-btn { grid-column: 1 / -1; width: 100%; }
}
.quick-form .form-status:empty, .quick-form .turnstile-slot:empty { display: none; }
/* Phones: headline, offer and form first; the struck habits follow */
@media (max-width: 860px) { .khero-grid { grid-template-areas: "main" "habits"; } }
.trust-facts { grid-template-columns: 1fr; }
/* Phones: keep the small links under the form clear of the floating chat and WhatsApp buttons */
@media (max-width: 640px) { .qf-note, .qf-alt { padding-right: 72px; } }

/* =====================================================================
   October 28 (S): calmer home. Hero = headline and one paragraph; the
   contact form has its own band; the founder sits with the track record.
   ===================================================================== */
.khero { padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 9vw, 120px); }
.khero-grid { align-items: center; row-gap: 48px; }
.khero h1 { margin-bottom: 32px; }
.khero .h1-b { margin-top: 16px; }
.khero .lead { max-width: 46ch; margin: 0; line-height: 1.6; }

.contact-band { background: var(--papel); border-bottom: 1px solid var(--linea); padding: clamp(48px, 6vw, 80px) 0; }
.contact-band-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center; }
.contact-band h2 { margin: 0 0 8px; }
.contact-band-copy p { margin: 0; color: var(--gris); max-width: 36ch; }
.contact-band .quick-form { margin: 0; max-width: none; }
.contact-band .qf-field label { color: var(--azul); }
.contact-band .qf-field input { border: 1.5px solid #8793a6; }
.contact-band .qf-field input:hover { border-color: var(--azul); }
.contact-band .qf-note, .contact-band .qf-alt { color: var(--gris); }
.contact-band .qf-note a, .contact-band .qf-alt a { color: var(--azul); }
.contact-band .quick-form .form-status { color: var(--tinta); }
.contact-band .quick-form .form-status.err { color: #b4232c; }
.contact-band .qf-alt { margin-top: 24px; }
@media (max-width: 860px) { .contact-band-grid { grid-template-columns: 1fr; } }

.totals .trust-founder { display: flex; align-items: center; gap: 16px; margin-top: 24px; color: var(--tinta); text-decoration: none; max-width: 68ch; }
.totals .trust-name { color: var(--azul); }
.totals .trust-role { color: var(--verde); }
.totals .trust-text { color: var(--tinta); }
.totals .ledger-source { display: block; margin: 4px 0 0; }
.totals .trust-more { color: var(--azul-medio); text-decoration: underline; text-underline-offset: 3px; }
.totals .trust-founder:hover .trust-more { text-decoration-thickness: 2px; }

/* Diagnostic: answered counter sits next to the score button, never over the questions */
.quiz-submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.quiz-submit .btn { margin-top: 0; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 700; font-size: .95rem; color: var(--azul); max-width: none; }
.qp-bar { width: 160px; height: 6px; background: var(--linea); border-radius: 3px; overflow: hidden; }
.qp-fill { display: block; height: 100%; width: 0; background: var(--verde); transition: width .25s ease; }
.quiz-progress.is-done { color: var(--verde); }
@media (prefers-reduced-motion: reduce) { .qp-fill { transition: none; } }
.quiz .quiz-status { grid-column: 1 / -1; }
.habits-struck li { font-size: clamp(1.6rem, .9rem + 2vw, 2.6rem); margin-bottom: .4em; }

/* Balance audit, cleaned up (October 28, S): title inside each card, less empty space, one instruction line */
.audit-intro p { margin: 0 0 8px; }
.audit-intro .audit-how { margin: 16px 0 0; font-weight: 700; color: var(--azul); }
.audit { margin-top: 24px; }
.audit-grid { gap: 16px; }
.audit-q { padding: 16px; gap: 12px; display: block; }
.audit-q legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; }
.audit-q legend + * { clear: both; }
.ball-kind { font-size: .8125rem; margin-top: 2px; }
.audit-body { gap: 12px; }
.audit-ball { height: 72px; }
.audit-ball .ball-shape { width: 40px; transform: translateY(-28px); }
.audit-ball[data-level="1"] .ball-shape { transform: translateY(-14px) rotate(-8deg); }
.audit-options label { min-height: 44px; }
.audit-cta { margin-top: 24px; }
.audit .attribution { margin: 16px 0 0; font-size: .8125rem; color: var(--gris); font-style: italic; }
@media (max-width: 560px) {
  .audit-q { padding: 12px; }
  .audit-q legend { margin-bottom: 6px; }
  .audit-ball { height: auto; }
  .audit-ball .ball-shape { width: 36px; transform: translateY(-30px); }
}

/* Family business across generations: ledger figures with shrinking bars */
.generations { background: var(--blanco); border-top: 1px solid var(--linea); }
.gen-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "intro ledger" "how ledger"; gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.gen-intro { grid-area: intro; }
.gen-intro p:last-child { margin: 0; max-width: 44ch; }
.gen-ledger { grid-area: ledger; position: relative; }
.gen-list { margin: 0; border-top: 3px solid var(--azul); border-bottom: 5px double var(--azul); }
.gen-row { padding: 20px 0; border-bottom: 1px solid var(--renglon); }
.gen-row:last-child { border-bottom: 0; }
.gen-row dt { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.gen-pct { font-stretch: 66%; font-weight: 850; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; color: var(--azul); min-width: 4.2ch; }
.gen-label { font-weight: 600; color: var(--tinta); }
.gen-row dd { margin: 12px 0 0; }
.gen-bar { display: block; height: 10px; background: var(--papel); border-radius: 5px; overflow: hidden; }
.gen-bar span { display: block; height: 100%; background: var(--azul); border-radius: 5px; }
.gen-row:last-child .gen-bar span { background: #b4232c; }
.gen-note { position: absolute; right: 0; top: -2.2rem; font-size: 1.6rem; color: var(--verde); }
.gen-source { margin: 12px 0 0; font-size: .8125rem; color: var(--gris); }
.gen-how { grid-area: how; }
.gen-how h3 { margin: 0 0 12px; font-size: var(--step-1); color: var(--azul); }
.gen-how ul { margin: 0 0 16px; }
.gen-how li { margin-bottom: 8px; }
@media (max-width: 860px) {
  .gen-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "ledger" "how"; }
  .gen-note { top: -1.8rem; font-size: 1.35rem; }
}
.gen-bar { background: #e1e7f0; }
/* Services as solved problems */
/* Phones: "Ver todos" sits left of the logos so the chat button never covers it */
@media (max-width: 560px) { .ticker-all { order: -1; } }
.service-name.service-label { font-size: var(--step-1); font-stretch: 84%; font-weight: 700; color: var(--gris); }
.area-problem { font-weight: 700; color: var(--azul); margin-bottom: 8px; }

/* Self-reflection features (S, October 29, 2026). Switches in src/reflection.mjs. */
/* 3: question 2 near the top of home */
.first-q { background: var(--blanco); border-top: 1px solid var(--linea); padding-block: 48px; }
.first-q-h { font-size: var(--step-2); max-width: 30ch; margin: 0 0 8px; }
.first-q-lead { margin: 0 0 16px; color: var(--gris); }
.first-q-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 640px; }
.first-q-opts a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 4px; border: 1.5px solid #8793a6; border-radius: var(--radius); color: var(--tinta); font-size: .9rem; line-height: 1.2; text-decoration: none; }
.first-q-opts a:hover { border-color: var(--azul); background: var(--papel); }
.first-q-opts a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 420px) { .first-q-opts a { font-size: .8rem; } }
/* 2: habit picker under the worksheet */
.habit-pick { margin: 16px 0 24px; }
.habit-pick-label { font-weight: 700; margin: 0 0 8px; }
.habit-pick-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.habit-pick-btn { min-height: 48px; padding: 8px 14px; font: inherit; font-size: .95rem; font-weight: 700; color: var(--azul); background: var(--blanco); border: 1.5px solid #8793a6; border-radius: var(--radius); cursor: pointer; }
.habit-pick-btn[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.habit-pick-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.score-note { font-size: .95rem; color: var(--gris); }
/* 1 and 4: the mirror after the score */
.mirror { margin-top: 24px; padding: 20px 20px 16px; background: var(--blanco); border: 1px solid var(--linea); border-left: 4px solid var(--verde); }
.mirror-h { font-size: var(--step-1); margin: 0 0 8px; }
.mirror-win { margin: 0 0 16px; }
.mirror-win .text-link { white-space: nowrap; }
.mirror-case { display: flex; flex-direction: column; margin: 0 0 16px; text-decoration: none; color: var(--tinta); max-width: 520px; }
.mirror-case .file-tab { font-size: .9rem; padding: 5px 14px 3px; }
.mirror-case-body { display: block; padding: 12px 16px; border: 1px solid #b9c8df; background: var(--papel); font-weight: 700; }
.mirror-case-kicker { display: block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--verde); }
.mirror-case:hover .mirror-case-body { border-color: var(--azul); }
.mirror-case:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mirror-habit { margin: 0 0 16px; }
.mirror-q { border: 0; margin: 0; padding: 12px 0 0; border-top: 3px double var(--azul); }
.mirror-q legend { font-weight: 800; font-size: 1.1rem; padding: 12px 0 8px; float: left; width: 100%; }
.mirror-q legend + * { clear: both; }
.mirror-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mirror-opts label { position: relative; }
.mirror-opts input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mirror-opts span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px; border: 1.5px solid #8793a6; border-radius: var(--radius); font-size: .95rem; line-height: 1.2; }
.mirror-opts input:checked + span { background: var(--azul); border-color: var(--azul); color: var(--blanco); font-weight: 700; }
.mirror-opts input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.mirror-reply { margin: 12px 0 0; font-weight: 700; color: var(--verde); min-height: 1.5em; }
/* 5: optional open question */
.field-worry { margin-bottom: 16px; }
.field-worry .optional { font-weight: 400; color: var(--gris); }

/* Client savings line and Melecio Ortega's recognitions (S, October 29, 2026) */
.stat-savings { max-width: none; margin: 8px 0 0; padding: 12px 0; border-bottom: 5px double var(--azul); font-size: var(--step-1); color: var(--tinta); }
.stat-savings strong { font-stretch: 75%; font-weight: 850; font-size: var(--step-2); color: var(--azul); margin-right: 8px; }
.awards { margin-top: 16px; }
.awards-label { font-weight: 800; font-stretch: 84%; text-transform: uppercase; letter-spacing: .06em; font-size: .875rem; color: var(--verde); margin: 0 0 6px; }
.awards-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.awards-list li { padding-left: 22px; position: relative; }
.awards-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border: 2px solid var(--verde); border-radius: 50%; }
.awards-list .awards-more::before { display: none; }
.awards-more a { font-weight: 700; }

/* 6: Por qué Konfronta */
.why-k .ledger th[scope="row"] { color: var(--azul); }
.why-edge { max-width: 70ch; margin: 24px 0 0; padding: 16px 0 0; border-top: 3px double var(--azul); font-size: var(--step-1); }
.why-edge strong { color: var(--azul); }

/* 7: next step with Konfronta, right after a moment of realization */
.next-step { margin: 20px 0 0; padding: 16px 18px; background: var(--blanco); border: 1px solid var(--linea); border-left: 4px solid var(--azul); max-width: 760px; }
.next-step-k { margin: 0 0 4px; font-weight: 800; font-stretch: 84%; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--verde); }
.next-step-text { margin: 0 0 10px; font-weight: 700; color: var(--azul); }
.next-step-links { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.next-step-links a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.platform-login { margin: 0 0 32px; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }

/* Route through the home page (S, October 29, 2026): five steps that end in talking with a partner. */
.route { padding: 40px 0 8px; }
.route-h { margin: 0 0 16px; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--azul); }
.route-list li { border-right: 1px solid var(--linea); }
.route-list li:last-child { border-right: 0; }
.route-list a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 2px; padding: 16px 16px 16px 0; color: var(--azul); text-decoration: none; height: 100%; }
.route-list li + li a { padding-left: 16px; }
.route-list a:hover .route-t, .route-list a:focus-visible .route-t { text-decoration: underline; }
.route-list li:last-child .route-n { background: var(--verde); }
.route-n { grid-row: span 2; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1; }
.route-t { font-weight: 800; font-stretch: 88%; font-size: 1.05rem; line-height: 1.2; }
.route-d { font-size: .9rem; color: var(--gris, #4a5568); line-height: 1.35; }
@media (max-width: 900px) {
  .route-list { grid-template-columns: 1fr; border-top: 0; border-left: 3px solid var(--azul); }
  .route-list li { border-right: 0; border-bottom: 1px solid var(--linea); }
  .route-list li:last-child { border-bottom: 0; }
  .route-list a, .route-list li + li a { padding: 12px 0 12px 16px; }
}
.route-mark { padding: 40px 0 0; }
.route-mark p { margin: 0; max-width: none; display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--azul); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; border-top: 3px solid var(--azul); padding-top: 12px; }
.route-mark p .route-n { width: 28px; height: 28px; font-size: .85rem; }
.route-mark strong { font-weight: 800; }
.route-mark + .section, .route-mark + section { padding-top: 32px; }
#pruebas + .totals { padding-top: 32px; }
.contact-band-final { border-top: 3px solid var(--verde); }

/* WhatsApp and chat stay on screen (S, October 30, 2026): leave room under the footer so nothing ends up behind them. */
@media (max-width: 760px) { .site-footer { padding-bottom: 112px; } }

/* Nuestra imagen (S, October 30, 2026) */
.our-image-line { margin: 0; font-size: var(--step-2); font-weight: 800; font-stretch: 88%; line-height: 1.15; color: var(--verde); max-width: 22ch; }
.contact-ways-h { margin-bottom: 24px; }
