/* ============================================================
   MAIN.CSS — Semillas Digitales
   ============================================================ */

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 2. TIPOGRAFÍA ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.875rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
p  { font-size: var(--text-base); line-height: 1.7; color: var(--color-text-muted); }

/* ── 3. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}
.section-py { padding-block: var(--section-py); }
.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}
.section-label--accent { color: var(--color-accent); }
.section-label--muted  { color: var(--color-text-lighter); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-6); }

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.875rem 2rem; border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  transition: var(--transition-base); white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary); color: var(--color-white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(57,71,238,0.40); }
.btn-accent {
  background: var(--color-accent); color: var(--color-dark);
}
.btn-accent:hover { background: var(--color-accent-dark); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--color-white); color: var(--color-white); padding: calc(0.875rem - 2px) calc(2rem - 2px);
}
.btn-outline:hover { background: var(--color-white); color: var(--color-primary); }
.btn-ghost {
  color: var(--color-primary); padding: 0.875rem 1.5rem;
  border: 2px solid transparent;
}
.btn-ghost:hover { border-color: var(--color-primary); }
.btn-whatsapp {
  background: #25D366; color: var(--color-white);
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ── 5. TOPBAR ────────────────────────────────────────────── */
.topbar {
  background: var(--color-primary);
  color: var(--color-white);
  height: var(--topbar-height);
  display: flex; align-items: center;
  position: relative; z-index: 100;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; gap: var(--space-4);
}
.topbar__items {
  display: flex; align-items: center; gap: var(--space-8);
}
.topbar__item {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 500;
  color: rgba(255,255,255,0.90);
  transition: var(--transition-fast);
}
.topbar__item:hover { color: var(--color-accent); }
.topbar__item img { width: 14px; height: 14px; filter: brightness(10); }
.topbar__sep { color: rgba(255,255,255,0.30); font-size: var(--text-xs); }
.topbar__cta {
  background: var(--color-accent); color: var(--color-dark);
  padding: 0.375rem 1.125rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
  transition: var(--transition-fast); white-space: nowrap;
}
.topbar__cta:hover { background: var(--color-accent-dark); }

/* ── 6. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 90;
  height: var(--navbar-height);
  display: flex; align-items: center;
  background: var(--navbar-bg-top);
  transition: var(--navbar-transition);
  box-shadow: 0 1px 0 var(--color-gray-200);
}
.navbar.scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(4,18,45,0.40);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
/* Logo dual: versión oscura en navbar blanco, versión blanca cuando scrolled */
.navbar__logo {
  display: block; border-radius: var(--radius-md);
  padding: 4px 8px; margin-left: -8px;
  flex-shrink: 0;
}
.navbar__logo img { height: 44px; width: auto; display: block; }
/* Especificidad aumentada para superar ".navbar__logo img { display:block }" */
.navbar__logo .logo-default { display: block; }
.navbar__logo .logo-white   { display: none; }
.navbar__logo:hover .logo-default { display: none; }
.navbar__logo:hover .logo-white   { display: block; }
.navbar.scrolled .navbar__logo .logo-default { display: none; }
.navbar.scrolled .navbar__logo .logo-white   { display: block; }
.navbar__inner { gap: var(--space-6); }
.navbar__menu {
  display: flex; align-items: center; gap: var(--space-5);
  margin-right: auto;
}
/* ── Dropdown Servicios ────────────────────────────────── */
.navbar__dropdown-wrap { position: relative; }
.navbar__link--drop { display: flex; align-items: center; gap: 5px; }
.drop-arrow {
  font-size: 9px; display: inline-block;
  transition: transform var(--transition-fast);
}
.navbar__dropdown-wrap:hover .drop-arrow,
.navbar__dropdown-wrap:focus-within .drop-arrow { transform: rotate(180deg); }
/* Puente invisible entre el trigger y el panel — evita que el hover se corte */
.navbar__dropdown-wrap::after {
  content: ''; position: absolute;
  top: 100%; left: -20px; right: -20px;
  height: 14px; /* cubre el gap de 10px + margen */
  z-index: 201;
}
.navbar__dropdown {
  position: absolute; top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(4,18,45,0.18);
  min-width: 210px; padding: var(--space-2) 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: 200;
}
.navbar__dropdown::before {
  content: ''; position: absolute; top: -6px;
  left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top: none; border-bottom-color: var(--color-white);
}
.navbar__dropdown-wrap:hover .navbar__dropdown,
.navbar__dropdown-wrap:focus-within .navbar__dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.navbar__dropdown__item {
  display: block; padding: var(--space-3) var(--space-5);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-dark); white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.navbar__dropdown__item:hover { background: rgba(57,71,238,0.06); color: var(--color-primary); }
/* Scrolled state */
.navbar.scrolled .navbar__dropdown { background: #0a1a3a; }
.navbar.scrolled .navbar__dropdown::before { border-bottom-color: #0a1a3a; }
.navbar.scrolled .navbar__dropdown__item { color: rgba(255,255,255,0.82); }
.navbar.scrolled .navbar__dropdown__item:hover { background: rgba(255,255,255,0.08); color: var(--color-accent); }
/* Mobile: dropdown fluye en el menú full-screen */
@media (max-width: 767px) {
  .navbar__dropdown-wrap { width: 100%; }
  .navbar__link--drop { justify-content: space-between; width: 100%; }
  .navbar__dropdown {
    position: static; transform: none;
    opacity: 1; visibility: visible; pointer-events: auto;
    background: rgba(255,255,255,0.05); border-radius: var(--radius-md);
    box-shadow: none; padding: 0; margin-top: var(--space-2);
    max-height: 0; overflow: hidden;
    transition: max-height 0.28s ease;
  }
  .navbar__dropdown.open { max-height: 200px; }
  .navbar__dropdown::before { display: none; }
  .navbar__dropdown__item {
    color: rgba(255,255,255,0.75); font-size: var(--text-lg);
    padding: var(--space-3) var(--space-4);
  }
  .navbar__dropdown__item:hover { background: rgba(255,255,255,0.08); color: var(--color-accent); }
}
/* Links: azul oscuro en fondo blanco (sin scroll) */
.navbar__link {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500;
  color: var(--color-dark); position: relative; padding-bottom: 2px;
  transition: color var(--transition-fast);
}
.navbar__link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width var(--transition-base);
}
.navbar__link:hover,
.navbar__link.active { color: var(--color-primary); }
.navbar__link:hover::after,
.navbar__link.active::after { width: 100%; }
/* Links: blanco/amarillo en fondo oscuro (con scroll) */
.navbar.scrolled .navbar__link { color: rgba(255,255,255,0.85); }
.navbar.scrolled .navbar__link::after { background: var(--color-accent); }
.navbar.scrolled .navbar__link:hover,
.navbar.scrolled .navbar__link.active { color: var(--color-accent); }
/* A/A/A botones de tamaño de fuente */
.font-size-btns { display: flex; gap: 6px; align-items: center; }
.font-size-btn {
  font-family: var(--font-display); font-weight: 700;
  padding: 2px 7px; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(4,18,45,0.07); color: var(--color-dark);
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: 1.5;
}
.font-size-btn:hover { background: rgba(4,18,45,0.14); }
.navbar.scrolled .font-size-btn {
  background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.80);
}
.navbar.scrolled .font-size-btn:hover { background: rgba(255,255,255,0.20); }
.font-size-btn.active { background: var(--color-primary) !important; color: var(--color-white) !important; }
/* Botón CTA del navbar — fuera del <nav>, gap dado por navbar__inner */
.navbar__cta { white-space: nowrap; }
/* Hamburger */
.navbar__toggle { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); }
.navbar__toggle span { display: block; width: 24px; height: 2px; background: var(--color-dark); border-radius: 2px; transition: var(--transition-base); }
.navbar.scrolled .navbar__toggle span { background: var(--color-white); }

