/* ============================================================
   Tamara & Piñeros — Landing Page Styles v1.1.2
   UI Kit: design-token-driven glassmorphism
   Typography: Manrope (headings), Inter (body)
   Mobile-first responsive
   ============================================================ */

/* --- Design Tokens ---------------------------------------- */
:root {
  --color-bg: #F7F8FC; --color-bg-soft: #EEF0F8; --color-surface: #FFFFFF;
  --color-surface-glass: rgba(255,255,255,.72); --color-surface-flat: rgba(255,255,255,.86);
  --color-text: #1F2430; --color-muted: #465064; --color-border: rgba(31,36,48,.12);
  --color-accent: #5A4FCF; --color-accent-strong: #4E43C4; --color-accent-soft: rgba(90,79,207,.10);
  --color-whatsapp: #0E7A3A; --color-danger: #C7362E;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif; --font-heading: 'Manrope', 'Inter', sans-serif;
  --text-xs: .8125rem; --text-sm: .9375rem; --text-base: 1rem; --text-md: 1.125rem; --text-lg: 1.375rem;
  --text-xl: clamp(2rem,5vw,3rem); --text-hero: clamp(3rem,8vw,5.5rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem;
  --radius-sm: .75rem; --radius-md: 1rem; --radius-lg: 1.5rem; --radius-xl: 2rem; --radius-pill: 999px;
  --shadow-sm: 0 8px 24px rgba(31,36,48,.06); --shadow-md: 0 18px 50px rgba(31,36,48,.10); --shadow-lg: 0 30px 80px rgba(31,36,48,.16);
}

/* --- Reset & Base ----------------------------------------- */
/* Honeypot field for Netlify Forms spam protection */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Container -------------------------------------------- */
.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    width: min(1200px, calc(100% - 80px));
  }
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(31,36,48,.08);
  transition-duration: 0.08s;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(90,79,207,.18);
}

.btn-primary:hover {
  background: var(--color-accent-strong);
  box-shadow: 0 14px 36px rgba(90,79,207,.25);
}

.btn-secondary {
  background: rgba(255,255,255,.8);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14,122,58,.2);
}

.btn-whatsapp:hover {
  background: #0C6B30;
  box-shadow: 0 14px 36px rgba(14,122,58,.3);
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* --- Section base ----------------------------------------- */
.section {
  padding: 56px 0;
  position: relative;
}

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

.section-alt {
  background: rgba(255,255,255,.45);
}

.section-soft {
  background: rgba(238,240,248,.65);
}

.section-head {
  margin-bottom: 40px;
  max-width: 820px;
}

.section-head.narrow {
  max-width: 680px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 14px 0 16px;
}

.section-head p:last-child {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.section-kicker {
  letter-spacing: 0.18em;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0;
}

@media (min-width: 768px) {
  .section-kicker {
    font-size: 14px;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(31,36,48,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 14px 0;
  }
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .brand img {
    width: 44px;
    height: 44px;
  }
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-copy span {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.3;
}

@media (max-width: 400px) {
  .brand-copy span {
    display: none;
  }
}

/* Desktop navigation */
.nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  transition: color 0.2s ease;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

.nav a:hover::after {
  width: 100%;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

/* Header CTA */
.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 48px 0 32px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 64px 0 48px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 56px;
  }
}

.hero-copy {
  position: relative;
}

.eyebrow {
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
  margin: 0 0 10px;
}

@media (min-width: 768px) {
  .eyebrow {
    font-size: 13px;
  }
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 14px;
  max-width: 14ch;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, #7B6FE8 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 560px;
  margin: 0 0 20px;
}

@media (min-width: 768px) {
  .hero .lead {
    font-size: 20px;
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  /* Mobile: show dossier before hero copy so it lands in first viewport */
  .hero-visual {
    order: -1;
    margin-bottom: 8px;
  }

  .hero-dossier {
    padding: 18px;
  }

  .dossier-row p {
    font-size: 12px;
  }
}

/* Trust chips in hero */
.hero-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chips span {
  padding: 6px 12px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
}

/* Hero visual — right column */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Remove generic SaaS portrait card; dossier is the sole hero visual */
.hero-image-wrap {
  display: none;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  max-height: 360px;
}

/* Hero dossier — primary right-column trust object */
.hero-dossier {
  position: relative;
  padding: 26px;
  border: 1px solid rgba(31,36,48,.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,248,252,.96));
  box-shadow: 0 8px 28px rgba(31,36,48,.08);
  overflow: hidden;
}

.dossier-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dossier-sheet {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31,36,48,.08);
  background: rgba(255,255,255,.6);
  box-shadow: 0 2px 8px rgba(31,36,48,.04);
}

.dossier-sheet--back {
  transform: translate(6px, 6px) rotate(1deg);
  z-index: -2;
}

.dossier-sheet--mid {
  transform: translate(3px, 3px) rotate(-0.5deg);
  z-index: -1;
}

.dossier-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31,36,48,.08);
}

