/* Tirtuzza Studio — hoja de estilos del sitio.
   Tokens y componentes reproducidos del handoff de diseño (_handoff/styles.css).
   Las transparencias van en rgba() y no en color-mix() para no depender de
   navegadores muy recientes. */

/* ───────────────────────── Tipografías ─────────────────────────
   Barlow y Barlow Condensed servidas desde el propio dominio (licencia SIL OFL,
   ver assets/fonts/OFL.txt). Sin llamadas a Google Fonts. */
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-condensed-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-condensed-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #b0703c;
  --color-divider: rgba(29, 31, 32, .16);
  --color-corner: rgba(29, 31, 32, .55);

  --color-neutral-100: #f5f5f8;
  --color-neutral-300: #d4d4d7;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #fcf3eb;
  --color-accent-200: #f7e2d0;
  --color-accent-300: #eccaaa;
  --color-accent-600: #a57244;
  --color-accent-700: #845733;
  --color-accent-800: #5f3e24;
  --color-accent-900: #3d2817;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow-lg: 0 12px 32px rgba(43, 43, 45, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --stripes: repeating-linear-gradient(135deg, var(--color-accent-200) 0 8px, var(--color-accent-100) 8px 16px);
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55; font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: 600;
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 6.8px;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
p { margin: 0 0 10.2px; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-800); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
/* Los componentes con display propio no deben ganarle al atributo hidden. */
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(176, 112, 60, .3); }

.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: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--color-accent); color: var(--color-bg); font-family: var(--font-heading);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--color-bg); }

/* ───────────────────────── Tipografía ───────────────────────── */
.h-display {
  font-size: clamp(44px, 6vw, 78px); line-height: .98; margin: 0 0 22px;
  text-transform: uppercase; text-wrap: balance;
}
.h-section {
  font-size: clamp(34px, 4.5vw, 54px); line-height: 1; margin: 0 0 40px;
  text-transform: uppercase; text-wrap: balance;
}
.h-plain { font-size: 32px; margin: 0; }
.eyebrow {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-neutral-700); margin: 0 0 20px;
}
.lede { color: var(--color-neutral-800); text-wrap: pretty; }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--color-accent-700); }
.muted { color: var(--color-neutral-700); }

/* ───────────────────────── Layout ───────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { max-width: 1240px; margin: 0 auto; padding: 72px 24px; }
.section--cta { padding: 72px 24px 96px; }
.section--tail { padding: 72px 24px 0; }
.section--carousel { padding: 48px 24px 24px; }

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 24px;
}
.section-head--lg { margin-bottom: 32px; }
.section-head > h2 { margin: 0; }

.grid {
  display: grid; gap: var(--gap, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
}

/* Rejilla de celdas con líneas visibles */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 300px)), 1fr));
  border-top: 1px solid var(--color-divider); border-left: 1px solid var(--color-divider);
}
.cells > * { border-right: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }

/* ───────────────────────── Marco blueprint ─────────────────────────
   Borde fino + cuatro cruces de registro en las esquinas. Las cruces se
   dibujan con un solo pseudo-elemento (8 degradados) en vez de 4 nodos. */
.blueprint { position: relative; border: 1px solid var(--color-divider); }
.blueprint::before {
  content: ""; position: absolute; inset: -6px; pointer-events: none;
  background-image:
    linear-gradient(var(--color-corner), var(--color-corner)), linear-gradient(var(--color-corner), var(--color-corner)),
    linear-gradient(var(--color-corner), var(--color-corner)), linear-gradient(var(--color-corner), var(--color-corner)),
    linear-gradient(var(--color-corner), var(--color-corner)), linear-gradient(var(--color-corner), var(--color-corner)),
    linear-gradient(var(--color-corner), var(--color-corner)), linear-gradient(var(--color-corner), var(--color-corner));
  background-repeat: no-repeat;
  background-size: 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px, 1px 11px, 11px 1px;
  background-position:
    left 5px top 0, left 0 top 5px,
    right 5px top 0, right 0 top 5px,
    left 5px bottom 0, left 0 bottom 5px,
    right 5px bottom 0, right 0 bottom 5px;
}

