/* =========================================================
   VEGALAI.IO — Stylesheet definitivo
   ========================================================= */

:root {
  --color-dark: #0A1628;
  --color-dark-2: #1B2A4A;
  --color-white: #FFFFFF;
  --color-silver: #C0C0C0;
  --color-silver-light: #E8E8E8;
  --color-electric: #4A90D9;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-dark-muted: rgba(10, 22, 40, 0.7);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --container: 1240px;
  --section-y: 120px;
  --radius: 6px;
  --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-white);
  background: var(--color-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

p {
  color: var(--color-text-muted);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Sections ---------- */
section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-light {
  background: var(--color-white);
  color: var(--color-dark);
}

.section-light p {
  color: var(--color-text-dark-muted);
}

.section-silver {
  background: var(--color-silver-light);
  color: var(--color-dark);
}

.section-silver p {
  color: var(--color-text-dark-muted);
}

.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-electric);
  margin-bottom: 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-electric);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover {
  background: var(--color-dark-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(74, 144, 217, 0.25);
}

/* CTA grande (final de sección) */
.btn-lg {
  padding: 24px 56px;
  font-size: 1.3rem;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(74, 144, 217, 0.28);
}

.btn-ghost {
  background: var(--color-electric);
  border: 1.5px solid var(--color-electric);
  color: var(--color-white);
}

.btn-ghost:hover {
  background: var(--color-dark-2);
  color: var(--color-white);
  border-color: var(--color-dark-2);
}

/* ---------- Logo (texto puro) ---------- */
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-white);
  letter-spacing: 0.01em;
  display: inline-block;
  line-height: 1;
}

.logo-text .ai {
  color: var(--color-electric);
}

.footer-logo .logo-text {
  font-size: 26px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  background: transparent;
  transition: background var(--transition), padding var(--transition),
    border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--color-dark);
  padding: 14px 0;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 56px;
}

.nav-menu {
  display: flex;
  gap: 52px;
}

.nav-menu a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--color-white);
  position: relative;
  padding: 6px 0;
}

/* Botón CTA del header */
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: var(--color-electric);
  color: var(--color-white) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}

.btn-header:hover {
  background: var(--color-dark-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 144, 217, 0.28);
}

