/* ============================================================
   TripleG — Landing page
   styles.css
   ------------------------------------------------------------
   ÍNDICE
   1. Variables / tokens de diseño
   2. Reset y base
   3. Utilidades (container, grid, botones, tags)
   4. Animación reveal (fade-in on scroll)
   5. Header + navegación
   6. Hero
   7. Secciones genéricas
   8. Servicios
   9. Robótica (comparador compra/renta, catálogo, banner PoC)
   10. Estándares (features)
   11. Casos de uso
   12. Consultoría
   13. Contacto + formulario
   14. Footer
   15. Botón flotante de WhatsApp
   16. Responsive (media queries)
   17. Accesibilidad / reduced motion
   ============================================================ */

/* 1. VARIABLES ------------------------------------------------ */
:root {
  /* Paleta — identidad "Diseño B · Tres líneas".
     Cada línea de negocio tiene su propio color, igual que el isotipo
     (3 trazos de color alrededor del mismo centro): azul = Automatización
     & IA, marino = Infraestructura, cian = Robótica. */
  --blue-primary:      #2F6BFF;   /* Automatización & IA */
  --blue-dark:         #1A3FB8;   /* hover de botones */
  --blue-tint:         #EAF0FF;
  --blue-ink:          #0B2545;   /* Infraestructura · texto principal / footer */
  --blue-border:       #E3E7EF;   /* bordes sutiles */
  --gray-text:         #4A5873;   /* texto secundario */
  --white:             #FFFFFF;

  /* Marino — línea de Infraestructura (coincide con --blue-ink) */
  --navy:              var(--blue-ink);
  --navy-tint:         #E7E9F0;

  /* Cian — línea de Robótica + acentos técnicos (esquemas flexibles/RaaS) */
  --cyan:              #12B5CB;
  --cyan-dark:         #0C8A9B;
  --cyan-tint:         #E3F7FA;

  --bg:                var(--white);
  --bg-tint:           #F3F5F9;   /* gris técnico muy claro */
  --text:              var(--blue-ink);
  --text-soft:         var(--gray-text);
  --border:            var(--blue-border);

  --gradient-hero: linear-gradient(135deg, #2F6BFF 0%, #0B2545 100%);

  --radius:      14px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 3px rgba(11, 37, 69, .08), 0 1px 2px rgba(11, 37, 69, .04);
  --shadow-md:   0 8px 24px rgba(11, 37, 69, .10);
  --shadow-lg:   0 18px 48px rgba(11, 37, 69, .18);

  --container:   1120px;
  --gutter:      clamp(20px, 5vw, 40px);

  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.16, .84, .44, 1);
}

