/* =========================================================
   DEAC Solutions — Estilos
   Paleta sobria · Azul oscuro principal · Acento cálido
   Sans-serif · Sin gradientes neón · Sin animaciones decorativas
   ========================================================= */

/* Fuentes self-hosted (sin Google Fonts) — ver legal.html */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/Inter-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Inter-Bold.woff2") format("woff2");
}

:root {
  /* Paleta */
  --bg:        #f7f7f5;     /* gris muy claro, cálido */
  --surface:   #ffffff;     /* tarjetas, formularios */
  --soft:      #efeeea;     /* secciones diferenciadas */
  --ink:       #14233a;     /* azul oscuro principal */
  --ink-2:     #2b3a52;     /* texto secundario fuerte */
  --muted:     #5a6577;     /* texto secundario */
  --muted-2:   #8a93a3;     /* texto auxiliar */
  --border:    #e4e2dc;     /* borde sutil */
  --border-2:  #d8d6cf;
  --accent:    #b46a3a;     /* acento cálido (cobre/terracota apagado) */
  --accent-2:  #8c4f29;
  --dark:      #0f1a2c;     /* fondo sección oscura */
  --dark-2:    #18243a;
  --on-dark:   #e9ecef;
  --on-dark-2: #b9bfc9;

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

  --radius:    6px;
  --radius-lg: 12px;

  --container: 1120px;
  --narrow:    760px;

  --section-y:   7rem;
  --section-y-m: 4.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.narrow { max-width: var(--narrow); }

/* ========== Tipografía ========== */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
h1 { font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.7vw, 2.5rem); line-height: 1.18; }
h3 { font-size: 1.2rem; line-height: 1.35; }
h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-2); }
strong { font-weight: 600; color: var(--ink); }
em { color: var(--ink-2); font-style: italic; }

/* ========== Header ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    backdrop-filter 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(247, 247, 245, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
          backdrop-filter: saturate(160%) blur(10px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-text span {
  color: var(--accent);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border-2);
  background: transparent;
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ========== Botones ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
}
.nav-cta { padding: 9px 18px; font-size: 0.9rem; }

/* ========== Selector de idioma ES · EN ========== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-right: 0.9rem;
  color: var(--muted);
  user-select: none;
}
.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch .lang-active {
  color: var(--ink);
  font-weight: 600;
}
.lang-switch span[aria-hidden] {
  color: var(--border-2);
}
@media (max-width: 880px) {
  .lang-switch { margin-right: 0.5rem; font-size: 0.72rem; }
}

/* ========== Sección ========== */
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section-soft  { background: var(--soft); }
.section-dark  { background: var(--dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-2); }
.section-dark em { color: var(--on-dark); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.section-lead {
  margin-top: 18px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
}
.section-dark .section-lead { color: var(--on-dark-2); }

/* ========== HERO (Sección 1) ========== */
.hero {
  padding-top: 160px;
  padding-bottom: 120px;
  background:
    radial-gradient(60% 50% at 90% 10%, rgba(180, 106, 58, 0.09), transparent 60%),
    radial-gradient(45% 60% at 5% 90%, rgba(20, 35, 58, 0.04), transparent 60%),
    var(--bg);
}
.hero-copy { max-width: 780px; }
.hero-title {
  font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
}
.hero-title-soft {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
}
.hero-lead {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}
.hero-actions {
  margin-bottom: 48px;
}
.hero-sign {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  max-width: 460px;
}
.hero-sign strong { font-size: 1rem; color: var(--ink); }
.hero-sign span { font-size: 0.92rem; color: var(--muted); }

.hero-photo { margin: 0; }
.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px -30px rgba(20, 35, 58, 0.2);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0 14px,
    rgba(20, 35, 58, 0.025) 14px 15px
  );
  pointer-events: none;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-frame-portrait { aspect-ratio: 3 / 4; }

/* ========== Etiqueta de sección (común a §2-§6) ========== */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Offset para anclas con header fijo */
section[id] { scroll-margin-top: 80px; }

