/* =========================================================
   AUTOMAI — hoja de estilos
   -----------------------------------------------------------
   Variables al principio del archivo para poder cambiar
   colores, tipografía y radios de borde en un solo sitio.
   ========================================================= */

/* Tipografía Poppins alojada en /fonts (licencia SIL OFL); no se carga nada desde servidores de Google. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/poppins-900.woff2") format("woff2"); }

:root {
  --color-primary: #0052ff;
  --color-primary-dark: #0040cc;
  --color-primary-light: #e8effe;
  --color-dark: #05070d;
  --color-dark-2: #0c0e18;
  --color-text: #14161f;
  --color-text-muted: #5b5f70;
  --color-white: #ffffff;
  --color-border: rgba(20, 22, 31, 0.09);

  --radius-pill: 999px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --container-width: 1180px;
  --font-main: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-soft: 0 20px 45px -22px rgba(20, 22, 31, 0.3);
  --shadow-card: 0 1px 2px rgba(20,22,31,0.04), 0 12px 30px -18px rgba(20,22,31,0.18);
  --ease: cubic-bezier(.16,1,.3,1);
}

/* =========================== RESET =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

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

section { position: relative; }

.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-white); }
.text-white-muted { color: rgba(255,255,255,0.7); }

/* =========================== REVEAL ON SCROLL =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 16px;
  border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 25px -8px rgba(0,82,255,0.55);
}
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 14px 30px -8px rgba(0,82,255,0.65); }

.btn-light {
  background: var(--color-white);
  color: var(--color-dark);
}
.btn-light:hover { background: #f0f0f0; }

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

.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* =========================== HEADER =========================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  padding: 22px 0;
  transition: padding .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  padding: 14px 0;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--color-primary); }

.nav-toggle {
  position: relative;
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.nav-toggle:hover { transform: scale(1.06); }
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-toggle.active { background: var(--color-white); }
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); background: var(--color-dark); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); background: var(--color-dark); }

/* =========================== NAV OVERLAY =========================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-overlay-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin: auto 0;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-link {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  display: inline-block;
}
.nav-link:hover { opacity: 1; color: var(--color-primary); transform: translateX(6px); }

.nav-overlay-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.nav-socials {
  display: flex;
  gap: 24px;
}
.nav-socials a { color: rgba(255,255,255,0.6); font-size: 14px; letter-spacing: 0.05em; transition: color .3s; }
.nav-socials a:hover { color: var(--color-white); }

/* =========================== HERO =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, black 20%, transparent 75%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.hero-blob-1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, #0052ff, transparent 70%);
  top: -180px; left: -120px;
}
.hero-blob-2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 60% 40%, #3d7bff, transparent 70%);
  bottom: -220px; right: -100px;
  animation-delay: -6s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

.hero-content { position: relative; z-index: 2; max-width: 880px; }
.badge {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(0, 82, 255, 0.14);
  border: 1px solid rgba(0, 82, 255, 0.4);
  color: #a9c2ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  transition-delay: .05s;
}
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  transition-delay: .1s;
}
.cycle-word-wrap { color: var(--color-primary); display: inline-flex; }
.cycle-word { white-space: nowrap; }
.cycle-cursor { animation: blink 1s step-start infinite; margin-left: 3px; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  max-width: 620px;
  margin-bottom: 40px;
  transition-delay: .15s;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; transition-delay: .2s; }

/* =========================== VALUE STRIP =========================== */
.value-strip {
  background: var(--color-primary);
  padding: 30px 0;
}
.value-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
}
.value-item {
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-left: 22px;
}
.value-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-white);
}

/* =========================== SECTION TITLES =========================== */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.eyebrow-light { color: #8fb0ff; }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title-lg {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 20px;
}
.section-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: 16px;
}
.underline-accent { position: relative; display: inline-block; }
.underline-accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 10px;
  background: var(--color-primary-light);
  z-index: -1;
}

