:root {
  --bg: #0a0b0f;
  --bg-alt: rgba(18, 20, 26, 0.55);
  --card: rgba(24, 26, 34, 0.55);
  --border: #262932;
  --orange: #ff5722;
  --orange-dim: #ff5722cc;
  --orange-deep: #dd3f11;
  --text: #f5f6f8;
  --text-muted: #9aa0ac;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* scroll-behavior nativo desactivado a propósito: el scroll suave lo
   lleva Lenis (ver index.html), y si dejamos los dos activos compiten
   entre sí y el resultado se ve entrecortado. */

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* subtle grain for depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

h1, h2, h3 {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

/* Énfasis por color en vez de negrita: el texto de cuerpo ya nace en gris
   (var(--text-muted)); .hl sube la palabra clave a blanco para que resalte
   por contraste, no por peso. */
.hl {
  color: var(--text);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  filter: blur(70px);
  opacity: 0.35;
  will-change: transform;
}

.blob--1 {
  width: 620px;
  height: 620px;
  top: -10%;
  left: -10%;
  animation: drift1 32s ease-in-out infinite alternate;
}

.blob--2 {
  width: 480px;
  height: 480px;
  top: 30%;
  right: -8%;
  opacity: 0.28;
  animation: drift2 38s ease-in-out infinite alternate;
}

.blob--3 {
  width: 400px;
  height: 400px;
  bottom: -5%;
  left: 20%;
  opacity: 0.25;
  animation: drift3 44s ease-in-out infinite alternate;
}

.blob--4 {
  width: 340px;
  height: 340px;
  bottom: 20%;
  right: 25%;
  opacity: 0.2;
  animation: drift4 36s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(120px, 80px) scale(1.15); }
  100% { transform: translate(-60px, 140px) scale(0.95); }
}

@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-100px, 100px) scale(0.9); }
  100% { transform: translate(-160px, -60px) scale(1.1); }
}

@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(90px, -90px) scale(1.1); }
  100% { transform: translate(160px, 40px) scale(0.92); }
}