/* ── 7. HERO SPLIT CURVED ─────────────────────────────────── */
.hero {
  background: var(--color-dark);
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: clamp(6rem, 12vw, 10rem);
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--topbar-height) - var(--navbar-height));
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(57,71,238,0.20) 0%, transparent 65%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 55fr 45fr;
  gap: var(--space-12); align-items: center; position: relative; z-index: 1;
}
.hero__anim-bar {
  width: 120px; height: var(--anim-bar-height);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  position: relative; overflow: hidden;
  margin-bottom: var(--space-6);
}
.hero__anim-bar::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 40%; height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  animation: slideBar var(--anim-duration) ease-in-out infinite;
}
@keyframes slideBar {
  0%   { left: -40%; }
  50%  { left: 100%; }
  100% { left: -40%; }
}
.hero__tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: rgba(253,184,5,0.15); color: var(--color-accent);
  border: 1px solid rgba(253,184,5,0.30);
  padding: 0.35rem 1rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: var(--space-5);
}
.hero__tag .dot { width: 6px; height: 6px; background: var(--color-accent); border-radius: 50%; }
.hero__h1 {
  color: var(--color-white);
  margin-bottom: var(--space-6);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}
.hero__h1 span { color: var(--color-accent); }
.hero__sub {
  color: var(--color-text-light);
  font-size: var(--text-lg); line-height: 1.7;
  margin-bottom: var(--space-10); max-width: 540px;
}
.hero__actions {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.hero__video-btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--color-white); font-size: var(--text-sm); font-weight: 600;
  font-family: var(--font-display); transition: var(--transition-base);
}
.hero__video-btn:hover { color: var(--color-accent); }
.hero__video-circle {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
}
.hero__video-circle::before,
.hero__video-circle::after {
  content: '';
  position: absolute; inset: 0;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  animation: rippleRing var(--ripple-duration) ease-out infinite;
}
.hero__video-circle::after { animation-delay: calc(var(--ripple-duration) / 2); }
@keyframes rippleRing {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.hero__video-icon {
  position: absolute; inset: 0;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.hero__video-icon svg { width: 18px; height: 18px; fill: white; margin-left: 2px; }
.hero__image-wrap {
  position: relative; display: flex; justify-content: center;
}
.hero__image-wrap img {
  width: 100%; max-width: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}
.hero__curve {
  position: absolute; bottom: -1px; left: 0; right: 0;
  pointer-events: none;
}
.hero__curve svg { width: 100%; height: auto; display: block; }

/* ── 8. THREE PILLARS ─────────────────────────────────────── */
.pillars {
  background: var(--color-white);
  padding-block: var(--section-py);
}
.pillars__header { text-align: center; margin-bottom: var(--space-12); }
.pillars__header h2 { margin-bottom: var(--space-4); }
.pillars__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.pillar-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
  background: var(--color-white);
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pillar-card__img {
  width: 100%; height: 220px; object-fit: cover;
}
.pillar-card__body {
  padding: var(--space-6);
  display: flex; gap: var(--space-4);
}
.pillar-card__icon {
  flex-shrink: 0; width: 52px; height: 52px;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
}
.pillar-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.pillar-card__text h3 { font-size: var(--text-base); margin-bottom: var(--space-2); color: var(--color-dark); }
.pillar-card__text p  { font-size: var(--text-sm); }
.pillar-card__link {
  display: inline-block; margin-top: var(--space-3);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-primary);
  transition: var(--transition-fast);
}
.pillar-card__link:hover { color: var(--color-primary-dark); gap: var(--space-2); }

/* ── 9. STATS SPLIT ───────────────────────────────────────── */
.stats-split {
  background: var(--color-dark);
  padding-block: var(--section-py);
}
.stats-split__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center;
  margin-bottom: var(--space-16);
}
.stats-split__text h2 { color: var(--color-white); margin-bottom: var(--space-4); }
.stats-split__text p  { color: var(--color-text-light); margin-bottom: var(--space-8); }
.progress-item { margin-bottom: var(--space-6); }
.progress-item:last-child { margin-bottom: 0; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text-light); margin-bottom: var(--space-2);
}
.progress-label span { color: var(--color-accent); }
.progress-bar {
  height: var(--progress-height); background: var(--progress-bg);
  border-radius: var(--radius-full); overflow: hidden;
}
.progress-bar__fill {
  height: 100%; background: var(--color-accent);
  border-radius: var(--radius-full);
  width: 0; transition: width var(--progress-duration) ease-out;
}
.progress-bar__fill.animated { width: var(--target-width); }
.stats-split__image img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
}
.stats-split__cta-banner {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-12);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.stats-split__cta-banner h3 { color: var(--color-white); font-size: var(--text-2xl); max-width: 500px; }
.stats-split__cta-banner h3 span { color: var(--color-accent); }

/* ── 10. NOSOTROS SPLIT ───────────────────────────────────── */
.nosotros {
  background: var(--color-white);
  padding-block: var(--section-py);
}
.nosotros__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center;
}
.nosotros__text h2 { margin-bottom: var(--space-6); color: var(--color-dark); }
.nosotros__text p  { margin-bottom: var(--space-6); }
.nosotros__items { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
.nosotros__item {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4); background: var(--color-gray-50);
  border-radius: var(--radius-md); border-left: 3px solid var(--color-primary);
}
.nosotros__item-icon { width: 40px; height: 40px; flex-shrink: 0; padding: var(--space-2); }
.nosotros__item-icon img { width: 100%; height: 100%; object-fit: contain; }
.nosotros__item strong { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--color-dark); }
.nosotros__item span  { font-size: var(--text-xs); color: var(--color-text-muted); }
/* Dual-photo effect */
.dual-photo {
  position: relative;
}
.dual-photo__frames {
  display: flex; gap: var(--dual-gap); background: var(--color-white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl);
}
.dual-photo__half { flex: 1; overflow: hidden; }
.dual-photo__half img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 380px; }
.dual-photo__badge {
  position: absolute; top: -16px; right: -16px;
  background: var(--color-accent); color: var(--color-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  text-align: center;
}
.dual-photo__badge strong { display: block; font-size: var(--text-3xl); font-weight: 800; line-height: 1; }
.dual-photo__badge span { font-size: var(--text-xs); font-weight: 600; }
.dual-photo__card {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6); box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: var(--space-3);
  white-space: nowrap; min-width: 240px;
}
.dual-photo__card-icon { width: 36px; height: 36px; padding: var(--space-2); background: var(--color-primary-light); border-radius: var(--radius-md); }
.dual-photo__card-icon img { width: 100%; height: 100%; object-fit: contain; }
.dual-photo__card-text strong { display: block; font-size: var(--text-sm); color: var(--color-dark); font-weight: 700; }
.dual-photo__card-text span { font-size: var(--text-xs); color: var(--color-text-muted); }
.dual-photo__stars { color: var(--color-accent); font-size: var(--text-sm); letter-spacing: 2px; }

/* ── 11. CLIENT LOGOS ─────────────────────────────────────── */
.logos {
  background: var(--color-gray-50);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.logos__header { text-align: center; margin-bottom: var(--space-12); }
.logos__header h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); color: var(--color-dark); }
.logos__header p { font-size: var(--text-base); }
.logos__grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--space-6); align-items: center;
}
.logo-item {
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--color-white); box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  height: 80px; position: relative; overflow: hidden;
}
.logo-item:hover { background: var(--color-dark); box-shadow: var(--shadow-card); transform: translateY(-3px); }
/* Logo swap: normal (gris) → blanco sobre fondo oscuro al hover */
.logo-item .logo-normal {
  max-height: 44px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(0.55); transition: var(--transition-base);
  display: block;
}
.logo-item .logo-hover {
  max-height: 44px; width: auto; object-fit: contain;
  display: none; position: absolute;
}
.logo-item:hover .logo-normal { display: none; }
.logo-item:hover .logo-hover  { display: block; }