/* 2. RESET Y BASE ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { line-height: 1.2; color: var(--text); font-weight: 700; letter-spacing: -.02em; }

a { color: var(--blue-primary); text-decoration: none; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--blue-primary); outline-offset: 2px; border-radius: 4px; }

/* 3. UTILIDADES -------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

/* Botones */
.btn {
  --btn-bg: var(--blue-primary);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  font: inherit; font-weight: 600;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--blue-primary); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* Botón con borde, para usar sobre fondos claros (fuera del hero) */
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--blue-primary);
  border-color: var(--blue-primary);
}
.btn--outline:hover { background: var(--blue-primary); --btn-fg: #fff; }

.btn--sm { padding: 9px 16px; font-size: 15px; }
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* Tag / etiqueta */
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  padding: 4px 10px; border-radius: 999px;
}
/* Variante cian: robótica, esquemas flexibles/RaaS */
.tag--accent { color: var(--cyan-dark); background: var(--cyan-tint); border-color: #BEE9EF; }
/* Variante marino: infraestructura */
.tag--navy { color: var(--navy); background: var(--navy-tint); border-color: #D7DBE6; }

/* Utilidades de color de texto por línea de negocio */
.text-blue { color: var(--blue-primary); }
.text-cyan { color: var(--cyan-dark); }
.text-navy { color: var(--navy); }

/* 4. REVEAL (fade-in on scroll) --------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* 5. HEADER ----------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 400; color: var(--text); letter-spacing: -.02em; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; }
.brand__name strong { font-weight: 700; }
.brand--footer { color: #fff; }

/* Navegación */
.nav { display: flex; align-items: center; }
.nav__menu { list-style: none; display: flex; align-items: center; gap: 20px; }
.nav__menu a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav__menu a:hover { color: var(--blue-primary); }
.nav__cta-item a { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 6. HERO ------------------------------------------------- */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: calc(68px + 64px) 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  position: relative; z-index: 1;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; }
.hero__title-accent { display: block; color: #9DBBFF; font-weight: 800; }
.hero__subtitle { margin-top: 20px; font-size: clamp(1rem, 2vw, 1.18rem); color: #E4ECFF; max-width: 44ch; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  margin-top: 44px; list-style: none;
  display: flex; flex-wrap: wrap; gap: 32px;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.7rem; color: #fff; }
.hero__stats span { font-size: 13px; color: #BCD0FF; }

/* Animación del hero: logo al centro, las 3 líneas de negocio orbitando
   en la misma disposición que los 3 vértices del triángulo del logo. */
.hero-orbit {
  position: relative;
  width: 100%; max-width: 380px; aspect-ratio: 1;
  margin: 0 auto;
}

.hero-orbit__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-orbit__lines line {
  stroke: rgba(255,255,255,.3); stroke-width: 2;
  stroke-dasharray: 5 8; stroke-linecap: round;
  animation: dash-flow 3s linear infinite;
}

.hero-orbit__ring {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,.3);
  animation: spin 22s linear infinite;
}

.hero-orbit__logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  background: radial-gradient(circle, #16213B 0%, #081226 100%);
  box-shadow:
    0 0 0 6px rgba(255,255,255,.08),
    0 0 44px 10px rgba(47,107,255,.4),
    0 0 70px 18px rgba(18,181,203,.18),
    var(--shadow-lg);
}
.hero-orbit__logo img { width: 62%; height: 62%; object-fit: contain; display: block; }
.hero-orbit__logo::after {
  content: ""; position: absolute; inset: -14%;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25);
  animation: pulse-ring 2.6s ease-out infinite;
}

.hero-orbit__node { position: absolute; transform: translate(-50%, -50%); z-index: 3; }
.hero-orbit__node--top   { top: 19%; left: 50%; }
.hero-orbit__node--left  { top: 76%; left: 21%; }
.hero-orbit__node--right { top: 76%; left: 79%; }

.hero-orbit__node-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 118px; text-align: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 14px 10px;
  color: #fff; font-weight: 600; font-size: .82rem; line-height: 1.25;
  backdrop-filter: blur(4px);
  animation: floaty 6s ease-in-out infinite;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.hero-orbit__node--top .hero-orbit__node-inner { background: rgba(79,128,255,.22); border-color: rgba(143,176,255,.45); }
.hero-orbit__node--left .hero-orbit__node-inner { background: rgba(169,188,208,.18); border-color: rgba(199,212,228,.4); animation-delay: -2s; }
.hero-orbit__node--right .hero-orbit__node-inner { background: rgba(34,199,221,.2); border-color: rgba(126,232,242,.45); animation-delay: -4s; }
.hero-orbit__node-inner:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.05);
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.4);
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes dash-flow { to { stroke-dashoffset: -26; } }
@keyframes pulse-ring {
  0%   { transform: scale(.85); opacity: .9; }
  70%  { transform: scale(1.2); opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 480px) {
  .hero-orbit__node-inner { width: 98px; font-size: .74rem; padding: 10px 8px; }
}

/* 7. SECCIONES ------------------------------------------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section--tint { background: var(--bg-tint); }

.section__head { max-width: 720px; margin: 0 auto clamp(36px, 6vw, 56px); text-align: center; }
.section__eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700;
  color: var(--blue-primary); margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section__lead { margin-top: 14px; color: var(--text-soft); font-size: 1.05rem; }

/* 8. SERVICIOS ------------------------------------------ */
.service-card { padding: 32px 28px; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-primary); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue-primary);
  margin-bottom: 20px;
}
.service-card__title { font-size: 1.3rem; margin-bottom: 10px; }
.service-card__desc { color: var(--text-soft); font-size: .98rem; }
.service-card__list { list-style: none; margin: 18px 0 22px; display: grid; gap: 10px; }
.service-card__list li {
  position: relative; padding-left: 26px; font-size: .95rem;
}
.service-card__list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px;
  background: var(--blue-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-card__link { margin-top: auto; font-weight: 600; font-size: .95rem; }

/* Color por línea de negocio (igual que el isotipo: azul · marino · cian) */
.service-card--infra:hover { border-color: var(--navy); }
.service-card--infra .service-card__icon { background: var(--navy-tint); color: var(--navy); }
.service-card--infra .service-card__list li::before { background: var(--navy); }
.service-card--infra .service-card__link { color: var(--navy); }

.service-card--robotica:hover { border-color: var(--cyan); }
.service-card--robotica .service-card__icon { background: var(--cyan-tint); color: var(--cyan-dark); }
.service-card--robotica .service-card__list li::before { background: var(--cyan); }
.service-card--robotica .service-card__link { color: var(--cyan-dark); }

/* 9. ROBÓTICA — comparador compra/renta, catálogo, banner PoC ---- */
.robot-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-bottom: 48px;
}
.robot-compare__col {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.robot-compare__col h3 { font-size: 1.25rem; margin-top: 4px; }
.robot-compare__col p { color: var(--text-soft); font-size: .95rem; }
.robot-compare__col .usecase__list { margin: 10px 0 18px; }
.robot-compare__col .btn { align-self: flex-start; margin-top: auto; }
.robot-compare__col--accent {
  border-color: #BEE9EF;
  background: linear-gradient(180deg, var(--cyan-tint) 0%, var(--white) 55%);
}

/* CTA de la home hacia el catálogo completo (robots.html) */
.robotica-cta { text-align: center; margin-top: 8px; }

.robot-catalog {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-bottom: 48px;
}
.robot-type {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.robot-type:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.robot-type__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cyan-tint); color: var(--cyan-dark);
  margin-bottom: 16px;
}
.robot-type h3 { font-size: 1.05rem; margin-bottom: 8px; }
.robot-type p { color: var(--text-soft); font-size: .92rem; }
.robot-type__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

