/* ============================================================
   ArenasDev — Design System
   Dark premium refinado
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Superficies */
  --bg:            #080b14;
  --bg-elevated:   #0d1220;
  --surface:       #111828;
  --surface-2:     #161f33;
  --surface-glass: rgba(17, 24, 40, 0.72);

  /* Marca */
  --brand-400:     #7ca5ff;
  --brand-500:     #4f7df9;
  --brand-600:     #3563e0;
  --accent-400:    #a78bfa;
  --accent-500:    #8b5cf6;

  --brand-soft:    rgba(79, 125, 249, 0.12);
  --accent-soft:   rgba(139, 92, 246, 0.12);

  /* Texto */
  --text:          #f1f4fa;
  --text-2:        #b9c3d6;
  --text-3:        #7f8ba4;

  /* Bordes */
  --line:          rgba(255, 255, 255, 0.07);
  --line-strong:   rgba(255, 255, 255, 0.14);

  /* Gradientes */
  --grad-brand:    linear-gradient(135deg, var(--brand-500), var(--accent-500));
  --grad-text:     linear-gradient(120deg, #ffffff 0%, #cdd9ff 45%, var(--accent-400) 100%);
  --grad-line:     linear-gradient(90deg, transparent, var(--brand-500), var(--accent-500), transparent);

  /* Sombras */
  --shadow-sm:     0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:     0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:     0 24px 64px rgba(0, 0, 0, 0.55);
  --glow-brand:    0 0 0 1px rgba(79, 125, 249, 0.35), 0 12px 40px rgba(79, 125, 249, 0.25);

  /* Tipografía fluida */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-lg:   clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3:   clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h2:   clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-h1:   clamp(2.25rem, 1.5rem + 3.4vw, 4rem);

  /* Espaciado */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
  --sp-4: 1rem;     --sp-5: 1.5rem;   --sp-6: 2rem;
  --sp-7: 3rem;     --sp-8: 4rem;     --sp-9: 6rem;

  /* Radios */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 18px;  --r-xl: 24px;  --r-full: 999px;

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent-500); color: #fff; }

/* ---------- 3. LAYOUT ---------- */
.contenedor {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.seccion { padding-block: clamp(3.5rem, 9vw, 7rem); }
.seccion--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

.seccion--alt {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(79, 125, 249, 0.07), transparent 70%),
    var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--brand-500);
  color: #fff;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 4. TIPOGRAFÍA DE SECCIÓN ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.375rem 0.875rem;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-400);
  background: var(--brand-soft);
  border: 1px solid rgba(79, 125, 249, 0.22);
  border-radius: var(--r-full);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 8px var(--brand-400);
}

.seccion__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.seccion__head--center { margin-inline: auto; text-align: center; }
.seccion__head h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.seccion__head p { font-size: var(--fs-lg); color: var(--text-3); text-wrap: pretty; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. BOTONES ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow-brand); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-500);
  box-shadow: none;
}

.btn--sm { padding: 0.625rem 1.25rem; font-size: var(--fs-xs); }

/* ---------- 6. HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  font-size: 0.875rem;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(79, 125, 249, 0.35);
}

.nav { display: flex; align-items: center; gap: var(--sp-2); }

.nav__link {
  position: relative;
  padding: 0.5rem 0.875rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-full);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.nav__link:hover, .nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav__cta { margin-left: var(--sp-3); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px; height: 42px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: background-color 0.25s var(--ease);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-1);
    padding: var(--sp-5) var(--gutter) var(--sp-6);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__link { padding: 0.875rem 1rem; font-size: 1.0625rem; }
  .nav__cta { margin: var(--sp-3) 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(79, 125, 249, 0.20), transparent 65%),
    radial-gradient(50% 45% at 85% 25%, rgba(139, 92, 246, 0.16), transparent 65%),
    linear-gradient(180deg, #0d1730 0%, var(--bg) 78%);
  z-index: -2;
}

/* Rejilla sutil */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 65% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 50% 30%, #000 20%, transparent 100%);
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; }
}

.hero__copy { max-width: 34rem; }
@media (max-width: 899px) {
  .hero__copy { max-width: 40rem; margin-inline: auto; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__proof { justify-content: center; }
}

.hero h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--sp-5);
}

.hero__sub {
  font-size: var(--fs-lg);
  color: var(--text-2);
  text-wrap: pretty;
  margin-bottom: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-7);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero__proof li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.hero__proof svg { width: 16px; height: 16px; color: var(--brand-400); flex-shrink: 0; }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: float 7s ease-in-out infinite;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 12% 8% 6%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(79, 125, 249, 0.30), transparent 70%);
  filter: blur(50px);
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------- 8. TIRA DE CIFRAS ---------- */
.clientes { text-align: center; }
.clientes__titulo { font-size: var(--fs-sm); color: var(--text-3); margin-bottom: var(--sp-5); }
.clientes__lista {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-6);
  padding: 0;
  list-style: none;
}
.clientes__lista li {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.clientes__lista a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
.clientes__lista a:hover { color: var(--text); }

/* ---------- 9. TARJETAS DE SERVICIO ---------- */
.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 620px)  { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .servicios-grid { grid-template-columns: repeat(4, 1fr); } }

.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.tarjeta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(79, 125, 249, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.tarjeta > * { position: relative; z-index: 1; }
.tarjeta:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 125, 249, 0.4);
  box-shadow: var(--shadow-md);
}
.tarjeta:hover::before { opacity: 1; }

.tarjeta__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-2);
  color: var(--brand-400);
  background: var(--brand-soft);
  border: 1px solid rgba(79, 125, 249, 0.2);
  border-radius: var(--r-md);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tarjeta__icon svg { width: 26px; height: 26px; }