/* Foto en duotono cobre (con rayado de fondo mientras carga) */
.duotone { position: relative; overflow: hidden; background: var(--stripes); }
.duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}
.duotone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.blueprint.duotone { overflow: visible; }

/* ───────────────────────── Botones y etiquetas ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent;
  border: 1px solid var(--color-divider); border-radius: 0;
  padding: 6.8px 12.24px;
}
.btn:hover { color: var(--color-accent-800); }
.btn svg { display: block; }
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary:hover { background: rgba(29, 31, 32, .07); }
.btn-secondary:active { background: rgba(29, 31, 32, .14); }
.btn-ghost { color: var(--color-accent); border-color: transparent; padding-inline: 3.4px; }
.btn-ghost:hover { background: rgba(176, 112, 60, .10); }
.btn-ghost:active { background: rgba(176, 112, 60, .18); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-lg { font-size: 17px; padding: 14px 26px; }
.btn-block { width: 100%; margin-top: 6.8px; padding: 12px; }
.btn-invert { background: var(--color-bg); border-color: var(--color-bg); color: var(--color-accent-900); white-space: nowrap; }
.btn-invert:hover { background: var(--color-accent-100); color: var(--color-accent-900); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .02em;
  padding: 3px 10px; background: var(--color-accent-100); color: var(--color-accent-800);
}

/* ───────────────────────── Cabecera y navegación ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 242, 243, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.nav {
  max-width: 1240px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 13.6px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--font-heading); font-weight: 600; font-size: 20px;
  letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--color-text); text-decoration: none;
}
.nav-brand:hover { color: var(--color-text); }
.nav-brand img { width: 36px; height: 36px; }
.nav-menu { display: flex; align-items: center; gap: 13.6px; }
.nav-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: 14px; color: var(--color-text); text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--color-accent); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--color-accent-700); }
.nav-dropdown { position: relative; }
.nav-dropdown__trigger { display: flex; align-items: center; gap: 4px; }
.nav-dropdown__trigger svg { transition: transform .2s; }
.nav-dropdown.is-open .nav-dropdown__trigger svg { transform: rotate(180deg); }
.nav-dropdown__panel { display: none; position: absolute; top: 100%; left: -16px; padding-top: 14px; z-index: 40; }
.nav-dropdown.is-open .nav-dropdown__panel { display: block; }
html:not(.js) .nav-dropdown:hover .nav-dropdown__panel,
html:not(.js) .nav-dropdown:focus-within .nav-dropdown__panel { display: block; }
.nav-dropdown__box { background: var(--color-bg); box-shadow: var(--shadow-lg); width: 320px; display: flex; flex-direction: column; }
.nav-dropdown__item {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
  border-bottom: 1px solid var(--color-divider); text-decoration: none; color: var(--color-text);
}
.nav-dropdown__item:last-child { border-bottom: 0; }
.nav-dropdown__item:hover, .nav-dropdown__item[aria-current="page"] { background: var(--color-accent-100); color: var(--color-text); }
.nav-dropdown__name { font-family: var(--font-heading); font-weight: 600; font-size: 17px; }
.nav-dropdown__desc { font-size: 12px; color: var(--color-neutral-700); }
.nav-lang { font-size: 13px; color: var(--color-neutral-700); display: flex; gap: 6px; }
.nav-lang strong { color: var(--color-text); }
.nav-lang__link { color: inherit; text-decoration: none; padding: 4px 2px; margin: -4px -2px; }
.nav-lang__link:hover { color: var(--color-accent); text-decoration: underline; }
.nav-cta { white-space: nowrap; }
.nav-toggle { display: none; }

/* Menú móvil: por debajo de 900px los enlaces no caben en una fila */
@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: none; border: 1px solid var(--color-divider); cursor: pointer;
  }
  .nav-toggle .icon-close { display: none; }
  .site-header.is-open .nav-toggle .icon-open { display: none; }
  .site-header.is-open .nav-toggle .icon-close { display: block; }
  .js .nav-menu { display: none; }
  .site-header.is-open .nav-menu { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 24px; background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    max-height: calc(100vh - 69px); overflow-y: auto;
  }
  html:not(.js) .nav-menu { position: static; border: 0; padding: 0; }
  html:not(.js) .nav { flex-wrap: wrap; }
  .nav-menu > .nav-link, .nav-dropdown__trigger {
    width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--color-divider);
  }
  .nav-dropdown__trigger { justify-content: space-between; }
  .nav-dropdown__panel { position: static; padding: 0 0 8px; }
  .nav-dropdown__box { width: auto; box-shadow: none; border: 0; background: transparent; }
  .nav-dropdown__box::before { display: none; }
  .nav-dropdown__item { padding: 12px 0 12px 16px; }
  .nav-lang { padding: 16px 0; }
  .nav-cta { align-self: flex-start; font-size: 16px; padding: 12px 22px; }
}

