/* Layout: light, serious base. Sections: hero, about and team, services in an asymmetric grid, methodology, impact, technologies, closing call to action. Built mobile-first: text never falls below 16px, grids collapse to one column, and no page scrolls sideways, so visitors on phones do not need to zoom. */

/* Manual de marca Qaholom (Design System "Qaholom", nov. 2026): Montserrat en titulares, eyebrows y botones; Raleway en textos (Arial de respaldo). Fuentes alojadas en wwwroot/fonts (licencia OFL), sin CDN. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/raleway-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); }

:root {
  --font-display: Montserrat, Arial, Helvetica, sans-serif;
  --font-text: Raleway, Arial, Helvetica, sans-serif;
  --brand: #1F2429;
  --surface-raised: #F4F5F6;
  --surface-raised-dark: #2E353C;
  --ink-inverse: #FFFFFF;
  --ink-inverse-muted: #AEB4BB;
  --line-strong: #D8DBDE;
  --accent-tint: #FBC077;
  --cian-text: #1F7A96; /* Paleta extendida del manual: azul para texto sobre blanco (4.9:1). */
  /* Contenedores: esquinas redondeadas, contorno gris suave y sombra gris (pedido de Leslie, 23/11/2026). */
  --radius-card: 16px;
  --line-card: #DADDE0;
  --shadow-card: 0 2px 4px rgba(31, 36, 41, 0.06), 0 8px 20px rgba(31, 36, 41, 0.10);
  --shadow-card-hover: 0 4px 8px rgba(31, 36, 41, 0.08), 0 14px 32px rgba(31, 36, 41, 0.16);
  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --surface: #ffffff;
  --surface-hi: #F4F5F6;
  --ink: #1F2429;
  --muted: #6B7280;
  --line: #E3E6E8;
  --accent: #F5871F;
  --accent-ink: #1F2429;
  --accent-text: #A85300;
  --accent-soft: rgba(245, 135, 31, 0.1);
  --focus: #1F2429;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.65;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 0; }
h1, h2, h3, h4, .btn, .nav a { font-family: var(--font-display); }

