/* =============================================================
   WebMédica — styles.css
   Stack: Archetype 04 (Glassmorphism Modern) adaptado para salud.
   Paleta azul #1A56DB + verde #0E9F6E + blanco + grises neutros.
   Mobile-first. Breakpoints: 540 / 720 / 960 / 1280px.
   v=20260516
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand */
  --primary:       #1A56DB;
  --primary-dark:  #1741B0;
  --primary-light: #EBF5FF;
  --accent:        #0E9F6E;
  --accent-dark:   #057A55;
  --accent-light:  #ECFDF5;

  /* Neutrals */
  --bg:            #FFFFFF;
  --bg-soft:       #F9FAFB;
  --bg-card:       #FFFFFF;
  --text:          #374151;
  --text-dark:     #111827;
  --text-muted:    #6B7280;
  --border:        #E5E7EB;
  --border-light:  #F3F4F6;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-xl:  0 32px 64px rgba(26,86,219,0.15), 0 8px 24px rgba(0,0,0,0.08);

  /* Radii */
  --r:    12px;
  --r-lg: 20px;
  --r-xl: 32px;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Nav */
  --nav-h: 68px;

  /* Typography */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.025em; color: var(--text-dark); }
ul { list-style: none; padding: 0; }
em { font-style: italic; }

::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -120px; left: 1rem;
  padding: .6rem 1.2rem;
  background: var(--text-dark); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
}

.section-soft        { background: var(--bg-soft); }
.section-primary-soft { background: var(--primary-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-top: .5rem;
}

.section-header h2 em {
  color: var(--primary);
  font-style: normal;
}

/* =============================================================
   4. Typography components
   ============================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  color: var(--accent);
  flex-shrink: 0;
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 10px;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s, border-color .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-lg {
  padding: .85rem 1.8rem;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-full { width: 100%; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,86,219,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(26,86,219,0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14,159,110,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(14,159,110,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s var(--ease-soft), box-shadow .3s var(--ease-soft), border-color .3s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-h);
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  margin-right: auto;
  transition: opacity .2s;
}
.nav-logo:hover { opacity: .8; }
.nav-logo span { color: var(--accent); }
.nav-logo-icon { color: var(--primary); flex-shrink: 0; }

.nav-links {
  display: none;
  gap: .25rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  padding: .4rem .7rem;
  border-radius: 8px;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }

.nav-cta { flex-shrink: 0; font-size: .875rem; padding: .55rem 1.2rem; }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  transform: translateY(-110%);
  transition: transform .35s var(--ease-out);
  box-shadow: var(--shadow-md);
  z-index: 99;
}

.nav-mobile.is-open {
  transform: translateY(0);
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav-mobile nav a {
  padding: .75rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  transition: background .15s, color .15s;
}
.nav-mobile nav a:hover { background: var(--bg-soft); }
.nav-mobile nav .btn {
  margin-top: .75rem;
  width: 100%;
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 30%, rgba(26,86,219,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 90% 70%, rgba(14,159,110,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 100%, rgba(26,86,219,0.06) 0%, transparent 60%);
  animation: meshDrift 22s ease-in-out infinite;
  pointer-events: none;
}

@keyframes meshDrift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.04) translate(-1%, -2%); }
  66%       { transform: scale(0.97) translate(1%, 2%); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-block: 4rem 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-title em {
  color: var(--primary);
  font-style: normal;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text);
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: .25rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat span {
  font-size: .775rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stat-sep {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
  flex-shrink: 0;
}

/* Browser mockup */
.hero-visual {
  position: relative;
}

.mockup-browser {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28CA41; }

.mockup-url {
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--border-light);
  border-radius: 6px;
  padding: .2rem .6rem;
  margin-left: .25rem;
  font-family: monospace;
}

.mockup-screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 6s ease;
}

.mockup-browser:hover .mockup-screen img { transform: translateY(-8%); }