/* ───────────────────────── Cabeceras de página ───────────────────────── */
.page-header { max-width: 1240px; margin: 0 auto; padding: 88px 24px 16px; }
.page-header .tag { margin-bottom: 20px; }
.page-header h1 {
  font-size: clamp(44px, 6.5vw, 84px); line-height: .98; margin: 0 0 20px;
  text-transform: uppercase; max-width: 960px; text-wrap: balance;
}
.page-header .lede { font-size: 19px; max-width: 680px; margin: 0; }

.hero {
  max-width: 1240px; margin: 0 auto; padding: 80px 24px 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px; align-items: center;
}
.hero .tag { margin-bottom: 22px; }
.hero .lede { font-size: 18px; max-width: 540px; margin: 0 0 32px; }
.hero--home .lede { max-width: 520px; }
/* Emblema junto al título de la portada: ocupa el hueco que deja el título */
.hero__title { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
.hero__title .h-display { flex: 1 1 auto; min-width: 0; margin: 0; }
.hero__logo { flex: none; width: clamp(96px, 11vw, 150px); height: auto; }
.hero__logo-top { display: none; }
/* Móvil: portada centrada, con el emblema arriba y botones del mismo ancho */
@media (max-width: 559px) {
  .hero--home > div:first-child { text-align: center; }
  .hero__logo-top { display: block; width: 72px; height: 72px; margin: 0 auto 18px; }
  .hero--home .hero__logo { display: none; }
  .hero--home .hero__title { justify-content: center; }
  .hero--home .lede { margin-left: auto; margin-right: auto; }
  .hero--home .btn-row { justify-content: center; }
  .hero--home .btn-row .btn { flex: 1 1 0; padding-left: 12px; padding-right: 12px; }
}
.hero__media { min-height: 440px; }
/* Diagrama de workflow en la cabecera: se ve entero (contain), sin tinte cobre */
.hero__media--diagram { display: flex; align-items: center; justify-content: center; background: var(--color-bg); padding: 12px; }
.hero__media--diagram img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.hero__media--diagram { position: relative; text-decoration: none; }
.hero__diagram-label {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--color-accent-800);
  background: var(--color-accent-100); border: 1px solid var(--color-accent-200);
}

/* Transcripción animada del hero de inicio */
.call { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.call__head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--color-divider); padding-bottom: 12px;
}
.call__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 18px; }
.call__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-accent); }
.call__time { font-family: var(--font-mono); font-size: 12px; color: var(--color-neutral-700); }
.call__line { display: flex; flex-direction: column; gap: 4px; max-width: 84%; align-self: flex-end; }
.call__line--agent { align-self: flex-start; }
.call__who { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); }
.call__text { padding: 10px 14px; border: 1px solid var(--color-divider); font-size: 14px; }
.call__line--agent .call__text { background: var(--color-accent-100); }
.js .call__line:not(.is-shown) { visibility: hidden; }

/* ───────────────────────── Bloques de inicio ───────────────────────── */
.logos { --min: 150px; }
.logos a { color: inherit; text-decoration: none; }
.logos a:hover { color: var(--color-accent-700); }
.logos > div {
  height: 128px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 12px;
  font-family: var(--font-heading); font-weight: 600; font-size: 28px; letter-spacing: .02em;
  color: var(--color-neutral-800);
}