.dossier-ref {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-family: var(--font-body);
}

.dossier-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(90,79,207,.25);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transform: rotate(-12deg);
  opacity: 0.7;
}

.dossier-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.dossier-row strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.dossier-row p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.dossier-row--highlight {
  padding: 10px 12px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.dossier-row--highlight strong {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .hero-image {
    max-height: 400px;
  }

  .hero-dossier {
    padding: 26px;
  }

  .dossier-row strong {
    font-size: 15px;
  }

  .dossier-row p {
    font-size: 14px;
  }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  padding: 0;
}

.trust-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.trust-items span {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .trust-items span {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* ============================================================
   SERVICES CARDS — flat translucency (no backdrop-filter)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--color-surface-flat);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(90,79,207,.2);
}

/* Service hierarchy: first card is the unmistakable primary */
.cards-grid .card:first-child {
  box-shadow: 0 14px 40px rgba(90,79,207,.12);
  border-color: rgba(90,79,207,.22);
}

.cards-grid .card:first-child:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 52px rgba(90,79,207,.18);
  border-color: rgba(90,79,207,.30);
}

/* Primary card spans 2 columns on desktop for stronger editorial presence */
@media (min-width: 900px) {
  .cards-grid .card:first-child {
    grid-column: span 2;
  }
}

/* Remaining cards are restrained and suppress competing tier accents */
.cards-grid .card:not(:first-child) {
  background: rgba(255,255,255,.78);
}

.cards-grid .card:not(:first-child):hover {
  transform: translateY(-3px);
}

.cards-grid .card:not(:first-child) .tier-badge {
  display: none;
}

.cards-grid .card:not(:first-child).card--tier-express,
.cards-grid .card:not(:first-child).card--tier-medio,
.cards-grid .card:not(:first-child).card--tier-premium {
  border-top: 1px solid var(--color-border);
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.2;
}

.card p {
  margin: 0 0 auto;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

.card .btn-card {
  margin-top: auto;
  width: 100%;
  font-size: 15px;
  padding: 14px 24px;
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .card {
    padding: 32px;
  }

  .card h3 {
    font-size: 24px;
  }
}

/* ============================================================
   HOW IT WORKS (STEPS)
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--color-surface-flat);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

.step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .step {
    padding: 36px 28px;
  }

  .step h3 {
    font-size: 22px;
  }
}

/* ============================================================
   DIFFERENTIALS / WHY CHOOSE US — flat translucency
   ============================================================ */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reason {
  background: var(--color-surface-flat);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease;
}

.reason:hover {
  transform: translateY(-3px);
}

.reason h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
}

.reason p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .reason {
    padding: 30px;
  }

  .reason h3 {
    font-size: 22px;
  }
}

/* ============================================================
   CASE LIST (FREQUENT SITUATIONS) — flat translucency
   ============================================================ */
