/* ==========================================================================
   EDIFAST - Sistema de diseño principal
   Construido sobre: Georgia (títulos) + Montserrat (cuerpo)
   Paleta: #1428F5 azul EDIFAST · #FFFFFF · #000000
   ========================================================================== */

/* ----- Variables raíz ----- */
:root {
  /* Colores marca */
  --brand-blue:       #1428F5;
  --brand-blue-dark:  #0A1F8C;
  --brand-blue-soft:  #F0F2FE;
  --brand-white:      #FFFFFF;
  --brand-black:      #000000;

  /* Colores de apoyo */
  --bg-soft:          #F4F6FB;
  --border-light:     #E5E7EB;
  --text-primary:     #0B1020;
  --text-secondary:   #4B5563;
  --text-muted:       #6B7280;

  /* Tipografía */
  --font-display:     'Georgia', 'Times New Roman', serif;
  --font-body:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading:     'Montserrat', sans-serif; /* Para impacto moderno */

  /* Sistema de tamaños fluido */
  --fs-xs:    clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
  --fs-sm:    clamp(0.875rem, 0.8rem + 0.3vw, 0.95rem);
  --fs-base:  clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --fs-lg:    clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --fs-xl:    clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl:   clamp(2rem, 1.6rem + 2vw, 3rem);
  --fs-4xl:   clamp(2.5rem, 2rem + 3vw, 4.5rem);
  --fs-5xl:   clamp(3rem, 2.4rem + 4vw, 6rem);

  /* Espaciado */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  /* Bordes y radios */
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --radius-full:  9999px;

  /* Sombras */
  --shadow-sm:  0 1px 2px rgba(11, 16, 32, 0.05);
  --shadow:     0 4px 12px rgba(11, 16, 32, 0.08);
  --shadow-lg:  0 12px 32px rgba(11, 16, 32, 0.12);
  --shadow-xl:  0 24px 48px rgba(11, 16, 32, 0.16);
  --shadow-blue: 0 10px 30px rgba(20, 40, 245, 0.25);

  /* Transiciones */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Contenedor */
  --container-max: 1280px;
  --container-px:  clamp(1rem, 3vw, 2.5rem);

  /* Header altura */
  --header-h: 76px;
}

/* ----- Reset y base ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--brand-blue-dark); }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul { list-style: none; }

::selection {
  background-color: var(--brand-blue);
  color: var(--brand-white);
}

/* ----- Contenedor ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

/* ----- Tipografía ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-5xl); font-weight: 900; }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-blue);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--brand-blue);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-title .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: var(--space-8);
}

/* ----- Botones ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--t-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  color: var(--brand-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(20, 40, 245, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--brand-white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-blue);
  padding: 0.75rem 0;
}

.btn-ghost:hover { color: var(--brand-blue-dark); }
.btn-ghost::after {
  content: '→';
  margin-left: 0.25rem;
  transition: transform var(--t-fast);
}
.btn-ghost:hover::after { transform: translateX(4px); }

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--t-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  transition: opacity var(--t-fast);
}

.brand:hover { opacity: 0.85; color: var(--text-primary); }

.brand-mark { width: 36px; height: 36px; color: var(--brand-blue); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-list a {
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width var(--t-base);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--t-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--brand-blue);
  transition: width 50ms linear;
}

/* ----- HERO ----- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-10);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--brand-blue-soft);
  border: 1px solid rgba(20, 40, 245, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-blue);
  margin-bottom: var(--space-6);
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero h1 .accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue);
}

.hero-description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Hero visual (isométrico animado) */
.hero-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.hero-visual-frame {
  position: absolute;
  inset: 0;
  background: var(--brand-blue);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
}

.hero-iso-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  color: rgba(255, 255, 255, 0.95);
}

.hero-visual-tag {
  position: absolute;
  background: var(--brand-white);
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
  animation: floatY 4s ease-in-out infinite;
}

.hero-visual-tag svg {
  width: 28px;
  height: 28px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.hero-visual-tag .tag-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.hero-tag-1 { top: 10%; right: -8%; }
.hero-tag-2 { bottom: 12%; left: -10%; animation-delay: -2s; }

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

/* Decoración isométrica fondo hero */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image:
    linear-gradient(30deg, var(--brand-blue) 12%, transparent 12.5%, transparent 87%, var(--brand-blue) 87.5%, var(--brand-blue)),
    linear-gradient(150deg, var(--brand-blue) 12%, transparent 12.5%, transparent 87%, var(--brand-blue) 87.5%, var(--brand-blue));
  background-size: 80px 140px;
  pointer-events: none;
}

/* ----- Tira de confianza ----- */
.trust-strip {
  padding: var(--space-6) 0;
  background: var(--text-primary);
  color: var(--brand-white);
}

.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.trust-item .trust-strong {
  font-weight: 700;
  color: var(--brand-white);
}

