/* ==========================================================================
   DOIS Consultora — hoja de estilos principal
   Paleta de marca: gris #dcdcdc · lavanda #a167eb / #b267ea · morado #8e56eb
   Texto y botones usan un morado más oscuro (#6a38c2) para contraste AA.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #8e56eb;
  --lavender: #a167eb;
  --lavender-2: #b267ea;
  --accent: #6a38c2;        /* texto y botones sobre fondo claro (AA) */
  --accent-dark: #5628a3;
  --gray: #dcdcdc;
  --lav-100: #ece3fc;
  --lav-50: #f6f1fe;

  --ink: #1d1730;
  --text: #3b3550;
  --muted: #6a6480;
  --bg: #faf8f6;
  --bg-alt: #f1eeeb;
  --white: #ffffff;
  --line: #e4dfe9;
  --night: #241647;
  --night-2: #1a0f35;
  --on-night: #e9e2f7;
  --on-night-soft: #bfb3dc;

  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;
  --shadow: 0 1px 2px rgba(29, 23, 48, 0.05), 0 12px 32px -12px rgba(60, 30, 120, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.006em; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container--narrow { max-width: 860px; }

/* Motivo gráfico: el isotipo como máscara, para teñirlo con cualquier color */
.motif {
  position: absolute; pointer-events: none; z-index: 0;
  -webkit-mask: url("../assets/icons/isotipo-mask.svg") center / contain no-repeat;
  mask: url("../assets/icons/isotipo-mask.svg") center / contain no-repeat;
  background: linear-gradient(165deg, var(--lavender-2), var(--violet));
  opacity: 0.14;
}

/* ---------- Tipografía editorial ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 16px; height: 16px; flex: none;
  -webkit-mask: url("../assets/icons/isotipo-mask.svg") center / contain no-repeat;
  mask: url("../assets/icons/isotipo-mask.svg") center / contain no-repeat;
  background: var(--violet);
}
.eyebrow--light { color: #d9c9f7; }
.eyebrow--light::before { background: var(--lavender-2); }

.h1 { font-size: clamp(2.35rem, 5.2vw, 4.25rem); font-variation-settings: "opsz" 144; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-variation-settings: "opsz" 120; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--accent); font-weight: 400; }
.on-dark .h1, .on-dark .h2, .on-dark .h3, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .h2 em, .on-dark .h1 em { color: #cdb3f5; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--text); max-width: 62ch; }
.on-dark { color: var(--on-night); }
.on-dark .lede { color: var(--on-night); }
.text-balance { text-wrap: balance; }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--white { background: var(--white); }
.section--night { background: var(--night); color: var(--on-night); overflow: hidden; }
.section--night .container { position: relative; z-index: 1; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.section-head .lede { margin-top: 1.2rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 0.95rem/1.2 var(--font-sans); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(106, 56, 194, 0.7); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--light { background: #fff; color: var(--night); }
.btn--light:hover { background: var(--lav-100); color: var(--night); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { background: #fff; color: var(--night); }
.btn--small { padding: 0.7em 1.2em; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 700; text-decoration: none; color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: #d9c9f7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(250, 248, 246, 0.9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 28px -22px rgba(60, 30, 120, 0.5); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.3em; color: var(--ink); }
.brand__sub { margin-top: 0.22rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav__link {
  position: relative; display: block; padding: 0.4rem 0; font-size: 0.9rem; font-weight: 600; color: var(--text); text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--accent); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero .motif { width: min(760px, 85vw); aspect-ratio: 1; right: -210px; top: -150px; opacity: 0.13; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.hero h1 { margin-bottom: 1.5rem; max-width: 18ch; font-size: clamp(2.2rem, 4.4vw, 3.6rem); text-wrap: balance; }
.hero .lede { margin-bottom: 2rem; }
.hero__phones { margin-top: 1.6rem; font-size: 0.95rem; color: var(--muted); }
.hero__phones a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.hero__phones a:hover { color: var(--accent); }

.fact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem);
  box-shadow: var(--shadow);
}
.fact-card dl { margin: 0; }
.fact-card div + div { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.fact-card dt { margin-bottom: 0.25rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.fact-card dd { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.35; color: var(--ink); }

.page-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-hero .motif { width: min(560px, 80vw); aspect-ratio: 1; right: -150px; top: -130px; opacity: 0.12; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; text-wrap: balance; }
.page-hero .lede { margin-top: 1.4rem; }
.breadcrumbs { display: flex; gap: 0.5rem; margin: 0 0 1.6rem; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* Cinta de datos bajo el hero */
.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip__list { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.strip__item { padding: 1.4rem 1.5rem; border-left: 1px solid var(--line); font-size: 0.95rem; line-height: 1.4; }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__item strong { display: block; margin-bottom: 0.15rem; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--ink); }

/* ---------- Banda del eslogan ---------- */
.slogan { position: relative; overflow: hidden; background: var(--night); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.slogan .motif { width: 560px; aspect-ratio: 1; left: -140px; bottom: -280px; opacity: 0.22; }
.slogan .motif--r { left: auto; right: -160px; top: -240px; bottom: auto; opacity: 0.12; }
.slogan .container { position: relative; z-index: 1; }
.slogan blockquote { margin: 0; max-width: 22ch; font-family: var(--font-serif); font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -0.008em; color: #fff; text-wrap: balance; font-variation-settings: "opsz" 144; }
.slogan blockquote em { color: #cdb3f5; font-style: italic; }
.slogan__note { margin: 1.8rem 0 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-soft); }

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.split--top { align-items: start; }
.photo { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); box-shadow: 14px 14px 0 var(--lav-100); }
.prose p { max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* Tres pilares (quiénes somos) */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.trio__item { padding: 1.6rem 1.8rem 0 0; }
.trio__item + .trio__item { padding-left: 1.8rem; border-left: 1px solid var(--line); }
.trio__item h3 { margin-bottom: 0.6rem; font-size: 1.35rem; }
.trio__item p { margin: 0; color: var(--text); }

/* Especialidades */
.chips-big { display: flex; flex-wrap: wrap; gap: 0.8rem; list-style: none; margin-top: 1.4rem; }
.chips-big li {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75em 1.4em; border-radius: 999px;
  background: var(--lav-100); color: var(--accent-dark); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem;
}
.chips-big li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }

/* ---------- Tarjetas de servicio ---------- */
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.service-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; padding: 1.9rem 1.8rem 1.7rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service-card:nth-child(n+4) { grid-column: span 3; }
.service-card:hover { transform: translateY(-4px); border-color: var(--lavender); box-shadow: var(--shadow); color: var(--text); }
.service-card__num { font-family: var(--font-serif); font-size: 0.95rem; color: var(--muted); letter-spacing: 0.1em; }
.service-card__icon { width: 48px; height: 48px; margin: 1rem 0 1.2rem; display: grid; place-items: center; border-radius: 12px; background: var(--lav-100); color: var(--accent); }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.6rem; font-size: 1.5rem; }
.service-card p { flex: 1; margin-bottom: 1.2rem; font-size: 0.98rem; }
.service-card .link-arrow { font-size: 0.92rem; }

/* ---------- Lista numerada editorial ---------- */
.num-list { list-style: none; counter-reset: n; }
.num-list > li {
  counter-increment: n; position: relative; padding: 0.95rem 0 0.95rem 3rem; border-bottom: 1px solid var(--line);
}
.num-list > li:first-child { border-top: 1px solid var(--line); }
.num-list > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.95rem; font-family: var(--font-serif); font-size: 1rem; color: var(--violet); font-weight: 500;
}
.num-list strong { color: var(--ink); }
.on-dark .num-list > li { border-color: rgba(255, 255, 255, 0.14); }
.on-dark .num-list > li::before { color: #cdb3f5; }

/* Bloque de línea de servicio (soluciones) */
.line-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.line-block:first-of-type { border-top: 0; }
.line-block__title .service-card__icon { margin-top: 0; }
.line-block__title h2 { margin-bottom: 0.9rem; }
.line-block__title p { color: var(--muted); max-width: 34ch; }
.line-block__sub { margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.line-block__sub:not(:first-child) { margin-top: 2rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.tag-row li {
  padding: 0.55em 1.15em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 0.9rem; color: var(--accent-dark); letter-spacing: 0.04em; text-transform: uppercase;
}

.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(250, 248, 246, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav__list { display: flex; gap: 0.4rem; list-style: none; overflow-x: auto; scrollbar-width: none; padding-block: 0.6rem; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { display: block; white-space: nowrap; padding: 0.5em 1.1em; border-radius: 999px; font-size: 0.88rem; font-weight: 700; text-decoration: none; color: var(--text); }
.subnav__list a:hover { background: var(--lav-100); color: var(--accent-dark); }

.pullquote { max-width: 860px; margin: 0 0 clamp(2rem, 4vw, 3rem); padding-left: 1.6rem; border-left: 3px solid var(--violet); font-family: var(--font-serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.4; color: var(--ink); }

/* Dos columnas de listas simples */
.check-list { list-style: none; }
.check-list li { position: relative; padding: 0.55rem 0 0.55rem 2rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1rem; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--violet);
}
.check-list--dark li::before { border-color: #cdb3f5; }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }

/* Perfiles / sectores */
.sector-list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; }
.sector-list li { padding: 0.5em 1.05em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 0.92rem; font-weight: 600; color: var(--text); }
.section--white .sector-list li { background: var(--bg); }

/* Paneles de detalle (tags) */
.panel { padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h3 { margin-bottom: 0.7rem; }
.panel > p { color: var(--text); }
.panel .tag-row { margin-top: 1.1rem; }
.panel .tag-row li { background: var(--lav-50); border-color: transparent; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 0.88rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

/* Cifras */
.figures { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); }
.figures__item strong { display: block; font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; font-weight: 400; color: #fff; font-variation-settings: "opsz" 144; }
.figures__item span { display: block; margin-top: 0.6rem; max-width: 22ch; font-size: 0.95rem; color: var(--on-night-soft); }

/* ---------- Mercado DOIS ---------- */
.mercado { position: relative; }
.mercado .motif { width: 640px; aspect-ratio: 1; right: -200px; bottom: -300px; opacity: 0.2; }
.mercado__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.mercado__date { margin: 0 0 1.4rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-night-soft); }
.mercado h2 { margin-bottom: 1rem; }
.mercado__sub { margin: 0 0 1.8rem; font-size: 1.15rem; line-height: 1.5; color: var(--on-night); max-width: 40ch; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; list-style: none; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; }
.pillars li { padding: 1.7rem 1.5rem; background: var(--night); }
.pillars span { display: block; margin-bottom: 0.7rem; font-family: var(--font-serif); font-size: 0.95rem; color: #cdb3f5; }
.pillars strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; color: #fff; }

/* ---------- Equipo ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 2rem); list-style: none; }
.person { display: flex; flex-direction: column; }
.person__photo { margin: 0 0 1.1rem; overflow: hidden; border-radius: var(--radius); background: var(--lav-100); }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.03); }
.person__role { margin: 0 0 0.35rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.person h3 { margin-bottom: 0.5rem; font-size: 1.35rem; line-height: 1.2; }
.person p { margin: 0 0 0.6rem; font-size: 0.96rem; }

.team-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem); }
.person-lg { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.6rem; align-items: start; }
.person-lg .person__photo { margin: 0; }
.person-lg h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }
.person-lg ul { list-style: none; margin: 0 0 0.9rem; }
.person-lg li { padding: 0.15rem 0; font-size: 0.97rem; }
.person-lg .tag-row { margin-top: 0.8rem; }
.person-lg .tag-row li { padding: 0.35em 0.85em; font-size: 0.78rem; text-transform: none; letter-spacing: 0; font-weight: 600; }
.person-social { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.person-social svg { width: 18px; height: 18px; }

/* ---------- Misión / Visión / Valores ---------- */
.mv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.mv__card { padding: clamp(1.8rem, 3.5vw, 3rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.mv__card--dark { background: var(--night); border-color: var(--night); color: var(--on-night); }
.mv__card--dark h2 { color: #fff; }
.mv__card h2 { margin-bottom: 1.2rem; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.mv__card p:last-child { margin-bottom: 0; }
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); list-style: none; }
.values li { padding: 1.6rem 1.4rem 0 0; }
.values li + li { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.values span { display: block; margin-bottom: 0.8rem; font-family: var(--font-serif); color: var(--violet); }
.values strong { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }

/* Modelo / método */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; list-style: none; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; counter-reset: s; }
.steps li { counter-increment: s; padding: 1.5rem 1.4rem 1.6rem; background: var(--night); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 0.8rem; font-family: var(--font-serif); font-size: 0.95rem; color: #cdb3f5; }
.steps h3 { margin-bottom: 0.4rem; font-size: 1.25rem; color: #fff; }
.steps p { margin: 0; font-size: 0.93rem; color: var(--on-night-soft); }

.pillars-light { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; }
.pillars-light li { padding: 1.6rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.pillars-light h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.pillars-light p { margin: 0; font-size: 0.96rem; }

/* ---------- Nóminas ---------- */
.entities { display: flex; flex-wrap: wrap; gap: 0.8rem; list-style: none; margin-top: 1.6rem; }
.entities li { padding: 0.7em 1.2em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 0.92rem; color: var(--text); }
.entities strong { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(1.8rem, 3vw, 2.6rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.plan--featured { background: var(--night); border-color: var(--night); color: var(--on-night); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: 1.4rem; right: 1.4rem; padding: 0.35em 0.9em; border-radius: 999px; background: var(--lavender-2); color: var(--night-2); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.plan h3 { margin-bottom: 0.4rem; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: 0.04em; }
.plan--featured h3 { color: #fff; }
.plan__lead { margin-bottom: 1.8rem; color: var(--muted); font-size: 0.98rem; }
.plan--featured .plan__lead { color: var(--on-night-soft); }
.plan__who { margin: 1.6rem 0 0.4rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.plan--featured .plan__who { color: #cdb3f5; }
.plan__who:first-of-type { margin-top: 0; }
.plan .check-list li { padding-block: 0.5rem; font-size: 0.97rem; }
.plan .check-list li::before { top: 0.95rem; }
.plan--featured .check-list li::before { border-color: #cdb3f5; }
.plan .client-note { margin: 0; padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--lav-50); color: var(--text); font-size: 0.95rem; }
.plan--featured .client-note { background: rgba(255, 255, 255, 0.08); color: var(--on-night); }

.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; }
.benefits li { padding: 1.5rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.benefits h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.benefits p { margin: 0; font-size: 0.96rem; }

/* ---------- Ecosistema / productos ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.product { display: flex; flex-direction: column; padding: clamp(1.6rem, 3vw, 2.3rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.product__type { margin: 0 0 0.9rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.product h3 { margin-bottom: 0.7rem; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.product p { flex: 1; font-size: 0.98rem; }
.product__cover { position: relative; overflow: hidden; aspect-ratio: 16 / 7; margin: -0.4rem 0 1.5rem; padding: 1.2rem 1.4rem; display: flex; align-items: flex-end; border-radius: var(--radius-sm); background: linear-gradient(160deg, #7a45d6, #5b2eaa); color: #fff; font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.02em; }
.product__cover .motif { width: 180px; aspect-ratio: 1; right: -30px; top: -30px; background: #fff; opacity: 0.18; }
.product__cover span { position: relative; z-index: 1; }
.article { max-width: 780px; }
.article .tag-chip { display: inline-block; margin-bottom: 1rem; padding: 0.35em 0.95em; border-radius: 999px; background: var(--lav-100); color: var(--accent-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.article h3 { margin-bottom: 1rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.note { margin-top: 1.6rem; font-size: 0.93rem; color: var(--muted); }
.socials { display: flex; gap: 0.7rem; list-style: none; flex-wrap: wrap; }
.socials a, .social-btn {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid currentColor; color: var(--accent); transition: background 0.25s, color 0.25s;
}
.socials a:hover, .social-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.on-dark .socials a { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.on-dark .socials a:hover { background: #fff; color: var(--night); border-color: #fff; }
.socials svg { width: 20px; height: 20px; }

/* ---------- Banda CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--night); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(2.5rem, 6vw, 5rem); }
.cta .motif { width: 520px; aspect-ratio: 1; right: -140px; top: -170px; opacity: 0.2; }
.cta__inner { position: relative; z-index: 1; max-width: 700px; }
.cta h2 { margin-bottom: 1.1rem; color: #fff; }
.cta p { color: var(--on-night); }
.cta .btn-row { margin-top: 1.8rem; }
.cta__phones { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-size: 0.95rem; }
.cta__phones a { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.cta__phones a:hover { color: #cdb3f5; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-card { padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--night); color: var(--on-night); border-radius: var(--radius); position: relative; overflow: hidden; }
.contact-card .motif { width: 300px; aspect-ratio: 1; right: -90px; bottom: -110px; opacity: 0.2; }
.contact-card > *:not(.motif) { position: relative; z-index: 1; }
.contact-card h2 { margin-bottom: 0.9rem; color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.contact-card p { color: var(--on-night); }
.contact-card .btn-row { margin-top: 1.4rem; }
.info-list { display: grid; gap: 1.6rem; list-style: none; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.info-item__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--lav-100); color: var(--accent); }
.info-item__icon svg { width: 21px; height: 21px; }
.info-item h3 { margin-bottom: 0.3rem; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.info-item p, .info-item address { margin: 0; font-style: normal; color: var(--text); }
.info-item a { color: var(--text); text-decoration: none; font-weight: 600; }
.info-item a:hover { color: var(--accent); }
.info-item .muted { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.85em 1em; border: 1.5px solid #cfc8da; border-radius: 10px; background: var(--white); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(142, 86, 235, 0.18); }
.form-field input[type="file"] { padding: 0.7em 0.8em; background: var(--bg); }
.form-note { margin: 0.3rem 0 0; font-size: 0.86rem; color: var(--muted); }
.form-status { min-height: 1.4em; margin: 0.8rem 0 0; font-size: 0.92rem; font-weight: 600; }
.form-status[data-state="error"] { color: #b3261e; }
.form-status[data-state="success"] { color: #1d7a48; }
.map { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16 / 6; background: var(--lav-50); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.quote-line { margin: 0 auto; max-width: 780px; text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.35; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-2); color: var(--on-night-soft); padding-top: clamp(3rem, 6vw, 5rem); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 1.1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 3rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: var(--on-night-soft); }
.footer-brand p { margin: 1.2rem 0 0; max-width: 34ch; }
.site-footer h4 { margin-bottom: 1rem; font-family: var(--font-sans); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #cdb3f5; }
.footer-col { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col p { margin: 0; }
.footer-col a { color: var(--on-night); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; font-size: 0.86rem; }
.footer-bottom p { margin: 0; }

.whatsapp-float {
  position: fixed; right: clamp(1rem, 2.5vw, 1.6rem); bottom: clamp(1rem, 2.5vw, 1.6rem); z-index: 90; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: #1e7f46; color: #fff; box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease), background 0.25s;
}
.whatsapp-float:hover { transform: scale(1.08); background: #176a3a; color: #fff; }
.whatsapp-float svg { width: 28px; height: 28px; }

.redirect-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem; }

/* ---------- Ajustes sobre fondos oscuros ---------- */
.section--night .h2 em, .section--night .h1 em, .cta .h2 em, .contact-card h2 em { color: #cdb3f5; }
.section--night .link-arrow, .cta .link-arrow, .site-footer .link-arrow { color: #d9c9f7; }
.section--night .link-arrow:hover { color: #fff; }
.section--night .eyebrow { color: #d9c9f7; }
.section--night .eyebrow::before { background: var(--lavender-2); }
.site-footer .socials a, .cta .socials a { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.site-footer .socials a:hover, .cta .socials a:hover { background: #fff; color: var(--night); border-color: #fff; }
.section--night .num-list > li { border-color: rgba(255, 255, 255, 0.14); }
.section--night .num-list > li::before { color: #cdb3f5; }
.section--night .num-list { color: var(--on-night); }
.footer-bottom-wrap { border-top: 1px solid rgba(255, 255, 255, 0.12); }

.h2 + .lede, .h1 + .lede { margin-top: 1.2rem; }
.num-list.cols-2 { display: block; columns: 2; column-gap: clamp(2rem, 5vw, 4rem); }
.num-list.cols-2 > li { break-inside: avoid; border-top: 1px solid var(--line); border-bottom: 0; }
.num-list.cols-2.on-dark > li, .section--night .num-list.cols-2 > li { border-top-color: rgba(255, 255, 255, 0.14); }
@media (max-width: 980px) { .num-list.cols-2 { columns: 1; } }