/* ========== EL PROBLEMA (Sección 2) · Flip cards ========== */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.ps-card { grid-column: span 2; }
.ps-card:nth-child(4) { grid-column: 2 / span 2; }
.ps-card:nth-child(5) { grid-column: 4 / span 2; }
.ps-card {
  perspective: 1400px;
  cursor: pointer;
  min-height: 230px;
  outline: none;
}
.ps-card:focus-visible .ps-flip { box-shadow: 0 0 0 3px rgba(180, 106, 58, 0.4); }

.ps-flip {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform 0.7s var(--ease);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
}
.ps-card:hover .ps-flip,
.ps-card.is-flipped .ps-flip { transform: rotateY(180deg); }

.ps-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  overflow: hidden;
}
.ps-front {
  background: var(--surface);
  border: 1px solid var(--border);
}
.ps-back {
  background: var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--dark);
  transform: rotateY(180deg);
}

.ps-num {
  font-size: 2.25rem; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  align-self: flex-start;
}
.ps-front p {
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin-top: 0.35rem;
  flex: 1;
}
.ps-hint {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
}
.ps-hint svg { width: 14px; height: 14px; color: var(--accent); transition: transform 0.35s var(--ease); }
.ps-card:hover .ps-hint svg { transform: translateX(3px); }

.ps-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.ps-back h4 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--on-dark);
  margin: 0.1rem 0;
  line-height: 1.35;
}
.ps-back p {
  font-size: 0.95rem;
  color: var(--on-dark-2);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.ps-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--accent);
  text-decoration: none; font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.ps-link:hover { border-bottom-color: var(--accent); }
.ps-link svg { width: 14px; height: 14px; }

.ps-foot {
  max-width: 780px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.ps-foot a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: 500;
}

@media (max-width: 880px) {
  .ps-grid { grid-template-columns: repeat(2, 1fr); }
  .ps-card,
  .ps-card:nth-child(4),
  .ps-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 560px) {
  .ps-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-flip { transition: opacity 0.25s linear; transform: none !important; }
  .ps-card:hover .ps-front,
  .ps-card.is-flipped .ps-front { opacity: 0; }
  .ps-card:hover .ps-back,
  .ps-card.is-flipped .ps-back { transform: none; }
  .ps-back { transform: none; }
}

/* ========== QUÉ HAGO (Sección 3) · Tabs verticales ========== */
.svc-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 3rem;
  align-items: start;
}
.svc-tabs {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 0.25rem;
  border-left: 1px solid var(--border);
}
.svc-tab {
  position: relative;
  display: flex; gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: transparent;
  border: 0; text-align: left; width: 100%;
  font-family: inherit;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.svc-tab::before {
  content: ""; position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2px; background: transparent;
  transition: background 0.25s var(--ease);
}
.svc-tab:hover { color: var(--ink-2); background: rgba(180, 106, 58, 0.04); }
.svc-tab[aria-selected="true"] { color: var(--ink); }
.svc-tab[aria-selected="true"]::before { background: var(--accent); }
.svc-tab .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600; color: var(--accent);
  min-width: 1.75rem; font-size: 0.95rem;
}
.svc-tab .lbl {
  display: block; font-weight: 500;
  font-size: 1rem; color: inherit; line-height: 1.35;
}
.svc-tab .lbl small {
  display: block;
  font-weight: 400; font-size: 0.82rem;
  color: var(--muted-2); margin-top: 0.15rem;
}
.svc-tab[aria-selected="true"] .lbl small { color: var(--muted); }

.svc-panel { position: relative; min-height: 280px; }
.svc-panel-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  opacity: 0; transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.svc-panel-card.is-active {
  opacity: 1; transform: translateY(0);
  pointer-events: auto; position: relative;
}
.svc-panel-card .big-num {
  font-size: 4rem; line-height: 1;
  font-weight: 700; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.svc-panel-card h3 { font-size: 1.6rem; font-weight: 600; color: var(--ink); }
.svc-panel-card .tag {
  font-size: 0.95rem; color: var(--accent);
  font-weight: 500; font-style: italic;
  margin: 0;
}
.svc-panel-card p {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--ink-2); max-width: 60ch;
  margin: 0;
}