/* Foto única de fundadores (reemplaza dual-photo en index) */
.single-photo {
  position: relative;
}
.single-photo__img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); display: block;
}
.single-photo .dual-photo__badge {
  position: absolute; top: -16px; right: -16px;
  background: var(--color-accent); color: var(--color-dark);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  text-align: center;
}
.single-photo .dual-photo__badge strong { display: block; font-size: var(--text-3xl); font-weight: 800; line-height: 1; }
.single-photo .dual-photo__badge span { font-size: var(--text-xs); font-weight: 600; }
.single-photo .dual-photo__card {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6); box-shadow: var(--shadow-xl);
  display: flex; align-items: center; gap: var(--space-3);
  white-space: nowrap; min-width: 240px;
}

/* ── 12. HISTORY ACCORDION ────────────────────────────────── */
.history {
  background: var(--color-white);
  padding-block: var(--section-py);
}
.history__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-16); align-items: center;
}
.history__image { position: relative; }
/* 3-photo team trio */
.history__team-trio {
  display: flex; gap: var(--space-2);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl);
}
.history__team-col { flex: 1; overflow: hidden; }
.history__team-col img {
  width: 100%; height: 100%; min-height: 360px;
  object-fit: cover; object-position: center top; display: block;
}
.history__dots {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 6px;
  padding: var(--space-4);
}
.history__dots span { width: 6px; height: 6px; background: var(--color-gray-200); border-radius: 50%; display: block; }
.history__dots span.active { background: var(--color-primary); }
.history__text h2 { color: var(--color-dark); margin-bottom: var(--space-6); }
.accordion-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-3);
  transition: var(--transition-base);
}
.accordion-item.is-open { border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.accordion-trigger {
  width: 100%; padding: var(--space-5) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  background: var(--color-white); text-align: left;
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  color: var(--color-dark); cursor: pointer; transition: var(--transition-fast);
}
.accordion-item.is-open .accordion-trigger { background: var(--color-primary); color: var(--color-white); }
.accordion-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--color-gray-100); display: flex; align-items: center; justify-content: center; transition: var(--transition-base); }
.accordion-item.is-open .accordion-icon { background: rgba(255,255,255,0.2); transform: rotate(45deg); }
.accordion-icon svg { width: 10px; height: 10px; stroke: currentColor; }
.accordion-body { height: 0; overflow: hidden; transition: height var(--transition-base); }
.accordion-body__inner { padding: var(--space-5) var(--space-6); }
.accordion-body__inner p { font-size: var(--text-sm); }

/* ── 13. WHY CHOOSE DARK ──────────────────────────────────── */
.why-choose {
  background: var(--color-dark);
  padding-block: var(--section-py);
  position: relative; overflow: hidden;
}
.why-choose::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(57,71,238,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.why-choose__header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-10); align-items: end; margin-bottom: var(--space-12);
}
.why-choose__header h2 { color: var(--color-white); }
.why-choose__header p  { color: var(--color-text-light); }
.why-choose__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.why-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition-base);
}
.why-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.why-card__img { width: 100%; height: 180px; object-fit: cover; opacity: 0.6; }
.why-card__body { padding: var(--space-6); }
.why-card__icon-wrap {
  width: 52px; height: 52px; background: var(--color-accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  padding: var(--space-3); margin-bottom: var(--space-4); margin-top: calc(var(--space-6) * -1 - 26px);
  position: relative; z-index: 1; border: 3px solid var(--color-dark);
}
.why-card__icon-wrap img { width: 100%; height: 100%; object-fit: contain; }
.why-card h3 { color: var(--color-white); font-size: var(--text-base); margin-bottom: var(--space-3); }
.why-card p  { color: var(--color-text-light); font-size: var(--text-sm); }

/* ── 14. FOUNDER SECTION ──────────────────────────────────── */
.founder {
  background: var(--color-white);
  padding-block: var(--section-py);
}
.founder__inner {
  display: grid; grid-template-columns: auto 1fr;
  gap: var(--space-12); align-items: start; margin-bottom: var(--space-16);
}
.founder__photo { position: relative; flex-shrink: 0; width: 360px; }
.founder__photo img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); }
.founder__photo-badge {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--color-primary); color: var(--color-white);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md);
  text-align: center; white-space: nowrap; box-shadow: var(--shadow-blue);
}
.founder__photo-badge strong { display: block; font-size: var(--text-3xl); font-weight: 800; line-height: 1; }
.founder__photo-badge span { font-size: var(--text-xs); font-weight: 500; }
.founder__text { display: flex; flex-direction: column; justify-content: center; }
.founder__text h2 { color: var(--color-dark); margin-bottom: var(--space-5); }
.founder__text p  { margin-bottom: var(--space-5); }
.founder__counters {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--space-6); padding: var(--space-8) 0;
  border-top: 1px solid var(--color-gray-200);
  border-bottom: 1px solid var(--color-gray-200);
  margin-bottom: var(--space-16);
}
.counter-item { text-align: center; }
.counter-item__icon { width: 40px; height: 40px; margin: 0 auto var(--space-3); padding: var(--space-2); }
.counter-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.counter-item__number {
  font-family: var(--font-display); font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--color-primary); line-height: 1;
  margin-bottom: var(--space-1);
}
.counter-item__label { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }
/* Fullwidth video section */
.founder__video-section {
  margin-inline: calc(var(--container-padding) * -1);
  position: relative;
}
.founder__video-section video,
.founder__video-section img {
  width: 100%; max-height: 480px; object-fit: cover; display: block;
}
.founder__video-cta {
  position: absolute; top: 50%; left: 5%;
  transform: translateY(-50%);
  background: var(--color-dark-80); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--color-white); padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-lg); max-width: 340px;
}
.founder__video-cta h3 { font-size: var(--text-lg); margin-bottom: var(--space-4); color: var(--color-white); }
.founder__video-cta ul { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.founder__video-cta ul li {
  font-size: var(--text-sm); color: var(--color-text-light);
  display: flex; align-items: center; gap: var(--space-2);
}
.founder__video-cta ul li::before { content: '✓'; color: var(--color-accent); font-weight: 700; }

/* ── 15. TEAM / SERVICES STRIP / FAQ ──────────────────────── */
.team-section {
  background: var(--color-gray-50);
  padding-block: var(--section-py);
}
.team-section__header { text-align: center; margin-bottom: var(--space-12); }
.team-section__header h2 { color: var(--color-dark); margin-bottom: var(--space-3); }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); margin-bottom: var(--space-16); max-width: 960px; margin-inline: auto; margin-bottom: var(--space-16); }
.team-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: var(--transition-base); text-align: center;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.team-card__photo { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.team-card__body { padding: var(--space-6); }
.team-card__name { font-size: var(--text-xl); color: var(--color-dark); margin-bottom: var(--space-1); }
.team-card__role {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  color: var(--color-primary); background: var(--color-primary-light);
  padding: 0.2rem 0.75rem; border-radius: var(--radius-full); margin-bottom: var(--space-3);
}
.team-card__bio { font-size: var(--text-sm); }
/* Services strip */
.services-strip {
  background: var(--color-dark);
  padding: var(--space-10) 0;
  margin-bottom: var(--space-16);
}
.services-strip__inner {
  display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap;
}
.services-strip__title {
  color: var(--color-white); font-size: var(--text-lg); font-weight: 700;
  font-family: var(--font-display); min-width: 260px; max-width: 280px;
}
.services-strip__title span { color: var(--color-accent); }
.services-strip__items {
  display: flex; gap: var(--space-8); flex: 1; flex-wrap: wrap;
}
.services-strip__item {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--color-text-light); font-size: var(--text-sm); font-weight: 500;
}
.services-strip__item img { width: 32px; height: 32px; }
/* FAQ */
.faq-section { }
.faq-section__header { margin-bottom: var(--space-10); }
.faq-section__header h2 { color: var(--color-dark); margin-bottom: var(--space-3); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.faq-inner { display: flex; flex-direction: column; gap: var(--space-3); }

/* ── 16. CONTACT / TESTIMONIALS / BLOG ───────────────────── */
.contact-section {
  background: var(--color-white);
  padding-block: var(--section-py);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-8); margin-bottom: var(--space-20);
}
.contact-card {
  background: var(--color-dark); border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8); display: flex; flex-direction: column; justify-content: center;
}
.contact-card h2 { color: var(--color-white); margin-bottom: var(--space-4); }
.contact-card > p  { color: var(--color-text-light); margin-bottom: var(--space-8); }
.contact-card__items { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-item {
  display: flex; align-items: center; gap: var(--space-4);
  color: var(--color-text-light); font-size: var(--text-sm);
  transition: var(--transition-fast);
}
.contact-item:hover { color: var(--color-accent); }
.contact-item__icon { width: 44px; height: 44px; background: rgba(255,255,255,0.08); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item__icon img { width: 22px; height: 22px; filter: brightness(10); }
.contact-item strong { display: block; font-weight: 600; color: var(--color-white); margin-bottom: 2px; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-xl); min-height: 340px; }
/* Testimonials world map */
.testimonials {
  margin-bottom: var(--space-16);
}
.testimonials__header { text-align: center; margin-bottom: var(--space-8); }
.testimonials__header h2 { color: var(--color-dark); margin-bottom: var(--space-3); }
.testimonials__map-wrap {
  position: relative; background: var(--color-gray-50); border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.testimonials__map {
  width: 100%; max-width: 700px; margin: 0 auto;
  opacity: 0.30; display: block;
}
.testimonials__slider {
  display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6);
  margin-top: var(--space-8);
}
.testi-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.testi-card__quote { font-size: var(--text-sm); color: var(--color-text); line-height: 1.7; margin-bottom: var(--space-5); font-style: italic; }
.testi-card__author { display: flex; align-items: center; gap: var(--space-3); }
.testi-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-card__name { font-weight: 700; font-size: var(--text-sm); color: var(--color-dark); }
.testi-card__role { font-size: var(--text-xs); color: var(--color-text-muted); }
.testi-card__stars { color: var(--color-accent); font-size: var(--text-sm); margin-bottom: var(--space-3); letter-spacing: 2px; }
/* Blog preview */
.blog-preview { }
.blog-preview__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-8);
}
.blog-preview__header h2 { color: var(--color-dark); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); }
.blog-card {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); background: var(--color-white);
  transition: var(--transition-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.blog-card__img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: var(--space-5); }