.case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .case-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.case-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-flat);
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 500;
  font-family: inherit;
  appearance: none;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: left;
}

.case-item:hover {
  background: rgba(255,255,255,.95);
  transform: translateY(-3px);
  border-color: rgba(90,79,207,.15);
  box-shadow: var(--shadow-sm);
}

.case-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.case-icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.case-item:hover .case-icon {
  opacity: 1;
  transform: scale(1.1);
}

.case-item span {
  flex: 1;
}

.case-arrow {
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.case-item:hover .case-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 768px) {
  .case-item {
    font-size: 18px;
    padding: 24px 28px;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 800px;
}

.faq-item {
  background: var(--color-surface-flat);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  line-height: 1.4;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.faq-item.is-open .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .faq-question {
    padding: 24px 28px;
    font-size: 17px;
  }

  .faq-item.is-open .faq-answer {
    padding: 0 28px 24px;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding: 72px 0;
  position: relative;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 104px 0;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }
}

.contact-cta h2 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}

.contact-cta p {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-cta .note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--color-muted);
  opacity: 0.8;
}

.contact-actions,
.form-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Form — glass fallback */
.contact-form {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 36px;
    gap: 18px;
  }
}

.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.contact-form--disabled {
  opacity: 1;
}

.contact-form--disabled fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.contact-form--disabled .form-group input,
.contact-form--disabled .form-group select,
.contact-form--disabled .form-group textarea,
.contact-form--disabled .form-checkbox input[type="checkbox"] {
  background: var(--color-bg-soft);
  color: #7A8497;
  cursor: not-allowed;
}

.contact-form--disabled .form-group label,
.contact-form--disabled .form-checkbox label {
  color: #6A7386;
}

.form-status-message {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(90,79,207,.12), 0 4px 12px rgba(90,79,207,.06);
  background: #fff;
}

.form-group input.has-error,
.form-group select.has-error,
.form-group textarea.has-error {
  border-color: var(--color-danger);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .error-message {
  font-size: 13px;
  color: var(--color-danger);
  /* sr-only — always in DOM for robust aria-live */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group.has-error .error-message {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 4px 0 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: none;
}

/* Checkbox */
.form-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 4px;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox label a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-submit {
  margin-top: 4px;
}

.form-submit .btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Form success state */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  color: var(--color-accent);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--color-muted);
  font-size: 16px;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON (mobile only)
   ============================================================ */
.whatsapp-float {
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 80;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-whatsapp);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(14,122,58,.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(14,122,58,.45);
}

@media (min-width: 900px) {
  .whatsapp-float {
    display: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 40px 0 32px;
  border-top: 1px solid var(--color-border);
  background: rgba(255,255,255,.4);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-services {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 360px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 720px;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 48px 0 36px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #7B6FE8);
  z-index: 200;
  transition: width 0.1s linear;
  will-change: width;
}

/* ============================================================
   MOBILE OVERLAY — fullscreen navigation
   ============================================================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(31,36,48,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* --- Sidebar panel --- */
.mobile-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 85vw);
  height: 100%;
  background: linear-gradient(180deg, var(--color-text) 0%, #1c1e26 100%);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,.3);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-overlay.is-open .mobile-sidebar {
  transform: translateX(0);
}

/* --- Sidebar header --- */
.mobile-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.mobile-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.mobile-sidebar-brand img {
  border-radius: 8px;
}

.mobile-sidebar-brand span {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* --- Close button --- */
.mobile-overlay-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.mobile-overlay-close:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  transform: rotate(90deg);
}

/* --- Navigation links --- */
.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 16px;
  flex: 1;
  overflow-y: auto;
}

.mobile-overlay-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 16px;
  width: 100%;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.85);
  text-decoration: none;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, background 0.25s ease, color 0.25s ease;
  transition-delay: calc(var(--i, 0) * 0.05s + 0.1s);
}