@media (max-width: 880px) {
  .svc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .svc-tabs {
    flex-direction: row; overflow-x: auto;
    border-left: 0; border-bottom: 1px solid var(--border);
    padding-bottom: 0.25rem; gap: 0;
  }
  .svc-tab {
    flex: 0 0 auto; padding: 0.75rem 1rem;
    flex-direction: column; gap: 0.15rem; min-width: 140px;
  }
  .svc-tab::before {
    left: 0; right: 0; top: auto; bottom: -1px;
    height: 2px; width: auto;
  }
  .svc-tab .num { min-width: auto; }
  .svc-panel { min-height: auto; }
  .svc-panel-card { padding: 1.5rem; }
}

/* ========== PARA QUIÉN (Sección 4) · Cards 2x2 con icono ========== */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
.aud-grid > .aud-card { grid-column: span 2; }
/* Si hay exactamente 5 tarjetas: 3 arriba + 2 abajo centradas */
.aud-grid > .aud-card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
.aud-grid > .aud-card:nth-child(5):nth-last-child(1) { grid-column: 4 / span 2; }
@media (max-width: 900px) {
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .aud-grid > .aud-card,
  .aud-grid > .aud-card:nth-child(4):nth-last-child(2),
  .aud-grid > .aud-card:nth-child(5):nth-last-child(1) { grid-column: auto; }
}
@media (max-width: 720px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s var(--ease), transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.aud-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(20, 35, 58, 0.18);
}
.aud-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(180, 106, 58, 0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.aud-icon svg { width: 26px; height: 26px; }
.aud-card h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin: 0; }
.aud-card p { font-size: 0.98rem; color: var(--ink-2); line-height: 1.65; margin: 0; }

.aud-extra {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background: transparent;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}
.aud-extra strong { color: var(--ink-2); font-weight: 500; }

/* ========== CÓMO TRABAJO (Sección 5) · Carrusel ========== */
.approach-carousel { position: relative; margin-top: 0.5rem; }
.approach-carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg); }

.approach-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.approach-track { position: relative; min-height: 360px; }

.approach-slide {
  position: absolute; inset: 0;
  padding: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}
.approach-slide.is-active {
  opacity: 1; transform: translateX(0); pointer-events: auto;
}
.approach-slide.is-leaving {
  opacity: 0; transform: translateX(-28px);
}
.approach-num {
  font-size: clamp(4.5rem, 11vw, 7.5rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  position: relative;
}
.approach-num::after {
  content: ""; display: block;
  width: 48px; height: 2px;
  background: var(--accent);
  margin-top: 1.25rem;
}
.approach-body h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 600; color: var(--on-dark);
}
.approach-body p {
  margin: 0;
  font-size: 1.0625rem; line-height: 1.7;
  color: var(--on-dark-2); max-width: 56ch;
}

.approach-progress {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: rgba(255, 255, 255, 0.06);
}
.approach-progress-fill {
  height: 100%; width: 0;
  background: var(--accent);
  transition: width 0.18s linear;
}

.approach-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin-top: 1.75rem;
}
.approach-dots {
  display: flex; gap: 0.625rem;
  list-style: none; margin: 0; padding: 0;
}
.approach-dot {
  appearance: none;
  background: transparent; border: 0;
  padding: 0.5rem 0.25rem;
  cursor: pointer; display: block;
}
.approach-dot::before {
  content: ""; display: block;
  width: 28px; height: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.approach-dot[aria-selected="true"]::before {
  width: 44px; background: var(--accent);
}
.approach-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px; border-radius: 2px;
}