.blog-card__cat {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-primary);
  background: var(--color-primary-light); padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full); margin-bottom: var(--space-3);
}
.blog-card__title { font-size: var(--text-base); color: var(--color-dark); margin-bottom: var(--space-3); line-height: 1.4; font-weight: 700; }
.blog-card__excerpt { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.blog-card__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); transition: var(--transition-fast); }
.blog-card__link:hover { color: var(--color-primary-dark); }

/* ── 17. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--color-dark);
  padding-top: clamp(3rem, 6vw, 5rem);
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-8); padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo img { height: 44px; margin-bottom: var(--space-4); }
.footer__tagline { color: var(--color-text-light); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.footer__copyright { color: var(--color-text-lighter); font-size: var(--text-xs); margin-bottom: var(--space-5); }
.footer__socials { display: flex; gap: var(--space-3); }
.footer__social {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-base);
}
.footer__social:hover { background: var(--color-primary); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; fill: white; }
.footer__col h4 { color: var(--color-white); font-size: var(--text-sm); font-weight: 700; margin-bottom: var(--space-5); text-transform: uppercase; letter-spacing: 0.08em; }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { color: var(--color-text-lighter); font-size: var(--text-sm); transition: var(--transition-fast); }
.footer__links a:hover { color: var(--color-accent); }
.footer__contact-items { display: flex; flex-direction: column; gap: var(--space-4); }
.footer__contact-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  color: var(--color-text-lighter); font-size: var(--text-sm);
}
.footer__contact-item img { width: 16px; height: 16px; filter: brightness(10); opacity: 0.6; margin-top: 2px; flex-shrink: 0; }
.footer__newsletter-desc { color: var(--color-text-light); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.newsletter-form { display: flex; flex-direction: column; gap: var(--space-3); }
.newsletter-form input {
  width: 100%; padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); color: var(--color-white); font-size: var(--text-sm);
  outline: none; font-family: var(--font-sans);
  transition: border-color var(--transition-fast);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.40); }
.newsletter-form input:focus { border-color: var(--color-primary); }
.footer__bottom {
  text-align: center; padding: var(--space-5) 0;
  color: var(--color-text-lighter); font-size: var(--text-xs);
}

/* ── 18. FLOATING BUTTONS ─────────────────────────────────── */
.floating-btns {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 200;
  display: flex; flex-direction: column; gap: var(--space-3);
  align-items: flex-end;
}
.floating-btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.floating-btn:hover { transform: scale(1.12); box-shadow: 0 6px 24px rgba(0,0,0,0.40); }
.floating-btn--wa { background: #25D366; position: relative; }
.floating-btn--wa::after {
  content: ''; position: absolute; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366;
  animation: wa-pulse 2.4s ease-out infinite; z-index: -1;
}
.floating-btn--call { background: #0056D2; }
.floating-btn svg { width: 28px; height: 28px; fill: white; flex-shrink: 0; }
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.scroll-top {
  position: fixed; bottom: 2rem; right: calc(1.5rem + 52px + 1rem); z-index: 200;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(4,18,45,0.80); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
  cursor: pointer;
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top svg { width: 16px; height: 16px; stroke: white; }

/* ── 19. LIGHTBOX ─────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,18,45,0.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
}
.lightbox-overlay.visible { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; width: 90vw; max-width: 900px; }
.lightbox-inner iframe { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); border: none; }
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  background: none; font-size: 1.5rem; color: white;
  line-height: 1; cursor: pointer; transition: var(--transition-fast);
}
.lightbox-close:hover { color: var(--color-accent); }

/* ── 20a. SERVICIOS INDEX CARDS ───────────────────────────── */
.servicios-index { background: var(--color-gray-50); }
.servicios-index__grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: var(--space-8);
}
.servicio-card {
  background: var(--color-white); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: var(--transition-base);
}
.servicio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.servicio-card__img-wrap { position: relative; overflow: hidden; }
.servicio-card__img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.servicio-card:hover .servicio-card__img { transform: scale(1.04); }
.servicio-card__num {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: var(--color-dark); color: var(--color-accent);
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 800;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.servicio-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.servicio-card__icon {
  width: 52px; height: 52px; background: var(--color-primary-light);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  padding: var(--space-3); margin-bottom: var(--space-4);
}
.servicio-card__icon img { width: 100%; height: 100%; object-fit: contain; }
.servicio-card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--color-dark); line-height: 1.25; margin-bottom: var(--space-4);
}
.servicio-card__desc { font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--space-5); flex: 1; }
.servicio-card__list {
  list-style: none; display: flex; flex-direction: column; gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.servicio-card__list li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text); line-height: 1.5;
}
.servicio-card__list li img { flex-shrink: 0; margin-top: 2px;
  filter: invert(30%) sepia(100%) saturate(2000%) hue-rotate(220deg); }