.btn-header::after {
  display: none;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-electric);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-menu a.active {
  color: var(--color-electric);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   HERO (home) — vídeo de fondo + overlay
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fallback {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(10, 22, 40, 0.3) 0%,
    rgba(10, 22, 40, 0.55) 40%,
    rgba(10, 22, 40, 0.78) 75%,
    rgba(10, 22, 40, 0.9) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: block;
}

/* Variante hero: texto alineado a la derecha */
.hero-right .hero-grid {
  display: flex;
  justify-content: flex-end;
}

.hero-right .hero-text {
  text-align: left;
}

.hero-text {
  max-width: 820px;
}

.hero-text .eyebrow {
  font-size: 18px;
  letter-spacing: 0.2em;
  margin-bottom: 36px;
}

.hero-text h1 {
  font-size: clamp(3.2rem, 6.6vw, 5.2rem);
  margin-bottom: 38px;
  color: var(--color-white);
  line-height: 1.08;
}

.hero-text h1 span {
  display: block;
}

.hero-text .subhead {
  font-size: 1.5rem;
  line-height: 1.55;
  margin-bottom: 52px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-text > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-text > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-text > *:nth-child(2) {
  animation-delay: 0.25s;
}
.hero-text > *:nth-child(3) {
  animation-delay: 0.4s;
}
.hero-text > *:nth-child(4) {
  animation-delay: 0.55s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero simple (páginas interiores) ---------- */
.hero-simple {
  padding: 220px 0 140px;
  text-align: center;
  background: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.hero-simple .eyebrow {
  font-size: 22px;
  letter-spacing: 0.28em;
  margin-bottom: 38px;
  font-weight: 700;
}

.hero-simple::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(74, 144, 217, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-simple h1 {
  margin-bottom: 28px;
  position: relative;
  font-size: clamp(2.6rem, 5.2vw, 4rem);
}

.hero-simple .subhead {
  font-size: 1.45rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  color: rgba(255, 255, 255, 0.86);
}

/* =========================================================
   SECCIÓN 2 — FRASE MANIFIESTO
   ========================================================= */
.claims-phrase {
  text-align: center;
  max-width: 1020px;
  margin: 0 auto;
}

.claims-phrase p {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-dark);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.claims-phrase p:last-child {
  margin-bottom: 0;
}

.claims-phrase .accent {
  color: var(--color-electric);
}

/* =========================================================
   SECCIÓN 3 — PROPUESTA DE VALOR
   ========================================================= */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
  margin-top: 88px;
}

.value-card {
  text-align: center;
}

.value-icon {
  width: 88px;
  height: 88px;
  background: transparent;
  border: none;
  color: var(--color-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
}

.value-icon svg {
  width: 80px;
  height: 80px;
  stroke-width: 1.2;
}

.value-card h3 {
  margin-bottom: 22px;
  color: var(--color-dark);
  font-size: clamp(1.65rem, 2.3vw, 2rem);
}

.value-card p {
  font-size: 1.22rem;
  line-height: 1.75;
}

.section-silver .section-heading h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
}

/* =========================================================
   SECCIÓN 4 — SERVICIOS (cards)
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
}

.service-card {
  background: var(--color-dark-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 144, 217, 0.4);
}

.service-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 32px 28px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-body h3 {
  margin-bottom: 14px;
  color: var(--color-white);
}

.service-card-body p {
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.service-card-result {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-electric);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 14px 0 24px;
}

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

/* =========================================================
   SECCIÓN 5 — TIMELINE SNAKE
   ========================================================= */
.timeline-section .section-heading {
  margin: 0 auto 80px;
  text-align: center;
  max-width: 760px;
}

.timeline-section .section-heading .eyebrow {
  display: inline-block;
}

.timeline-snake {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.tl-step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}

.tl-step .num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-electric);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--color-white),
    0 0 0 8px rgba(74, 144, 217, 0.2);
}

.tl-step h3 {
  font-size: 1.05rem;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.tl-step p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Posiciones del snake */
.tl-step:nth-child(1) { grid-column: 1; grid-row: 1; }
.tl-step:nth-child(2) { grid-column: 2; grid-row: 1; }
.tl-step:nth-child(3) { grid-column: 3; grid-row: 1; }
.tl-step:nth-child(4) { grid-column: 3; grid-row: 2; }
.tl-step:nth-child(5) { grid-column: 2; grid-row: 2; }
.tl-step:nth-child(6) { grid-column: 1; grid-row: 2; }

/* Líneas conectoras horizontales (fila 1) */
.tl-step:nth-child(2)::before,
.tl-step:nth-child(3)::before {
  content: '';
  position: absolute;
  top: 32px;
  right: calc(50% + 36px);
  width: calc(100% - 72px + 60px);
  height: 2px;
  background: var(--color-electric);
  z-index: 1;
}

/* Líneas conectoras horizontales (fila 2 — invertida) */
.tl-step:nth-child(5)::before,
.tl-step:nth-child(6)::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 36px);
  width: calc(100% - 72px + 60px);
  height: 2px;
  background: var(--color-electric);
  z-index: 1;
}