.approach-arrows { display: flex; gap: 0.5rem; }
.approach-arrow {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.approach-arrow:hover { border-color: var(--accent); color: var(--accent); }
.approach-arrow:active { transform: scale(0.96); }
.approach-arrow svg { width: 18px; height: 18px; }

.approach-counter {
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--on-dark-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.approach-counter strong { color: var(--on-dark); font-weight: 600; }

@media (max-width: 720px) {
  .approach-slide {
    grid-template-columns: 1fr; gap: 1.25rem;
    align-items: start;
    padding: 2rem 1.5rem 2.25rem;
  }
  .approach-num::after { margin-top: 0.75rem; }
  .approach-track { min-height: 380px; }
  .approach-controls { flex-direction: row-reverse; justify-content: space-between; }
  .approach-counter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .approach-slide { transition: opacity 0.2s linear; transform: none !important; }
  .approach-progress-fill { transition: none; }
}

.approach-close {
  margin: 56px auto 0;
  max-width: 760px;
  font-size: 1.05rem;
  color: var(--on-dark-2);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
}

/* ========== SOBRE MÍ (Sección 6) · Bio editorial ========== */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 880px) { .bio-grid { grid-template-columns: 1fr; gap: 2rem; } }

.bio-photo { margin: 0; position: sticky; top: 100px; }
@media (max-width: 880px) { .bio-photo { position: static; } }

.bio-photo .frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(20, 35, 58, 0.2);
}
.bio-photo .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.bio-copy {
  display: flex; flex-direction: column;
  gap: 1.25rem;
  max-width: 62ch;
}
.bio-copy p {
  font-size: 1.0625rem; line-height: 1.75;
  color: var(--ink-2);
  margin: 0;
}
.bio-copy p strong { color: var(--ink); font-weight: 600; }

.bio-quote {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 2px solid var(--accent);
  margin: 0.25rem 0;
}
.bio-quote em { color: var(--accent); font-style: normal; font-weight: 600; }

.bio-tags {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.bio-tags-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.75rem;
}
.bio-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.bio-tag {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--surface);
}

/* ========== PROYECTOS · Carrusel (Sección 7) ========== */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .carousel-head { flex-direction: column; align-items: flex-start; }
}
.carousel-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.carousel-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.carousel-btn:active { transform: scale(0.96); }
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-2);
}
.carousel-count {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
}
@media (max-width: 800px) {
  .slide { grid-template-columns: 1fr; min-height: 0; }
}