.servicio-card__cta { width: 100%; justify-content: center; margin-top: auto; }
@media (max-width: 1023px) {
  .servicios-index__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 767px) {
  .servicios-index__grid { max-width: 100%; }
}

/* ── 20b. PEDACITOS VISUALES FLOTANTES ────────────────────── */
@keyframes floatUpDown {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-14px) rotate(3deg); }
}
.pedacito {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  animation: floatUpDown 8s ease-in-out infinite;
  will-change: transform;
}
.pedacito:nth-child(2) { animation-duration: 10s; animation-delay: -3s; }
.pedacito:nth-child(3) { animation-duration:  9s; animation-delay: -6s; }
.pedacito:nth-child(4) { animation-duration: 11s; animation-delay: -1s; }
.pedacito:nth-child(5) { animation-duration:  7s; animation-delay: -5s; }
@media (prefers-reduced-motion: reduce) {
  .pedacito { animation: none; }
}

/* ── 20b. SLIDER TESTIMONIOS ──────────────────────────────── */
.testimonials__slider-wrap { overflow: hidden; position: relative; }
.testimonials__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.testimonials__track .testi-card {
  flex: 0 0 calc(33.333% - 1rem);
  margin-right: 1.5rem;
}
.testimonials__track .testi-card:last-child { margin-right: 0; }
.testimonials__controls {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-3); margin-top: var(--space-8);
}
.testi-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-gray-200); border: none; cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  padding: 0;
}
.testi-dot.active { background: var(--color-primary); transform: scale(1.4); }
.testi-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-white); border: 1px solid var(--color-gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-base);
  color: var(--color-dark);
}
.testi-arrow:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.testi-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
@media (max-width: 767px) {
  .testimonials__track .testi-card { flex: 0 0 100%; margin-right: 0; }
}

/* ── 20. UTILITIES ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.text-accent { color: var(--color-accent) !important; }
.mb-0 { margin-bottom: 0 !important; }
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ── 21. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .logos__grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .founder__inner { grid-template-columns: 1fr; }
  .founder__photo { width: 100%; max-width: 400px; margin: 0 auto; }
  .founder__counters { grid-template-columns: repeat(2,1fr); }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .topbar__items { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .navbar__menu { display: none; flex-direction: column; position: fixed; inset: 0; top: var(--navbar-height); background: var(--color-dark); padding: var(--space-8); gap: var(--space-6); z-index: 80; }
  .navbar__menu.open { display: flex; }
  .navbar__link { font-size: var(--text-xl); }
  .navbar__toggle { display: flex; }
  .navbar__cta { display: none; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__image-wrap { display: none; }
  .pillars__grid { grid-template-columns: 1fr; }
  .stats-split__inner { grid-template-columns: 1fr; }
  .stats-split__cta-banner { flex-direction: column; text-align: center; }
  .nosotros__inner { grid-template-columns: 1fr; }
  .nosotros__inner .dual-photo { margin-top: var(--space-10); }
  .logos__grid { grid-template-columns: repeat(2,1fr); }
  .history__inner { grid-template-columns: 1fr; }
  .history__team-col img { min-height: 200px; }
  .why-choose__header { grid-template-columns: 1fr; }
  .why-choose__grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .services-strip__inner { flex-direction: column; }
  .services-strip__title { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonials__slider { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .founder__video-cta { position: static; transform: none; max-width: 100%; margin-top: var(--space-4); }
  .founder__video-section { margin-inline: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .dual-photo__card { white-space: normal; min-width: auto; width: calc(100% - 2rem); }
}

/* ════════════════════════════════════════════════════════════
   ESTILOS PÁGINAS INTERNAS (servicios, nosotros, etc.)
   ════════════════════════════════════════════════════════════ */

/* ── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 60%, #1a2a6c 100%);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(57,71,238,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__inner {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: clamp(3rem,5vw,4rem);
  position: relative;
}
.page-hero__inner h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.page-hero__inner h1 span { color: var(--color-accent); }
.page-hero__sub {
  color: var(--color-text-light);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}
.page-hero__curve {
  line-height: 0;
}
.page-hero__curve svg { display: block; width: 100%; height: 60px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); color: var(--color-text-lighter);
  margin-bottom: var(--space-5); justify-content: center;
}
.breadcrumb a { color: var(--color-text-lighter); transition: var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span[aria-hidden] { opacity: 0.4; }

/* Pills de navegación */
.page-hero__pills {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--color-white);
  font-size: var(--text-sm); font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}
.pill:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* ── SERVICIO DETALLE ──────────────────────────────────────── */
.servicio-detalle {
  background: var(--color-gray-50);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.servicio-detalle:nth-child(odd) {
  background: var(--color-white);
}
.servicio-detalle__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.servicio-detalle--reverse .servicio-detalle__inner {
  direction: rtl;
}
.servicio-detalle--reverse .servicio-detalle__inner > * {
  direction: ltr;
}

/* Imagen */
.servicio-detalle__img {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.servicio-detalle__img img {
  width: 100%; height: 420px;
  object-fit: cover; display: block;
  border-radius: var(--radius-xl);
}
.servicio-detalle__badge {
  position: absolute; bottom: var(--space-5); left: var(--space-5);
  background: var(--color-dark);
  color: var(--color-white);
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 700;
  box-shadow: var(--shadow-md);
}
.servicio-detalle__badge img { filter: brightness(10); opacity: 0.9; }
.servicio-detalle__badge--accent { background: var(--color-primary); }

/* Texto */
.servicio-detalle__text h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}
.servicio-detalle__text h2 span { color: var(--color-primary); }
.servicio-detalle__text p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}
.servicio-detalle__text p strong { color: var(--color-dark); font-weight: 700; }

/* Lista de sub-servicios */
.servicio-detalle__list {
  list-style: none;
  margin: var(--space-6) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3) var(--space-5);
}
.servicio-detalle__list li {
  display: flex; align-items: flex-start; gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}
.servicio-detalle__list li img {
  flex-shrink: 0; margin-top: 2px;
  filter: invert(30%) sepia(100%) saturate(2000%) hue-rotate(220deg);
}

/* Barras de progreso del servicio */
.servicio-detalle__progress {
  margin: var(--space-6) 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.progress-label-row {
  display: flex; justify-content: space-between;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}
.progress-pct { color: var(--color-primary); }
.progress-bar {
  height: var(--progress-height);
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-full);
  transition: width var(--progress-duration) cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar__fill.animated {
  width: var(--target-width);
}

/* CTAs de cada servicio */
.servicio-detalle__ctas {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Divisor entre servicios */
.servicio-divisor { background: var(--color-gray-50); }
.servicio-divisor .container hr {
  border: none;
  border-top: 1px solid var(--color-gray-200);
  margin: 0;
}

/* ── CTA BANNER ────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a2a6c 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.cta-banner__text h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  color: var(--color-white);
  margin-bottom: var(--space-3);
}
.cta-banner__text p {
  color: var(--color-text-light);
  font-size: var(--text-base);
  max-width: 540px;
  line-height: 1.7;
}
.cta-banner__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-lg { padding: 1rem 2rem; font-size: var(--text-base); }

/* ── FOOTER SIMPLE ─────────────────────────────────────────── */
.footer-simple {
  background: var(--color-dark);
  padding-block: var(--space-8);
}
.footer-simple__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-simple__logo img { height: 38px; display: block; }
.footer-simple__links {
  display: flex; flex-wrap: wrap; gap: var(--space-5);
}
.footer-simple__links a {
  color: var(--color-text-lighter);
  font-size: var(--text-sm);
  transition: var(--transition-fast);
}
.footer-simple__links a:hover { color: var(--color-accent); }
.footer-simple__social {
  display: flex; gap: var(--space-3);
}
.footer-simple__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-base);
}
.footer-simple__social a:hover { background: var(--color-primary); transform: translateY(-2px); }
.footer-simple__social img { filter: brightness(10); opacity: 0.8; width: 18px; height: 18px; }
.footer-simple__extra {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: var(--space-4);
  display: flex;
  justify-content: center;
}
.footer-simple__extra nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: center;
}
.footer-simple__extra nav a {
  color: rgba(255,255,255,0.42);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}