/* ----- Secciones genéricas ----- */
.section {
  padding: var(--space-16) 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.center .eyebrow,
.section-header.center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section-header.center .eyebrow {
  justify-content: center;
}

.bg-soft { background-color: var(--bg-soft); }

/* ----- Servicios ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.service-card {
  position: relative;
  padding: var(--space-6);
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--brand-blue);
  transition: width var(--t-slow);
}

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

.service-card:hover::before { width: 100%; }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  transition: all var(--t-base);
}

.service-card:hover .service-icon {
  background: var(--brand-blue);
  color: var(--brand-white);
  transform: rotate(-6deg);
}

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

.service-card h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-3);
}

.service-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-5);
}

.service-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-features li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.5rem;
  width: 6px;
  height: 6px;
  background: var(--brand-blue);
  transform: rotate(45deg);
}

/* ----- Proyectos / Portafolio ----- */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-8);
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-base);
}

.filter-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.filter-btn.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--brand-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-base);
  background: var(--bg-soft);
}

.project-card:nth-child(3n+1) { aspect-ratio: 4 / 5; }
.project-card:nth-child(3n+2) { aspect-ratio: 4 / 5; }

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

.project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 16, 32, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-5);
  color: var(--brand-white);
}

.project-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--brand-blue);
  background: var(--brand-white);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  align-self: flex-start;
  margin-bottom: var(--space-3);
}

.project-title {
  font-size: var(--fs-xl);
  margin-bottom: 0.25rem;
  color: var(--brand-white);
}

.project-meta {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Placeholder image (gradient) */
.placeholder-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1428F5 0%, #0A1F8C 100%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-align: center;
  padding: 1rem;
  font-weight: 500;
}

.placeholder-img.alt-1 { background: linear-gradient(135deg, #1a2236 0%, #0f1729 100%); }
.placeholder-img.alt-2 { background: linear-gradient(135deg, #1428F5 0%, #1a2236 100%); }
.placeholder-img.alt-3 { background: linear-gradient(135deg, #4B5563 0%, #1F2937 100%); }
.placeholder-img.alt-4 { background: linear-gradient(135deg, #0A1F8C 0%, #1428F5 50%, #4B5563 100%); }

.placeholder-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px);
  pointer-events: none;
}

.projects-cta {
  text-align: center;
  margin-top: var(--space-8);
}

/* ----- Proceso ----- */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  position: relative;
}

.process-step {
  position: relative;
  padding: var(--space-6) var(--space-5);
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  transition: all var(--t-base);
}

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

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-style: italic;
  font-weight: 400;
  color: var(--brand-blue);
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.4;
}

.process-step:hover .step-number { opacity: 1; }

.process-step h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.process-step p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

/* ----- ¿Por qué EDIFAST? ----- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.why-feature {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-light);
}

.why-feature:last-child { border-bottom: none; }

.why-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--brand-blue);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-feature-icon svg { width: 24px; height: 24px; }

.why-feature h4 {
  font-size: var(--fs-lg);
  margin-bottom: 0.4rem;
}

.why-feature p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.why-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-soft);
}

.why-visual .placeholder-img {
  background: linear-gradient(135deg, #1428F5 0%, #0A1F8C 100%);
}

.why-stat-card {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: var(--space-5);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.why-stat-value {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1;
}

.why-stat-label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ----- Diáspora ----- */
.diaspora {
  background: var(--text-primary);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.diaspora::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(20, 40, 245, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.diaspora .eyebrow { color: var(--brand-blue); }
.diaspora .eyebrow::before { background: var(--brand-blue); }
.diaspora h2 { color: var(--brand-white); }
.diaspora .section-subtitle { color: rgba(255, 255, 255, 0.75); }

.diaspora-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.diaspora-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.diaspora-feature {
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all var(--t-base);
}

.diaspora-feature:hover {
  background: rgba(20, 40, 245, 0.15);
  border-color: var(--brand-blue);
  transform: translateY(-4px);
}

.diaspora-feature-icon {
  width: 40px;
  height: 40px;
  color: var(--brand-blue);
  margin-bottom: var(--space-3);
}

.diaspora-feature h4 {
  color: var(--brand-white);
  font-size: var(--fs-base);
  margin-bottom: 0.4rem;
}

.diaspora-feature p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
}

.diaspora-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--brand-white);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ea952;
  color: var(--brand-white);
  transform: translateY(-2px);
}

.diaspora-flags {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.flag-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.diaspora-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ----- Calculadora ----- */
.calculator {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--brand-white) 100%);
}

.calc-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--brand-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.calc-form {
  padding: var(--space-8);
}

.calc-result {
  background: var(--brand-blue);
  color: var(--brand-white);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.calc-result::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.calc-form h3 {
  margin-bottom: var(--space-2);
}

.calc-form p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-6);
}

.calc-field {
  margin-bottom: var(--space-5);
}

.calc-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.calc-field input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-light);
  border-radius: 3px;
  outline: none;
}