.slide-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}
.slide-visual::after {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 80%; height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.slide-illu { width: 100%; max-width: 220px; height: auto; color: rgba(255,255,255,0.92); }
.slide-sector {
  position: absolute;
  top: 24px; left: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

/* Variantes de fondo (sutiles, una por sector) */
.visual-dental         { background: linear-gradient(140deg, #1f3a5b, #14233a); }
.visual-startup        { background: linear-gradient(140deg, #244659, #142938); }
.visual-beauty         { background: linear-gradient(140deg, #6b3a26, #3d2418); }
.visual-international  { background: linear-gradient(140deg, #2c3a4e, #1a2433); }

.slide-body {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 800px) { .slide-body { padding: 32px 28px; } }

.slide-meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.slide-body h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.slide-summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}
.slide-actions {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.slide-actions li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.slide-actions li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.slide-result {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 480px) { .slide-result { grid-template-columns: 1fr; gap: 12px; } }
.kpi strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}
.kpi span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.carousel-dots button {
  width: 28px; height: 4px;
  border: none;
  border-radius: 999px;
  background: var(--border-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), width 0.25s var(--ease);
}
.carousel-dots button:hover { background: var(--muted-2); }
.carousel-dots button.is-active {
  background: var(--ink);
  width: 44px;
}

/* ========== Animaciones de los visuales del carrusel (Sección 7) ========== */

/* Caso 1 · Dental — diente respira (escala suave + opacidad) */
.anim-dental-tooth {
  transform-origin: 100px 110px;
  transform-box: fill-box;
  animation: dentalBreathe 5.5s ease-in-out infinite;
}
@keyframes dentalBreathe {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50%      { transform: scale(1.06); opacity: 0.85; }
}

/* Caso 2 · Salud digital — la línea se dibuja, el punto pulsa */
.anim-startup-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: startupDraw 4s var(--ease) infinite;
}
@keyframes startupDraw {
  0%        { stroke-dashoffset: 320; opacity: 0.2; }
  35%       { opacity: 0.7; }
  70%, 100% { stroke-dashoffset: 0; opacity: 0.7; }
}
.anim-startup-dot {
  transform-origin: 180px 40px;
  transform-box: fill-box;
  animation: startupPulse 4s var(--ease) infinite;
  opacity: 0;
}
@keyframes startupPulse {
  0%, 60%   { opacity: 0; transform: scale(0.4); }
  75%       { opacity: 1; transform: scale(1.3); }
  85%, 100% { opacity: 0.85; transform: scale(1); }
}

/* Caso 3 · Cosmética — gota flota verticalmente */
.anim-beauty-drop {
  transform-box: fill-box;
  transform-origin: center;
  animation: beautyFloat 4.5s ease-in-out infinite;
}
@keyframes beautyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Caso 4 · Internacional — órbita rota lentamente, pins pulsan */
.anim-international-orbit {
  transform-origin: 100px 100px;
  transform-box: fill-box;
  animation: orbitSpin 28s linear infinite;
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.anim-international-pin {
  transform-box: fill-box;
  transform-origin: center;
  animation: pinPulse 3s ease-in-out infinite;
}
@keyframes pinPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.55; }
}

/* Respeto a usuarios que prefieren menos animación */
@media (prefers-reduced-motion: reduce) {
  .anim-dental-tooth,
  .anim-startup-line,
  .anim-startup-dot,
  .anim-beauty-drop,
  .anim-international-orbit,
  .anim-international-pin {
    animation: none;
  }
  .anim-startup-line { stroke-dashoffset: 0; opacity: 0.7; }
  .anim-startup-dot { opacity: 0.85; }
}

/* ========== HABLEMOS (Sección 8) ========== */
.contact-form {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 35, 58, 0.08);
}

.contact-form .btn { justify-self: start; }
.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent);
  min-height: 1.2em;
}

.contact-alt {
  margin: 0 0 32px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.alt-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}
.alt-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.alt-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 0.96rem;
}
.alt-list li span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.alt-list li a {
  color: var(--ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.alt-list li a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.signoff {
  margin: 24px 0 0;
  text-align: left;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}
.signoff strong { color: var(--ink); }

/* ========== Footer ========== */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--soft);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}
.footer-links { display: inline-flex; gap: 10px; align-items: center; }
.footer-links a { color: var(--ink-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ========== Responsive nav ========== */
@media (max-width: 900px) {
  :root { --section-y: var(--section-y-m); }
  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(247, 247, 245, 0.97);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ========== Formulario: honeypot, RGPD, éxito ========== */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.field-check { gap: 0; }
.field-check .check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  cursor: pointer;
  line-height: 1.5;
}
.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.field-check a:hover { color: var(--ink); }

.form-success {
  margin: 0 0 40px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
}
.form-success h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--ink);
}
.form-success p { margin: 0; color: var(--ink-2); }

/* ========== Página legal (legal.html) ========== */
.legal-page { padding: 100px 0 80px; }
.legal-page .container { max-width: 780px; }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.legal-back:hover { color: var(--accent); }
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  color: var(--ink);
}
.legal-sub {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.95rem;
}
.legal-note {
  margin: 0 0 28px;
  padding: 14px 18px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.legal-note a { color: var(--accent); }
.legal-toc {
  list-style: none;
  margin: 0 0 48px;
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.legal-toc a { color: var(--ink-2); }
.legal-toc a:hover { color: var(--accent); }
.legal-page section + section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.legal-page h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0 0 18px;
  color: var(--ink);
}
.legal-page h3 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
  color: var(--ink);
}
.legal-page p,
.legal-page li { color: var(--ink-2); line-height: 1.7; }
.legal-page ul { padding-left: 22px; }
.legal-page .ph {
  background: rgba(180, 106, 58, 0.10);
  padding: 0 4px;
  border-radius: 3px;
  color: var(--ink);
  font-style: normal;
}