.footer-simple__extra nav a:hover { color: var(--color-accent); }
.footer-simple__bottom {
  text-align: center;
  padding-top: var(--space-5);
  color: var(--color-text-lighter);
  font-size: var(--text-xs);
}

/* ── RESPONSIVE PÁGINAS INTERNAS ───────────────────────────── */
@media (max-width: 1023px) {
  .servicio-detalle__inner { grid-template-columns: 1fr; }
  .servicio-detalle--reverse .servicio-detalle__inner { direction: ltr; }
  .servicio-detalle__img img { height: 300px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__text p { max-width: 100%; }
  .cta-banner__btns { justify-content: center; }
  .footer-simple__inner { flex-direction: column; text-align: center; }
  .footer-simple__links { justify-content: center; }
  .footer-simple__social { justify-content: center; }
}

@media (max-width: 767px) {
  .servicio-detalle__list { grid-template-columns: 1fr; }
  .servicio-detalle__ctas { flex-direction: column; }
  .servicio-detalle__ctas .btn { text-align: center; justify-content: center; }
  .page-hero__pills { flex-direction: column; align-items: center; }
}

/* ════════════════════════════════════════════════════════════
   NOSOTROS
   ════════════════════════════════════════════════════════════ */

/* ── FUNDADOR ──────────────────────────────────────────────── */
.nos-founder {
  background: var(--color-gray-50);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.nos-founder__inner {
  display: grid; grid-template-columns: 420px 1fr;
  gap: clamp(3rem, 5vw, 5rem); align-items: center;
}
.nos-founder__img { position: relative; }
.nos-founder__img img {
  width: 100%; height: 540px; object-fit: cover;
  border-radius: var(--radius-xl); display: block;
  box-shadow: var(--shadow-xl);
}
.nos-founder__badge-wrap {
  position: absolute; bottom: var(--space-5); left: 50%;
  transform: translateX(-50%);
  display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center;
}
.nos-founder__badge {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  display: flex; flex-direction: column; align-items: center;
  font-size: var(--text-xs);
  box-shadow: var(--shadow-md);
}
.nos-founder__badge strong { font-size: var(--text-lg); font-weight: 800; line-height: 1.1; }
.nos-founder__badge--accent { background: var(--color-primary); }

.nos-founder__text h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); line-height: 1.15; margin-bottom: var(--space-5);
}
.nos-founder__text p {
  color: var(--color-text-muted); font-size: var(--text-base);
  line-height: 1.75; margin-bottom: var(--space-4);
}
.nos-founder__text p strong { color: var(--color-dark); font-weight: 700; }

.nos-founder__stats {
  display: flex; gap: var(--space-6);
  margin: var(--space-6) 0;
  flex-wrap: wrap;
}
.nos-founder__stat {
  display: flex; flex-direction: column;
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
}
.nos-founder__stat strong {
  font-size: var(--text-2xl); font-weight: 800;
  font-family: var(--font-display); color: var(--color-primary);
  line-height: 1;
}
.nos-founder__stat span { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

.nos-founder__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

/* ── PRESENCIA ─────────────────────────────────────────────── */
.nos-presencia {
  background: var(--color-white);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.nos-presencia__inner {
  display: grid; grid-template-columns: 1fr 480px;
  gap: clamp(3rem, 5vw, 5rem); align-items: center;
}
.nos-presencia__text h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); line-height: 1.15; margin-bottom: var(--space-5);
}
.nos-presencia__text p {
  color: var(--color-text-muted); font-size: var(--text-base);
  line-height: 1.75; margin-bottom: var(--space-4);
}
.nos-presencia__text p strong { color: var(--color-dark); font-weight: 700; }

.nos-presencia__list {
  list-style: none; display: flex; flex-direction: column;
  gap: var(--space-4); margin-top: var(--space-6);
}
.nos-presencia__list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm);
}
.nos-presencia__list li img { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }
.nos-presencia__list li div { display: flex; flex-direction: column; gap: 2px; }
.nos-presencia__list li strong { color: var(--color-dark); font-weight: 700; }
.nos-presencia__list li span { color: var(--color-text-muted); }

/* Dual photo nosotros */
.nos-presencia__img .dual-photo {
  display: flex; gap: 6px; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.dual-photo__frame { flex: 1; overflow: hidden; }
.dual-photo__frame img {
  width: 100%; height: 420px; object-fit: cover; display: block;
}
.dual-photo__sep { width: 6px; background: var(--color-white); flex-shrink: 0; }

/* ── TIMELINE ──────────────────────────────────────────────── */
.nos-timeline {
  background: var(--color-gray-50);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.nos-timeline__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-12); }
.nos-timeline__header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); margin-bottom: var(--space-4);
}
.nos-timeline__header p { color: var(--color-text-muted); }

.timeline {
  position: relative; max-width: 800px; margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute; left: 60px; top: 0; bottom: 0;
  width: 2px; background: var(--color-gray-200);
}
.timeline__item {
  display: flex; gap: var(--space-6);
  padding-bottom: var(--space-10);
  position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  flex-shrink: 0; width: 120px; text-align: right;
  padding-right: var(--space-6); position: relative;
}
.timeline__marker::after {
  content: '';
  position: absolute; right: -5px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%; background: var(--color-primary);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary);
}
.timeline__marker--accent::after { background: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent); }
.timeline__marker span {
  font-size: var(--text-sm); font-weight: 700;
  color: var(--color-primary); font-family: var(--font-display);
}
.timeline__marker--accent span { color: var(--color-accent-dark); }
.timeline__content {
  flex: 1; background: var(--color-white);
  border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.timeline__content:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
.timeline__item:last-child .timeline__content:hover {
  border-color: var(--color-accent);
}
.timeline__content h3 {
  font-size: var(--text-lg); font-weight: 700;
  color: var(--color-dark); margin-bottom: var(--space-3);
}
.timeline__content p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.7; }

/* ── EQUIPO NOSOTROS ───────────────────────────────────────── */
.nos-equipo .team-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
}
.nos-equipo {
  background: var(--color-white);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.nos-equipo__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-12); }
.nos-equipo__header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); margin-bottom: var(--space-4);
}
.nos-equipo__header p { color: var(--color-text-muted); }

/* ── VALORES ───────────────────────────────────────────────── */
.nos-valores {
  background: var(--color-gray-50);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.nos-valores__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-12); }
.nos-valores__header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); margin-bottom: var(--space-4);
}
.nos-valores__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.valor-card {
  background: var(--color-white); border-radius: var(--radius-lg);
  padding: var(--space-8); border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}
.valor-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); border-color: var(--color-primary-light); }
.valor-card__icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-5);
}
.valor-card__icon img { width: 36px; height: 36px; }
.valor-card h3 {
  font-size: var(--text-base); font-weight: 700;
  color: var(--color-dark); margin-bottom: var(--space-3);
}
.valor-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }

