/* Treuz: azul #1D1F42 + cian #5DFAFD (acento), naranja solo en la flecha. Fira Sans Condensed */
:root {
  --bg: #1d1f42;
  --bg-alt: #23264f;
  --surface: #282b59;
  --text: #f1f2fa;
  --muted: #b8bbd8;
  --border: #3a3e72;
  --orange: #ff4d00;
  --accent: #5dfafd;
  --accent-hover: #9cfcfe;
  --on-accent: #1d1f42;
  --radius: 12px;
  --maxw: 1120px;
  color-scheme: dark;
  font-family: "Fira Sans Condensed", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; color: var(--accent); }
p { margin: 0 0 1rem; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--surface); color: var(--text); padding: .5rem 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .65rem 1.25rem; border-radius: 999px; border: 0; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: background-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(29,31,66,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

.hero { padding: 4rem 0 4.5rem; background: radial-gradient(ellipse at 85% 0%, rgba(93,250,253,.10), transparent 55%); }
.display { font-size: clamp(2.2rem, 7vw, 4.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 1rem; max-width: 16ch; }
.tagline { display: flex; align-items: center; gap: .9rem; font-size: clamp(1.25rem, 3.5vw, 1.9rem); font-weight: 600; margin: 0 0 2rem; }
.arrow { width: clamp(52px, 9vw, 96px); height: auto; fill: var(--orange); flex: none; }
.h1-seo { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 500; color: var(--accent); max-width: 60ch; margin-bottom: .75rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta-row.center { justify-content: center; }
.btn-outline { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-outline:hover { background: rgba(93,250,253,.1); }
.features { display: grid; gap: 1rem; margin-top: 2rem; }
.feature { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; overflow: hidden; }
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.feature h3 { color: var(--text); font-size: 1.35rem; margin: .9rem 0 .5rem; }
.feature p { color: var(--muted); margin: 0; }
.icon { width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: rgba(93,250,253,.1); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin-bottom: 1.75rem; }

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.step-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 600; margin-bottom: .75rem;
}
.grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.closing { text-align: center; background: var(--bg-alt); }
.closing h2 { max-width: 22ch; margin: 0 auto 1.5rem; }
.page-title { font-size: clamp(1.5rem, 4vw, 2.4rem); }

.prose h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--accent); margin-top: 2.25rem; }
.prose p, .prose li { color: var(--muted); }
.list { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .5rem; }
.list li::marker { color: var(--accent); }
.article-cta { margin-top: 2.5rem; }
.cupo { color: var(--muted); font-size: .92rem; margin: 1rem 0 0; }
.article-cta .cupo { margin: 0 0 1rem; }
.eyebrow { color: var(--accent); font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .5rem; }
.form-note { color: var(--muted); font-size: .92rem; margin: .75rem 0 0; }
#google-btn:empty { display: none; }
[hidden] { display: none !important; }
.notice { background: var(--surface); border-left: 3px solid var(--accent); padding: .9rem 1rem; border-radius: 6px; color: var(--muted); }

.form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; }
input { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .65rem .75rem; min-height: 44px; }
input:focus-visible { border-color: var(--accent); }
input[aria-invalid="true"] { border-color: #ff8a8a; }
.form-status:empty { display: none; }
.form-status { border-radius: 8px; padding: 1rem; background: var(--bg); border: 1px solid var(--border); }
.form-status.is-error { border-color: #ff8a8a; }

.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; color: var(--muted); font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-inner { display: grid; gap: 1.25rem; }
.footer-articles ul { flex-direction: column; gap: .4rem; }
.footer-articles a { color: var(--muted); }

@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) {
  .steps, .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 6rem 0 6.5rem; }
  .section { padding: 5rem 0; }
}
@media (max-width: 420px) {
  .btn-sm { padding: .4rem .8rem; font-size: .82rem; }
  .brand img { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.testimonio { text-align: center; }
.testimonio figure { margin: 0; }
.testimonio blockquote { margin: 0 0 1.25rem; }
.testimonio blockquote p { font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 600; line-height: 1.2; color: var(--text); margin: 0; }
.testimonio figcaption { display: grid; gap: .2rem; color: var(--muted); }
.testimonio figcaption strong { color: var(--accent); font-weight: 600; font-size: 1.1rem; }

/* Home corta: título + panel de acceso visibles sin scrollear */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-text .h1-seo { margin-bottom: 0; }
@media (min-width: 960px) {
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 3.5rem; }
}

/* Panel de acceso (blanco) */
.panel {
  --p-text: #1d1f42; --p-muted: #555a78; --p-border: #d9dbe7;
  background: #fff; color: var(--p-text); border-radius: 16px; padding: 1.75rem 1.5rem 1.25rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); width: 100%; max-width: 420px;
}
.panel :focus-visible { outline-color: #1a00aa; }
.panel-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin: 0 0 1.25rem; }
.google-btn { display: flex; justify-content: center; min-height: 44px; }
.panel-note { font-size: .85rem; color: var(--p-muted); text-align: center; margin: .9rem 0 0; }
.panel a { color: #1a00aa; }
.panel-alt { border-top: 1px solid var(--p-border); margin: 1.25rem 0 0; padding-top: 1rem; text-align: center; font-weight: 600; }
.panel .form { margin-top: 0; }
.panel .field label { color: var(--p-text); }
.panel input { background: #fff; color: var(--p-text); border-color: var(--p-border); }
.panel input:focus-visible { border-color: #1a00aa; }
.panel .form-status { background: #f4f5fa; border-color: var(--p-border); color: var(--p-text); }
.panel .form-status.is-error { border-color: #c0392b; }
.btn-dark { background: var(--bg); color: #fff; }
.btn-dark:hover { background: #2a2d5c; }
.acceso-wrap { max-width: 520px; }
.acceso-wrap .panel { margin-top: 1.5rem; max-width: none; }

/* Frases clave en una línea */
.features-section { padding: 2.5rem 0 3rem; background: var(--bg-alt); }
.kw-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.kw-line h2 { font-size: 1rem; font-weight: 600; color: var(--accent); margin: 0; letter-spacing: .02em; }
.kw-line li + li::before { content: "·"; color: var(--muted); margin-right: 1.5rem; }
.features { margin-top: 1.25rem; }
.testimonio { padding: 3rem 0; }
.rubro { padding: 1.5rem 0; border-top: 1px solid var(--border); text-align: center; color: var(--muted); }
.rubro p { margin: 0; }
.kw-line li { display: flex; align-items: center; }
@media (max-width: 600px) { .kw-line { flex-direction: column; gap: .35rem; } .kw-line li + li::before { content: none; } }

/* Panel estilo "Bienvenido" */
.hero-side { display: grid; gap: 1.75rem; justify-items: center; }
.panel { max-width: 400px; padding: 2.25rem 1.75rem 1.5rem; text-align: center; border-radius: 20px; }
.panel-logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 1rem; }
.panel-title { font-size: 2rem; font-weight: 600; margin: 0 0 .35rem; }
.panel-sub { color: var(--p-muted); font-size: .98rem; margin: 0 0 1.5rem; }
.g-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 54px;
  background: #fff; color: #1f1f1f; border: 1px solid #d0d3df; border-radius: 999px; cursor: pointer;
  font: 500 1.05rem/1 "Roboto", system-ui, sans-serif; transition: background-color .15s;
}
.g-btn:hover { background: #f5f6fa; }
.g-btn:disabled { opacity: .55; cursor: not-allowed; }
.g-logo { width: 20px; height: 20px; }
.panel .form { text-align: left; }
/* Testimonio compacto debajo del panel */
.testimonio { margin: 0; padding: 0; text-align: center; max-width: 400px; }
.testimonio blockquote p { font-size: clamp(1.4rem, 3vw, 1.8rem); }
/* Pie: enlaces en fila, de punta a punta */
.footer-articles ul { flex-direction: row; flex-wrap: wrap; gap: .4rem 0; }
.footer-articles li + li::before { content: "·"; margin: 0 .7rem; color: var(--muted); }

/* Ajustes v3: texto arriba, panel más chico con "Welcome", testimonio a todo el ancho */
@media (min-width: 960px) {
  .hero-grid { align-items: start; grid-template-columns: minmax(0, 1fr) 340px; }
  .hero { padding-top: 2.5rem; }
}
.panel { max-width: 340px; padding: 1.75rem 1.5rem 1.25rem; }
.panel-title { font-size: 2.2rem; font-weight: 700; color: #1a00aa; margin: 0 0 1.25rem; }
.panel-sub { margin: -.75rem 0 1rem; font-weight: 600; }
.testimonio { max-width: none; margin: 3rem auto 0; text-align: center; }
.testimonio blockquote { margin: 0 0 .75rem; }
.testimonio blockquote p { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 500; }
.testimonio figcaption { display: block; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--text); max-width: 34ch; margin: 0 auto; line-height: 1.35; }

/* Ajustes v4: estilo de la referencia (botón rectangular gris, línea final tipo "Sign up") */
.panel { border: 1px solid #e3e5ec; border-radius: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.28); padding: 2rem 1.75rem 1.5rem; }
.g-btn { border-radius: 8px; min-height: 48px; background: #f1f2f4; border: 1px solid #e0e2e8; font-size: 1.02rem; }
.g-btn:hover { background: #e8eaee; }
.panel-note { font-size: .82rem; }
.panel-alt { border-top: 0; margin-top: 1.5rem; padding-top: 0; font-weight: 400; color: var(--p-muted); }
.panel-alt a { color: var(--p-text); font-weight: 600; text-decoration: none; }
.panel-alt a:hover { text-decoration: underline; }
.panel-title { color: var(--orange); }

/* Ajustes v5: igual a la referencia (Google, "O", email, Continuar) + demo fuera del recuadro */
.panel-title { color: #1a00aa; }
.panel-or { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--p-muted); font-size: .9rem; }
.panel-or::before, .panel-or::after { content: ""; flex: 1; height: 1px; background: #e3e5ec; }
.email-form { display: grid; gap: .5rem; text-align: left; }
.email-form label { font-weight: 500; color: var(--p-text); }
.email-form .req { color: #e5484d; }
.email-form input { background: #f1f2f4; border: 1px solid #e0e2e8; border-radius: 8px; min-height: 48px; color: var(--p-text); }
.email-form input::placeholder { color: #8a8ea3; }
.btn-continue { margin-top: .75rem; border-radius: 8px; min-height: 48px; background: var(--accent); color: var(--on-accent); }
.btn-continue:hover { background: var(--accent-hover); }
#email-error { color: #c0392b; text-align: left; margin-top: .25rem; }
.panel-legal { margin-top: 1.25rem; }
.demo-out { margin: 1.25rem 0 0; text-align: center; }
.demo-out a { color: var(--text); font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.demo-out a:hover { color: var(--accent); }
.hero-side { gap: 0; }

/* Ajustes v6: compacto para que el testimonio se vea sin scrollear */
@media (min-width: 960px) {
  .hero { padding: 1.75rem 0 1.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
  .display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: .75rem; }
  .tagline { margin-bottom: 1.25rem; font-size: 1.6rem; }
}
.panel { max-width: 320px; padding: 1.25rem 1.25rem 1rem; }
.panel-title { font-size: 1.7rem; margin: 0 0 .9rem; }
.g-btn { min-height: 42px; font-size: .95rem; }
.panel-or { margin: .8rem 0; font-size: .85rem; }
.email-form { gap: .35rem; }
.email-form label { font-size: .95rem; }
.email-form input { min-height: 42px; padding: .5rem .75rem; }
.btn-continue { min-height: 42px; margin-top: .5rem; }
.panel-legal { margin-top: .8rem; font-size: .78rem; }
.demo-out { margin-top: .75rem; }
.demo-out a { font-size: 1.3rem; }
.testimonio { margin-top: 1.5rem; }
.testimonio blockquote { margin-bottom: .4rem; }
.testimonio blockquote p { font-size: clamp(1.5rem, 3.2vw, 2.3rem); }
.testimonio figcaption { font-size: clamp(1rem, 1.8vw, 1.25rem); max-width: none; }

/* Ajustes v7: botones como la referencia (gris suave, letra no condensada), sin título */
.g-btn {
  min-height: 46px; border-radius: 6px; background: #f1f2f0; border: 1px solid #e3e5e0;
  color: #1f2328; font: 500 1.02rem/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
}
.g-btn:hover { background: #e9eae7; }
.demo-btn { margin-top: .75rem; }
.demo-btn.is-active { border-color: #1f2328; background: #e9eae7; }
.g-logo.cal { fill: none; stroke: #1f2328; stroke-width: 2; stroke-linecap: round; }
.panel { padding: 1.5rem 1.25rem 1rem; }
.panel-sub { margin: 0 0 .75rem; color: var(--p-text); }
.email-form input, .btn-continue { border-radius: 6px; }
.email-form label, .email-form input, .btn-continue, .panel-or, .panel-note {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Ajustes v8: recuadro más chico; "Solicitar una demo" con el mismo color que el botón de Google */
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; } }
.panel { max-width: 280px; padding: 1rem 1rem .8rem; border-radius: 14px; }
.panel a.demo-btn { color: #1f2328; }
.g-btn { min-height: 38px; font-size: .9rem; gap: .55rem; }
.g-logo { width: 17px; height: 17px; }
.demo-btn { margin-top: .5rem; }
.panel-or { margin: .6rem 0; font-size: .8rem; }
.email-form label { font-size: .85rem; }
.email-form input { min-height: 38px; font-size: .9rem; padding: .4rem .65rem; }
.btn-continue { min-height: 38px; font-size: .9rem; margin-top: .35rem; }
.panel-legal { margin-top: .6rem; font-size: .72rem; }

/* Testimonio: frase en cian, firma en naranja */
.testimonio blockquote p { color: var(--accent); }
.testimonio figcaption { color: var(--orange); }

/* Testimonio v2: frase en blanco, "gracias a la IA" en naranja, firma gris claro */
.testimonio blockquote p { color: var(--text); }
.cita-marca { color: var(--orange); }
.testimonio figcaption { color: var(--muted); }
.cita-marca { color: inherit; }

/* Recuadros desplegables */
.features { align-items: start; }
details.feature > summary { list-style: none; cursor: pointer; display: block; }
details.feature > summary::-webkit-details-marker { display: none; }
details.feature > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.feature-toggle { display: block; margin-top: .9rem; font-size: .85rem; font-weight: 600; color: var(--accent); }
.feature-toggle::before { content: "Ver más +"; }
details.feature[open] .feature-toggle::before { content: "Cerrar −"; }
.feature-more { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.feature-more p { color: var(--text); margin: 0 0 .75rem; }
.leer-mas { font-weight: 600; color: var(--accent); }

/* Recuadros como enlaces a su página */
a.feature { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
a.feature .leer-mas { display: block; margin-top: .9rem; font-size: .9rem; font-weight: 600; color: var(--accent); }
a.feature:hover .leer-mas { text-decoration: underline; }
.resumen { font-size: 1.1rem; color: var(--text) !important; border-left: 3px solid var(--accent); padding-left: 1rem; margin-bottom: 1.5rem; }

/* /zona: imágenes a ancho completo, una debajo de la otra */
.zona-imgs { display: grid; gap: 0; }
.zona-img { display: block; width: 70%; height: auto; margin: 0 auto; }
@media (max-width: 700px) { .zona-img { width: 100%; } }
.demo-form { max-width: 420px; margin: 0 auto; }

.agenda { margin-top: 1.5rem; text-align: center; }
.agenda .lead { margin-bottom: 1rem; }

.wa-row { display: flex; gap: .5rem; }
.wa-row select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .65rem .5rem; min-height: 44px; flex: 0 0 auto; }
.wa-row input { flex: 1 1 auto; min-width: 0; }

.demo-cta { text-align: center; }
#demo-ok .agenda { text-align: left; margin-top: 0; }

#demo-ok .agenda-nota { text-align: left; }