.mobile-overlay.is-open .mobile-overlay-link {
  opacity: 1;
  transform: translateX(0);
}

.mobile-overlay-link:hover,
.mobile-overlay-link:focus-visible {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.mobile-overlay-link:focus-visible {
  outline: 2px solid #7B6FE8;
  outline-offset: 2px;
}

/* --- Link text --- */
.mol-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mol-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
  font-weight: 400;
  line-height: 1.4;
}

/* --- Sidebar footer --- */
.mobile-overlay-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.mobile-overlay-footer .btn {
  width: 100%;
  font-size: 15px;
  padding: 14px 20px;
}

@media (min-width: 900px) {
  .mobile-overlay {
    display: none !important;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for card grids */
.cards-grid [data-reveal],
.team-grid [data-reveal],
.steps-grid [data-reveal],
.reasons-grid [data-reveal],
.case-list [data-reveal] {
  transition-delay: calc(var(--delay, 0ms) * 1ms);
}

/* ============================================================
   HERO ENHANCEMENTS
   ============================================================ */
/* Geometric pattern background */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(90,79,207,.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(90,79,207,.03) 0%, transparent 70%);
  border-radius: 50%;
}

/* Subtle floating animation for hero image */
.hero-image-wrap {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.hero-image {
  position: relative;
  z-index: 1;
}

/* Stat icons */
.stat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stat-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.stat-text {
  flex: 1;
}

.stat-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}

.stat-text p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Update existing stat styles to work with new structure */
.stat + .stat {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(31,36,48,.08);
}

/* ============================================================
   SERVICE CARDS — enhanced
   ============================================================ */
.card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  margin-bottom: 20px;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.card:hover .card-icon {
  background: rgba(90,79,207,.12);
  transform: scale(1.05);
}

.card-icon svg {
  transition: transform 0.3s ease;
}

.card:hover .card-icon svg {
  transform: scale(1.1);
}

.card-features {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  gap: 8px;
}

.card-features li {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  opacity: 0.5;
}

/* ============================================================
   SERVICIOS DETALLADOS — accordion
   ============================================================ */
.details-grid {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.detail-item {
  background: var(--color-surface-flat);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.detail-item:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(90,79,207,.15);
}

.detail-question {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  line-height: 1.4;
}

.detail-question-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.detail-item:hover .detail-question-icon {
  opacity: 1;
}

.detail-question > span:nth-child(2) {
  flex: 1;
}

.detail-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-accent);
  opacity: 0.6;
}

.detail-item.is-open .detail-toggle {
  transform: rotate(45deg);
  opacity: 1;
}

.detail-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.detail-item.is-open .detail-answer {
  max-height: 600px;
  padding: 0 24px 24px;
}

.detail-answer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-top: 4px;
}

@media (min-width: 640px) {
  .detail-answer-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-question {
    padding: 24px 28px;
    font-size: 17px;
  }

  .detail-item.is-open .detail-answer {
    padding: 0 28px 28px;
  }
}

.detail-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  font-family: var(--font-body);
}

.detail-col p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ============================================================
   SKIP LINK — visible only on focus
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 1000;
  padding: 12px 24px;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  clip: rect(1px, 1px, 1px, 1px);
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  top: 0;
  clip: auto;
  transform: translateY(0);
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */
.section-divider {
  height: 60px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.section-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(90,79,207,.06), transparent);
}

/* ============================================================
   SECTION ENHANCEMENTS — alternating backgrounds
   ============================================================ */
.section {
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(238,240,248,.6));
}

.section-soft {
  background: linear-gradient(180deg, rgba(238,240,248,.7), rgba(247,248,252,.5));
}

/* ============================================================
   MICRO-INTERACTIONS
   ============================================================ */