@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-80px, -70px) scale(1.2); }
  100% { transform: translate(70px, 60px) scale(0.9); }
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  max-width: 1140px;
  width: calc(100% - 32px);
  margin: 16px auto 0;
  background: rgba(15, 16, 22, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Al hacer scroll el nav pasa a "cristal": más translúcido para que se
   note el contenido pasando por detrás, con distorsión tipo liquid-glass
   como capa de mejora progresiva (si el navegador no entiende la
   referencia al filtro SVG, ignora esa línea entera y se queda con el
   blur normal de arriba — nunca se rompe). */
.nav.is-scrolled {
  background: rgba(15, 16, 22, 0.42);
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}

.nav__inner {
  padding: 15px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.nav__logo {
  height: 54px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--orange);
}

@media (max-width: 700px) {
  .nav {
    top: 12px;
    width: calc(100% - 24px);
    margin: 12px auto 0;
  }

  .nav__inner {
    padding: 10px 16px;
  }

  .nav__links {
    display: none;
  }

  .nav__logo {
    height: 36px;
  }

  .nav .btn--small {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* ===== HONEYPOT (anti-bot) ===== */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ===== LANG BUTTON ===== */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__actions a.btn {
  margin-right: 18px;
}

/* Móvil: logo centrado de verdad (fuera del flujo, no depende de que los
   dos lados pesen lo mismo) + "Contacto" a la izquierda, hamburguesa e
   idioma a la derecha. */
@media (max-width: 700px) {
  .nav__inner {
    position: relative;
  }

  .nav__logo-link {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__actions {
    flex: 1;
  }

  .nav__actions a.btn {
    margin-right: auto;
  }
}

.lang-btn {
  background: none;
  border: 2px solid var(--orange);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
}

.lang-flag {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.lang-flag svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 700px) {
  .lang-btn {
    width: 30px;
    height: 30px;
  }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .hamburger-btn {
    display: flex;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  display: flex;
  position: fixed;
  top: 80px;
  left: 12px;
  right: 12px;
  z-index: 99;
  background: rgba(18, 19, 26, 0.96);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

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

.mobile-menu__link {
  display: block;
  padding: 16px 24px;
  color: var(--text);
  text-decoration: none;
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

.mobile-menu__link:hover,
.mobile-menu__link:active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--orange);
}

/* ===== BUTTONS ===== */
.btn {
  position: relative;
  display: inline-block;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--orange);
  border: 1.5px solid transparent;
  outline: none;
  border-radius: 12px;
  padding: 14px 32px;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  background: var(--orange-deep);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.22), 0 14px 30px rgba(255, 87, 34, 0.35);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.22), 0 6px 14px rgba(255, 87, 34, 0.3);
}

.btn:focus-visible {
  outline: 2.5px solid var(--text);
  outline-offset: 3px;
}

.btn--small {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn--large {
  padding: 18px 44px;
  font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 110px;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

/* ===== HERO BADGE ===== */
.hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 22px;
}

.hero__badge-tag {
  background: var(--orange);
  color: #0a0b0f;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.hero__badge-text {
  color: var(--text);
  font-size: 0.82rem;
  padding: 0 16px 0 12px;
}

@media (max-width: 700px) {
  .hero__badge {
    display: none;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 .accent {
  display: inline-block;
  color: var(--orange);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.7em;
  margin-top: 6px;
}

/* Títulos letra a letra (animateLetters en el JS): .word evita que la línea
   se corte a mitad de palabra; .letter es la animación de cada carácter. */
.word {
  display: inline-block;
  white-space: nowrap;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: letterIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero__subtitle--short {
  display: none;
}

/* entrance animation (el h1 no entra aquí: sus letras animan por separado) */
.hero__content > *:not(h1),
.lead-magnet {
  animation: rise 0.8s ease both;
}

.hero__content .hero__subtitle {
  animation-delay: 0.55s;
}

.hero__content .btn {
  animation-delay: 0.7s;
}

.lead-magnet {
  animation-delay: 0.85s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== STATS ===== */
.stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
  flex-wrap: wrap;
  margin: 64px 0 0;
}

.stat {
  text-align: center;
  max-width: 200px;
}

.stat__number {
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: var(--orange);
  line-height: 1;
}

.stat__label {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .stats {
    gap: 36px 48px;
  }
}

/* ===== LEAD MAGNET ===== */
.lead-magnet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin-top: 90px;
  text-align: center;
}

.lead-magnet__card {
  position: relative;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 87, 34, 0.22) 0%, transparent 55%),
    rgba(32, 35, 45, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 56px 40px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateY(0) scale(1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.lead-magnet__card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 87, 34, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.lead-magnet h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  margin-bottom: 12px;
}

.lead-magnet__text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.lead-magnet__cta {
  position: relative;
  display: inline-block;
}


/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
  scroll-margin-top: 110px;
}

.section--alt {
  max-width: 100%;
  background: var(--bg-alt);
  backdrop-filter: blur(30px);
}

.section--alt .section__title,
.section--alt .grid {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: 10px;
}

.section__intro {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== FOUNDERS ===== */
.founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.founder-card {
  position: relative;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 87, 34, 0.18) 0%, transparent 55%),
    rgba(32, 35, 45, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateY(0) scale(1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.founder-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 87, 34, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.founder-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange) 0%, #ffb38a 100%);
  color: #1a0d05;
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 24px;
  box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.founder-card__avatar picture {
  display: block;
  width: 100%;
  height: 100%;
}

.founder-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card:hover .founder-card__avatar {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.25);
}

.founder-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.founder-card__role {
  color: var(--orange);
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.founder-card__bio {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.founder-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.founder-card__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.founders [data-reveal]:nth-child(1) { transition-delay: 0s; }
.founders [data-reveal]:nth-child(2) { transition-delay: 0.12s; }

#nosotros .section__intro {
  margin-top: 24px;
}

/* ===== GRID / CARDS ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--orange-dim);
  transform: translateY(-4px);
}

.card__number {
  font-family: 'Geist', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card--service {
  position: relative;
}

.tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* ===== SERVICES SCROLL (escritorio) ===== */
.services {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  align-items: start;
  gap: 64px;
  margin-top: 64px;
}

.services__sidebar {
  position: sticky;
  top: 130px;
}

.services__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.services__nav-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-left: 22px;
  border-left: 2px solid var(--border);
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  opacity: 0.45;
  transition: color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

.services__nav-item.is-active {
  color: var(--text);
  border-left-color: var(--orange);
  opacity: 1;
}

.services__nav-num {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--orange);
  padding-top: 2px;
}

.services__panels {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.service-panel {
  position: relative;
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px;
}

.service-panel__num {
  position: absolute;
  top: 8px;
  right: 32px;
  font-family: 'Geist', sans-serif;
  font-weight: 800;
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  line-height: 1;
  color: rgba(255, 87, 34, 0.07);
  pointer-events: none;
}

.service-panel h3 {
  position: relative;
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 480px;
  margin-bottom: 16px;
}

.service-panel > p {
  position: relative;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.service-panel ul {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.service-panel li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-panel li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.service-panel__note {
  margin-top: 16px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.7;
}

.services__panels [data-reveal]:nth-child(1) { transition-delay: 0s; }
.services__panels [data-reveal]:nth-child(2) { transition-delay: 0.05s; }
.services__panels [data-reveal]:nth-child(3) { transition-delay: 0.1s; }
.services__panels [data-reveal]:nth-child(4) { transition-delay: 0.15s; }
.services__panels [data-reveal]:nth-child(5) { transition-delay: 0.2s; }

/* ===== SERVICES ACCORDION (solo móvil, <700px) ===== */
.accordion {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
}

.accordion-item {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.accordion-item.is-open {
  border-color: rgba(255, 87, 34, 0.35);
}

.accordion-item__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  background: none;
  border: none;
  font-family: 'Geist', sans-serif;
  text-align: left;
  cursor: pointer;
}

.accordion-item__num {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--orange);
}

.accordion-item__title {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.accordion-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.accordion-item__icon::before,
.accordion-item__icon::after {
  content: "";
  position: absolute;
  background: var(--orange);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.accordion-item__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.accordion-item__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.accordion-item.is-open .accordion-item__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.accordion-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-item__body-inner {
  padding: 0 28px 26px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.accordion-item.is-open .accordion-item__body-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.accordion-item__body-inner p {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.accordion-item__body-inner ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.accordion-item__body-inner li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion-item__body-inner li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.accordion-item__note {
  margin-top: -4px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ===== RESERVA (CAL.COM) ===== */
#reserva {
  padding-top: 48px;
  padding-bottom: 56px;
}

#reserva .section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

#reserva .section__intro {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* Cal.com sí respeta el tamaño de su contenedor de verdad (a diferencia
   de Calendly), así que no hace falta el hack de transform:scale.
   Altura mínima (no fija): el paso de "elige fecha" cabe de sobra en
   680px, pero el formulario de preguntas (con el multiselect de 4
   opciones) necesita más — con min-height puede crecer sin recortarse. */
.booking {
  max-width: 780px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

/* Altura fija + scroll interno: así la caja nunca crece sin límite (el
   listado de horas de Cal.com en móvil puede ser larguísimo) ni recorta
   contenido — si no cabe, se desplaza dentro de la propia caja. */
#cal-booking {
  width: 100%;
  height: 680px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 760px) {
  #reserva { padding-top: 36px; padding-bottom: 44px; }
  #cal-booking { height: 620px; }
}

/* ===== CTA FINAL ===== */
.cta {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ===== CTA INLINE ===== */
.cta-inline {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
}

.cta-inline__left {
  position: sticky;
  top: 140px;
}

.cta-inline__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin: 12px 0 18px;
}

.cta-inline__desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-inline__perks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-inline__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-inline__perks li::before {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 87, 34, 0.1);
  border: 1.5px solid rgba(255, 87, 34, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%23ff5722' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100%;
}

/* Form */
.cta-inline__right {
  min-width: 0;
  background: rgba(18, 19, 27, 0.7);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
}

.cta-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.cta-form__full {
  grid-column: 1 / -1;
}

.cta-form__submit {
  width: 100%;
  text-align: center;
  white-space: normal;
}

.cta-form__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}

.cta-form__success.is-visible {
  display: flex;
}

@media (max-width: 860px) {
  .cta-inline {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 72px 24px;
  }
  .cta-inline__left {
    position: static;
  }
}

@media (max-width: 560px) {
  .cta-inline__right { padding: 28px 20px; }
  .cta-form__grid { grid-template-columns: 1fr; }
  .cta-form__full { grid-column: 1; }
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: 4px;
}

.footer__linkedin {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer__li-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 87, 34, 0.06);
  border: 1px solid rgba(255, 87, 34, 0.4);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer__li-btn svg {
  color: var(--orange);
  flex-shrink: 0;
}

.footer__li-btn:hover {
  background: rgba(255, 87, 34, 0.14);
  border-color: var(--orange);
}

.footer__li-btn--icon {
  padding: 7px;
  border-radius: 6px;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__legal-link {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal-link:hover {
  color: var(--orange);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.wa-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 22px rgba(255, 87, 34, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-fab svg {
  width: 30px;
  height: 30px;
}

.wa-fab:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(255, 87, 34, 0.6);
}

@media (max-width: 560px) {
  .wa-fab {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .wa-fab svg {
    width: 27px;
    height: 27px;
  }
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.grid [data-reveal]:nth-child(1) { transition-delay: 0s; }
.grid [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.grid [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.grid [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.grid [data-reveal]:nth-child(5) { transition-delay: 0.4s; }

.cta [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.cta [data-reveal]:nth-child(3) { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pilot {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .services__sidebar {
    position: static;
  }

  .services__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .services__nav-item {
    flex: 1 1 220px;
    border-left: none;
    border-bottom: 2px solid var(--border);
    padding: 0 0 10px;
  }

  .services__nav-item.is-active {
    border-bottom-color: var(--orange);
  }

  .service-panel {
    min-height: auto;
    padding: 40px 28px;
  }

  .accordion-item__header {
    padding: 18px 20px;
  }

  .accordion-item__body-inner {
    padding: 0 20px 22px;
  }
}

@media (max-width: 700px) {
  .services {
    display: none;
  }

  .accordion {
    display: flex;
  }
}

@media (max-width: 560px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 20px 70px;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .hero__subtitle--full {
    display: none;
  }

  .hero__subtitle--short {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__subtitle--short {
    display: block;
  }

  .section {
    padding: 60px 20px;
  }

  .services__nav-item {
    flex: 1 1 100%;
  }

  .accordion-item__title {
    font-size: 0.95rem;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: radial-gradient(circle at 15% 10%, rgba(255, 87, 34, 0.14) 0%, transparent 55%),
              rgba(20, 22, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  padding: 48px 48px 40px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

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

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: rgba(255, 87, 34, 0.15);
  color: var(--orange);
}

.modal__header {
  margin-bottom: 32px;
}

.modal__header .eyebrow {
  margin-bottom: 8px;
}

.modal__header h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 8px;
}

.modal__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.form-label {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-hint {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-input:focus {
  border-color: var(--orange);
  background: rgba(255, 87, 34, 0.06);
}

.form-input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa0ac' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: #16181f;
  color: var(--text);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Si / No toggle */
.toggle-group {
  display: flex;
  gap: 12px;
}

.toggle-option {
  flex: 1;
  cursor: pointer;
}

.toggle-option input[type="radio"] {
  display: none;
}

.toggle-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.toggle-option input:checked + span {
  border-color: var(--orange);
  background: rgba(255, 87, 34, 0.1);
  color: var(--orange);
}

.toggle-option:hover span {
  border-color: rgba(255, 87, 34, 0.4);
  color: var(--text);
}

/* Divider */
.form-divider {
  margin: 8px 0 24px;
  padding: 16px 20px;
  background: rgba(255, 87, 34, 0.07);
  border-left: 3px solid var(--orange);
  border-radius: 0 10px 10px 0;
}

.form-divider span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
}

/* Error states */
.form-input.is-error {
  border-color: #e05252;
  background: rgba(224, 82, 82, 0.06);
}

.toggle-group.is-error .toggle-option span {
  border-color: #e05252;
}

/* Submit */
.modal__submit {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ── SUCCESS SCREEN ── */
.modal__success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0 8px;
}

.modal__success.is-visible {
  display: flex;
}

.success-icon {
  margin-bottom: 32px;
}

.success-icon svg {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 0 18px rgba(255, 87, 34, 0.45));
}

.success-circle {
  stroke: var(--orange);
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: successCircle 0.7s cubic-bezier(0.65, 0, 0.45, 1) 0.1s both;
}

.success-check {
  stroke: var(--orange);
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: successCheck 0.45s cubic-bezier(0.65, 0, 0.45, 1) 0.7s both;
}

@keyframes successCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes successCheck {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin-bottom: 16px;
  opacity: 0;
  animation: successFadeUp 0.5s ease 1s both;
}

.success-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 12px;
  opacity: 0;
  animation: successFadeUp 0.5s ease 1.15s both;
}

.success-text strong {
  color: var(--orange);
}

.success-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
  opacity: 0;
  animation: successFadeUp 0.5s ease 1.3s both;
}

@keyframes successFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .modal {
    padding: 36px 24px 32px;
  }

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