/* Mini-hero de páginas internas (p.ej. robots.html) */
.page-hero {
  background: var(--gradient-hero); color: #fff;
  padding: calc(68px + 56px) 0 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 70%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero__back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #BCD0FF; font-size: .9rem; font-weight: 600; margin-bottom: 18px;
}
.page-hero__back:hover { color: #fff; }
.page-hero__eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700;
  color: #BCD0FF; margin-bottom: 14px;
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); color: #fff; }
.page-hero p { margin-top: 18px; font-size: clamp(1rem, 2vw, 1.1rem); color: #E4ECFF; max-width: 56ch; }
.page-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Declaración de marca (robots.html) */
.statement {
  max-width: 820px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.statement__text { font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.45; font-weight: 500; color: var(--text); }
.statement__text strong { font-weight: 700; }

/* 10. ESTÁNDARES (features) ----------------------------- */
.feature { text-align: center; padding: 8px; }
.feature__icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 14px; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--border); color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-soft); font-size: .95rem; }

/* 11. CASOS DE USO ---------------------------------- */
.usecase {
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  border-top: 3px solid var(--blue-primary);
}
.usecase--infra { border-top-color: var(--navy); }
.usecase--robotica { border-top-color: var(--cyan); }
.usecase:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.usecase .tag { align-self: flex-start; }
.usecase h3 { font-size: 1.12rem; }
.usecase p { color: var(--text-soft); font-size: .95rem; }
.usecase__list { list-style: none; margin-top: 4px; display: grid; gap: 8px; }
.usecase__list li { position: relative; padding-left: 20px; font-size: .9rem; color: var(--text-soft); }
.usecase__list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5;
}
.usecase__cta {
  text-align: center; margin-top: 32px; font-size: 1.02rem; color: var(--text-soft);
}
.usecase__cta a { font-weight: 600; }