/* ── CLIENTES NOSOTROS ─────────────────────────────────────── */
.nos-clientes {
  background: var(--color-white);
  padding-block: clamp(4rem, 7vw, 6rem);
}
.nos-clientes__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-10); }
.nos-clientes__header h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); margin-bottom: var(--space-4);
}
.nos-clientes__header p { color: var(--color-text-muted); }

/* ── RESPONSIVE NOSOTROS ───────────────────────────────────── */
@media (max-width: 1023px) {
  .nos-founder__inner { grid-template-columns: 1fr; }
  .nos-founder__img img { height: 400px; max-width: 420px; margin: 0 auto; }
  .nos-presencia__inner { grid-template-columns: 1fr; }
  .dual-photo__frame img { height: 280px; }
  .nos-valores__grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 50px; }
  .timeline__marker { width: 100px; }
}

@media (max-width: 767px) {
  .nos-founder__inner { gap: var(--space-8); }
  .nos-founder__badge-wrap { position: static; transform: none; margin-top: var(--space-4); }
  .nos-founder__stats { flex-direction: column; gap: var(--space-4); }
  .nos-valores__grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline__item { flex-direction: column; }
  .timeline__marker { text-align: left; width: auto; padding-right: 0; }
  .timeline__marker::after { display: none; }
}

/* ════════════════════════════════════════════════════════════
   BLOG
   ════════════════════════════════════════════════════════════ */

/* Filtros */
.blog-filters { background: var(--color-gray-50); padding: var(--space-5) 0; border-bottom: 1px solid var(--color-gray-200); }
.blog-filters__inner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.blog-filter {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-200);
  background: var(--color-white);
  color: var(--color-text-muted);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; transition: var(--transition-fast);
  font-family: var(--font-sans);
}
.blog-filter:hover, .blog-filter.active {
  background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white);
}

/* Artículo destacado */
.blog-featured { background: var(--color-gray-50); padding-block: clamp(3rem, 5vw, 4rem); }
.blog-featured__card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
  background: var(--color-white); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.blog-featured__img { position: relative; overflow: hidden; height: 380px; }
.blog-featured__img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured__label {
  position: absolute; top: var(--space-4); left: var(--space-4);
  background: var(--color-accent); color: var(--color-dark);
  font-size: var(--text-xs); font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.blog-featured__content { padding: var(--space-8); }
.blog-featured__meta {
  display: flex; align-items: center; gap: var(--space-3);
  flex-wrap: wrap; margin-bottom: var(--space-4);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.blog-featured__title {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); line-height: 1.25;
  margin-bottom: var(--space-4);
}
.blog-featured__title a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
.blog-featured__title a:hover { color: var(--color-primary); }
.blog-featured__excerpt { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.75; margin-bottom: var(--space-6); }
.blog-featured__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.blog-featured__author {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-dark);
}
.blog-featured__author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--text-sm); }

/* Categorías */
.blog-cat {
  display: inline-block;
  padding: 0.25rem 0.7rem; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.blog-cat--seo      { background: #e8eafd; color: var(--color-primary); }
.blog-cat--ia       { background: #fef3c7; color: #92400e; }
.blog-cat--web      { background: #dcfce7; color: #166534; }
.blog-cat--estrategia { background: #fce7f3; color: #831843; }

/* Grilla de artículos */
.blog-section { background: var(--color-white); padding-block: clamp(3rem, 6vw, 5rem); }
.blog-grid-full {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8); margin-bottom: var(--space-12);
}
.blog-card-full {
  background: var(--color-white); border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition-base);
  display: flex; flex-direction: column;
}
.blog-card-full:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.blog-card-full__img-wrap { position: relative; overflow: hidden; display: block; height: 200px; }
.blog-card-full__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card-full:hover .blog-card-full__img-wrap img { transform: scale(1.04); }
.blog-card-full__img-wrap .blog-cat { position: absolute; top: var(--space-3); left: var(--space-3); }
.blog-card-full__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.blog-card-full__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.blog-card-full__title {
  font-size: var(--text-base); font-weight: 700;
  color: var(--color-dark); line-height: 1.4; margin-bottom: var(--space-3); flex: 1;
}
.blog-card-full__title a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
.blog-card-full__title a:hover { color: var(--color-primary); }
.blog-card-full__excerpt { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; margin-bottom: var(--space-4); }
.blog-card-full__link { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); transition: var(--transition-fast); margin-top: auto; }
.blog-card-full__link:hover { color: var(--color-primary-dark); }

/* Coming soon + suscripción */
.blog-coming {
  background: var(--color-gray-50); border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200); padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.blog-coming__inner { max-width: 480px; margin: 0 auto; }
.blog-coming__inner img { opacity: 0.5; margin-bottom: var(--space-5); }
.blog-coming h3 { font-size: var(--text-xl); font-weight: 700; color: var(--color-dark); margin-bottom: var(--space-3); }
.blog-coming p { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }
.blog-subscribe { display: flex; gap: var(--space-3); max-width: 420px; margin: 0 auto; }
.blog-subscribe input {
  flex: 1; padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200); border-radius: var(--radius-md);
  font-size: var(--text-sm); outline: none; font-family: var(--font-sans);
  transition: border-color var(--transition-fast); color: var(--color-text);
}
.blog-subscribe input:focus { border-color: var(--color-primary); }

/* ════════════════════════════════════════════════════════════
   CONTACTO
   ════════════════════════════════════════════════════════════ */

.contacto-section { background: var(--color-gray-50); padding-block: clamp(4rem, 7vw, 6rem); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 420px;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}

/* Formulario */
.contacto-form-wrap {
  background: var(--color-white); border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem); box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
}
.contacto-form-wrap h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); margin-bottom: var(--space-2);
}
.contacto-form-desc { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-group { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--color-dark); }
.form-group label span { color: var(--color-primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-family: var(--font-sans);
  color: var(--color-text); background: var(--color-white);
  outline: none; transition: border-color var(--transition-fast);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.form-check {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; cursor: pointer; accent-color: var(--color-primary); }
.form-check label { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; cursor: pointer; }

.btn-full { width: 100%; justify-content: center; }
.form-note { text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-4); }
.form-note a { color: var(--color-primary); font-weight: 600; }

/* Info lateral */
.contacto-info__card {
  background: var(--color-dark); color: var(--color-white);
  border-radius: var(--radius-xl); padding: var(--space-8);
  margin-bottom: var(--space-6);
}
.contacto-info__card h3 {
  font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-6);
  padding-bottom: var(--space-4); border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contacto-info__item {
  display: flex; align-items: flex-start; gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.contacto-info__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,255,255,0.08); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.contacto-info__icon img { filter: brightness(10); opacity: 0.9; }
.contacto-info__item div { display: flex; flex-direction: column; gap: 3px; }
.contacto-info__item strong { font-size: var(--text-sm); font-weight: 700; color: var(--color-white); }
.contacto-info__item a, .contacto-info__item span { font-size: var(--text-sm); color: var(--color-text-lighter); }
.contacto-info__item a:hover { color: var(--color-accent); }

.contacto-info__social { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-6); }
.contacto-info__social-btn {
  display: flex; align-items: center; gap: var(--space-3);
  background: rgba(255,255,255,0.08); border-radius: var(--radius-md);
  padding: 0.6rem 1rem; color: var(--color-text-lighter);
  font-size: var(--text-sm); transition: var(--transition-fast);
  text-decoration: none;
}
.contacto-info__social-btn:hover { background: var(--color-primary); color: var(--color-white); }
.contacto-info__social-btn img { filter: brightness(10); opacity: 0.7; width: 18px; height: 18px; }

