/*
Theme Name: Gutivel
Theme URI: https://gutivel.com/
Author: Gutivel
Description: Tema de Gutivel: diseño de páginas web, tiendas y plataformas de cursos en WordPress. Página de inicio con servicios, portafolio, preguntas frecuentes y contacto por WhatsApp, con animaciones e ilustraciones (se respetan las preferencias de movimiento reducido).
Version: 2.1.0
Requires at least: 6.6
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: gutivel
*/
/* Layout: hero con revisión gratis y panel de métricas; bandas claras y una banda oscura de compromisos; rejillas que se apilan en celular.
   Paleta: verde "aprobado" de las métricas de Google como color de marca, ámbar para el "antes", tinta verde muy oscura. */
:root {
  --bg: #F3F6F4;
  --surface: #FFFFFF;
  --ink: #0B1F1C;
  --muted: #4E625D;
  --line: #D6E0DC;
  --field: #788C86;
  --brand: #0A7D62;
  --brand-strong: #06644E;
  --brand-ink: #FFFFFF;
  --brand-soft: #DDF1EA;
  --amber: #C9790A;
  --amber-text: #A35A00;
  --amber-soft: #FBEBD3;
  --poor-soft: #F8DCD8;
  --danger: #B42318;
  --deep: #0B2A25;
  --deep-ink: #E8F2EE;
  --deep-muted: #9DBAB2;
  --deep-accent: #2FC598; /* verde de marca legible sobre la banda oscura, en ambos modos */
  --band: #E7EEEA;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09130F; --surface: #102019; --ink: #E6F0EC; --muted: #93ABA4; --line: #20362F; --field: #5B776E;
    --brand: #2FC598; --brand-strong: #5ED8B2; --brand-ink: #062019; --brand-soft: #123A2F;
    --amber: #F2A947; --amber-text: #F2A947; --amber-soft: #3A2A12; --poor-soft: #3D1A17; --danger: #FF8A80;
    --deep: #0E2A23; --deep-ink: #E6F0EC; --deep-muted: #93ABA4; --band: #0D1B16;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09130F; --surface: #102019; --ink: #E6F0EC; --muted: #93ABA4; --line: #20362F; --field: #5B776E;
  --brand: #2FC598; --brand-strong: #5ED8B2; --brand-ink: #062019; --brand-soft: #123A2F;
  --amber: #F2A947; --amber-text: #F2A947; --amber-soft: #3A2A12; --poor-soft: #3D1A17; --danger: #FF8A80;
  --deep: #0E2A23; --deep-ink: #E6F0EC; --deep-muted: #93ABA4; --band: #0D1B16;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; } /* WCAG 2.4.11: el foco nunca queda bajo la cabecera fija */
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--brand-strong); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* Texto solo para lectores de pantalla. WordPress añade por su cuenta el enlace «Saltar al contenido» hacia <main>. */
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
section { padding-block: clamp(56px, 8vw, 96px); }
section[id] { scroll-margin-top: 72px; }
.band { background: var(--band); }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 600 1rem var(--body); padding: 10px 20px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn.ghost:hover { border-color: var(--ink); }
.btn svg { flex: none; }
.wa-ico { width: 20px; height: 20px; }