.pillar { padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.pillar h3 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1; margin: 0; text-transform: uppercase; }
.pillar p { margin: 0; font-size: 16px; color: var(--color-neutral-800); }
.pillar__list { display: flex; flex-direction: column; border-top: 1px solid var(--color-divider); flex: 1; margin: 0; padding: 0; list-style: none; }
.pillar__list li { padding: 12px 0; border-bottom: 1px solid var(--color-divider); font-size: 15px; }
.pillar .btn-ghost { align-self: flex-start; }

.service-card { display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); }
.service-card:hover { background: var(--color-accent-100); color: var(--color-text); }
.service-card .duotone { height: 200px; }
.service-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-card h3 { font-size: 24px; margin: 0; }
.service-card p { margin: 0; font-size: 14px; color: var(--color-neutral-800); flex: 1; }
.service-card__more { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-accent-700); margin-top: 8px; }

.step-cell { padding: 26px; }
.step-cell .mono { display: block; margin-bottom: 40px; }
.step-cell h3 { font-size: 22px; }
.step-cell p, .include-cell p { margin: 0; font-size: 14px; color: var(--color-neutral-800); }

.quote { padding: 24px; display: flex; flex-direction: column; gap: 22px; margin: 0; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.45; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(29, 31, 32, .5); }
.quote__avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent-200); flex: none;
  display: grid; place-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-accent-800);
}
.quote figcaption strong { color: var(--color-text); font-weight: 500; }
.quote figcaption a { color: inherit; }