/* Conector vertical de paso 3 a paso 4 */
.tl-step:nth-child(4)::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 32px);
  left: 50%;
  width: 2px;
  height: 100px;
  background: var(--color-electric);
  z-index: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   SECCIÓN 6 — FLIP CARDS
   ========================================================= */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.flip-card {
  perspective: 1200px;
  height: 260px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

@media (hover: hover) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 36px 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.flip-front {
  background: var(--color-white);
  border-top: 4px solid var(--color-electric);
  color: var(--color-dark);
}

.flip-front p {
  color: var(--color-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
}

.flip-back {
  background: var(--color-dark);
  color: var(--color-white);
  transform: rotateY(180deg);
}

.flip-back p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   SECCIÓN 7 — FAQ
   ========================================================= */
.faq-list {
  max-width: 880px;
  margin: 64px auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(10, 22, 40, 0.12);
}

.faq-item:first-child {
  border-top: 1px solid rgba(10, 22, 40, 0.12);
}

.faq-q {
  width: 100%;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-dark);
  transition: color var(--transition);
}

.faq-q:hover {
  color: var(--color-electric);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.12);
  color: var(--color-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--color-electric);
  color: var(--color-white);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item.open .faq-a {
  max-height: 600px;
}

.faq-a p {
  padding: 0 0 28px;
  font-size: 1rem;
  line-height: 1.7;
}

/* =========================================================
   SECCIÓN 8 — CTA FINAL
   ========================================================= */
.cta-final {
  text-align: center;
  padding: 140px 0;
}

.cta-final h2 {
  max-width: 880px;
  margin: 0 auto 22px;
}

.cta-final .subhead {
  max-width: 620px;
  margin: 0 auto 44px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.footer-logo p {
  margin-top: 18px;
  max-width: 280px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

.footer-nav h4,
.footer-contact h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-silver);
  margin-bottom: 18px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

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

.footer-contact a {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--color-electric);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-bottom a:hover {
  color: var(--color-electric);
}

/* =========================================================
   PÁGINAS INTERIORES — split sections
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse .split-image {
  order: 2;
}

.split-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

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

.split-content h2 {
  margin-bottom: 16px;
}

.split-content .subtitle {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--color-electric);
  margin-bottom: 32px;
  line-height: 1.5;
}

.split-content .block {
  margin-bottom: 24px;
}

.split-content .block h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-electric);
  margin-bottom: 8px;
}

.split-content .block p {
  font-size: 1rem;
}

.split-steps {
  margin: 36px 0;
  counter-reset: step;
}

.split-steps li {
  counter-increment: step;
  padding: 18px 0 18px 60px;
  position: relative;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
}

.section-dark .split-steps li {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.split-steps li:last-child {
  border-bottom: 1px solid rgba(10, 22, 40, 0.1);
}

.section-dark .split-steps li:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.split-steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 20px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-electric);
}

.split-steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 4px;
}

.split-steps p {
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================================
   NOSOTROS — fundador / filosofía / claims
   ========================================================= */
.founder {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.founder-visual {
  width: 200px;
  height: 200px;
  margin: 0 auto 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-visual svg {
  width: 100%;
  height: 100%;
}

.founder h2 {
  margin-bottom: 32px;
  color: var(--color-white);
}

.founder p {
  font-size: 1.04rem;
  text-align: left;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.philosophy-intro {
  max-width: 860px;
  margin-bottom: 72px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.philosophy-block {
  padding: 40px 44px;
  background: var(--color-white);
  border-radius: 12px;
  border-left: 3px solid var(--color-electric);
  position: relative;
}

.philosophy-block .num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-electric);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  display: block;
}

.philosophy-block h3 {
  margin-bottom: 14px;
  color: var(--color-dark);
}

.philosophy-block p {
  font-size: 0.98rem;
}

.claims-large {
  text-align: center;
}

.claim-line {
  max-width: 1160px;
  margin: 0 auto 88px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-white);
  position: relative;
  padding: 0 40px;
}

.claim-line::before {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-electric);
  margin: 0 auto 24px;
}

.claim-line:last-child {
  margin-bottom: 0;
}

.prose p {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

/* =========================================================
   CONTACTO — formulario
   ========================================================= */
.contact-split {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 36px;
  display: block;
}

.contact-info h3 {
  color: var(--color-dark);
  margin-bottom: 20px;
  font-size: 1.75rem;
  line-height: 1.3;
}

.contact-info p {
  font-size: 1.22rem;
  line-height: 1.75;
}

.contact-form .form-field label {
  font-size: 0.95rem;
}

.contact-form .form-field input,
.contact-form .form-field textarea {
  font-size: 1.15rem;
  padding: 20px 24px;
}

.contact-form {
  background: var(--color-white);
  padding: 64px;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(10, 22, 40, 0.08);
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1.5px solid rgba(10, 22, 40, 0.12);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-silver-light);
  color: var(--color-dark);
  transition: border-color var(--transition), background var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-electric);
  background: var(--color-white);
}

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

.contact-form .btn {
  width: 100%;
  justify-content: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 0;
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.contact-form.sent .form-fields {
  display: none;
}

.contact-form.sent .form-success {
  display: block;
}

/* =========================================================
   PÁGINAS LEGALES (placeholders)
   ========================================================= */
.legal-page {
  padding: 200px 0 140px;
  text-align: center;
  background: var(--color-dark);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.legal-page h1 {
  margin-bottom: 18px;
}

.legal-page p {
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* =========================================================
   SERVICIOS — secciones pantalla completa
   ========================================================= */
.service-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* =========================================================
   NOSOTROS — fundador full-width (extremo a extremo)
   ========================================================= */
.founder-section {
  padding-left: 0;
  padding-right: 0;
}

.founder-section .founder {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 80px;
}

.founder-section .founder p {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.22rem;
  line-height: 1.85;
}

.founder-section .founder h2 {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
}

.founder-section .eyebrow {
  font-size: 18px;
  letter-spacing: 0.24em;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --section-y: 90px;
  }

  .hero-grid,
  .split,
  .contact-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .split.reverse .split-image {
    order: 0;
  }

  .value-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Timeline en columna en tablet/móvil */
  .timeline-snake {
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 500px;
  }

  .tl-step:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .tl-step::before,
  .tl-step::after {
    display: none !important;
  }

  .timeline-snake::before {
    content: '';
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 50%;
    width: 2px;
    background: var(--color-electric);
    transform: translateX(-50%);
  }

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

  .founder-section .founder {
    padding: 0 32px;
  }

  /* En pantallas medianas dejamos el botón de header a la derecha */
  .nav-right {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 72px;
  }

  .container {
    padding: 0 22px;
  }

  .logo-text {
    font-size: 28px;
  }

  .footer-logo .logo-text {
    font-size: 22px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .nav-right {
    gap: 14px;
  }

  /* Hero: texto centrado en mobile */
  .hero-right .hero-grid {
    justify-content: flex-start;
  }

  .hero-right .hero-text {
    max-width: 100%;
  }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85%);
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 38px;
    transform: translateX(100%);
    transition: transform var(--transition);
    padding: 80px 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 90;
  }

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

  .nav-menu a {
    font-size: 1.2rem;
  }

  /* Botón de header más compacto en móvil */
  .btn-header {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  /* Hero: ocultamos vídeo y mostramos imagen estática */
  .hero-video {
    display: none !important;
  }

  .hero-fallback {
    display: block;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero-text h1 {
    font-size: clamp(2.4rem, 9vw, 3rem);
  }

  .hero-text .subhead {
    font-size: 1.1rem;
  }

  .hero-simple {
    padding: 160px 0 90px;
  }

  .hero-simple h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .hero-simple .subhead {
    font-size: 1.1rem;
  }

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

  .contact-form {
    padding: 36px 26px;
  }

  .philosophy-block {
    padding: 32px 28px;
  }

  .cta-final {
    padding: 90px 0;
  }

  .cta-final h2 {
    font-size: clamp(1.8rem, 6vw, 2.3rem);
  }

  .claims-phrase p {
    font-size: clamp(1.6rem, 6.5vw, 2.1rem);
  }

  .claim-line {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
    padding: 0 16px;
    margin-bottom: 56px;
  }

  .service-full {
    min-height: auto;
    padding: 80px 0;
  }

  .founder-section .founder {
    padding: 0;
  }

  .founder-section .founder p {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 18px 34px;
    font-size: 1.08rem;
  }

  .value-card p {
    font-size: 1.08rem;
  }

  .contact-info h3 {
    font-size: 1.35rem;
  }

  .contact-info p {
    font-size: 1.05rem;
  }

  .contact-form .form-field input,
  .contact-form .form-field textarea {
    font-size: 1rem;
    padding: 16px 18px;
  }
}