/* Smooth underline animation for nav links */
.nav a {
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover::after {
  width: 100%;
}

/* Footer links underline */
.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* WhatsApp floating button pulse */
.whatsapp-float {
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(14,122,58,.35); }
  50% { box-shadow: 0 6px 32px rgba(14,122,58,.5); }
}

/* ============================================================
   EQUIPO — TEAM GRID + CARDS
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

.card--team {
  padding: 0;
  overflow: hidden;
}

.card-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card--team h3 {
  padding: 24px 28px 0;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.card-specialty {
  display: block;
  padding: 0 28px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.card--team .btn-card {
  margin: 0 28px 28px;
  width: calc(100% - 56px);
  font-size: 15px;
  padding: 14px 24px;
}

@media (min-width: 768px) {
  .card--team h3 { padding: 28px 32px 0; font-size: 24px; }
  .card-specialty { padding: 0 32px 20px; }
  .card--team .btn-card { margin: 0 32px 32px; width: calc(100% - 64px); }
}

/* ============================================================
   SOCIAL LINKS — footer + mobile sidebar
   ============================================================ */
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.footer-social a:hover { color: var(--color-accent); border-color: rgba(90,79,207,.2); }

.footer-social a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.footer-social svg { width: 22px; height: 22px; }

/* Mobile sidebar social row — light icons on dark sidebar */
.mobile-overlay-social {
  display: flex;
  gap: 12px;
  padding: 0 0 16px;
}

.mobile-overlay-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.08);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.mobile-overlay-social a:hover { color: #fff; border-color: rgba(255,255,255,.2); }

.mobile-overlay-social a:focus-visible {
  outline: 2px solid #7B6FE8;
  outline-offset: 2px;
}

.mobile-overlay-social svg { width: 22px; height: 22px; }

/* ============================================================
   REDUCED MOTION — accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-image-wrap {
    animation: none !important;
  }

  .scroll-progress {
    display: none !important;
  }

  .whatsapp-float {
    animation: none !important;
  }

  .hero h1 .highlight {
    animation: none !important;
  }

  /* v1.1.2 geometry nodes — neutralized */
  .geometry-node {
    transform: none !important;
    transition: none !important;
  }

  /* v1.1.2 card/reason/case-item hover transforms neutralized */
  .card,
  .reason,
  .case-item {
    transform: none !important;
    transition: none !important;
  }

  /* Timeline: show all steps immediately, no stagger */
  .timeline-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .timeline::before {
    background: var(--color-border) !important;
  }

  /* Intake modal: no transition */
  .intake-modal {
    transition: none !important;
  }

  .intake-modal-panel {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   LEGAL PAGE — prose container for privacy/aviso pages
   ============================================================ */
.legal-page {
  max-width: 720px;
  margin: 64px auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
}

.legal-page h1 {
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 8px;
}

.legal-page h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 40px 0 16px;
  color: var(--color-text);
}

.legal-page h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--color-text);
}

.legal-page p,
.legal-page li {
  color: var(--color-muted);
}

.legal-page a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.legal-page a:hover {
  color: var(--color-accent-strong);
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

.legal-page .legal-date {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin: 12px 0;
}

.legal-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-page section {
  margin-bottom: 8px;
}

.legal-page .legal-back {
  margin-top: 32px;
  font-size: 15px;
}

.contact-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.contact-list {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--color-muted);
}

.contact-list li {
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .legal-page {
    margin: 80px auto;
    padding: 0 32px;
    font-size: 17px;
  }
}

/* ============================================================
   TIER CARDS — service catalog (Plan Maestro Phase 1)
   ============================================================ */

/* Tier badge — pill label at top of card */
.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.4;
}

.card--tier-express .tier-badge {
  background: #E8F5E9;
  color: #2E7D32;
}

.card--tier-medio .tier-badge {
  background: #FFF3E0;
  color: #E65100;
}

.card--tier-premium .tier-badge {
  background: #EDE7F6;
  color: var(--color-accent);
}