.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 10px;
  flex-wrap: wrap;
}
/* Escritorio: logo a la izquierda; menús y selector de idioma juntos a la derecha (idioma al final). */
.site-header .nav { margin-left: auto; }
.site-header .lang-switch { order: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}
.nav a {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 0;
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-hi); }
.nav a[aria-current="true"] {
  color: var(--ink);
  background: var(--surface-hi);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 0;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 28px -12px rgba(245, 135, 31, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(245, 135, 31, 0.75); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* Hero */

.gradient-text {
  background: none;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nosotros: frase de valores y logo con audio */
.about { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.about .statement {
  margin: 22px 0 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.about .statement .accent { color: var(--accent-text); }
/* Frase de Nosotros junto a la ilustración de personas y agentes. */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.about-art { width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
/* "valor humano" resaltado en píldora y línea naranja bajo la frase. */
.about .statement .highlight { background: var(--accent-tint); color: var(--ink); padding: 0 0.28em 0.04em; border-radius: 999px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.statement-rule { display: block; width: 88px; height: 6px; margin-top: 28px; border-radius: 999px; background: var(--accent); }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: minmax(0, 1fr); }
  .about-art { max-width: 480px; margin: 0 auto; }
}

/* Services */
.services { padding-block: clamp(72px, 10vw, 140px); background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 820px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head h2 {
  margin: 20px 0 18px;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  text-wrap: balance;
}
.section-head p { margin: 0 auto; max-width: 62ch; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;          /* every card has the same height */
  gap: 20px;
}
/* Tres tarjetas en una fila, todas del mismo tamaño. */
.svc-grid > .svc { grid-column: span 2; }

.svc {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  overflow-wrap: anywhere;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.svc { cursor: pointer; }
.svc:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.svc.is-selected { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-card); }
.svc.is-selected:hover { border-color: transparent; box-shadow: var(--shadow-card-hover); }
.svc .tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.95;
}
.svc.is-selected .tag { color: var(--accent-ink); }
.svc h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  text-wrap: balance;
  min-height: 2.5em;
}
.svc p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.svc.is-selected p { color: var(--accent-ink); opacity: 0.94; }

/* Clients: continuous logo carousel. Two identical sets run side by side; the track moves one set's width and restarts, so the loop has no visible jump. */
.clients { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); overflow: hidden; }
.clients .section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.client-marquee {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-block: 1px solid var(--line);
  padding-block: clamp(24px, 4vw, 36px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #1F2429 8%, #1F2429 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #1F2429 8%, #1F2429 92%, transparent);
}
.client-track {
  display: flex;
  width: max-content;
  
}
.client-marquee:hover .client-track,
.client-marquee:focus-within .client-track { animation-play-state: paused; }
.client-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 20px;
  margin: 0;
  padding: 0 10px 0 0;
  list-style: none;
}
.client-logo {
  flex: 0 0 auto;
  width: clamp(150px, 16vw, 200px);
  height: clamp(72px, 8vw, 96px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: transform 0.3s;
}
.client-logo:hover { transform: scale(1.06); }
.client-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-logo .ph {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--muted);
  text-align: center;
}
@keyframes clientScroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Definition / technologies */
.definition { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.definition .section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  min-height: 132px;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
  --mx: 50%;
  --my: 50%;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.tile:hover::before { opacity: 1; }
.tile .num { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.tile h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
  line-height: 1.25;
  text-wrap: balance;
  position: relative;
}
.tile.dark { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-card); }
.tile.dark .num { color: var(--accent-ink); opacity: 0.85; }
.tile.dark:hover { border-color: transparent; }
.tile.dark::before { background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.22), transparent 60%); }

/* Closing CTA */

/* Technology detail panel: buttons in the grid switch the description below. */
.tile { appearance: none; font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.tile.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-card); }
.tile.is-active .num { color: var(--accent-ink); opacity: 0.85; }
.tile.is-active:hover { border-color: transparent; box-shadow: var(--shadow-card-hover); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.tech-panel {
  margin-top: 20px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  min-height: 150px;
}
.tech-panel h3 { margin: 0 0 10px; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; }
.tech-panel p { margin: 0; font-size: 17px; line-height: 1.6; }
.tech-panel p + p { margin-top: 12px; }
/* La descripción puede traer varios párrafos separados por línea en blanco (Revenue Agents). */
#techDesc { white-space: pre-line; }
.tech-panel .tech-app { color: var(--muted); }
.tech-panel .tech-app strong { color: var(--accent-text); }
.tech-panel.swap { animation: fadeUp 0.45s both; }

/* Conoce a Venti: intro text beside an auto-advancing carousel (3 s per slide, arrows, dots, swipe on touch). */

/* Pronunciation of the brand name, shown under the hero title. */

/* Blog: category filters and a three-column grid of posts. Filters hide cards with the hidden attribute. */
.blog { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.blog .section-head { margin-bottom: clamp(32px, 4vw, 48px); }
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.filter {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.filter:hover { color: var(--ink); border-color: rgba(245, 135, 31, 0.4); }
.filter.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-card);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.post[hidden] { display: none; }
/* Al abrir un artículo se ocultan los filtros y el listado (el atributo hidden debe ganarle al display: grid/flex). */
.blog-filters[hidden], .posts[hidden] { display: none; }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post:hover .post-media img { transform: scale(1.04); }
.post-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 22px 24px 26px;
}
.post-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--muted);
}
.post-meta .cats::before { content: "|"; margin-right: 12px; color: var(--line); }
.post h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  text-wrap: balance;
}
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--accent-text); }
.post-excerpt { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.post-more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
.post-more:hover { color: var(--accent-text); }
.blog-empty { margin: 40px 0 0; text-align: center; color: var(--muted); }
.blog-empty[hidden] { display: none; }
@media (max-width: 900px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: minmax(0, 1fr); }
  .post-body { padding: 20px 20px 24px; }
}

