/* =============================================
   SOLVING CONSULTING MÉXICO
   style.css — Arquitectura modular con variables CSS
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand */
  --blue:        #16448A;
  --blue-dark:   #0d2d5e;
  --blue-light:  #1e56b0;

  /* Neutrals */
  --white:       #ffffff;
  --black:       #0a0a0a;
  --gray-50:     #f8f8f6;
  --gray-100:    #f0f0ee;
  --gray-200:    #e0e0dd;
  --gray-400:    #9a9a96;
  --gray-600:    #5a5a56;
  --gray-900:    #1a1a18;

  /* Typography */
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --section-pad: 9rem;
  --container:   1200px;
  --gutter:      4rem;

  /* Transitions */
  --ease:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:  cubic-bezier(0, 0, 0.2, 1);
}

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

body {
  font-family: var(--sans);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* Focus visible — WCAG AA */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Screen reader only */
.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;
}

/* Reduced motion */
@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;
  }
}


/* =============================================
   LAYOUT UTILITIES
   ============================================= */

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-tag {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  font-weight: 500;
  font-family: var(--sans);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease);
}

.link-arrow:hover { gap: 0.9rem; }

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 0.9rem 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 0.9rem 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-outline svg {
  width: 18px;
  height: 18px;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: background 0.3s var(--ease);
}

.btn-white:hover { background: var(--gray-100); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--sans);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.btn-ghost-white svg {
  width: 16px;
  height: 16px;
  fill: white;
}

.btn-ghost-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}


/* =============================================
   ANIMATIONS — SCROLL REVEAL
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* =============================================
   NAVIGATION
   ============================================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

#main-nav {
  padding: 1.5rem var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

#main-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-logo:hover { opacity: 0.8; }

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--white);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--sans);
  flex-shrink: 0;
  transition: background 0.4s, color 0.4s;
}

#main-nav.scrolled .logo-mark {
  background: var(--blue);
  color: var(--white);
}

.logo-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s;
}

#main-nav.scrolled .logo-text { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s;
}

#main-nav.scrolled .nav-links a { color: var(--gray-600); }

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

#main-nav.scrolled .nav-links a:hover { color: var(--blue); }

.nav-cta {
  background: var(--white);
  color: var(--blue) !important;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  transition: background 0.3s, color 0.3s !important;
}

#main-nav.scrolled .nav-cta {
  background: var(--blue);
  color: var(--white) !important;
}

.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: background 0.4s, transform 0.3s;
}

#main-nav.scrolled .nav-toggle span { background: var(--gray-900); }


/* =============================================
   HERO
   ============================================= */

#hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  will-change: transform;
  transition: transform 8s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 20, 50, 0.82) 0%,
    rgba(22, 68, 138, 0.55) 60%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: var(--gutter);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--sans);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}


/* =============================================
   QUIÉNES SOMOS
   ============================================= */

#quienes {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.quienes-img {
  position: relative;
}

.quienes-img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.quienes-img::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: -2rem;
  right: 2rem;
  bottom: 2rem;
  border: 1px solid var(--gray-200);
  z-index: -1;
}

.stat-pill {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 2rem;
}

.stat-pill .num {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.stat-pill .lbl {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.25rem;
  display: block;
  font-family: var(--sans);
}

.quienes-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.quienes-text p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 300;
}


/* =============================================
   PROBLEMAS
   ============================================= */

#problemas {
  padding: var(--section-pad) 0;
  background: var(--gray-900);
}

#problemas .section-tag { color: rgba(255, 255, 255, 0.35); }

#problemas h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  max-width: 600px;
  margin-bottom: 5rem;
  line-height: 1.2;
}

.problemas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.problema-item {
  background: var(--gray-900);
  padding: 3rem 2.5rem;
  transition: background 0.3s var(--ease);
}

.problema-item:hover { background: rgba(22, 68, 138, 0.15); }

.problema-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1.5rem;
  font-family: var(--sans);
  font-weight: 400;
}