/* Floating badges */
.badge-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: .6rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  pointer-events: none;
  animation: floatBadge 3s ease-in-out infinite;
}

.badge-f1 { bottom: 18%; right: -5%; animation-delay: 0s; }
.badge-f2 { top: 22%; left: -8%; animation-delay: 0.6s; }
.badge-f3 { bottom: 38%; left: -6%; animation-delay: 1.2s; }

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

/* =============================================================
   8. Pain points
   ============================================================= */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pain-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft);
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pain-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-icon svg { width: 22px; height: 22px; }

.pain-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .35rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.pain-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================
   9. Services
   ============================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft), border-color .25s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
}

.service-icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background .25s, color .25s;
}

.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
}

.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================================
   10. Process steps
   ============================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 3rem;
}

.step {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid rgba(26,86,219,0.15);
  position: relative;
}

.step-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .18;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.step p {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
}

.step-connector {
  display: none;
}

.steps-cta {
  text-align: center;
}

/* =============================================================
   11. Portfolio / Cases
   ============================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-soft);
}

.case-card:hover .case-img-wrap img { transform: scale(1.04); }

.case-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 50px;
  letter-spacing: .03em;
}

.case-body {
  padding: 1.5rem;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: 1rem;
}

.case-meta strong {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-dark);
}

.case-meta span {
  font-size: .8rem;
  color: var(--text-muted);
}

.case-problem {
  font-size: .875rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.case-problem em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.case-results {
  display: flex;
  gap: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.result-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.result-item strong {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.result-item span {
  font-size: .75rem;
  color: var(--text-muted);
}

/* =============================================================
   12. Pricing
   ============================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft);
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.price-popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: var(--shadow-xl);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: .03em;
}

.price-header {
  margin-bottom: 1.5rem;
}

.price-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .35rem;
}

.price-target {
  font-size: .825rem;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: .2rem;
  margin-bottom: 1.75rem;
}

.price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-period {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-popular .price-value { color: var(--primary); }

.price-features {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--text);
}

.check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.price-popular .check-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.pricing-note {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* =============================================================
   13. Testimonials
   ============================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow .25s var(--ease-soft), transform .25s var(--ease-soft);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial-stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: .05em;
}

.testimonial-card blockquote p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: .9375rem;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: .775rem;
  color: var(--text-muted);
}

/* =============================================================
   14. FAQ
   ============================================================= */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .2s var(--ease-soft);
}

.faq-item:has(.faq-q[aria-expanded="true"]) {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color .2s;
}

.faq-q:hover { color: var(--primary); }
.faq-q[aria-expanded="true"] { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  transition: transform .3s var(--ease-out);
}

.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-a {
  padding: 0 1.5rem 1.25rem;
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.7;
  animation: faqOpen .25s var(--ease-out);
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   15. Contact
   ============================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-form-wrap h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: .75rem;
  margin-top: .25rem;
}

