/* ============================================================
   INSPIRO — Sistema de diseño
   Un solo archivo CSS. Sin frameworks, sin imports externos.
   ============================================================ */

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('fonts/mulish-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('fonts/spacegrotesk-variable.woff2') format('woff2');
}

:root {
  /* Paleta real de Inspiro */
  --teal:        #299DA0;
  --teal-dk:     #1F7577;
  --teal-light:  #E3F3F3;
  --green:       #89C54B;
  --green-dk:    #6EA53A;
  --navy:        #1F2A33;
  --bg:          #FEFAF6;
  --surface:     #FFFFFF;
  --text:        #1F1F1F;
  --text-2:      #4A5560;
  --text-3:      #8A9499;
  --border:      #E7E2D9;

  --font-body:  'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-head:  'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --max:      1240px;
  --radius:   12px;
  --radius-sm: 8px;
  --shadow:   0 4px 24px rgba(31,42,51,.08);
  --shadow-lg: 0 12px 40px rgba(31,42,51,.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-2); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { transition: opacity .5s ease, transform .5s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section--teal { background: var(--teal); color: #fff; }
.section--teal h2, .section--teal p { color: #fff; }
.section--surface { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-dk);
  margin-bottom: 10px;
}
.section--teal .eyebrow { color: #C8F0C0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  background: var(--green);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-dk); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--teal { background: var(--teal); }
.btn--teal:hover { background: var(--teal-dk); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(254,250,246,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header .logo img { height: 40px; width: auto; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--text); transition: color .15s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--teal); }
.main-nav .btn { padding: 10px 22px; font-size: .9rem; }

.nav-toggle {
  display: flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--navy);
  transition: transform .2s ease, opacity .2s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

.mobile-nav {
  position: fixed; inset: 76px 0 0 0;
  background: var(--bg);
  padding: 24px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 190;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--border); }
.mobile-nav .btn { margin-top: 20px; width: 100%; }

@media (min-width: 900px) {
  .main-nav { display: flex; align-items: center; gap: 32px; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dk) 100%);
  color: #fff;
  padding: 56px 0 72px;
}
.hero .container { display: grid; gap: 40px; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 46ch; margin-top: 16px; }
.hero-badges { display: flex; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.9); }
.stars { color: #FFD166; letter-spacing: 2px; }

@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; }
}