/* Proceso */
.contacto-proceso {
  background: var(--color-white); border-radius: var(--radius-xl);
  padding: var(--space-8); border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-sm);
}
.contacto-proceso h3 { font-size: var(--text-base); font-weight: 700; color: var(--color-dark); margin-bottom: var(--space-6); }
.proceso-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-5); }
.proceso-list li { display: flex; align-items: flex-start; gap: var(--space-4); }
.proceso-num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--color-primary-light); color: var(--color-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 800; font-family: var(--font-display);
}
.proceso-list li div { display: flex; flex-direction: column; gap: 3px; }
.proceso-list li strong { font-size: var(--text-sm); font-weight: 700; color: var(--color-dark); }
.proceso-list li p { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; }

/* FAQ Contacto */
.contacto-faq { background: var(--color-gray-50); padding-block: clamp(4rem, 7vw, 6rem); }
.contacto-faq__header { text-align: center; max-width: 600px; margin: 0 auto var(--space-10); }
.contacto-faq__header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); margin-bottom: var(--space-4);
}

/* 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: 0;
}

/* ── RESPONSIVE BLOG + CONTACTO ────────────────────────────── */
@media (max-width: 1023px) {
  .blog-featured__card { grid-template-columns: 1fr; }
  .blog-featured__img { height: 280px; }
  .blog-grid-full { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .blog-grid-full { grid-template-columns: 1fr; }
  .blog-subscribe { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   BLOG ARTÍCULO INDIVIDUAL
   ════════════════════════════════════════════════════════════ */

/* Hero del artículo — autor */
.blog-article__author-hero {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: var(--space-6); justify-content: center;
}
.blog-article__author-hero img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255,255,255,0.3);
}
.blog-article__author-hero div {
  text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.blog-article__author-hero strong {
  font-size: var(--text-sm); font-weight: 700;
  color: var(--color-white); font-family: var(--font-display);
}
.blog-article__author-hero span {
  font-size: var(--text-xs); color: rgba(255,255,255,0.65);
}

/* Layout: cuerpo + sidebar */
.blog-article__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

/* Cuerpo del artículo */
.blog-article__body {
  max-width: 100%;
}
.blog-article__cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  box-shadow: var(--shadow-lg);
}
.blog-article__cover img {
  width: 100%; height: 400px;
  object-fit: cover; display: block;
}
.blog-article__cover figcaption {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs); color: var(--color-text-muted);
  background: var(--color-gray-50);
  font-style: italic;
}
.blog-article__lead {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  line-height: 1.75; color: var(--color-dark);
  font-weight: 500; margin-bottom: var(--space-8);
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-5);
}
.blog-article__body h2 {
  font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl));
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-dark); line-height: 1.25;
  margin-top: var(--space-10); margin-bottom: var(--space-4);
}
.blog-article__body h3 {
  font-size: var(--text-lg); font-weight: 700;
  color: var(--color-dark); margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.blog-article__body p {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.8; margin-bottom: var(--space-4);
}
.blog-article__body p strong { color: var(--color-dark); font-weight: 700; }
.blog-article__body ul,
.blog-article__body ol {
  list-style: none;
  margin: var(--space-5) 0 var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  padding-left: 0;
}
.blog-article__body ul li,
.blog-article__body ol li {
  font-size: var(--text-base); color: var(--color-text-muted);
  line-height: 1.7; padding-left: var(--space-6);
  position: relative;
}
.blog-article__body ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--color-primary); font-weight: 700;
}
.blog-article__body ol { list-style: none; counter-reset: ol-counter; }
.blog-article__body ol li { counter-increment: ol-counter; }
.blog-article__body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute; left: 0;
  color: var(--color-primary); font-weight: 700;
  font-family: var(--font-display);
}
.blog-article__body code {
  font-family: 'Courier New', monospace;
  background: var(--color-gray-100); color: var(--color-primary);
  padding: 0.1em 0.4em; border-radius: var(--radius-sm);
  font-size: 0.9em;
}
.blog-article__cta-inline {
  background: linear-gradient(135deg, #e8eafd 0%, #f0f1fe 100%);
  border: 1px solid rgba(57,71,238,0.2);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin: var(--space-10) 0;
  display: flex; flex-direction: column; gap: var(--space-4);
}
.blog-article__cta-inline p {
  font-size: var(--text-base); color: var(--color-dark);
  font-weight: 600; line-height: 1.5; margin: 0;
}

/* Sidebar */
.blog-article__sidebar {
  position: sticky; top: calc(var(--navbar-height) + var(--space-6));
  display: flex; flex-direction: column; gap: var(--space-6);
}
.blog-sidebar__widget {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.blog-sidebar__widget h3 {
  font-size: var(--text-sm); font-weight: 700;
  color: var(--color-dark); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: var(--space-4);
  font-family: var(--font-display);
}
.blog-sidebar__toc {
  list-style: none; display: flex; flex-direction: column;
  gap: var(--space-2); counter-reset: toc-counter; padding-left: 0;
}
.blog-sidebar__toc li { counter-increment: toc-counter; }
.blog-sidebar__toc li a {
  font-size: var(--text-sm); color: var(--color-text-muted);
  text-decoration: none; transition: var(--transition-fast);
  display: flex; gap: var(--space-2); align-items: baseline;
  line-height: 1.5;
}
.blog-sidebar__toc li a::before {
  content: counter(toc-counter) '.';
  color: var(--color-primary); font-weight: 700;
  font-size: var(--text-xs); flex-shrink: 0;
}
.blog-sidebar__toc li a:hover { color: var(--color-primary); }

.blog-sidebar__cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-color: transparent;
}
.blog-sidebar__cta h3 { color: rgba(255,255,255,0.8); }
.blog-sidebar__cta p {
  font-size: var(--text-sm); color: rgba(255,255,255,0.75);
  line-height: 1.6; margin-bottom: var(--space-4);
}

.blog-sidebar__related {
  list-style: none; display: flex; flex-direction: column;
  gap: var(--space-3); padding-left: 0;
}
.blog-sidebar__related li a {
  font-size: var(--text-sm); color: var(--color-text-muted);
  text-decoration: none; line-height: 1.5; transition: var(--transition-fast);
  display: block; padding-left: var(--space-4); position: relative;
}
.blog-sidebar__related li a::before {
  content: '→'; position: absolute; left: 0;
  color: var(--color-primary); font-size: var(--text-xs);
}
.blog-sidebar__related li a:hover { color: var(--color-primary); }

/* Responsive blog artículo */
@media (max-width: 1023px) {
  .blog-article__layout { grid-template-columns: 1fr; }
  .blog-article__sidebar { position: static; }
}
@media (max-width: 767px) {
  .blog-article__cover img { height: 240px; }
  .blog-article__cta-inline { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════
   CONTACTO — FIXES FASE 6
   ════════════════════════════════════════════════════════════ */

/* Columna info sticky para alineación con el formulario */
.contacto-info {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-6));
}

/* Honeypot anti-spam: fuera del viewport, nunca visible */
.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Botón Instagram — gradiente de marca */
.contacto-info__social-btn--ig {
  background: rgba(255,255,255,0.08);
}
.contacto-info__social-btn--ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--color-white) !important;
}
.contacto-info__social-btn--ig:hover img { opacity: 1; }

/* Botón Facebook — azul de marca */
.contacto-info__social-btn--fb {
  background: rgba(255,255,255,0.08);
}
.contacto-info__social-btn--fb:hover {
  background: #1877F2;
  color: var(--color-white) !important;
}
.contacto-info__social-btn--fb:hover img { opacity: 1; }

/* En móvil el sticky no aplica */
@media (max-width: 1023px) {
  .contacto-info { position: static; }
}
