/*
Theme Name: Speech Tracker
Theme URI: https://speechtracker.app/
Author: Speech Tracker
Description: Sitio informativo oficial de Speech Tracker para familias, terapeutas y educadores.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: speech-tracker
License: GNU General Public License v2 or later
*/

:root {
  --st-green: #168c4a;
  --st-green-dark: #126c3b;
  --st-green-soft: #eaf8ed;
  --st-purple: #6d3cc7;
  --st-purple-soft: #f3edff;
  --st-ink: #172033;
  --st-muted: #5e6878;
  --st-line: #e3e9e5;
  --st-cream: #fbfcf8;
  --st-white: #fff;
  --st-shadow: 0 22px 60px rgba(23, 32, 51, .10);
  --st-radius: 30px;
  --st-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--st-ink); background: var(--st-white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 40px), var(--st-container)); margin-inline: auto; }
.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; }
.screen-reader-text:focus { width: auto; height: auto; padding: 12px; margin: 8px; clip: auto; z-index: 9999; background: #fff; color: #111; }
.skip-link { position: fixed; left: 8px; top: 8px; }

.site-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(227,233,229,.85); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.03em; font-size: 1.08rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(145deg, var(--st-green), #54b967); color: #fff; box-shadow: 0 8px 18px rgba(22,140,74,.2); }
.brand-mark svg { width: 23px; height: 23px; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 25px; padding: 0; margin: 0; }
.site-nav a { font-size: .91rem; font-weight: 750; color: #3d4755; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--st-green-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switcher { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--st-line); border-radius: 12px; background: #f7faf7; }
.language-switcher button { min-width: 34px; min-height: 32px; padding: 4px 7px; border: 0; border-radius: 9px; background: transparent; color: var(--st-muted); font-size: .73rem; font-weight: 900; cursor: pointer; }
.language-switcher button[aria-pressed="true"] { background: #fff; color: var(--st-green-dark); box-shadow: 0 2px 8px rgba(23,32,51,.12); }
.menu-toggle { display: none; border: 1px solid var(--st-line); border-radius: 12px; background: #fff; padding: 9px 12px; font-weight: 800; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 15px; background: var(--st-green); color: #fff; font-weight: 850; line-height: 1.2; box-shadow: 0 12px 24px rgba(22,140,74,.18); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--st-green-dark); box-shadow: 0 16px 28px rgba(22,140,74,.24); }
.button-secondary { background: #fff; color: var(--st-ink); border-color: var(--st-line); box-shadow: 0 5px 15px rgba(23,32,51,.06); }
.button-secondary:hover { background: #f7faf7; color: var(--st-green-dark); }
.button-small { min-height: 42px; padding: 10px 15px; border-radius: 12px; font-size: .87rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 12% 8%, #e9fbe8 0, transparent 35%), radial-gradient(circle at 88% 15%, #f1eaff 0, transparent 34%), #fff; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: 145px; opacity: .38; background: url('assets/fondo-abajo.png') repeat-x bottom / auto 145px; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 65px; padding-block: 76px 100px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--st-green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #57b669; box-shadow: 0 0 0 6px #e6f6e7; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(2.75rem, 5.3vw, 4.7rem); line-height: 1.01; letter-spacing: -.055em; }
.hero .lead { max-width: 640px; margin: 25px 0 0; font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--st-muted); line-height: 1.65; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 31px; color: #495466; font-size: .86rem; font-weight: 750; }
.trust-item { display: flex; align-items: flex-start; gap: 7px; }
.check { flex: 0 0 auto; display: grid; place-items: center; width: 19px; height: 19px; margin-top: 2px; border-radius: 50%; color: #fff; background: var(--st-green); font-size: .72rem; }
.hero-visual { position: relative; min-height: 520px; }
.hero-plant { position: absolute; width: 180px; left: -35px; top: 22px; opacity: .9; }
.app-window { position: absolute; inset: 58px 0 auto 30px; overflow: hidden; border: 10px solid #182031; border-radius: 28px; background: #fff; box-shadow: 0 36px 80px rgba(15,23,42,.24); transform: rotate(1.3deg); }
.window-top { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #edf0ed; color: var(--st-green-dark); font-size: .72rem; font-weight: 900; }
.preview { display: grid; grid-template-columns: 1fr .86fr; gap: 17px; padding: 24px; background: linear-gradient(145deg,#fff,#f7faf7); }
.preview-copy h3 { margin: 0 0 6px; font-size: 1.46rem; line-height: 1.15; }
.preview-copy p { margin: 0; color: var(--st-muted); font-size: .85rem; }
.metric-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 18px; }
.metric { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--st-line); }
.metric strong { display: block; font-size: 1.55rem; line-height: 1; }
.metric span { color: var(--st-muted); font-size: .72rem; font-weight: 750; }
.preview-art { align-self: end; }
.progress-card { margin: 0 24px 24px; padding: 18px; border-radius: 19px; background: var(--st-purple-soft); }
.progress-head { display: flex; justify-content: space-between; font-weight: 800; font-size: .76rem; }
.bars { display: flex; align-items: end; gap: 7px; height: 83px; margin-top: 12px; }
.bars i { flex: 1; min-width: 8px; border-radius: 7px 7px 3px 3px; background: linear-gradient(#8c63d7,#6d3cc7); }

.section { padding-block: 94px; }
.section-soft { background: var(--st-cream); }
.section-purple { background: #faf7ff; }
.section-heading { max-width: 740px; margin: 0 auto 45px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.15rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p { max-width: 660px; margin: 18px auto 0; color: var(--st-muted); font-size: 1.06rem; }
.steps, .audience-grid, .feature-grid { display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(3,1fr); counter-reset: step; }
.step, .audience-card, .feature-card { position: relative; padding: 30px; border: 1px solid var(--st-line); border-radius: 25px; background: #fff; box-shadow: 0 10px 32px rgba(23,32,51,.045); }
.step { counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 23px; border-radius: 15px; color: #fff; background: var(--st-green); font-weight: 900; box-shadow: 0 9px 18px rgba(22,140,74,.2); }
.step h3, .audience-card h3, .feature-card h3 { margin: 0 0 9px; font-size: 1.25rem; }
.step p, .audience-card p, .feature-card p { margin: 0; color: var(--st-muted); }
.audience-grid { grid-template-columns: repeat(3,1fr); }
.audience-card { padding-top: 86px; }
.card-icon { position: absolute; top: 27px; left: 30px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--st-purple-soft); color: var(--st-purple); font-size: 1.3rem; }
.feature-grid { grid-template-columns: repeat(2,1fr); }
.feature-card { padding-left: 92px; }
.feature-card .card-icon { top: 30px; }

.showcase { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; }
.showcase h2 { margin: 0; font-size: clamp(2.2rem,4vw,3.4rem); line-height: 1.08; letter-spacing: -.045em; }
.showcase-copy > p { color: var(--st-muted); font-size: 1.05rem; }
.bullet-list { list-style: none; padding: 0; margin: 26px 0 0; }
.bullet-list li { display: flex; gap: 11px; margin: 12px 0; font-weight: 750; }
.showcase-image { position: relative; padding: 30px; border-radius: 35px; background: linear-gradient(145deg,#eaf8ed,#f1eaff); }
.showcase-image img { display: block; width: 100%; border-radius: 21px; box-shadow: var(--st-shadow); }
.privacy-panel { display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border-radius: 34px; background: var(--st-ink); color: #fff; }
.privacy-copy { padding: 55px; }
.privacy-copy h2 { margin: 0; font-size: clamp(2rem,3.5vw,3rem); line-height: 1.08; letter-spacing: -.04em; }
.privacy-copy p { color: #cbd4df; }
.privacy-side { display: grid; align-content: center; gap: 15px; padding: 45px; background: linear-gradient(145deg,#1f3032,#173e2b); }
.privacy-point { padding: 18px 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.06); font-weight: 800; }

.faq-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--st-line); }
.faq { border-bottom: 1px solid var(--st-line); }
.faq button { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 23px 2px; border: 0; background: transparent; color: var(--st-ink); text-align: left; font-weight: 850; cursor: pointer; }
.faq button::after { content: "+"; color: var(--st-purple); font-size: 1.3rem; }
.faq button[aria-expanded="true"]::after { content: "−"; }
.faq-answer { display: none; max-width: 760px; padding: 0 0 24px; color: var(--st-muted); }
.faq-answer.is-open { display: block; }
.cta { padding-block: 30px 90px; }
.cta-box { position: relative; overflow: hidden; padding: 60px; border-radius: 36px; background: linear-gradient(135deg,#e8f8e8,#f1eaff); text-align: center; }
.cta-box h2 { max-width: 700px; margin: 0 auto; font-size: clamp(2.1rem,4vw,3.4rem); line-height: 1.06; letter-spacing: -.045em; }
.cta-box p { max-width: 650px; margin: 18px auto 28px; color: var(--st-muted); }

.site-footer { padding: 60px 0 25px; color: #d3dae4; background: #151d2a; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 60px; }
.footer-brand { max-width: 430px; }
.footer-brand p { color: #9da8b8; }
.footer-title { margin: 0 0 12px; color: #fff; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { color: #aeb8c5; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); color: #8793a3; font-size: .82rem; }
.content-wrap { width: min(calc(100% - 40px), 820px); margin: 70px auto; }
.page-title { font-size: clamp(2.3rem,5vw,4rem); letter-spacing: -.05em; line-height: 1.05; }
.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin-top: 2em; line-height: 1.2; }
.entry-content a { color: var(--st-purple); text-decoration: underline; }
.post-list article { padding: 25px 0; border-bottom: 1px solid var(--st-line); }
.not-found { min-height: 55vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; inset: 78px 20px auto; padding: 18px; border: 1px solid var(--st-line); border-radius: 20px; background: #fff; box-shadow: var(--st-shadow); }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; gap: 5px; }
  .site-nav a { display: block; padding: 11px; }
  .menu-toggle { display: block; margin-left: auto; }
  .language-switcher { order: 3; }
  .header-actions .button-secondary { display: none; }
  .hero-grid, .showcase, .privacy-panel { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 60px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .trust-list { text-align: left; }
  .hero-visual { max-width: 650px; width: 100%; margin-inline: auto; }
  .showcase { gap: 42px; }
}

@media (max-width: 700px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 30px), var(--st-container)); }
  .header-inner { min-height: 70px; }
  .header-actions { display: none; }
  .language-switcher button { min-width: 31px; padding-inline: 5px; }
  .site-nav { top: 70px; }
  .hero-grid { min-height: auto; gap: 22px; padding-block: 48px 70px; }
  .hero h1 { font-size: clamp(2.55rem,12vw,3.7rem); }
  .trust-list, .steps, .audience-grid, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-list { max-width: 380px; margin-inline: auto; }
  .hero-visual { min-height: 390px; }
  .app-window { inset: 45px 0 auto; border-width: 7px; }
  .hero-plant { width: 120px; left: -15px; top: 4px; }
  .preview { grid-template-columns: 1fr; padding: 18px; }
  .preview-art { display: none; }
  .progress-card { margin: 0 18px 18px; }
  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 32px; }
  .step, .audience-card, .feature-card { padding: 25px; }
  .audience-card { padding-top: 78px; }
  .feature-card { padding-left: 82px; }
  .privacy-copy, .privacy-side { padding: 32px 25px; }
  .cta-box { padding: 42px 22px; }
  .footer-grid { gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