/* ── FORM MULTI-STEP ── */
.lead-form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  color: var(--text);
}
.lead-form h2 { font-size: 1.3rem; margin-bottom: 4px; }
.lead-form .lead-form-sub { font-size: .9rem; color: var(--text-2); margin-bottom: 18px; }
.lead-form-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.lead-form-steps span {
  flex: 1; height: 4px; border-radius: 2px; background: var(--border);
  transition: background .2s;
}
.lead-form-steps span.is-active, .lead-form-steps span.is-done { background: var(--green); }
.lead-form fieldset { border: none; display: none; }
.lead-form fieldset.is-active { display: block; }
.lead-form label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  margin-bottom: 16px;
  background: var(--bg);
  color: var(--text);
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--teal);
}
.lead-form-nav { display: flex; gap: 10px; }
.lead-form-nav .btn { flex: 1; }
.lead-form-nav .btn-back {
  background: var(--bg); color: var(--text); border: 1.5px solid var(--border); flex: 0 0 auto; padding: 14px 20px;
}
.lead-form-nav .btn-back:hover { background: var(--border); transform: none; }
.form-msg { font-size: .85rem; margin-top: 12px; display: none; }
.form-msg.is-visible { display: block; }
.form-msg.is-error { color: #C0392B; }
.form-msg.is-success { color: var(--teal-dk); }
.field-error { font-size: .78rem; color: #C0392B; margin: -12px 0 12px; display: none; }
.field-error.is-visible { display: block; }

/* ── SOLUTIONS / SERVICE CARDS ── */
.grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 719px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 14px; }
.card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.card li { font-size: .92rem; color: var(--text-2); padding-left: 22px; position: relative; }
.card li::before { content: '✓'; position: absolute; left: 0; color: var(--green-dk); font-weight: 700; }
.card a.card-link { font-weight: 700; color: var(--teal-dk); }

/* ── TESTIMONIALS ── */
.testimonials-track {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .testimonials-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .testimonials-track { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.testimonial .stars { color: #F5A623; font-size: .95rem; margin-bottom: 10px; }
.testimonial blockquote { font-size: .95rem; color: var(--text-2); flex: 1; margin-bottom: 16px; }
.testimonial cite { font-style: normal; display: block; font-weight: 700; color: var(--text); }
.testimonial .role { font-size: .85rem; color: var(--text-3); margin-bottom: 10px; }
.testimonial a.site-link { font-size: .85rem; font-weight: 700; color: var(--teal-dk); }

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; font-weight: 700; text-align: left; font-size: 1rem;
}
.faq-q .plus { flex-shrink: 0; margin-left: 16px; font-size: 1.3rem; color: var(--teal); transition: transform .2s; }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-2); }

/* ── PORTFOLIO / PORTAFOLIO ── */
.portfolio-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.portfolio-filters button {
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-2);
}
.portfolio-filters button.is-active { background: var(--teal); color: #fff; border-color: var(--teal); }
.portfolio-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }
.portfolio-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--surface); position: relative; }
.portfolio-item[hidden] { display: none; }
.portfolio-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.portfolio-item .overlay {
  position: absolute; inset: 0; background: rgba(31,42,51,.72);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s;
}
.portfolio-item:hover .overlay, .portfolio-item:focus-within .overlay { opacity: 1; }
.portfolio-item .overlay span { color: #fff; font-weight: 700; font-size: .85rem; border: 1.5px solid #fff; padding: 8px 16px; border-radius: 999px; }

/* ── BLOG / RECURSOS ── */
.blog-filters { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.blog-filters a {
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text-2);
}
.blog-filters a[aria-current="page"] { background: var(--teal); color: #fff; border-color: var(--teal); }
.blog-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dk); margin-bottom: 8px; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card time { font-size: .82rem; color: var(--text-3); margin-top: auto; padding-top: 12px; }
.blog-card a.stretched { position: absolute; inset: 0; }
.blog-card { position: relative; }

article.post-body { max-width: 760px; margin: 0 auto; }
article.post-body h2 { margin-top: 40px; margin-bottom: 14px; }
article.post-body h3 { margin-top: 28px; margin-bottom: 10px; }
article.post-body p { margin-bottom: 16px; }
article.post-body ul { margin: 0 0 16px 0; display: flex; flex-direction: column; gap: 8px; }
article.post-body li { padding-left: 20px; position: relative; color: var(--text-2); }
article.post-body li::before { content: '—'; position: absolute; left: 0; color: var(--teal); }
article.post-body ol { margin: 0 0 16px 20px; list-style: decimal; display: flex; flex-direction: column; gap: 8px; }
article.post-body ol li { padding-left: 4px; color: var(--text-2); }
article.post-body ol li::before { content: none; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px; text-align: center; }
.newsletter h2, .newsletter p { color: #fff; }
.newsletter form { display: flex; gap: 10px; max-width: 460px; margin: 20px auto 0; flex-wrap: wrap; }
.newsletter input[type="email"] {
  flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 999px; border: none; font-size: .95rem;
}
.newsletter .btn { border-radius: 999px; }

/* ── FOOTER ── */
.site-footer { background: var(--teal); color: #fff; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; }
.footer-brand img { height: 34px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,.75); font-size: .9rem; max-width: 32ch; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.7);
}
.footer-bottom ul { display: flex; gap: 18px; }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ── UTILIDADES ── */
.text-center { text-align: center; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.max-prose { max-width: 700px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 28px; }
.stat { min-width: 120px; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--teal-dk); }
.stat span { font-size: .85rem; color: var(--text-2); }

.breadcrumbs { font-size: .82rem; color: var(--text-3); margin-bottom: 18px; }
.breadcrumbs a { color: var(--text-2); font-weight: 600; }
.breadcrumbs a:hover { color: var(--teal); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

@media (min-width: 720px) {
  .section { padding: 88px 0; }
}