.contact-form-wrap h2 em {
  color: var(--primary);
  font-style: normal;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row-2 { flex-direction: column; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.label-opt {
  color: var(--text-muted);
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--text-dark);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-error {
  font-size: .8rem;
  color: #DC2626;
  min-height: 1.2em;
}

.form-group.has-error input,
.form-group.has-error select {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--accent-light);
  border: 1px solid rgba(14,159,110,0.2);
  border-radius: var(--r-lg);
}

.form-success-icon {
  width: 60px; height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.form-success h3 {
  font-size: 1.375rem;
  margin-bottom: .5rem;
  color: var(--accent-dark);
}

.form-success p {
  color: var(--text);
  font-size: .9375rem;
}

/* Contact info sidebar */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  height: fit-content;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg { width: 20px; height: 20px; }

.contact-info-item strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .2rem;
}

.contact-info-item a,
.contact-info-item span {
  font-size: .9rem;
  color: var(--text-muted);
}

.contact-info-item a:hover { color: var(--primary); }

.contact-trust-badge {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1rem;
  background: var(--accent-light);
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: .5rem;
}

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-logo { color: #fff; }
.footer-logo span { color: var(--accent); }

.footer-brand p {
  font-size: .875rem;
  line-height: 1.6;
}

.footer-seo {
  font-size: .8rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  align-content: flex-start;
}

.footer-nav a {
  font-size: .875rem;
  color: rgba(255,255,255,0.7);
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.15); color: #fff; }

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 1.25rem;
}

.footer-copy p {
  font-size: .8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* =============================================================
   17. WhatsApp float
   ============================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 54px; height: 54px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 90;
  transition: transform .25s var(--ease-bounce), box-shadow .25s var(--ease-soft);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(37,211,102,0.2);
  animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* =============================================================
   18. Scroll reveals
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}

/* MANDATORY: prevent invisible text if JS fails or data-split conflict */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger for grid children */
.pain-grid .pain-card:nth-child(1) { transition-delay: 0ms; }
.pain-grid .pain-card:nth-child(2) { transition-delay: 60ms; }
.pain-grid .pain-card:nth-child(3) { transition-delay: 120ms; }
.pain-grid .pain-card:nth-child(4) { transition-delay: 180ms; }
.pain-grid .pain-card:nth-child(5) { transition-delay: 240ms; }

.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 60ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 120ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 180ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 240ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 300ms; }

.cases-grid .case-card:nth-child(1) { transition-delay: 0ms; }
.cases-grid .case-card:nth-child(2) { transition-delay: 80ms; }
.cases-grid .case-card:nth-child(3) { transition-delay: 160ms; }

.pricing-grid .price-card:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .price-card:nth-child(2) { transition-delay: 80ms; }
.pricing-grid .price-card:nth-child(3) { transition-delay: 160ms; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0ms; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 70ms; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 140ms; }

/* =============================================================
   19. Responsive — tablet 540px
   ============================================================= */
@media (min-width: 540px) {
  .container { padding-inline: 1.75rem; }

  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row-2 { flex-direction: row; }
  .form-row-2 .form-group { flex: 1; }
}

/* =============================================================
   20. Responsive — 720px
   ============================================================= */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .nav-cta { display: inline-flex; }

  .hero-grid {
    grid-template-columns: 55fr 45fr;
    gap: 3.5rem;
    padding-block: 5rem 4rem;
  }

  .badge-f1 { right: -12%; }
  .badge-f2 { left: -4%; }
  .badge-f3 { left: -3%; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
  }

  .step { text-align: center; }
  .step-num { opacity: .15; }

  .step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2.5rem;
    color: var(--primary);
    opacity: .3;
  }

  .step-connector::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
  }

  .cases-grid { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .price-popular { transform: scale(1.025); }
  .price-popular:hover { transform: scale(1.025) translateY(-3px); }

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* =============================================================
   21. Responsive — 960px
   ============================================================= */
@media (min-width: 960px) {
  .section { padding-block: 6rem; }

  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .contact-grid { grid-template-columns: 3fr 2fr; }
  .contact-info { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

/* =============================================================
   22. Responsive — 1280px
   ============================================================= */
@media (min-width: 1280px) {
  .container { padding-inline: 2.5rem; }
  .hero-grid { gap: 5rem; }

  .badge-f1 { right: -14%; }
  .badge-f2 { left: -10%; }
  .badge-f3 { left: -8%; }
}

/* =============================================================
   23. Reduced motion — only INTRUSIVE effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  /* Do NOT disable: hover, tilt, fade-in, count-up, FAQ */

  html { scroll-behavior: auto; }

  .hero-mesh { animation: none; }
  .badge-float { animation: none; }
  .whatsapp-float::after { animation: none; }

  .reveal {
    transition-duration: .01s;
  }

  .mockup-browser:hover .mockup-screen img { transform: none; }
}