.feature-case { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.feature-case__media { position: relative; overflow: hidden; display: flex; align-items: center; background: #000; }
.feature-case__media img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: center 19%; }
.feature-case__body { padding: 32px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.feature-case__body .tag, .feature-case__body .btn { align-self: flex-start; white-space: nowrap; }
.feature-case__body h3 { font-size: 34px; margin: 0; }
.feature-case__stats { display: flex; gap: 36px; flex-wrap: wrap; }

.stat-sm { font-family: var(--font-heading); font-size: 40px; font-weight: 600; line-height: 1; }
.stat-label { font-size: 13px; color: var(--color-neutral-700); }

/* Banda de llamada a la acción */
.cta-band {
  background: var(--color-accent-900); color: var(--color-bg); padding: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.cta-band__text { max-width: 640px; }
.cta-band h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1; margin: 0 0 12px; text-transform: uppercase; color: var(--color-bg); }
.cta-band p { margin: 0; color: var(--color-accent-200); font-size: 16px; }

/* ───────────────────────── Páginas de servicio ───────────────────────── */
.include-cell { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.include-cell .mono { margin-bottom: 24px; }
.include-cell h3, .how-step h3 { font-size: 22px; margin: 0; }

.how-step { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.how-step__num { font-family: var(--font-heading); font-size: 48px; font-weight: 600; line-height: 1; color: var(--color-accent-700); }
.how-step h3 { margin-top: 16px; }
.how-step p { margin: 0; font-size: 14px; color: var(--color-neutral-800); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--color-divider); margin: 0; }
.stats > div { padding: 28px 0; border-bottom: 1px solid var(--color-divider); }
.stats dt { font-size: 14px; color: var(--color-neutral-700); margin-top: 8px; }
.stats dd { margin: 0; font-family: var(--font-heading); font-size: clamp(48px, 6vw, 72px); font-weight: 600; line-height: 1; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats-note { font-family: var(--font-mono); font-size: 12px; color: var(--color-neutral-700); }

/* Diagrama de un workflow real de n8n. En móvil se desplaza en horizontal
   para que los nombres de los nodos sigan siendo legibles. */
.workflow { margin: 0; }
.workflow__canvas { overflow-x: auto; background: var(--color-bg); }
.workflow__canvas a { display: block; }
.workflow__canvas img { width: 100%; }
.workflow figcaption {
  padding: 14px 18px; border-top: 1px solid var(--color-divider);
  font-size: 14px; color: var(--color-neutral-700); max-width: 820px;
}
@media (max-width: 1000px) {
  .workflow__canvas a { width: max-content; }
  .workflow__canvas img { width: calc(var(--w) * .7px); max-width: none; }
}

.other-service {
  padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-decoration: none; color: var(--color-text);
}
.other-service:hover { background: var(--color-accent-100); color: var(--color-text); }
.other-service__name { font-family: var(--font-heading); font-size: 22px; font-weight: 600; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq-layout { --min: 340px; --gap: 40px; }
.faq-layout > h2 { margin: 0; }
.faq { border-top: 1px solid var(--color-divider); }
.faq details { border-bottom: 1px solid var(--color-divider); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq--general summary { line-height: normal; }
.faq__sign { font-family: var(--font-body); font-weight: 400; font-size: 22px; color: var(--color-accent-700); flex: none; }
.faq__sign::before { content: "+"; }
.faq details[open] .faq__sign::before { content: "\2212"; }
.faq details p { margin: 0 0 20px; color: var(--color-neutral-800); max-width: 620px; }

/* ───────────────────────── Plataforma ───────────────────────── */
.platform-grid { --min: 440px; }
.panel { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.panel p { margin: 0; color: var(--color-neutral-800); }
.panel__demo { margin-top: auto; }

.seq { display: flex; flex-direction: column; gap: 10px; }
.seq__node {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 1px solid var(--color-divider); transition: all 400ms;
}
.seq__node.is-active { border-color: var(--color-accent); background: var(--color-accent-100); }
.seq__num { font-family: var(--font-mono); font-size: 11px; color: var(--color-neutral-700); }
.seq__text { flex: 1; }
.seq__title { font-family: var(--font-heading); font-size: 17px; font-weight: 600; }
.seq__sub { font-size: 13px; color: var(--color-neutral-700); }
.seq__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-neutral-300); transition: background 400ms; }
.seq__node.is-done .seq__dot { background: var(--color-accent); }

.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); align-self: flex-start; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--color-text); }
.seg button + button { border-left: 1px solid var(--color-divider); }
.seg button:hover { background: rgba(29, 31, 32, .07); }
.seg button[aria-pressed="true"] { background: var(--color-accent); color: var(--color-bg); }
.seg button:focus-visible { outline-offset: -2px; }
.channel { border: 1px solid var(--color-divider); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.channel__meta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); }
.channel__subject { font-family: var(--font-heading); font-size: 19px; font-weight: 600; }
.channel p { font-size: 14px; }

.guard { display: flex; flex-direction: column; gap: 10px; }
.guard__msg { max-width: 80%; padding: 10px 14px; border: 1px solid var(--color-divider); font-size: 14px; }
.guard__msg--in { align-self: flex-end; }
.guard__msg--out { align-self: flex-start; background: var(--color-accent-100); border-color: var(--color-accent-200); }
.guard__block {
  align-self: center; display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-800);
}
.guard__block, .guard__msg--out { transition: opacity 400ms; }
.js .guard__block:not(.is-on), .js .guard__msg--out:not(.is-on) { opacity: 0; }

.metrics { display: grid; grid-template-columns: auto 1fr; gap: 18px 24px; align-items: end; }
.metrics__label { font-size: 12px; color: var(--color-neutral-700); }
.metrics__value { font-family: var(--font-heading); font-size: 48px; line-height: 1; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; border-bottom: 1px solid var(--color-divider); }
.bars span { flex: 1; background: var(--color-accent-300); transition: height 700ms var(--ease); }
.bars span:last-child { background: var(--color-accent); }