/* Tier border-top accent */
.card--tier-express {
  border-top: 3px solid #2E7D32;
}

.card--tier-medio {
  border-top: 3px solid #E65100;
}

.card--tier-premium {
  border-top: 3px solid var(--color-accent);
}

/* Pricing block — inline per card, between features and CTA */
.card-pricing {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(31,36,48,.08);
}

.pricing-ref {
  font-size: 13px;
  color: var(--color-muted);
  display: block;
  line-height: 1.5;
}

.pricing-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  line-height: 1.4;
}

/* Card CTA spacing — ensure pricing block doesn't break flex push */
.card .btn-card {
  margin-top: 20px;
}

.card-pricing + .btn-card {
  margin-top: 16px;
}

/* 3-column grid at desktop for 5 cards (2-2-1 or 3-2 wrap) */
@media (min-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   LEAD MAGNETS — Legal Intelligence Rail
   ============================================================ */
.lead-magnets-shell {
  position: relative;
  isolation: isolate;
  margin-top: 8px;
  max-width: 100%;
}

.lead-magnets-shell::before {
  content: "";
  position: absolute;
  inset: -28px 0;
  z-index: -1;
  border-radius: calc(var(--radius-xl) + 12px);
  background:
    radial-gradient(circle at 16% 14%, rgba(90,79,207,.16), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.60), rgba(238,240,248,.34));
  opacity: .86;
}

.lead-magnets-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  padding: 14px 2px 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(90,79,207,.42) rgba(31,36,48,.08);
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}

.lead-magnets-viewport:focus-visible {
  outline: 3px solid rgba(90,79,207,.48);
  outline-offset: 8px;
  border-radius: var(--radius-xl);
}

.lead-magnets-viewport::-webkit-scrollbar {
  height: 10px;
}

.lead-magnets-viewport::-webkit-scrollbar-track {
  background: rgba(31,36,48,.08);
  border-radius: var(--radius-pill);
}

.lead-magnets-viewport::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(90,79,207,.48), rgba(31,36,48,.30));
  border-radius: var(--radius-pill);
}

.lead-magnets-grid {
  display: flex;
  grid-template-columns: none;
  gap: 18px;
  min-width: min-content;
}

.lead-magnet-card {
  position: relative;
  flex: 0 0 min(82vw, 420px);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  scroll-snap-align: start;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,255,255,.66)),
    radial-gradient(circle at 88% 0%, rgba(90,79,207,.14), transparent 34%);
  border: 1px solid rgba(90,79,207,.16);
  border-radius: calc(var(--radius-lg) + 6px);
  padding: 26px;
  box-shadow: 0 22px 54px rgba(31,36,48,.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.lead-magnet-card::before {
  content: "";
  position: absolute;
  inset: 14px 14px auto auto;
  width: 76px;
  height: 76px;
  border-top: 1px solid rgba(90,79,207,.20);
  border-right: 1px solid rgba(90,79,207,.20);
  border-radius: 0 18px 0 0;
  pointer-events: none;
}

.lead-magnet-card:hover,
.lead-magnet-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(90,79,207,.34);
  box-shadow: 0 28px 68px rgba(31,36,48,.14);
}

.lead-magnet-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.lead-magnet-card .card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 22px;
  border-radius: 18px;
  background: rgba(90,79,207,.10);
  box-shadow: inset 0 0 0 1px rgba(90,79,207,.14);
}

.lead-magnet-card h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  max-width: 12ch;
}

.lead-magnet-card p {
  margin: 16px 0 0;
  color: var(--color-muted);
}