.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--brand-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.calc-field input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--brand-blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow);
}

.calc-value-display {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--brand-blue);
  margin-top: 0.5rem;
}

.calc-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.calc-radio {
  position: relative;
}

.calc-radio input { position: absolute; opacity: 0; }

.calc-radio label {
  display: block;
  padding: 0.75rem;
  text-align: center;
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--t-base);
  margin: 0;
}

.calc-radio input:checked + label {
  background: var(--brand-blue-soft);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  font-weight: 700;
}

.calc-result h3 {
  color: var(--brand-white);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
  position: relative;
}

.calc-result .calc-estimate {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin: var(--space-3) 0;
  line-height: 1;
  position: relative;
}

.calc-result .calc-range {
  font-size: var(--fs-sm);
  opacity: 0.85;
  margin-bottom: var(--space-5);
  position: relative;
}

.calc-result .calc-note {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: auto;
  position: relative;
}

.calc-result .btn {
  position: relative;
  background: var(--brand-white);
  color: var(--brand-blue);
  margin-top: var(--space-4);
}

.calc-result .btn:hover {
  background: var(--brand-black);
  color: var(--brand-white);
}

/* ----- Testimonios ----- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}

.testimonial {
  padding: var(--space-6);
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--t-base);
}

.testimonial:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--brand-blue);
  opacity: 0.2;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: #FBBF24;
}

.testimonial-stars svg { width: 18px; height: 18px; fill: currentColor; }

.testimonial-text {
  font-size: var(--fs-base);
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

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

/* ----- FAQ ----- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--t-base);
}

.faq-question:hover { color: var(--brand-blue); }

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-base);
  position: relative;
}

.faq-question .faq-icon::before,
.faq-question .faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: all var(--t-base);
}

.faq-question .faq-icon::before {
  width: 12px; height: 1.5px;
}

.faq-question .faq-icon::after {
  width: 1.5px; height: 12px;
}

.faq-item.active .faq-question {
  color: var(--brand-blue);
}

.faq-item.active .faq-icon {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--brand-white);
}

.faq-item.active .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow), padding var(--t-base);
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding-bottom: var(--space-5);
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: var(--fs-base);
}

/* ----- Contacto ----- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-10);
  align-items: start;
}

.contact-info {
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-channel {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--t-base);
  color: var(--text-primary);
}

.contact-channel:hover {
  border-color: var(--brand-blue);
  transform: translateX(4px);
  color: var(--text-primary);
}

.contact-channel-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-channel-icon svg { width: 24px; height: 24px; }

.contact-channel strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-channel span {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.contact-form {
  padding: var(--space-8);
  background: var(--brand-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  margin-bottom: var(--space-4);
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  background: var(--brand-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  transition: all var(--t-base);
  font-family: var(--font-body);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(20, 40, 245, 0.1);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field .error-msg {
  color: #DC2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #DC2626;
}

.form-field.has-error .error-msg { display: block; }

/* Honeypot (oculto para humanos) */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.form-checkbox input { margin-top: 4px; flex-shrink: 0; }

.form-submit {
  width: 100%;
  padding: 1.1rem;
  font-size: var(--fs-base);
}

.form-feedback {
  padding: var(--space-4);
  border-radius: var(--radius);
  margin-bottom: var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  background: #D1FAE5;
  color: #065F46;
  display: block;
}

.form-feedback.error {
  background: #FEE2E2;
  color: #991B1B;
  display: block;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--text-primary);
  color: rgba(255, 255, 255, 0.7);
  padding-top: var(--space-12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);
}

.footer-logo {
  width: 48px;
  height: 48px;
  color: var(--brand-blue);
  margin-bottom: var(--space-4);
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--brand-white);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-white);
  margin-bottom: var(--space-5);
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  transition: color var(--t-fast);
}

.footer-col ul li a:hover { color: var(--brand-white); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-contact svg {
  width: 18px; height: 18px;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--space-5);
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--t-base);
}

.footer-social a:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--brand-white);
  transform: translateY(-3px);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-5) 0;
  font-size: 0.85rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ----- WhatsApp flotante ----- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: all var(--t-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #1ea952;
  color: var(--brand-white);
}

.whatsapp-float svg { width: 32px; height: 32px; }

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ----- Back to top ----- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-base);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-3px);
}

.back-to-top svg { width: 20px; height: 20px; }

/* ----- Animaciones on-scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ----- Page hero (para páginas internas) ----- */
.page-hero {
  padding: calc(var(--header-h) + var(--space-10)) 0 var(--space-10);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--brand-white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-4);
}

.page-hero .breadcrumb {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.page-hero .breadcrumb a { color: var(--brand-blue); }

/* ----- Utilidades ----- */
.text-center { text-align: center; }
.no-scroll { overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@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;
  }
}