.tarjeta:hover .tarjeta__icon { color: var(--accent-400); background: var(--accent-soft); }

.tarjeta h3 { font-size: var(--fs-h3); }
.tarjeta p { font-size: var(--fs-sm); color: var(--text-3); text-wrap: pretty; }

/* ---------- 10. PROCESO ---------- */
.proceso-grid {
  display: grid;
  gap: var(--sp-5);
  counter-reset: paso;
}
@media (min-width: 720px) { .proceso-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .proceso-grid { grid-template-columns: repeat(4, 1fr); } }

.paso {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.paso:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.paso__num {
  counter-increment: paso;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  background: var(--grad-brand);
  border-radius: var(--r-full);
  box-shadow: 0 6px 18px rgba(79, 125, 249, 0.3);
}
.paso__num::before { content: "0" counter(paso); }

.paso h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.paso p { font-size: var(--fs-sm); color: var(--text-3); }

/* conector horizontal en desktop */
@media (min-width: 1040px) {
  .paso:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(var(--sp-6) + 20px);
    right: calc(var(--sp-5) * -1 - 1px);
    width: var(--sp-5);
    height: 1px;
    background: var(--grad-line);
  }
}

/* ---------- 11. PORTAFOLIO ---------- */
.portafolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 700px)  { .portafolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .portafolio-grid { grid-template-columns: repeat(3, 1fr); } }

.proyecto {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.proyecto:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: var(--shadow-md);
}

.proyecto__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
}
.proyecto__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.proyecto:hover .proyecto__img img { transform: scale(1.05); }

.proyecto__body { padding: var(--sp-5); }
.proyecto__body h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.proyecto__body p { font-size: var(--fs-sm); color: var(--text-3); }

.proyecto__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--brand-400);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.proyecto__link:hover { color: var(--accent-400); gap: var(--sp-3); }
.proyecto__link svg { width: 15px; height: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.tags li {
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-xs);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
}

/* ---------- 12. TABS ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2);
  margin-bottom: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  width: fit-content;
  max-width: 100%;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-3);
  border-radius: var(--r-full);
  transition: color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tab-btn:hover { color: var(--text); }
.tab-btn[aria-selected="true"] {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 6px 20px rgba(79, 125, 249, 0.3);
}
.tab-btn svg { width: 16px; height: 16px; }

.tab-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.tab-panel[hidden] { display: none; }
.tab-panel h3 { font-size: var(--fs-h2); margin-bottom: var(--sp-5); }
.tab-panel p { color: var(--text-3); text-wrap: pretty; }

.checklist {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (min-width: 720px) { .checklist { grid-template-columns: repeat(3, 1fr); } }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text);
}
.checklist svg {
  width: 18px; height: 18px;
  margin-top: 3px;
  color: var(--brand-400);
  flex-shrink: 0;
}

/* Animación de entrada del panel */
.tab-panel.is-entering { animation: panelIn 0.35s var(--ease); }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 13. CTA / CONTACTO ---------- */
.cta {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 65%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-line);
}
.cta h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.cta p {
  max-width: 42rem;
  margin: 0 auto var(--sp-6);
  font-size: var(--fs-lg);
  color: var(--text-3);
  text-wrap: pretty;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.contacto-directo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  justify-content: center;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.contacto-directo a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
  transition: color 0.25s var(--ease);
}
.contacto-directo a:hover { color: var(--brand-400); }
.contacto-directo svg { width: 17px; height: 17px; color: var(--text-3); }

/* ---------- 13b. FORMULARIO DE CONTACTO ---------- */
.contacto-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(70% 100% at 0% 0%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
}
@media (min-width: 900px) {
  .contacto-grid { grid-template-columns: 0.85fr 1fr; }
}

.contacto-info h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.contacto-info p {
  font-size: var(--fs-lg);
  color: var(--text-3);
  text-wrap: pretty;
  margin-bottom: var(--sp-6);
}

.contacto-directo--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-top: var(--sp-5);
  justify-content: flex-start;
}
.contacto-directo--stack a { font-size: var(--fs-base); }
.contacto-directo--stack svg { width: 19px; height: 19px; color: var(--brand-400); }

.form { display: grid; gap: var(--sp-4); }

.form__row {
  display: grid;
  gap: var(--sp-4);
}
@media (min-width: 520px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.form__field { display: grid; gap: var(--sp-2); }
.form__field > span {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.form textarea { resize: vertical; min-height: 120px; }

.form input::placeholder,
.form textarea::placeholder { color: var(--text-3); }

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form input:user-invalid,
.form textarea:user-invalid {
  border-color: var(--danger);
}

/* honeypot: oculto para humanos, visible para bots */
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form__submit {
  justify-self: start;
  margin-top: var(--sp-1);
}
.form__submit svg { width: 18px; height: 18px; }
.form__submit[disabled] { opacity: 0.65; cursor: progress; }

.form__status {
  font-size: var(--fs-sm);
  min-height: 1.2em;
  margin: 0;
}
.form__status.is-ok { color: var(--success); }
.form__status.is-error { color: var(--danger); }

/* ---------- 14. FOOTER ---------- */
.footer {
  padding-block: var(--sp-6);
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
}
.footer p { font-size: var(--fs-sm); color: var(--text-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer nav a {
  font-size: var(--fs-sm);
  color: var(--text-3);
  transition: color 0.25s var(--ease);
}
.footer nav a:hover { color: var(--text); }

/* ---------- 15. WHATSAPP FLOTANTE ---------- */
.wsp {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wsp:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5); }
.wsp svg { width: 30px; height: 30px; }

.wsp::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- 16. ANIMACIONES DE SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- 17. ACCESIBILIDAD / MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}