/* 12. CONSULTORÍA --------------------------------- */
.consulting {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.consulting__intro .section__title,
.consulting__intro .section__lead { text-align: left; }
.consulting__intro .section__lead { margin-bottom: 26px; }
.consulting__list { list-style: none; display: grid; gap: 16px; }
.consulting__list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.consulting__list li:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.consulting__list svg { color: var(--blue-primary); flex-shrink: 0; margin-top: 2px; }
.consulting__list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.consulting__list p { color: var(--text-soft); font-size: .92rem; }

/* 13. CONTACTO ------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact__intro .section__title { text-align: left; }
.contact__intro .section__lead { text-align: left; }

.contact__details { list-style: none; margin: 28px 0; display: grid; gap: 14px; }
.contact__details li { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
.contact__details svg { color: var(--blue-primary); flex-shrink: 0; }
.contact__details a { color: var(--text); }
.contact__details a:hover { color: var(--blue-primary); }

.contact__social { display: flex; gap: 12px; }
.contact__social a {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--border); color: var(--blue-primary);
  transition: transform .18s var(--ease), background .18s, color .18s;
}
.contact__social a:hover { transform: translateY(-3px); background: var(--blue-primary); color: #fff; }

/* Formulario */
.contact__form { padding: 30px 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem;
  padding: 11px 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .15);
}
.field textarea { resize: vertical; min-height: 96px; }

/* Honeypot oculto */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status { font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-status.is-ok { color: #15803D; }
.form-status.is-error { color: #B91C1C; }
.form-note { font-size: .8rem; color: var(--text-soft); }

/* 14. FOOTER --------------------------------------- */
.site-footer { background: var(--blue-ink); color: #C6D2EC; }
.site-footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 36px; align-items: start;
  padding-top: 56px; padding-bottom: 32px;
}
.site-footer__brand p { margin-top: 12px; font-size: .92rem; color: #93A1C2; max-width: 32ch; }
.site-footer__nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer__nav a { color: #C6D2EC; font-size: .95rem; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__social { display: flex; gap: 12px; }
.site-footer__social a {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #C6D2EC;
  transition: background .18s, color .18s, transform .18s;
}
.site-footer__social a:hover { background: var(--blue-primary); color: #fff; transform: translateY(-3px); }

.site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: #7C8BB0;
}

/* 15. BOTÓN FLOTANTE DE WHATSAPP -------------------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(0, 0, 0, .28); color: #fff; }
.whatsapp-fab:focus-visible { outline-offset: 3px; }

/* 16. RESPONSIVE --------------------------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .consulting { grid-template-columns: 1fr; gap: 32px; }
  .robot-compare { grid-template-columns: 1fr; }
  .robot-catalog { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Menú hamburguesa: se activa antes porque el nav tiene varios enlaces */
@media (max-width: 940px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu li { width: 100%; }
  .nav__menu a { display: block; padding: 12px 4px; font-size: 16px; }
  .nav__cta-item a { text-align: center; margin-top: 6px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .grid--3 { grid-template-columns: 1fr; }
  .robot-catalog { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* 17. REDUCED MOTION ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orbit__node-inner, .hero-orbit__ring, .hero-orbit__logo::after, .hero-orbit__lines line { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