.carousel__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.carousel__head .eyebrow { margin: 0; }
.carousel__controls { display: flex; gap: 8px; }
.carousel__viewport { overflow: hidden; padding: 8px; }
.carousel__track { display: flex; gap: 24px; transition: transform 700ms var(--ease); }
.agent-card { flex: 0 0 300px; display: flex; flex-direction: column; text-decoration: none; color: var(--color-text); }
.agent-card:hover { color: var(--color-text); background: var(--color-accent-100); }
.agent-card .duotone { height: 340px; }
.agent-card__foot {
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--color-divider);
}
.agent-card__title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; }
.agent-card__sub { font-size: 13px; color: var(--color-neutral-700); }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--color-divider); margin-bottom: 32px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 12px 16px; font-family: var(--font-heading); font-weight: 600; font-size: 18px;
  line-height: normal; cursor: pointer; color: var(--color-neutral-600);
}
.tabs button[aria-selected="true"] { border-bottom-color: var(--color-accent); color: var(--color-text); }
.tabs button:hover { color: var(--color-text); }
.sector { --min: 420px; --gap: 32px; }
.sector__text { display: flex; flex-direction: column; gap: 16px; }
.sector__text h3 { font-size: 32px; margin: 0; }
.sector__text p { margin: 0; font-size: 16px; color: var(--color-neutral-800); }
.sector__agents { display: flex; flex-direction: column; border-top: 1px solid var(--color-divider); margin: 8px 0 0; padding: 0; list-style: none; }
.sector__agents li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.sector__agent { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
.sector__desc { font-size: 14px; color: var(--color-neutral-700); text-align: right; }
.sector__text .btn { align-self: flex-start; padding: 12px 22px; font-size: 16px; margin-top: 8px; }
.sector__media { min-height: 380px; }

/* ───────────────────────── Nosotros ───────────────────────── */
.team-layout { --min: 360px; --gap: 40px; align-items: start; }
.team-layout h2 { margin: 0 0 18px; }
.team-layout p { font-size: 16px; color: var(--color-neutral-800); max-width: 440px; }
.team { --min: 150px; --gap: 24px; }
.member { display: flex; flex-direction: column; gap: 8px; }
.member__photo {
  aspect-ratio: 4 / 5; border: 1px solid var(--color-divider); background: var(--stripes);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(56px, 7vw, 88px); color: var(--color-accent-700);
}
.member__sub { color: var(--color-accent-700); }
.member__photo--img { display: block; position: relative; }
.member__photo--img > img { object-position: center 30%; }
.member__name { font-family: var(--font-heading); font-size: 18px; font-weight: 600; }
.member__role { font-size: 13px; color: var(--color-neutral-700); margin-top: -8px; }

/* ───────────────────────── Blog ───────────────────────── */
.ia-post { position: relative; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.ia-post:hover { background: var(--color-accent-100); }
.ia-post__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--color-neutral-700); }
.ia-post h3 { font-size: 22px; line-height: 1.15; margin: 0; }
.ia-post h3 a { color: var(--color-text); text-decoration: none; }
.ia-post h3 a::after { content: ""; position: absolute; inset: 0; }
.ia-post h3 a:focus-visible { outline: none; }
.ia-post:focus-within { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.ia-post p { margin: 0; font-size: 14px; color: var(--color-neutral-800); flex: 1; }
.ia-post__more { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-accent-700); }
.ia-note { margin: 24px 0 0; font-size: 13px; color: var(--color-neutral-700); }
.news-link {
  padding: 22px 24px; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--color-text);
}
.news-link:hover { background: var(--color-accent-100); color: var(--color-text); }
.news-link__top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.news-link__name { font-family: var(--font-heading); font-size: 22px; font-weight: 600; line-height: 1.15; }
.news-link__desc { font-size: 14px; color: var(--color-neutral-800); flex: 1; }

/* ───────────────────────── Contacto ───────────────────────── */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.contact__aside { padding: 40px; background: var(--color-accent-900); color: var(--color-bg); display: flex; flex-direction: column; gap: 18px; }
.contact__aside h2 { margin: 0; color: var(--color-bg); }
.contact__aside p { margin: 0; color: var(--color-accent-200); font-size: 16px; }
.contact__book { align-self: flex-start; }
.contact__aside .contact__or { font-size: 14px; }
.contact__info { display: flex; flex-direction: column; gap: 8px; font-size: 15px; margin-top: auto; color: var(--color-accent-100); }
.contact__info a { color: var(--color-accent-100); }
.contact__main { padding: 40px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field > label { display: block; font-size: 12px; margin-bottom: 5px; color: rgba(29, 31, 32, .7); }
.field--full, .form__actions { grid-column: 1 / -1; }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: rgba(29, 31, 32, .45); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.form__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form__actions .btn { padding: 13px 26px; font-size: 16px; }
.form__note { margin: 0; font-size: 12px; color: var(--color-neutral-700); }
.form__error { margin: 0; font-size: 14px; color: var(--color-accent-800); }
.form-done { display: flex; flex-direction: column; gap: 10px; justify-content: center; height: 100%; }
.form-done h3 { margin: 0; }
.form-done p { margin: 0; color: var(--color-neutral-800); }

/* ───────────────────────── Páginas legales ───────────────────────── */
.legal { max-width: 808px; }
.legal__updated { font-family: var(--font-mono); font-size: 12px; color: var(--color-neutral-700); margin: 0 0 8px; }
.legal h2 { font-size: 26px; margin: 44px 0 12px; }
.legal h3 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.65; color: var(--color-neutral-800); }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal__data { margin: 16px 0; border-top: 1px solid var(--color-divider); }
.legal__data > div { display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--color-divider); }
.legal__data dt { font-size: 13px; color: var(--color-neutral-700); }
.legal__data dd { margin: 0; font-size: 15.5px; }
.legal__small { font-size: 13px; color: var(--color-neutral-700); }
mark.pending { background: var(--color-accent-200); color: var(--color-accent-900); font-family: var(--font-mono); font-size: 13px; padding: 1px 6px; }
@media (max-width: 560px) { .legal__data > div { grid-template-columns: 1fr; gap: 2px; } }