/* Header */
.wp-site-blocks > header.site-header { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px)); z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1; }
.logo .vcheck { display: inline-block; width: 0.56em; height: 0.62em; margin: 0 0.01em 0 0.02em; vertical-align: -0.02em; color: var(--brand); overflow: visible; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.nav ul a { color: var(--ink); text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav ul a:hover { color: var(--brand-strong); }
.nav ul a[aria-current] { color: var(--brand-strong); text-decoration-line: underline; }
.nav .btn { padding: 8px 16px; font-size: 0.92rem; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 8px; background: transparent; color: var(--ink); font: 600 0.92rem var(--body); cursor: pointer; }
.menu-btn i { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }
/* Celular: sin JS, los enlaces pasan a una segunda fila; con JS, se pliegan tras el botón «Menú».
   Una cabecera editada antes de la 2.1.0 (sin .menu) conserva el comportamiento anterior: enlaces ocultos. */
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav > ul { display: none; }
  .menu { order: 3; flex-basis: 100%; }
  .nav ul { flex-wrap: wrap; gap: 4px 18px; }
  .js .menu-btn { display: inline-flex; }
  .js .menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(11, 31, 28, 0.5); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; }
  .js .menu:not(.is-open) { display: none; }
  .js .nav ul { flex-direction: column; gap: 0; font-size: 1.05rem; }
  .js .nav ul a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
  .js .nav ul li:last-child a { border-bottom: 0; }
}
@media (max-width: 380px) { .nav .btn { padding-inline: 12px; } .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
/* El menú abre desde su botón (movimiento funcional). Cerrar es instantáneo: salir siempre más rápido que entrar */
@media (prefers-reduced-motion: no-preference) { .js .menu.is-open { animation: menu-in .3s cubic-bezier(.32, .72, 0, 1) both; } }
@media (prefers-reduced-motion: reduce) { .js .menu.is-open { animation: menu-fade .15s linear both; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes menu-fade { from { opacity: 0; } }

/* Hero */
.hero { padding-block: clamp(44px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--brand); }
.quick { display: grid; gap: 8px; max-width: 560px; }
.quick label { font-size: 0.9rem; font-weight: 600; }
.quick-row { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-row input { flex: 1 1 240px; min-width: 0; }
.quick small { color: var(--muted); font-size: 0.88rem; }
.quick small a { font-weight: 600; }
.micro { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.micro li { display: inline-flex; align-items: center; gap: 6px; }
.micro li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 18px; min-width: 0; box-shadow: 0 18px 40px -30px rgba(11, 31, 28, 0.5); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head b { font-family: var(--display); font-size: 1.05rem; }
.tag { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); border: 1px solid var(--field); border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.score { display: flex; align-items: center; gap: 16px; }
.ring { --p: 94; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--band) 0); }
.ring span { width: 60px; height: 60px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 600 1.3rem var(--mono); font-variant-numeric: tabular-nums; color: var(--brand-strong); }
.score p { font-size: 0.92rem; color: var(--muted); }
.score p s { color: var(--amber-text); }
.metric { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.metric .name { font-size: 0.93rem; }
.metric .name small { display: block; color: var(--muted); font-size: 0.76rem; }
.metric .vals { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 0.9rem; white-space: nowrap; text-align: right; }
.metric .vals s { color: var(--amber-text); text-decoration-thickness: 1px; margin-right: 4px; }
.metric .vals strong { color: var(--brand-strong); font-weight: 600; }
.metric .vals em { display: block; font-style: normal; font-size: 0.75rem; color: var(--brand-strong); }
.scale { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 6px; display: flex; overflow: visible; }
.scale span { height: 100%; }
.scale .g { background: var(--brand-soft); border-radius: 6px 0 0 6px; }
.scale .n { background: var(--amber-soft); }
.scale .p { background: var(--poor-soft); border-radius: 0 6px 6px 0; }
.dot { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); }
.dot.before { left: var(--b); border: 2px solid var(--amber-text); background: var(--surface); }
.dot.after { left: var(--a); background: var(--brand); border: 2px solid var(--surface); animation: slide 1.2s ease-out both; }
@keyframes slide { from { left: var(--b); } to { left: var(--a); } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend .lb { border: 2px solid var(--amber-text); }
.legend .la { background: var(--brand); }
.legend .lz { width: 18px; border-radius: 3px; background: var(--brand-soft); }
.panel-foot { font-size: 0.78rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }

/* Tools strip */
.strip { border-block: 1px solid var(--line); padding-block: 18px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.strip p { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.strip ul { list-style: none; margin: 0; padding: 0; } .strip ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; color: var(--muted); }

/* Pains */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.who article { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.who p { color: var(--muted); font-size: 0.97rem; }
.who .pain { font-family: var(--display); font-weight: 700; font-size: 1.2rem; quotes: "“" "”"; }
@media (max-width: 720px) { .who { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: grid; grid-template-rows: auto auto auto 1fr auto auto auto; gap: 12px; }
.service .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.service .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; }
.service .for { font-size: 0.9rem; color: var(--muted); }
.service ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; display: grid; gap: 4px; align-content: start; }
.includes { font-family: var(--mono); font-size: 0.78rem; color: var(--ink); background: var(--band); border-radius: 8px; padding: 8px 10px; }
.price { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.9rem; color: var(--muted); }
.price strong { font-family: var(--mono); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.price s { font-family: var(--mono); font-size: 0.82rem; }
.service .wp-block-buttons, .service .wp-block-button, .service .wp-block-button__link { width: 100%; }
.service.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pill { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; background: var(--brand-soft); color: var(--brand-strong); border-radius: 99px; padding: 3px 10px; white-space: nowrap; font-weight: 600; }
.terms { margin-top: 20px; font-size: 0.92rem; color: var(--muted); max-width: 80ch; }
.care { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--amber-soft); border-radius: 12px; padding: 20px 24px; }
.care div { display: grid; gap: 4px; min-width: 0; max-width: 62ch; }
.care b { font-family: var(--display); font-size: 1.1rem; }
.care p { color: var(--muted); font-size: 0.95rem; }
.care .price { border: 0; padding: 0; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Case */
.case { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.browser { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.browser .chrome { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--band); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser .chrome span { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock { padding: 22px; display: grid; gap: 14px; }
.mock .mh { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.mock .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock .c { border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 0.78rem; display: grid; gap: 4px; align-content: start; }
.mock .c b { font-size: 0.8rem; line-height: 1.25; }
.mock .c span { font-family: var(--mono); color: var(--muted); font-size: 0.72rem; }
.case-copy { display: grid; gap: 18px; min-width: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: 0.95rem; }
.facts dt { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mock .cards { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; gap: 2px 0; } .facts dd { margin-bottom: 10px; } }

.cta-band { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 22px 24px; }
.cta-band > p { font-family: var(--display); font-weight: 700; font-size: 1.25rem; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Founder */
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 40px); align-items: start; max-width: 860px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font: 700 2.4rem var(--display); }
.founder-copy { display: grid; gap: 14px; min-width: 0; }
.founder-copy .role { color: var(--muted); font-size: 0.95rem; }
.founder-quote { margin: 0; font-size: 1.1rem; max-width: 60ch; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } .avatar { width: 96px; height: 96px; font-size: 2rem; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.steps > .step { padding: 20px 20px 0 0; display: grid; gap: 8px; align-content: start; }
.steps .n { font-family: var(--mono); font-size: 0.78rem; color: var(--brand-strong); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.steps .n span { color: var(--muted); }
.steps p { color: var(--muted); font-size: 0.95rem; }
.steps .out { font-size: 0.88rem; color: var(--ink); }
.steps .out::before { content: "Recibes: "; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Promises (dark band) */
.deep { background: var(--deep); color: var(--deep-ink); }
.deep .eyebrow { color: var(--deep-muted); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.promises article { display: grid; gap: 8px; align-content: start; }
.promises svg { color: var(--deep-accent); }
.promises p { color: var(--deep-muted); font-size: 0.95rem; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* Comparison */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-family: var(--display); font-size: 1rem; }
thead th.us { color: var(--brand-strong); }
td.us { background: var(--brand-soft); font-weight: 600; }
td:first-child { color: var(--muted); }
@media (max-width: 600px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  tbody { display: grid; gap: 12px; }
  tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding-bottom: 6px; }
  td { border: 0; padding: 8px 16px; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; }
  td:first-child { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); padding-top: 14px; font-size: 1.05rem; }
  td[data-label]::before { content: attr(data-label); font-size: 0.82rem; color: var(--muted); font-weight: 400; }
}

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
summary { cursor: pointer; font-weight: 600; padding-block: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--brand-strong); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; max-width: 68ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.contact-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.phone { color: var(--muted); font-size: 0.95rem; }
.phone b { color: var(--ink); font-variant-numeric: tabular-nums; }
form.main { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 16px; min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > span { font-size: 0.9rem; font-weight: 600; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
input, textarea, select { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--field); border-radius: 8px; padding: 10px 12px; width: 100%; min-height: 44px; }
textarea { min-height: 110px; resize: vertical; }
[aria-invalid="true"] { border-color: var(--danger); }
.err { font-size: 0.85rem; color: var(--danger); }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 0.88rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--brand); }
.done { display: grid; gap: 10px; background: var(--brand-soft); border-radius: 10px; padding: 16px; }
.done p { font-size: 0.95rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* Privacy */
.privacy { padding-block: 0 48px; }
.privacy details p, .privacy details li { color: var(--muted); font-size: 0.92rem; }
.privacy details ul { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 4px; }

.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); text-decoration: none; transition: opacity 0.2s, transform 0.2s; }
.wa-float.off { opacity: 0; transform: translateY(12px); pointer-events: none; }
.wa-float svg { width: 30px; height: 30px; }

footer.site-footer { border-top: 1px solid var(--line); padding-block: 36px; font-size: 0.92rem; color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.foot b { color: var(--ink); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--brand-strong); }
.copy { margin-top: 28px; font-size: 0.85rem; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr; } }
@media (max-width: 900px) { body { padding-bottom: 84px; } }
@media (prefers-reduced-motion: reduce) { .dot.after { animation: none; } html { scroll-behavior: auto; } .wa-float { transition: none; } }

/* ---------- Ajustes para WordPress ---------- */
body { margin: 0; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.wp-site-blocks { padding: 0; }
.wp-block-group.wrap { box-sizing: border-box; }
.wp-block-list { margin: 0; }
.service .wp-block-list, .who .wp-block-list { padding-left: 18px; }
.micro, .strip ul { list-style: none; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font: 600 1rem var(--body); padding: 10px 20px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer; box-sizing: border-box; }
.wp-block-button__link:hover { filter: brightness(1.07); color: var(--brand-ink); }
.is-style-ghost .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--field); }
.is-style-ghost .wp-block-button__link:hover { border-color: var(--ink); color: var(--ink); }
.wa-link .wp-block-button__link::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--wa-mask) center / contain no-repeat; mask: var(--wa-mask) center / contain no-repeat; }
:root { --wa-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2.05 22l5.25-1.38a9.9 9.9 0 0 0 4.74 1.21h.01c5.46 0 9.91-4.45 9.91-9.91A9.85 9.85 0 0 0 12.04 2zm0 18.15h-.01a8.23 8.23 0 0 1-4.2-1.15l-.3-.18-3.12.82.83-3.04-.2-.31a8.2 8.2 0 0 1-1.26-4.38c0-4.54 3.7-8.230 8.25-8.23a8.2 8.2 0 0 1 8.23 8.24c0 4.54-3.7 8.23-8.22 8.23zm4.52-6.16c-.25-.12-1.47-.72-1.690-.81-.23-.08-.39-.12-.56.13-.16.25-.64.81-.79.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-1.99-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.38.11-.51.11-.11.25-.29.37-.43.13-.15.17-.25.25-.42.08-.16.04-.31-.02-.43-.06-.12-.56-1.34-.76-1.84-.2-.48-.41-.42-.56-.43h-.48a.92.92 0 0 0-.66.31c-.23.25-.87.85-.87 2.07 0 1.22.89 2.4 1.01 2.56.12.17 1.75 2.67 4.24 3.74.59.26 1.05.41 1.41.52.59.19 1.13.16 1.56.1.48-.07 1.470-.6 1.67-1.18.21-.58.21-1.07.14-1.18-.06-.1-.22-.16-.47-.28z'/%3E%3C/svg%3E"); }
.who .pain { margin: 0; color: var(--ink); font-size: 1.2rem; }
.care .care-title { color: var(--ink); font-size: 1rem; }
.care-title strong { font-family: var(--display); font-size: 1.1rem; }
.care > .wp-block-group { display: grid; gap: 4px; min-width: 0; max-width: 62ch; }
.care > .wp-block-group p:not(.care-title) { color: var(--muted); font-size: 0.95rem; }
.steps .n { margin: 0; }
.wp-block-details summary { cursor: pointer; }
.founder-copy .role { margin: 0; }
.page-body { padding-block: clamp(48px, 7vw, 80px); }
.narrow { max-width: 760px; }
.entry > * + * { margin-top: 1em; }
.wp-block-post-title { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 24px; }
.privacy details p { color: var(--muted); font-size: 0.92rem; padding-bottom: 10px; }
.privacy details p:last-child { padding-bottom: 16px; }

/* ---------- Ilustraciones y chat de ejemplo (2.0.0). El movimiento está en assets/css/animaciones.css ---------- */
.f-surface { fill: var(--surface); } .f-band { fill: var(--band); } .f-soft { fill: var(--brand-soft); }
.f-brand { fill: var(--brand); } .f-amber { fill: var(--amber); } .f-amber-soft { fill: var(--amber-soft); } .f-line { fill: var(--line); }
.s-ink { stroke: var(--brand-ink); }
.spot { width: 100%; max-width: 168px; height: auto; display: block; margin-bottom: 6px; color: var(--brand-strong); overflow: visible; }
.spot *, .case-art * { transform-box: fill-box; }
.case-art { width: 100%; height: auto; display: block; border-radius: 10px; color: var(--brand-strong); }
.chat { max-width: 380px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--band); font-size: 0.9rem; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--deep); color: var(--deep-ink); }
.chat-head small { display: block; color: var(--deep-muted); font-size: 0.75rem; }
.chat-av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font: 700 1rem var(--display); }
.chat-body { display: grid; gap: 8px; padding: 14px; }
/* El indicador «escribiendo» comparte fila con la respuesta: ocupa su hueco y el chat nunca cambia de alto.
   Columna fija para todos: sin ella, la rejilla crea una segunda columna para no superponerlos y estrecha los mensajes. */
.chat-body > * { grid-column: 1; }
.chat-body > .msg.out { grid-row: 1; } .chat-body > .typing, .chat-body > .msg.in:not(.file) { grid-row: 2; } .chat-body > .msg.file { grid-row: 3; }
.msg { max-width: 85%; margin: 0; padding: 8px 12px; border-radius: 12px; line-height: 1.4; box-shadow: 0 1px 0 rgba(11, 31, 28, 0.08); }
.msg.out { justify-self: end; background: var(--brand-soft); border-bottom-right-radius: 4px; }
.msg.in { justify-self: start; background: var(--surface); border-bottom-left-radius: 4px; }
.msg.file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.8rem; }
.msg.file svg { flex: none; color: var(--danger); }
.typing { display: none; }
.hero h1 em { background: linear-gradient(var(--brand-soft), var(--brand-soft)) no-repeat 0 92% / 100% .3em; }