.lead-magnet-card .btn-card {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 900px) {
  .lead-magnets-grid {
    gap: 24px;
  }

  .lead-magnet-card {
    flex-basis: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-magnet-card {
    transition: none;
  }

  .lead-magnet-card:hover,
  .lead-magnet-card:focus-within {
    transform: none;
  }
}

/* Disabled / Próximamente CTA state */
.lead-magnet-cta[disabled],
.lead-magnet-cta.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.lead-magnet-cta[disabled]:hover,
.lead-magnet-cta.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ============================================================
   INTAKE MODAL — overlay with Netlify Forms
   ============================================================ */
.intake-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.intake-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.intake-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31,36,48,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.intake-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.intake-modal.is-open .intake-modal-panel {
  transform: translateY(0) scale(1);
}

.intake-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.intake-modal-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.intake-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: none;
  border: 1px solid transparent;
  color: var(--color-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.intake-modal-close:hover {
  background: rgba(31,36,48,.06);
  color: var(--color-text);
  border-color: var(--color-border);
}

.intake-modal-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Intake form inherits .contact-form — add modal-specific spacing */
.intake-modal .contact-form {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Intake consent row emphasis */
.intake-modal .form-checkbox {
  padding: 12px 16px;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(90,79,207,.1);
}

/* Consent error message spans full grid row */
.form-checkbox.has-error .error-message {
  grid-column: 1 / -1;
}

/* Intake field error states — extend existing .has-error pattern */
.intake-modal .form-group.has-error input,
.intake-modal .form-group.has-error select {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(199,54,46,.1);
}

.intake-modal .form-group.has-error label {
  color: var(--color-danger);
}

/* Intake success state inside modal */
.intake-modal .form-success {
  padding: 24px 0;
}

@media (min-width: 768px) {
  .intake-modal-panel {
    padding: 36px;
  }

  .intake-modal-header h2 {
    font-size: 28px;
  }
}

/* ============================================================
   TIMELINE — 15-step vertical process flow
   ============================================================ */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  counter-reset: timeline-step;
}

/* Vertical connector line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, rgba(90,79,207,.15) 100%);
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

/* Step number circle — reuses .step-number visual style */
.timeline-step .step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg), 0 4px 12px rgba(90,79,207,.2);
  margin-bottom: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 6px;
  min-width: 0;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.timeline-content p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Timeline reveal animation */
.timeline-step {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline.is-revealed .timeline-step {
  opacity: 1;
  transform: translateX(0);
}

.timeline.is-revealed .timeline-step:nth-child(1)  { transition-delay: 0ms; }
.timeline.is-revealed .timeline-step:nth-child(2)  { transition-delay: 60ms; }
.timeline.is-revealed .timeline-step:nth-child(3)  { transition-delay: 120ms; }
.timeline.is-revealed .timeline-step:nth-child(4)  { transition-delay: 180ms; }
.timeline.is-revealed .timeline-step:nth-child(5)  { transition-delay: 240ms; }
.timeline.is-revealed .timeline-step:nth-child(6)  { transition-delay: 300ms; }
.timeline.is-revealed .timeline-step:nth-child(7)  { transition-delay: 360ms; }
.timeline.is-revealed .timeline-step:nth-child(8)  { transition-delay: 420ms; }
.timeline.is-revealed .timeline-step:nth-child(9)  { transition-delay: 480ms; }
.timeline.is-revealed .timeline-step:nth-child(10) { transition-delay: 540ms; }
.timeline.is-revealed .timeline-step:nth-child(11) { transition-delay: 600ms; }
.timeline.is-revealed .timeline-step:nth-child(12) { transition-delay: 660ms; }
.timeline.is-revealed .timeline-step:nth-child(13) { transition-delay: 720ms; }
.timeline.is-revealed .timeline-step:nth-child(14) { transition-delay: 780ms; }
.timeline.is-revealed .timeline-step:nth-child(15) { transition-delay: 840ms; }

@media (min-width: 768px) {
  .timeline::before {
    left: 28px;
  }

  .timeline-step {
    gap: 24px;
    padding-bottom: 32px;
  }

  .timeline-step .step-number {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .timeline-content {
    padding-top: 10px;
  }

  .timeline-content h3 {
    font-size: 20px;
  }

  .timeline-content p {
    font-size: 16px;
  }
}

/* ============================================================
   GLASS SURFACE ENHANCEMENT — @supports backdrop-filter
   v1.1.2: blur only on singleton surfaces and overlays
   ============================================================ */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(247,248,252,.78);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
  }

  .hero-stats,
  .contact-card,
  .contact-form,
  .intake-modal-panel {
    background: var(--color-surface-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-color: rgba(255,255,255,.44);
  }

  .mobile-overlay,
  .intake-modal-backdrop {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ============================================================
   CSS-ONLY 3D GEOMETRY — v1.1.2 decorative nodes
   No JS tilt — pure CSS perspective + gradients + shadows
   ============================================================ */
.hero-geometry,
.section-geometry {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  perspective: 900px;
  transform-style: preserve-3d;
}

.geometry-node {
  position: absolute;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: auto;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Orb — warm gradient sphere, 320px */
.geometry-node--orb {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(90,79,207,.08), transparent 60%),
              radial-gradient(circle at 60% 50%, rgba(123,111,232,.05), transparent 70%);
  box-shadow: inset 0 0 80px rgba(90,79,207,.04), 0 0 120px rgba(90,79,207,.03);
  filter: blur(0.5px);
}

/* Plane — layered translucent flat card, 400×280px */
.geometry-node--plane {
  width: 400px;
  height: 280px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 60px rgba(31,36,48,.05);
  transform: rotateY(-8deg) rotateX(4deg);
}

/* Ring — donut/thin circle accent, 220px */
.geometry-node--ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid rgba(90,79,207,.08);
  background: transparent;
  box-shadow: 0 0 40px rgba(90,79,207,.02), inset 0 0 40px rgba(90,79,207,.02);
}

/* Case-path — procedural route geometry, legal editorial signature */
.geometry-node--path {
  width: 280px;
  height: 120px;
  background: none;
  border: none;
  position: relative;
}

.geometry-node--path::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(90,79,207,.10), rgba(90,79,207,.04) 70%, transparent);
  border-radius: 2px;
}

.geometry-node--path::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 0;
  height: 0;
  margin-top: -5px;
  border-left: 10px solid rgba(90,79,207,.12);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* Hover/focus-visible depth shift for interactive area */
.hero:hover .geometry-node--orb,
.section:hover .geometry-node--plane,
.section:hover .geometry-node--orb {
  transform: translateZ(20px);
}

.section:hover .geometry-node--ring {
  transform: rotate(5deg) translateZ(12px);
}

.hero:hover .geometry-node,
.section:hover .geometry-node {
  will-change: transform;
}

/* Responsive — scale geometry down on mobile */
@media (max-width: 768px) {
  .geometry-node--orb {
    width: 200px;
    height: 200px;
  }

  .geometry-node--plane {
    width: 260px;
    height: 180px;
  }

  .geometry-node--ring {
    width: 140px;
    height: 140px;
  }

  .geometry-node--path {
    width: 180px;
    height: 80px;
  }

  .geometry-node {
    will-change: auto;
  }

  .hero:hover .geometry-node,
  .section:hover .geometry-node {
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .geometry-node,
  .hero:hover .geometry-node,
  .section:hover .geometry-node,
  .hero:hover .geometry-node--orb,
  .section:hover .geometry-node--plane,
  .section:hover .geometry-node--orb,
  .section:hover .geometry-node--ring {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* ============================================================
   LEGAL PAGE GLASS PANEL — v1.1.2 additive wrapper
   Provides glass surface depth for legal content pages + 404
   ============================================================ */
.legal-page-glass {
  max-width: 780px;
  margin: var(--space-16) auto;
  padding: var(--space-16) var(--space-12);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* 404 centered layout — replaces inline style="" on legal-page */
.legal-page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-4);
}

/* Ensure contact-section participates in position context for geometry */
.contact-section {
  position: relative;
}