/* ───────────────────────── Pie ───────────────────────── */
.site-footer { border-top: 1px solid var(--color-divider); }
.site-footer__grid {
  max-width: 1240px; margin: 0 auto; padding: 48px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; font-size: 14px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a { color: var(--color-accent-700); }
.site-footer__col--brand { gap: 10px; }
.site-footer__brand {
  font-family: var(--font-heading); font-size: 20px; font-weight: 600; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.site-footer__brand img { width: 40px; height: 40px; }
.site-footer h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 4px; color: var(--color-neutral-700); }
.social-link { display: inline-flex; align-items: center; gap: 8px; }
.social-link .icon-ig { flex: none; }
.site-footer__legal { color: var(--color-neutral-700); margin-top: 8px; }

/* ───────────────────────── Pantallas pequeñas ───────────────────────── */
@media (max-width: 560px) {
  .section { padding: 56px 20px; }
  .section--cta { padding: 56px 20px 72px; }
  .section--tail { padding: 56px 20px 0; }
  .section--carousel { padding: 40px 20px 16px; }
  .page-header { padding: 64px 20px 8px; }
  .hero { padding: 56px 20px 32px; gap: 40px; }
  .hero__media { min-height: 300px; }
  .nav { padding: 14px 20px; }
  .nav-brand { font-size: 17px; }
  .cta-band { padding: 32px 24px; }
  .pillar { padding: 28px 22px; }
  .contact__aside, .contact__main { padding: 28px 22px; }
  .feature-case__body { padding: 24px; }
  .feature-case__body h3 { font-size: 28px; }
  .agent-card { flex-basis: 260px; }
  .agent-card .duotone { height: 290px; }
  .sector__media { min-height: 260px; }
  .h-plain { font-size: 28px; }
}

/* Móviles pequeños (320-380px): palabras largas en mayúsculas como
   "AUTOMATIZACIONES" no caben a 44px. */
@media (max-width: 380px) {
  .h-display, .page-header h1 { font-size: 38px; }
  .h-section { font-size: 30px; }
}

/* Área táctil mínima de enlaces sueltos en móvil (≥ 30px de alto) */
@media (max-width: 560px) {
  .site-footer__col > a, .contact__info a { padding: 4px 0; }
  .site-footer__col { gap: 4px; }
}

@media (max-width: 560px) {
  /* Pestañas de sector en una fila con desplazamiento lateral */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; flex: none; }
  /* Equipo en lista: foto a la izquierda, texto a la derecha */
  .team { grid-template-columns: 1fr; gap: 16px; }
  .member { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; align-content: center; }
  .member__photo { grid-row: 1 / span 2; font-size: 44px; }
  .member__name { align-self: end; }
  .member__role { margin-top: 0; align-self: start; }
}

/* ───────────────────────── Movimiento reducido ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .js .call__line:not(.is-shown) { visibility: visible; }
  .js .guard__block:not(.is-on), .js .guard__msg--out:not(.is-on) { opacity: 1; }
}