.blog .wrap { padding-inline: clamp(16px, 4vw, 40px); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer a { text-decoration: none; font-weight: 700; color: var(--ink); }
.site-footer a:hover { color: var(--accent-text); }
.site-footer .linkedin-link { display: inline-flex; line-height: 0; }
.site-footer .linkedin-link img { height: 35px; width: auto; display: block; }

/* Motion */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.reveal { animation: fadeUp 0.9s both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
@supports not (animation-timeline: view()) {
  .reveal { animation: none; }
}

/* Responsive: tablet, then phone. Grids collapse so text keeps a readable size without zooming. */
@media (max-width: 900px) {
  /* Celular y tableta: idioma vuelve a la primera fila, junto al logo; el menú pasa abajo. */
  .site-header .lang-switch { order: 0; margin-left: auto; }
  .site-header .nav { margin-left: 0; }
  .nav { width: 100%; }
  .nav ul { justify-content: center; }
  
  
  
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-grid > .svc { grid-column: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .tag, .eyebrow { font-size: 14px; }
  .eyebrow { font-size: 13px; letter-spacing: 0.12em; }
  .lang-switch button { font-size: 14px; }
  .nav a { font-size: 15px; padding: 10px 12px; }
  
  
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile h3 { font-size: 1.05rem; }
  .header-cta { display: none; }
  
  .svc { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Lector de artículos del blog, dentro de la página. */
.post-reader { max-width: 760px; margin: 0 auto; }
.reader-back { display: inline-block; margin-bottom: 28px; font-weight: 700; text-decoration: none; color: var(--accent-text); }
.reader-back:hover { text-decoration: underline; }
.post-reader .post-meta { margin: 0 0 14px; }
.reader-title { margin: 0 0 28px; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; text-wrap: balance; }
/* Firma del autor del artículo, con enlace a su LinkedIn. */
.reader-author { margin: -16px 0 28px; font-size: 15px; color: var(--muted); }
.reader-author a { font-weight: 700; color: var(--accent-text); text-decoration: none; }
.reader-author a:hover { text-decoration: underline; }
.reader-media { margin: 0 0 32px; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.reader-media img { width: 100%; height: 100%; object-fit: cover; }
.reader-body p { margin: 0 0 1.1em; color: var(--ink); font-size: 1.1rem; line-height: 1.75; }
.reader-sub { font-family: var(--font-display); font-size: 1.2rem; margin: 1.6em 0 0.6em; color: var(--ink); }
.reader-list { margin: 0 0 1.1em; padding-left: 1.3em; }
.reader-list li { margin: 0.4em 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); flex: none; }
.lang-switch button { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; min-width: 40px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.a11y { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; align-items: center; }
.a11y-toggle { width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; background: transparent; opacity: .75; cursor: pointer; transition: opacity .2s ease; }
.a11y-toggle img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.a11y-toggle:hover, .a11y-toggle:focus-visible, .a11y.is-open .a11y-toggle { opacity: 1; }
.a11y-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.a11y-panel { position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 220px; padding: 14px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: 0 18px 40px rgba(31, 36, 41, .15); }
.a11y-panel[hidden] { display: none; }
.a11y-title { margin: 0 0 4px; font-weight: 700; font-size: 14px; color: var(--ink); }
.a11y-panel button { font: inherit; font-size: 14px; text-align: left; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { border-color: var(--accent); background: rgba(245, 135, 31, .08); }
.a11y-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.a11y-big body > *:not(.a11y) { zoom: var(--qh-zoom, 1); }
html.a11y-contrast { --muted: #2E353C; --line: #6B7280; }
html.a11y-contrast body { color: #1F2429; }
html.a11y-links main a, html.a11y-links footer a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

.qh-float { position: fixed; right: 20px; bottom: 20px; z-index: 85; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.qh-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none; }
.qh-float-btn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; background: #1F2429; color: #fff; font: inherit; font-size: 15px; font-weight: 700; box-shadow: 0 12px 28px rgba(31, 36, 41, .35); cursor: pointer; transition: background .25s ease, box-shadow .25s ease; }
.qh-float-btn:hover { filter: brightness(1.06); }
.qh-float-btn:focus-visible, .qh-float-item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.qh-float-ico { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); }
.qh-float.is-open .qh-float-btn { background: var(--accent); box-shadow: 0 12px 28px rgba(245, 135, 31, .35); }
.qh-float-menu { display: grid; gap: 8px; }
.qh-float-menu[hidden] { display: none; }
.qh-float-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 8px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; box-shadow: 0 10px 24px rgba(31, 36, 41, .14); white-space: nowrap; }
.qh-float-item:hover { border-color: var(--accent); }
.qh-float-item .qh-float-ico { color: #fff; }
.qh-float-item.is-wa .qh-float-ico { background: #2E353C; }
.qh-float-item.is-pqrs .qh-float-ico { background: var(--accent); }
@media (max-width: 560px) { .qh-float { right: 14px; bottom: 14px; } .qh-float-btn { font-size: 14px; } }

main > section[data-view] { display: none; }
body[data-view="nosotros"] main > section:not([data-view="nosotros"]) { display: none; }
body[data-view="nosotros"] main > section[data-view="nosotros"] { display: block; }
body[data-view="blog"] main > section:not([data-view="blog"]) { display: none; }
body[data-view="blog"] main > section[data-view="blog"] { display: block; }
.showcase { padding: 72px 0 48px; background: #FFFFFF; }
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
.showcase-head h2 { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; color: #1F2429; }

.showcase-track:focus-visible { outline: 2px solid #A85300; outline-offset: 3px; }
.showcase-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; }
.show-item { flex: 0 0 min(88%, 760px); scroll-snap-align: start; margin: 0; border-radius: 16px; overflow: hidden; background: #1F2429; color: #FFFFFF; }
.show-item video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #1F2429; }
.show-item figcaption { padding: 16px 20px; font-size: 16px; font-weight: 700; }

@media (max-width: 560px) { .show-item { flex-basis: 90%; }  }
.qh-float.is-open .qh-float-btn { color: #1F2429; }

.showcase { padding: 0; overflow: hidden; background: #FFFFFF; }
/* Banner de frase entre el menú y el video (Inicio). */
.motto { background: var(--surface); color: var(--ink); padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.motto-text { position: relative; margin: 0 auto; max-width: 900px; font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -0.01em; }
/* Sobre blanco "crearlo" va en --accent-text (contraste AA); las comillas, decorativas, en --accent. */
.motto-text .accent { color: var(--accent-text); }
.motto-quote { font-family: Georgia, "Times New Roman", serif; font-size: 1.5em; line-height: 0; vertical-align: -0.12em; color: var(--accent); }
.motto-quote:first-child { margin-right: 0.08em; }
.motto-quote:last-child { margin-left: 0.04em; }
.showcase-stage { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
body { overflow-x: clip; }
.showcase-track { display: flex; overflow: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.showcase-track::-webkit-scrollbar { display: none; }
.showcase-track:focus-visible { outline: 2px solid #A85300; outline-offset: -4px; }
.show-item { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0; scroll-snap-align: start; background: #1F2429; color: #FFFFFF; border-radius: 0; }
.show-item video { display: block; width: 100%; height: auto; max-height: 80vh; aspect-ratio: 16 / 9; object-fit: contain; background: #1F2429; }
.show-item figcaption { padding: 16px clamp(16px, 4vw, 40px); font-weight: 700; }

.qh-float-btn { background: #1F2429; color: #FFFFFF; box-shadow: 0 12px 28px rgba(31, 36, 41, .35); }
.qh-float.is-open .qh-float-btn { background: #A85300; color: #FFFFFF; box-shadow: 0 12px 28px rgba(168, 83, 0, .35); }
.qh-float-item { background: #1F2429; color: #FFFFFF; border: 1px solid #2E353C; }
.qh-float-item:hover { border-color: #F5871F; }
.qh-float-item .qh-float-ico { background: #F5871F; color: #1F2429; }
.qh-float-item.is-wa .qh-float-ico, .qh-float-item.is-pqrs .qh-float-ico { background: #F5871F; }

.lang-switch button[aria-pressed="true"] { background: #F5871F; color: #1F2429; }
.qh-float.is-open .qh-float-btn { background: #F5871F; color: #1F2429; box-shadow: 0 12px 28px rgba(245, 135, 31, .35); }
:root { --muted: #2E353C; }
.nav a { color: #2E353C; }
.gradient-text { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: var(--accent-text) !important; -webkit-text-fill-color: var(--accent-text) !important; }

.tech-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.tech-list li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: #1F2429; }
.tech-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: #F5871F; }

/* WhatsApp flotante: visible en todas las vistas, abajo a la izquierda */
.wa-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 85;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #1F2429;
  color: #FFFFFF;
  box-shadow: 0 14px 30px -12px rgba(31, 36, 41, 0.55);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.wa-float:hover { background: #F5871F; color: #1F2429; transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wa-float svg { display: block; }

/* Vista Casos de éxito (riel de clientes y casos). */
main > section[data-view="casos"] { display: none; }
body[data-view="casos"] main > section:not([data-view="casos"]) { display: none; }
body[data-view="casos"] main > section[data-view="casos"] { display: block; }

/* Remate del titular en las cabeceras de sección. */
.section-head h2 .accent { color: var(--accent-text); }


/* Plataformas: tres tarjetas con enlace a su landing. */
.platforms { padding-block: clamp(72px, 10vw, 140px) clamp(40px, 6vw, 80px); }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
/* 4 plataformas: 4 columnas en escritorio, 2 en pantallas medianas, 1 en celular. */
@media (max-width: 1180px) { .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.platform, .why-card, .case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-card);
  border: 1px solid var(--line-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s;
}
.platform:hover, .why-card:hover, .case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.platform-media { display: flex; align-items: flex-end; justify-content: center; height: 220px; margin: -4px -8px 4px; padding-top: 12px; overflow: hidden; border-radius: calc(var(--radius-card) - 6px); background: var(--surface-raised); }
.platform-media img { width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: bottom; }
/* Plataformas que se muestran con su logo en lugar de personaje (InmoIA). */
.platform-media.is-logo { align-items: center; padding: 24px; }
.platform-media.is-logo img { width: 78%; height: auto; object-position: center; }
.platform-media.is-pending { align-items: center; border: 1px dashed var(--line-strong); font-size: 14px; font-weight: 600; color: var(--muted); }
.platform .tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.platform h3 { margin: 0; font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.15; }
.platform-by { white-space: nowrap; font-family: var(--font-text); font-size: 0.55em; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.platform p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.platform-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; }
.platform-link:hover .arrow { transform: translateX(4px); }
.platform-link .arrow { transition: transform 0.25s; }
.platform-soon { margin-top: auto; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--surface-raised); color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Casos de éxito: tarjetas listas para llenar (logo, reto, solución y resultado). */
.cases { padding-block: clamp(16px, 3vw, 32px) clamp(72px, 10vw, 140px); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case-logo { display: grid; place-items: center; height: 96px; border-radius: calc(var(--radius-card) - 6px); border: 1px dashed var(--line-strong); background: var(--surface-raised); font-size: 14px; font-weight: 600; color: var(--muted); }
/* Caso con logo real del cliente: fondo blanco y borde continuo. */
.case-logo.has-logo { border-style: solid; border-color: var(--line-card); background: var(--surface); padding: 14px 20px; }
.case-logo.has-logo img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.case-card h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.5rem); line-height: 1.2; }
.case-facts { display: grid; gap: 12px; margin: 0; }
.case-facts dt { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.case-facts dd { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.case-card .platform-soon { margin-top: 0; }
.case-link { margin-top: auto; padding-top: 6px; align-self: flex-start; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.case-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.case-link .arrow { display: inline-block; transition: transform 0.25s; }
.case-link:hover .arrow { transform: translateX(4px); }

/* Nosotros: integrantes del equipo (foto, nombre y rol). Fotos próximamente. */
.team { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.team-grid { list-style: none; max-width: 960px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.team-member { display: grid; gap: 6px; text-align: center; }
.team-photo-ph { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; border-radius: var(--radius-card); border: 1px dashed var(--line-strong); background: var(--surface-raised); font-size: 14px; font-weight: 600; color: var(--muted); }
/* Avatar provisional del integrante (img/equipo/avatar-N.svg) mientras llegan las fotos. */
.team-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 10px; border-radius: var(--radius-card); border: 1px solid var(--line-card); box-shadow: var(--shadow-card); }
.team-member h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; }
.team-member p { margin: 0; color: var(--muted); font-size: 16px; }

/* Nosotros: Por qué Qaholom (cifras, seguridad en Azure y valores). */
.why { padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.why-stats { list-style: none; margin: 0 0 clamp(40px, 5vw, 56px); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 64px; }
.why-stat { display: grid; justify-items: center; text-align: center; }
.why-stat strong { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--cian-text); }
.why-stat span { margin-top: 8px; font-size: 16px; color: var(--muted); }
.why-title { margin: 0 0 20px; font-size: 1.4rem; line-height: 1.25; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.why-grid + .why-title { margin-top: clamp(40px, 5vw, 56px); }
.why-card h4 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.why-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

@media (max-width: 900px) {
  .platform-grid, .case-grid { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Menú desplegable "Nuestras plataformas" (último elemento del menú). */
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(245,135,31,0.30); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; }
/* Botón destacado en naranja Qaholom; texto oscuro para mantener el contraste AA. */
.nav-drop-btn:hover, .nav-drop.is-open .nav-drop-btn { background: var(--accent-tint); color: var(--accent-ink); box-shadow: 0 4px 12px rgba(245,135,31,0.35); }
.nav-drop-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.nav-drop-btn svg { transition: transform 0.2s; }
.nav-drop.is-open .nav-drop-btn svg { transform: rotate(180deg); }
.nav .nav-drop-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; gap: 2px; min-width: 240px; padding: 8px; border-radius: var(--radius-card); border: 1px solid var(--line-card); background: var(--surface); box-shadow: var(--shadow-card-hover); }
.nav .nav-drop-menu[hidden] { display: none; }
.nav .nav-drop-menu a, .nav-drop-soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: calc(var(--radius-card) - 6px); font-family: var(--font-display); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav .nav-drop-menu a { color: var(--ink); }
.nav .nav-drop-menu a:hover { background: var(--surface-hi); color: var(--accent-text); }
.nav-drop-soon { color: var(--muted); cursor: default; }
/* Plataformas que se muestran con su logo en el menú (VentIA, InmoIA, Sofía). */
.nav-drop-logo img { display: block; height: 24px; width: auto; }
.nav-drop-logo img.is-ventia { height: 32px; margin-block: -4px; }
.nav-drop-logo img.is-sofia { height: 20px; }
.nav-drop-soon small { font-family: var(--font-text); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 900px) {
  .nav .nav-drop-menu { right: 50%; transform: translateX(50%); }
}
@media (max-width: 560px) {
  .nav-drop-btn { padding: 9px 14px; }
}
/* Listas numeradas y enlaces dentro de los artículos del blog. */
.reader-list--num { list-style: decimal; padding-left: 1.4em; }
.reader-list--num li::marker { color: var(--accent-text); font-weight: 700; }
.reader-body a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