.problema-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.problema-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  font-weight: 300;
}


/* =============================================
   SERVICIOS
   ============================================= */

#servicios {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.servicios-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}

.servicios-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--gray-900);
}

.servicios-header p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 300;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-200);
}

.servicio-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  transition: background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.servicio-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.servicio-card:hover::after { transform: scaleX(1); }

.servicio-card:hover { background: var(--gray-50); }

.serv-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: var(--blue);
}

.serv-icon svg {
  width: 100%;
  height: 100%;
}

.servicio-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  letter-spacing: 0.02em;
  font-family: var(--sans);
}

.servicio-card p {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.7;
  font-weight: 300;
}


/* =============================================
   SECTORES
   ============================================= */

#sectores {
  padding: var(--section-pad) 0 0;
  overflow: hidden;
  background: var(--gray-50);
}

.sectores-intro {
  padding-bottom: 5rem;
}

#sectores h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
  color: var(--gray-900);
}

.sectores-sub {
  font-size: 0.95rem;
  color: var(--gray-600);
  max-width: 500px;
  font-weight: 300;
  line-height: 1.7;
}

.sectores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-200);
}

.sector-block {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: default;
}

.sector-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.sector-block:hover img { transform: scale(1.04); }

.sector-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 50, 0.75) 0%, transparent 60%);
}

.sector-name {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-family: var(--sans);
}

.sector-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  font-family: var(--sans);
}


/* =============================================
   BENEFICIOS
   ============================================= */

#beneficios {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.bene-header {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 8rem;
  align-items: start;
  margin-bottom: 6rem;
}

.bene-header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--gray-900);
}

.bene-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  list-style: none;
}

.bene-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.bene-check {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 3px;
  flex-shrink: 0;
}

.bene-check svg {
  width: 100%;
  height: 100%;
}

.bene-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--gray-900);
  font-family: var(--sans);
}

.bene-item p {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.6;
  font-weight: 300;
}

.bene-img {
  position: relative;
}

.bene-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.bene-caption {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 2rem;
  max-width: 280px;
}

.bene-caption p {
  font-size: 0.8rem;
  line-height: 1.6;
  font-weight: 300;
  opacity: 0.85;
  font-style: italic;
  font-family: var(--serif);
}


/* =============================================
   METODOLOGÍA
   ============================================= */

#metodologia {
  padding: var(--section-pad) 0;
  background: var(--gray-900);
}

#metodologia .section-tag { color: rgba(255, 255, 255, 0.35); }

#metodologia h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--white);
  margin-bottom: 5rem;
  line-height: 1.2;
}

.metodologia-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.metodologia-steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.step {
  padding: 0 2rem;
  position: relative;
}

.step-num {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  background: var(--gray-900);
  font-weight: 300;
  letter-spacing: 0.05em;
  font-family: var(--sans);
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}

.step:hover .step-num {
  border-color: var(--blue);
  color: var(--white);
  background: var(--blue);
}

.step h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  font-weight: 300;
}


/* =============================================
   FAQ
   ============================================= */

#faq {
  padding: var(--section-pad) 0;
  background: var(--gray-50);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8rem;
  align-items: start;
}

.faq-intro h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  line-height: 1.2;
}

.faq-intro p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-weight: 300;
}

.faq-items {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--sans);
}

.faq-item-header h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.4;
}

.faq-toggle {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  background: var(--blue);
  border-color: var(--blue);
}

.faq-toggle svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-400);
  transition: stroke 0.3s, transform 0.3s;
}

.faq-item.open .faq-toggle svg {
  stroke: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item.open .faq-answer { max-height: 200px; }

.faq-answer p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.8;
  padding-bottom: 1.5rem;
  font-weight: 300;
}


/* =============================================
   CTA BANNER
   ============================================= */

#cta-banner {
  padding: 8rem 0;
  background: var(--blue);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--white);
  line-height: 1.15;
}