/* =========================== ABOUT =========================== */
.about { padding: 120px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.stat-card:hover { border-color: var(--color-primary); transform: translateY(-4px); }
.stat-number {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.stat-label { color: var(--color-text-muted); font-size: 15px; }

/* =========================== CALLOUT =========================== */
.callout { padding-bottom: 120px; }
.callout-box {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
}
.callout-line {
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
}
.callout-line-strong { color: var(--color-primary); }

/* =========================== SERVICES =========================== */
.services { padding: 40px 0 120px; text-align: left; }
.services .eyebrow, .services .section-title-lg, .services .section-lead { margin-left: auto; margin-right: auto; }
.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: transparent;
}
.service-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 6px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-icon-1 { background: linear-gradient(135deg, #0052ff, #3d7bff); }
.service-icon-2 { background: linear-gradient(135deg, #0c0e18, #3a3f52); }
.service-icon-3 { background: linear-gradient(135deg, #0052ff, #0c0e18); }
.service-icon-4 { background: linear-gradient(135deg, #3d7bff, #0040cc); }
.service-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.service-card p { font-size: 15px; line-height: 1.6; color: var(--color-text-muted); flex-grow: 1; }

/* =========================== IA SPOTLIGHT =========================== */
.ia-spotlight {
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #10193a 0%, var(--color-dark) 60%);
  padding: 120px 0;
  text-align: center;
}
.ia-inner { display: flex; flex-direction: column; align-items: center; }
.ia-inner .section-title-lg, .ia-inner .section-lead { text-align: center; }

/* =========================== PLANS =========================== */
.plans { padding: 120px 0; text-align: center; }
.plans .eyebrow, .plans .section-title-lg, .plans .section-lead { margin-left: auto; margin-right: auto; }
.plans-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  align-items: stretch;
}
.plan-card {
  position: relative;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  background: var(--color-white);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.plan-card-featured {
  border-color: var(--color-primary);
  background: var(--color-dark);
  color: var(--color-white);
  transform: scale(1.045);
  box-shadow: 0 30px 60px -25px rgba(0,82,255,0.5);
}
.plan-card-featured:hover { transform: scale(1.045) translateY(-6px); }
.plan-badge {
  position: absolute;
  top: -14px; left: 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
}
.plan-header h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.plan-tagline { font-size: 14px; color: var(--color-text-muted); font-weight: 500; margin-bottom: 28px; }
.plan-card-featured .plan-tagline { color: rgba(255,255,255,0.6); }
.plan-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; flex-grow: 1; }
.plan-features li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.plan-card-featured .plan-features li { color: rgba(255,255,255,0.75); }
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230052ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.plan-card-featured .plan-features li::before { background-color: rgba(0,82,255,0.25); }
.plans-note { text-align: center; margin: 40px auto 0; font-size: 14px; color: var(--color-text-muted); }

/* =========================== PROCESS =========================== */
.process { background: var(--color-dark); padding: 120px 0; }
.process .section-title-lg { margin-left: auto; margin-right: auto; text-align: center; }
.process .eyebrow { display: block; text-align: center; }
.process-list {
  max-width: 720px;
  margin: 64px auto 0;
  position: relative;
}
.process-list::before {
  content: "";
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 2px;
  background: rgba(255,255,255,0.12);
}
.process-step {
  display: flex;
  gap: 28px;
  padding-bottom: 52px;
  position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-number {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-dark-2);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  position: relative;
  z-index: 1;
}
.process-body h3 { color: var(--color-white); font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.process-body p { color: rgba(255,255,255,0.62); font-size: 15px; line-height: 1.7; max-width: 500px; }

/* =========================== TEAM =========================== */
.team { padding: 120px 0; text-align: center; }
.team .eyebrow, .team .section-title-lg, .team .section-lead { margin-left: auto; margin-right: auto; }
.team-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.team-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
  position: relative;
}
.team-photo-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.team-photo img.loaded { opacity: 1; }
.team-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.team-role { color: var(--color-primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.team-bio { font-size: 14px; line-height: 1.6; color: var(--color-text-muted); }

/* =========================== CONTACT =========================== */
.contact { padding: 120px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.contact-info-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  transition: color .3s;
}
.contact-info-item svg { width: 20px; height: 20px; color: var(--color-primary); flex-shrink: 0; }
.contact-info-item:hover { color: var(--color-primary); }

.contact-form {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 14px; font-weight: 600; }
.form-row input, .form-row textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  resize: vertical;
  transition: border-color .3s;
  background: var(--color-white);
  color: var(--color-text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-success {
  display: none;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 14px;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  text-align: center;
  color: #d93025;
  font-weight: 600;
  font-size: 14px;
}
.form-error.visible { display: block; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  cursor: pointer;
}
.form-consent input { margin-top: 3px; accent-color: var(--color-primary); flex-shrink: 0; }
.form-consent a { text-decoration: underline; color: var(--color-primary); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--color-dark); padding: 90px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; margin: 16px 0 24px; max-width: 280px; }
.logo-footer { display: inline-block; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  transition: background-color .3s, border-color .3s, color .3s;
}
.footer-socials a:hover { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.footer-col h4 { color: var(--color-white); font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { color: rgba(255,255,255,0.55); font-size: 14px; transition: color .3s; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 0;
}
.footer-bottom p { color: rgba(255,255,255,0.45); font-size: 13px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: rgba(255,255,255,0.45); font-size: 13px; transition: color .3s; }
.footer-legal a:hover { color: var(--color-white); }

/* =========================== LEGAL PAGES =========================== */
.legal-header { background: var(--color-dark); padding: 18px 0; }
.legal-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal-main { padding: 72px 0 96px; }
.legal-content { max-width: 820px; }
.legal-content h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
.legal-updated { color: var(--color-text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-content h2 { font-size: 1.05rem; font-weight: 700; margin: 32px 0 10px; }
.legal-content p, .legal-content li { font-size: 14px; line-height: 1.7; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin: 0 0 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-content .legal-data { list-style: none; padding: 0; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); }
.legal-content .legal-data li { padding: 12px 18px; margin: 0; border-bottom: 1px solid var(--color-border); }
.legal-content .legal-data li:last-child { border-bottom: none; }
mark.placeholder { background: #fff3a3; color: #5c4a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.legal-footer { background: var(--color-dark); padding: 28px 0; }
.legal-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.legal-footer p { color: rgba(255,255,255,0.45); font-size: 13px; }
.legal-footer .footer-legal a { color: rgba(255,255,255,0.45); font-size: 13px; }
.legal-footer .footer-legal a:hover { color: var(--color-white); }
@media (max-width: 640px) {
  .legal-main { padding: 48px 0 72px; }
  .legal-footer-inner { flex-direction: column; text-align: center; }
}

/* =========================== SCROLL MARGIN (fixed header offset) =========================== */
section[id] { scroll-margin-top: 96px; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .plan-card-featured { transform: scale(1); order: -1; }
  .plan-card-featured:hover { transform: translateY(-6px); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding-top: 110px; min-height: auto; padding-bottom: 64px; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .cycle-word-wrap { display: block; min-height: 2.24em; }
  .cycle-word { white-space: normal; }
  .about, .plans, .team, .contact, .process, .ia-spotlight, .services { padding: 72px 0; }
  .callout { padding-bottom: 72px; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .value-strip-inner { flex-direction: column; align-items: center; gap: 14px; }
  .contact-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .nav-link { font-size: 34px; }
  .callout-box { padding: 40px 22px; }
}

/* =========================== MÓVIL: AJUSTES DE FORMATO ===========================
   Solo se aplica en pantallas de hasta 640px. En ordenador y tablet no cambia nada.
   Reduce tamaños de letra, espacios y tarjetas para que la página sea menos larga y más compacta. */
@media (max-width: 640px) {
  :root { --radius-lg: 22px; --radius-md: 16px; }
  section[id] { scroll-margin-top: 72px; }
  .container { padding: 0 18px; }
  .btn { padding: 13px 24px; font-size: 15px; }
  .btn-sm { padding: 11px 20px; font-size: 13px; }

  /* Cabecera y menú */
  .site-header { padding: 14px 0; }
  .site-header.scrolled { padding: 10px 0; }
  .nav-toggle { width: 44px; height: 44px; gap: 4px; }
  .nav-toggle-bar { width: 18px; }
  .nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(3px) rotate(45deg); }
  .nav-toggle.active .nav-toggle-bar:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  /* Menú desplegable: enlaces grandes y repartidos a lo largo de toda la altura; botón y redes abajo */
  .nav-overlay { padding: 84px 24px 28px; }
  .nav-overlay-inner { width: 100%; flex: 1 1 auto; margin: 0; gap: 20px; justify-content: space-between; }
  .nav-links { width: 100%; flex: 1 1 auto; gap: 0; justify-content: space-evenly; align-items: center; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-link { display: block; font-size: clamp(34px, 10.5vw, 44px); padding: 8px 0; }
  .nav-overlay-footer { width: 100%; gap: 16px; }
  .nav-cta { width: 100%; }

  /* Portada */
  .hero { padding-top: 96px; padding-bottom: 48px; }
  .badge { font-size: 12px; padding: 7px 14px; margin-bottom: 18px; }
  .hero-title { font-size: clamp(1.7rem, 7.8vw, 2.1rem); margin-bottom: 16px; }
  .hero-subtitle { font-size: 15px; line-height: 1.6; margin-bottom: 26px; }
  .hero-cta { gap: 10px; flex-wrap: nowrap; }
  .hero-cta .btn { flex: 1 1 0; padding: 13px 10px; font-size: 14.5px; }

  /* Franja de ventajas */
  .value-strip { padding: 22px 0; }
  .value-strip-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-items: start; }
  .value-item { font-size: 12.5px; line-height: 1.35; padding-left: 16px; }
  .value-item::before { width: 6px; height: 6px; top: 6px; transform: none; }

  /* Secciones: espacios y títulos */
  .about, .plans, .team, .contact, .process, .ia-spotlight { padding: 52px 0; }
  .services { padding: 16px 0 52px; }
  .callout { padding-bottom: 52px; }
  .eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .section-title { font-size: 1.55rem; margin-bottom: 12px; }
  .section-title-lg { font-size: 1.65rem; margin-bottom: 12px; }
  .section-lead { font-size: 15px; line-height: 1.6; margin-bottom: 8px; }

  /* Quiénes somos / estadísticas y frase destacada */
  .about-grid { gap: 26px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 20px 12px; }
  .stat-number { font-size: 1.9rem; margin-bottom: 4px; }
  .stat-label { font-size: 12.5px; line-height: 1.4; }
  .callout-box { padding: 28px 18px; }
  .callout-line { font-size: 1.1rem; line-height: 1.4; }

  /* Servicios */
  .services-grid { margin-top: 26px; gap: 12px; }
  .service-card { padding: 20px 18px; gap: 8px; }
  .service-icon { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 2px; }
  .service-icon svg { width: 21px; height: 21px; }
  .service-card h3 { font-size: 16.5px; }
  .service-card p { font-size: 14px; line-height: 1.55; }

  /* Planes */
  .plans-grid { margin-top: 26px; gap: 14px; }
  .plan-card { padding: 26px 20px; }
  .plan-badge { top: -12px; left: 20px; font-size: 12px; padding: 5px 13px; }
  .plan-header h3 { font-size: 19px; }
  .plan-tagline { font-size: 13px; margin-bottom: 16px; }
  .plan-features { gap: 9px; margin-bottom: 20px; }
  .plan-features li { font-size: 14px; line-height: 1.45; padding-left: 26px; }
  .plan-features li::before { width: 16px; height: 16px; background-size: 10px; }
  .plans-note { font-size: 12.5px; line-height: 1.5; margin-top: 24px; }

  /* Proceso */
  .process-list { margin-top: 32px; }
  .process-list::before { left: 21px; }
  .process-step { gap: 16px; padding-bottom: 28px; }
  .process-number { width: 44px; height: 44px; font-size: 13px; }
  .process-body h3 { font-size: 17px; margin-bottom: 4px; }
  .process-body p { font-size: 14px; line-height: 1.6; }

  /* Contacto (los campos se quedan en 16px para que iPhone no haga zoom al escribir) */
  .contact-grid { gap: 28px; }
  .contact-info { margin-top: 18px; gap: 12px; }
  .contact-info-item { font-size: 14.5px; }
  .contact-form { padding: 20px 16px; gap: 14px; }
  .form-row { gap: 6px; }
  .form-row label { font-size: 13px; }
  .form-row input, .form-row textarea { font-size: 16px; padding: 11px 13px; }
  .form-consent { font-size: 12px; }

  /* Pie de página */
  .site-footer { padding: 44px 0 0; }
  .footer-grid { gap: 26px 20px; padding-bottom: 32px; }
  .footer-brand p { font-size: 13px; margin: 10px 0 16px; }
  .footer-col { gap: 9px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 10px; }
  .footer-col a, .footer-col span { font-size: 13px; }
  .footer-bottom { padding: 18px 0; }
}