.cta-inner h2 em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cta-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
  font-weight: 300;
  max-width: 380px;
  line-height: 1.7;
}


/* =============================================
   FORMULARIO
   ============================================= */

#formulario {
  padding: var(--section-pad) 0;
  background: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: start;
}

.form-intro h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  line-height: 1.15;
}

.form-intro p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-style: normal;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  min-width: 18px;
  flex-shrink: 0;
}

.contact-line span {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 300;
}

.contact-line a {
  font-size: 0.85rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.3s;
}

.contact-line a:hover { opacity: 0.75; }

/* Form styles */
form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 500;
  font-family: var(--sans);
}

.field input,
.field textarea {
  border: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--gray-900);
  font-family: var(--sans);
  background: transparent;
  outline: none;
  transition: border-color 0.3s var(--ease);
  font-weight: 300;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--blue);
}

.field textarea {
  resize: none;
  min-height: 100px;
  line-height: 1.6;
}

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

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  align-self: flex-start;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.submit-btn:active { transform: translateY(0); }

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}


/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--gray-900);
  padding: 5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .f-logo {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
  font-family: var(--sans);
}

.f-tagline {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.7;
  max-width: 280px;
  font-weight: 300;
}

.f-col h4 {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-family: var(--sans);
}

.f-col a,
.f-col span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-weight: 300;
  transition: color 0.3s;
  font-family: var(--sans);
}

.f-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
  font-family: var(--sans);
}

.footer-bottom a {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s;
  font-family: var(--sans);
}

.footer-bottom a:hover { color: rgba(255, 255, 255, 0.5); }


/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */

.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.wa-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.08); }
}


/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */

@media (max-width: 1024px) {
  :root {
    --section-pad: 6rem;
    --gutter: 2.5rem;
  }

  .quienes-grid     { gap: 4rem; }
  .bene-header      { gap: 4rem; }
  .form-grid        { gap: 4rem; }
  .faq-grid         { gap: 4rem; }

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

  .footer-top       { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand     { grid-column: 1 / -1; }

  .metodologia-steps::before { display: none; }
}


/* =============================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================= */

@media (max-width: 768px) {
  :root {
    --section-pad: 5rem;
    --gutter: 1.5rem;
  }

  /* Nav mobile */
  .nav-toggle {
    display: flex;
    z-index: 10;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-900);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 5;
  }

  .nav-links.open { transform: translateX(0); }

  .nav-links a {
    font-size: 1rem !important;
    color: var(--white) !important;
    letter-spacing: 0.12em;
  }

  .nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 0.75rem 2rem !important;
  }

  /* Hero */
  .hero-content { padding: 0 var(--gutter); }
  .hero-scroll  { display: none; }

  /* Grids → single column */
  .quienes-grid,
  .bene-header,
  .form-grid,
  .faq-grid,
  .cta-inner    { grid-template-columns: 1fr; gap: 3rem; }

  .quienes-img  { order: -1; }

  .quienes-img::before { display: none; }

  .stat-pill {
    position: static;
    display: inline-block;
    margin-top: 1.5rem;
  }

  .servicios-header { grid-template-columns: 1fr; gap: 1.5rem; }

  .servicios-grid,
  .problemas-grid,
  .sectores-grid    { grid-template-columns: 1fr; }

  .metodologia-steps { grid-template-columns: 1fr; gap: 3rem; }

  .bene-list { grid-template-columns: 1fr; gap: 1.5rem; }

  .form-row { grid-template-columns: 1fr; }

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

  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .cta-actions  { align-items: stretch; }
  .btn-white,
  .btn-ghost-white { text-align: center; justify-content: center; }

  .bene-img img { height: 300px; }
  .bene-caption { position: static; max-width: 100%; }

  .servicios-grid { grid-template-columns: 1fr 1fr; }
}


/* =============================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================= */

@media (max-width: 480px) {
  .servicios-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(2.25rem, 10vw, 3rem); }

  .submit-btn { align-self: stretch; justify-content: center; }
}
