/* Paleta común de Deltanet: azul noche, azul acero, blanco frío y turquesa suave. */
:root {
  --ink: #17283d;
  --ink-soft: #5f7083;
  --blue: #477cb8;
  --blue-bright: #477cb8;
  --blue-pale: #b8cde1;
  --paper: #f5f7fa;
  --surface: #edf1f5;
  --night: #0b1420;
  --line: #dfe6ed;
  --brand-steel: #477cb8;
  --brand-teal: #68beb0;
  --brand-focus: #68beb0;
}

body:not(.product-page) { color: var(--ink); background-color: var(--paper); }
body:not(.product-page)::selection,
body:not(.product-page) ::selection { color: #fff; background: #477cb8; }
body:not(.product-page):focus-visible,
body:not(.product-page) :focus-visible { outline-color: var(--brand-focus); }

/* Cabecera compartida y llamadas a la acción. */
body:not(.product-page) .site-header,
body.home-minimal:not(.product-page) .site-header {
  background: linear-gradient(180deg, rgb(5 10 18 / 64%), rgb(5 10 18 / 58%)) !important;
  border-bottom-color: rgb(255 255 255 / 10%) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
}
body:not(.product-page) .header-utility,
body.home-minimal:not(.product-page) .header-utility { background: transparent !important; }
body:not(.product-page) .site-footer { background-color: var(--night); }
body:not(.product-page) .utility-promise > span,
body:not(.product-page) .status-dot,
body:not(.product-page) .design-hero-location > span { background-color: var(--brand-teal); }
body:not(.product-page) .nav-contact,
body:not(.product-page) .button-primary,
body:not(.product-page) .service-button:not(.service-button-secondary),
body:not(.product-page) .page-button,
body:not(.product-page) .ai-button-primary,
body:not(.product-page) .contact-cta-link,
body:not(.product-page) .stories-contact-cta,
body:not(.product-page) .hero-growth-cta {
  border-color: var(--brand-steel);
  background-color: var(--brand-steel);
}
body:not(.product-page) .nav-contact:hover,
body:not(.product-page) .button-primary:hover,
body:not(.product-page) .service-button:not(.service-button-secondary):hover,
body:not(.product-page) .page-button:hover,
body:not(.product-page) .ai-button-primary:hover,
body:not(.product-page) .contact-cta-link:hover,
body:not(.product-page) .stories-contact-cta:hover,
body:not(.product-page) .hero-growth-cta:hover { background-color: #3d6fA8; }

/* Tokens de las páginas de servicios y del sistema de tarjetas compartido. */
.service-page {
  --service-ink: #17283d;
  --service-muted: #5f7083;
  --service-blue: #477cb8;
  --service-line: #dfe6ed;
  background-color: var(--paper);
}
.service-page:not(.web-specialized-page) .service-content-section.is-blue { background-color: #edf1f5; }
.service-page .service-eyebrow,
.service-page .service-section-kicker { color: var(--brand-steel); }
.service-page .service-eyebrow::before,
.service-page .service-section-kicker::before { background-color: var(--brand-teal); }
.service-page .service-hero h1 span { color: var(--brand-steel); }
.service-page .service-button:not(.service-button-secondary) { color: #fff; background-color: var(--brand-steel); }
.service-page .service-button:not(.service-button-secondary):hover { background-color: #3d6fa8; }

/* Un mismo tono de acento en la home, páginas de producto, historia y casos. */
.home-page {
  --home-ink: #17283d;
  --home-muted: #5f7083;
  --home-blue: #477cb8;
}
.home-page .section-kicker,
.home-page .service-card .card-link,
.home-page .solution-card-link,
.home-page .section-heading h2 span,
.home-page .success-heading h2 span { color: var(--brand-steel); }
.home-page .status-dot,
.stories-page .stories-filter.is-active,
.stories-page .story-card-category { color: var(--brand-steel); }
.home-page .service-card .service-icon,
.home-page .development-art-core { color: var(--brand-steel); }
.home-page .service-card-ai { background-color: var(--night); }
.home-page .hero-title-rotate { color: #b8cde1; }
.home-page .integrations-content h2 span { color: var(--brand-teal); }
.stories-page .stories-contact-cta { background-color: var(--brand-steel); }
.stories-page .story-card-category,
.stories-page .story-filter.is-active { color: var(--brand-steel); }

/* Digitalización, contacto, historia y páginas de producto comparten el mismo azul noche. */
body:not(.product-page) .page-shell { background-color: var(--night); }
body:not(.product-page) .page-hero,
body:not(.product-page) .contact-page-hero {
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 78% 35%, rgb(71 124 184 / 24%), transparent 37%),
    radial-gradient(ellipse at 17% 100%, rgb(104 190 176 / 10%), transparent 43%),
    linear-gradient(130deg, #0b1420, #122338 56%, #102438);
}
body:not(.product-page) .page-eyebrow,
body:not(.product-page) .contact-direct a span,
body:not(.product-page) .form-heading span { color: #9ab5d0; }
body:not(.product-page) .page-hero h1 em,
body:not(.product-page) .contact-page-hero h1 em,
body:not(.product-page) .page-section h2 em,
body:not(.product-page) .digital-next-card h2 em { color: #91acc8; }
body:not(.product-page) .page-button { border-color: var(--brand-steel); background-color: var(--brand-steel); }
body:not(.product-page) .page-button:hover { background-color: #3d6fa8; }
body:not(.product-page) .status-dot { background-color: var(--brand-teal); box-shadow: 0 0 14px rgb(104 190 176 / 55%); }
body:not(.product-page) .contact-form { border-color: rgb(223 230 237 / 16%); background-color: rgb(11 20 32 / 88%); }
body:not(.product-page) .contact-form input:focus,
body:not(.product-page) .contact-form select:focus,
body:not(.product-page) .contact-form textarea:focus { border-color: var(--brand-teal); }
body:not(.product-page) .product-console { background-color: var(--night); }

/* Ajuste de las secciones oscuras de diseño web a azul noche en lugar de negro puro. */
.web-design-page main { background-color: var(--night); }
.web-design-page .design-service-hero {
  background-image: radial-gradient(ellipse at 78% 35%, rgb(71 124 184 / 20%), transparent 38%), linear-gradient(135deg, #0b1420 0%, #102033 58%, #122338 100%);
}
.web-design-page .design-trust-section { background-color: #101c29; }
.web-design-page .service-content-section.is-white { background-color: #0b1420; }
.web-design-page .service-content-section.is-blue { background-color: #101c29; }
.web-design-page .design-film-section { background-color: #102338; }
.web-design-page .design-contact-section { background-image: radial-gradient(ellipse at 14% 50%, rgb(71 124 184 / 22%), transparent 42%), linear-gradient(125deg, #0b1420, #163047); }
.web-design-page .design-includes-grid .service-card,
.web-design-page .design-value-card,
.web-design-page .service-process-step,
.web-design-page .design-guidance-card,
.web-design-page .design-related-card,
.web-design-page .design-work-card,
.web-design-page .development-stack-card { background-color: #142337; }
.web-design-page .design-project-meta strong,
.web-design-page .design-includes-grid .service-card h3,
.web-design-page .design-value-card h3,
.web-design-page .service-process-step h3,
.web-design-page .design-guidance-card h3,
.web-design-page .design-related-card h3,
.web-design-page .development-stack-card h3 { color: #f5f7fa; }
.web-design-page .design-project-meta small,
.web-design-page .design-includes-grid .service-card p,
.web-design-page .design-value-card p,
.web-design-page .service-process-step p,
.web-design-page .design-guidance-card p,
.web-design-page .design-related-card p,
.web-design-page .development-stack-card p { color: #a8b6c7; }
.web-design-page .design-includes-grid .service-card:hover,
.web-design-page .design-value-card:hover,
.web-design-page .service-process-step:hover,
.web-design-page .design-work-card:hover,
.web-design-page .development-stack-card:hover { border-color: rgb(104 190 176 / 48%); }
.web-design-page .design-text-link,
.web-design-page .design-work-arrow { color: #a8c0d8; }
.web-design-page .design-service-hero .service-button:not(.service-button-secondary),
.web-design-page .design-contact-section .service-button { background-color: var(--brand-steel); }
.web-design-page .design-service-hero .service-button:not(.service-button-secondary):hover,
.web-design-page .design-contact-section .service-button:hover { background-color: #3d6fa8; }
.web-design-page .design-service-hero .service-eyebrow,
.web-design-page .design-image-caption span,
.web-design-page .design-film-frame figcaption span,
.web-design-page .design-value-card > span,
.web-design-page .design-includes-grid .service-card-number,
.web-design-page .service-process-step span { color: #93b1cd; }

/* La página especializada mantiene el modo oscuro, pero ajusta acentos a la paleta. */
.service-page.web-specialized-page {
  --service-ink: #f5f7fa;
  --service-muted: #a8b6c7;
  --service-blue: #8ba9c7;
  --service-line: rgb(223 230 237 / 16%);
  background-color: var(--night);
}
.web-specialized-page .service-section-kicker,
.web-specialized-page .service-eyebrow { color: #9ab5d0; }
.web-specialized-page .service-eyebrow::before,
.web-specialized-page .service-section-kicker::before { background-color: var(--brand-teal); }
.web-specialized-page .service-hero h1 span,
.web-specialized-page .design-text-link,
.web-specialized-page .design-guidance-card a { color: #a6c0db; }
.web-specialized-page .service-button:not(.service-button-secondary) { color: #fff; background-color: var(--brand-steel); }
.web-specialized-page .service-button:not(.service-button-secondary):hover { background-color: #5888bd; }
.web-specialized-page .development-stack-card:hover,
.web-specialized-page .design-value-card:hover,
.web-specialized-page .service-process-step:hover { border-color: rgb(104 190 176 / 48%); }
.web-design-page .design-service-hero .service-hero-copy h1 span,
.web-design-page .design-image-caption span,
.web-design-page .design-film-frame figcaption span { color: #93b1cd; }
.web-design-page .design-service-hero .service-button:not(.service-button-secondary),
.web-design-page .design-contact-section .service-button { color: #fff; background-color: var(--brand-steel); }
.web-design-page .design-project-meta small { color: #aab6c3; }
.web-design-page .design-work-arrow,
.web-design-page .design-tech-section .design-tech-filter.is-active { color: #fff; }
.web-design-page .design-tech-section .design-tech-filter.is-active { background-color: var(--brand-steel); border-color: var(--brand-steel); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Ajustes de navegación y heroes: escala coherente con la portada */
.nav-panel.nav-panel-services,
.nav-panel.nav-panel-solutions {
  box-sizing: border-box;
  max-width: min(920px, calc(100vw - 40px));
  overflow: hidden;
}
.nav-panel.nav-panel-services { width: min(900px, calc(100vw - 40px)) !important; }
.nav-panel.nav-panel-solutions { width: min(920px, calc(100vw - 40px)) !important; }
.nav-panel-intro {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}
.nav-panel-intro strong,
.nav-panel-intro p {
  box-sizing: border-box;
  flex: 0 1 auto !important;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: block;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
.nav-panel-links { min-width: 0; width: 100%; }
.nav-panel-links a { min-width: 0; max-width: 100%; }
.nav-panel-links a > span {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
.nav-panel-solutions .nav-panel-links a > span {
  grid-template-columns: minmax(108px, .72fr) minmax(0, 1.28fr);
  column-gap: 12px;
}
.nav-panel-links small { min-width: 0; white-space: normal; overflow-wrap: break-word; }
.nav-solutions-controls { display: inline-flex; align-items: center; gap: 0; }
.nav-solutions-page-link { white-space: nowrap; }
.nav-solutions-toggle {
  min-width: 28px;
  padding: 10px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-solutions-toggle .chevron { margin: 0 0 3px; }

.page-hero,
.contact-page-hero,
.stories-hero,
.service-hero,
.kd-hero,
.ai-hero,
.solutions-hero {
  box-sizing: border-box;
  min-height: 100vh !important;
  min-height: 100svh !important;
}
.hero-stage { box-sizing: border-box; height: 100vh; height: 100svh; min-height: 100vh !important; min-height: 100svh !important; }

/* Casos de éxito: atmósfera de confianza y más aire para los carruseles */
.stories-hero {
  background:
    radial-gradient(ellipse at 78% 48%, rgb(62 129 213 / 32%), transparent 36%),
    radial-gradient(ellipse at 18% 88%, rgb(58 174 191 / 13%), transparent 38%),
    linear-gradient(124deg, #071321 0%, #102a47 54%, #10233a 100%);
}
.stories-hero::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 110%, transparent 30%, rgb(4 11 20 / 22%) 100%);
}
.stories-hero-layout { position: relative; z-index: 1; }
.stories-featured .stories-section-heading { margin-bottom: 64px; }
.featured-marquee-toolbar { margin-bottom: 22px; }
.featured-client-marquee { height: clamp(520px, 54vw, 700px); gap: 18px; }
.featured-client-marquee-group { gap: 16px; padding-bottom: 16px; }
.featured-marquee-card {
  min-height: 174px;
  padding: 14px 16px;
  grid-template-rows: auto minmax(68px, 1fr) auto;
  gap: 9px;
  border-radius: 18px;
}
.featured-marquee-logo { min-height: 68px; }
.featured-marquee-logo img { max-height: 76px; }
.featured-marquee-name { font-size: 14px; }

/* Sobre nosotros: vídeo envolvente y cronología centrada */
.about-page .history-hero {
  position: relative;
  min-height: 100svh !important;
  padding: 130px 28px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  text-align: center;
  background: #081426;
}
.history-hero-video {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 48%;
}
.about-page .history-hero::before {
  z-index: -1;
  opacity: .12;
  mask-image: linear-gradient(transparent, #000 30%, #000 78%, transparent);
}
.about-page .history-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgb(4 11 20 / 58%), rgb(4 11 20 / 25%) 50%, rgb(4 11 20 / 58%)), linear-gradient(0deg, rgb(4 11 20 / 58%), transparent 42%, rgb(4 11 20 / 35%));
}
.about-page .history-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  max-width: 900px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 28px;
}
.about-page .history-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #f7f9ff;
  font: 700 clamp(54px, 8vw, 100px)/.98 var(--font-display);
  letter-spacing: -.075em;
  text-wrap: balance;
}
.about-page .history-hero .page-button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(228 239 255 / 72%);
  border-radius: 999px;
  color: #fff;
  background: rgb(255 255 255 / 5%);
  backdrop-filter: blur(8px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.about-page .history-hero .page-button:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 14%);
  transform: translateY(-2px);
}
.about-page .story-timeline-section .section-intro {
  max-width: 830px;
  margin-inline: auto;
  text-align: center;
}
.about-page .story-timeline { width: min(100%, 1120px); margin-inline: auto; }
.about-page .story-timeline-end { width: min(100%, 1040px); margin-inline: auto; }

/* Digitalización: identidad Deltanet, iconos y tarjetas legibles */
.digitalization-page {
  --kd-paper: #f4f7fb;
  --kd-accent: #3476c8;
  --kd-purple: #6da9df;
  --kd-ink: #152c46;
  --kd-muted: #61768d;
  --kd-line: #dce6f1;
}
.digitalization-page .kd-hero {
  min-height: 100svh !important;
  background:
    radial-gradient(ellipse at 76% 45%, rgb(49 117 198 / 32%), transparent 38%),
    radial-gradient(ellipse at 16% 100%, rgb(58 173 190 / 12%), transparent 39%),
    linear-gradient(128deg, #071321, #102a47 58%, #102238);
}
.digitalization-page .kd-hero-gridline { opacity: .12; }
.digitalization-page .kd-eyebrow,
.digitalization-page .kd-eyebrow-dark { color: #5d9bd8; }
.digitalization-page .kd-eyebrow > span { display: none; }
.digitalization-page .kd-hero h1 em { color: #91baff; }
.digitalization-page .kd-button-lime,
.digitalization-page .kd-button-violet {
  border: 1px solid #4e8fd2;
  color: #fff;
  background: #2868b8;
}
.digitalization-page .kd-button-lime:hover,
.digitalization-page .kd-button-violet:hover { background: #1c548f; }
.digitalization-page .kd-solution-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.digitalization-page .kd-solution {
  min-width: 0;
  min-height: 270px;
  padding: 23px 22px 20px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border: 1px solid #dce6f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgb(20 43 69 / 6%);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.digitalization-page .kd-solution:hover {
  transform: translateY(-5px);
  border-color: #a8c9e9;
  background: #fbfdff;
  box-shadow: 0 24px 48px rgb(20 43 69 / 12%);
}
.digitalization-page .kd-solution > span { top: 19px; right: 20px; color: #7a91a9; }
.digitalization-page .kd-solution-icon {
  width: 46px;
  height: 46px;
  margin: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e5f5;
  border-radius: 13px;
  color: #3476c8;
  background: #eef5fc;
}
.digitalization-page .kd-solution-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.digitalization-page .kd-solution h3 {
  max-width: 100%;
  margin: 0 0 9px;
  color: #18324e;
  font: 700 16px/1.28 var(--font-display);
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}
.digitalization-page .kd-solution p {
  max-width: 100%;
  margin: 0;
  color: #61768d;
  font-size: 13px;
  line-height: 1.6;
}
.digitalization-page .kd-solution small {
  position: static;
  margin-top: auto;
  padding-top: 14px;
  color: #6082a4;
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: .1em;
}
.digitalization-page .kd-intro h2,
.digitalization-page .kd-section-head h2,
.digitalization-page .kd-consulting h2 { color: #18324e; }
.digitalization-page .kd-program-logo { border-color: #dce6f1; }
@media (max-width: 1050px) {
  .digitalization-page .kd-solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-client-marquee { height: clamp(500px, 65vw, 650px); }
  .featured-marquee-card { min-height: 164px; }
}
@media (max-width: 760px) {
  .nav-solutions-controls { width: 100%; }
  .nav-solutions-page-link { flex: 1 1 auto; width: auto; }
  .nav-solutions-toggle { width: 44px; min-height: 45px; flex: 0 0 44px; }
  .nav-solutions-toggle .chevron { margin: 0; }
  .nav-panel-solutions .nav-panel-links a > span { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .featured-client-marquee { height: 470px; gap: 12px; }
  .featured-marquee-card { min-height: 148px; padding: 11px 12px; grid-template-rows: auto minmax(56px, 1fr) auto; }
  .featured-marquee-logo { min-height: 56px; }
  .featured-marquee-logo img { max-height: 62px; }
  .featured-marquee-name { font-size: 12px; }
  .about-page .history-hero { padding: 120px 20px 54px; }
  .about-page .history-hero-copy { gap: 22px; }
  .about-page .history-hero h1 { font-size: clamp(48px, 12vw, 70px); }
  .about-page .story-timeline-section .section-intro { text-align: center; }
}
@media (max-width: 580px) {
  .digitalization-page .kd-solution-grid { grid-template-columns: minmax(0, 1fr); }
  .digitalization-page .kd-solution { min-height: 235px; }
  .stories-featured .stories-section-heading { margin-bottom: 44px; }
  .featured-marquee-toolbar { margin-bottom: 16px; }
  .featured-client-marquee { height: 450px; gap: 10px; }
  .featured-marquee-card { min-height: 138px; padding: 9px 10px; grid-template-rows: auto minmax(50px, 1fr) auto; }
  .featured-client-marquee-group { gap: 11px; padding-bottom: 11px; }
  .featured-marquee-sector { font-size: 7px; }
}
@media (max-width: 1100px) {
  .nav-solutions-controls { width: 100%; }
  .nav-solutions-page-link { flex: 1 1 auto; width: auto; }
  .nav-solutions-toggle { width: 44px; min-height: 45px; flex: 0 0 44px; }
  .nav-solutions-toggle .chevron { margin: 0; }
}

/* Medidas de cabecera alineadas con el hero de AAPPnet */
.about-page .history-hero,
.digitalization-page .kd-hero,
.stories-hero {
  padding: 180px max(32px, calc((100vw - 1180px) / 2)) 100px;
}
.about-page .history-hero { place-items: center; }
.digitalization-page .kd-hero-layout {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0;
}
.stories-hero { display: flex; align-items: center; }
.stories-hero-layout { width: min(1180px, 100%); margin-inline: auto; }

/* Ver completa la imagen cuadrada de RGPDnet con una extensión ambiental */
body:not(.product-page) .page-hero.product-hero.rgpdnet-hero { background: #0a1728; }
.page-hero.product-hero.rgpdnet-hero > .rgpdnet-hero-backdrop {
  position: absolute;
  z-index: 0;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: .5;
  filter: blur(24px) saturate(.78);
  transform: scale(1.03);
}
.page-hero.product-hero.rgpdnet-hero > .product-hero-background {
  z-index: 1;
  object-fit: contain;
  object-position: right center;
  filter: saturate(.92);
}
.page-hero.product-hero.rgpdnet-hero::after { z-index: 2; }
.page-hero.product-hero.rgpdnet-hero::before { z-index: 3; }
.page-hero.product-hero.rgpdnet-hero .product-hero-copy { z-index: 4; }

/* Cada fecha crece al entrar en pantalla y queda destacada en la paleta azul */
.about-page .story-period { transform-origin: center; }
.about-page .story-event.is-visible .story-period {
  color: #fff;
  border-color: #3476c8;
  background: linear-gradient(140deg, #3476c8, #24558d);
  box-shadow: 0 12px 30px rgb(39 104 181 / 22%), 0 0 0 4px rgb(76 143 208 / 12%);
  animation: story-year-arrive .76s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes story-year-arrive {
  0% { scale: .72; opacity: .55; }
  64% { scale: 1.16; opacity: 1; }
  100% { scale: 1; opacity: 1; }
}
@media (max-width: 900px) {
  .about-page .history-hero,
  .digitalization-page .kd-hero,
  .stories-hero { padding: 155px 32px 74px; }
}
@media (max-width: 600px) {
  .about-page .history-hero,
  .digitalization-page .kd-hero,
  .stories-hero { padding: 138px 22px 60px; }
  .digitalization-page .kd-hero-layout { width: 100%; }
  .page-hero.product-hero.rgpdnet-hero > .product-hero-background {
    object-position: center 56%;
  }
  .page-hero.product-hero.rgpdnet-hero > .rgpdnet-hero-backdrop { opacity: .4; }
  .about-page .story-period { transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) {
  .about-page .story-event.is-visible .story-period { animation: none; scale: 1; }
}

/* Digitalización: hero a dos columnas con la imagen del programa integrada. */
.digitalization-page .kd-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .98fr);
  align-items: center;
  justify-content: initial;
  gap: clamp(34px, 5vw, 72px);
  text-align: left;
}
.digitalization-page .kd-hero-copy { width: 100%; max-width: 620px; }
.digitalization-page .kd-hero-copy .kd-eyebrow,
.digitalization-page .kd-hero .kd-actions,
.digitalization-page .kd-trust-line { justify-content: flex-start; }
.digitalization-page .kd-hero h1 { max-width: 680px; margin: 20px 0 18px; }
.digitalization-page .kd-hero-copy > p { max-width: 590px; margin: 0; }
.digitalization-page .kd-hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1.38;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(221 235 250 / 22%);
  border-radius: 5px;
  background: #12263a;
  box-shadow: 0 28px 80px rgb(0 0 0 / 32%);
}
.digitalization-page .kd-hero-visual::after {
  position: absolute;
  inset: 34% 0 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 8%, rgb(7 19 33 / 78%) 100%);
}
.digitalization-page .kd-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.02);
  transition: transform 700ms cubic-bezier(.2,.75,.2,1);
}
.digitalization-page .kd-hero-visual:hover img { transform: scale(1.035); }
.digitalization-page .kd-hero-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: #f4f8fc;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
@media (max-width: 900px) {
  .digitalization-page .kd-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .digitalization-page .kd-hero-copy { max-width: 720px; }
  .digitalization-page .kd-hero-visual { width: min(100%, 760px); aspect-ratio: 1.65; }
}
@media (max-width: 600px) {
  .digitalization-page .kd-hero-layout { gap: 25px; }
  .digitalization-page .kd-hero-visual { aspect-ratio: 1.4; }
  .digitalization-page .kd-hero-visual figcaption { right: 15px; bottom: 14px; left: 15px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .digitalization-page .kd-hero-visual img { transition: none; }
}

/* RGPDnet: imagen completa en una columna visual independiente del texto. */
.page-hero.product-hero.rgpdnet-hero > .product-hero-background {
  inset: 0 0 0 auto;
  width: min(45vw, 760px);
  height: 100%;
  object-fit: contain;
  object-position: right center;
}
.page-hero.product-hero.rgpdnet-hero { overflow: hidden; }
.page-hero.product-hero.rgpdnet-hero .product-hero-copy {
  width: 48%;
  max-width: 720px;
}
@media (max-width: 900px) {
  .page-hero.product-hero.rgpdnet-hero > .product-hero-background { width: 42vw; }
  .page-hero.product-hero.rgpdnet-hero .product-hero-copy { width: 52%; }
}
@media (max-width: 600px) {
  .page-hero.product-hero.rgpdnet-hero {
    align-items: flex-end;
  }
  .page-hero.product-hero.rgpdnet-hero > .product-hero-background {
    inset: 120px 12px auto auto;
    width: min(62vw, 250px);
    height: min(62vw, 250px);
    object-position: center;
  }
  .page-hero.product-hero.rgpdnet-hero .product-hero-copy {
    width: 100%;
    max-width: none;
    margin-top: clamp(200px, 58vw, 250px);
  }
}

/* Título semántico del hero de historia, sin texto superpuesto al vídeo. */
.hero-screen-reader-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
}

/* Escala común para monitores amplios y televisores 4K/ultrawide. */
@media (min-width: 1440px) {
  .page-hero,
  .contact-page-hero,
  .stories-hero,
  .service-hero,
  .kd-hero,
  .ai-hero,
  .solutions-hero {
    padding-inline: max(56px, calc((100vw - 1500px) / 2));
  }
  .page-hero,
  .contact-page-hero,
  .stories-hero,
  .service-hero,
  .kd-hero,
  .ai-hero,
  .solutions-hero { padding-top: clamp(170px, 13svh, 250px); }
  .service-hero-inner { width: min(1500px, 100%); margin-inline: auto; }
  .service-container {
    width: min(1220px, calc(100% - clamp(48px, 8vw, 120px)));
    max-width: 1220px;
    margin-inline: auto;
  }
  .stories-hero-layout,
  .ai-hero-layout,
  .digitalization-page .kd-hero-layout { width: min(1500px, 100%); margin-inline: auto; }
  .page-hero h1,
  .contact-page-hero h1,
  .stories-hero h1,
  .service-hero h1,
  .kd-hero h1,
  .ai-hero h1,
  .solutions-hero h1 { font-size: clamp(58px, 4vw, 104px); }
  .hero-content.container { width: min(1500px, 100%); }
}

@media (min-width: 2560px) {
  .page-hero,
  .contact-page-hero,
  .stories-hero,
  .service-hero,
  .kd-hero,
  .ai-hero,
  .solutions-hero { padding-top: clamp(220px, 12svh, 320px); }
  .page-hero h1,
  .contact-page-hero h1,
  .stories-hero h1,
  .service-hero h1,
  .kd-hero h1,
  .ai-hero h1,
  .solutions-hero h1 { font-size: clamp(72px, 3.2vw, 128px); }
  .hero-stage { padding-inline: clamp(120px, 8vw, 280px); }
  .hero-content.container { width: min(1600px, 100%); }
  .hero h1 { font-size: clamp(86px, 3.4vw, 136px); }
  .web-design-page .design-service-hero .service-hero-copy h1 { font-size: clamp(72px, 3.2vw, 128px); }
  .hero-lede,
  .page-lead,
  .ai-hero-lede,
  .service-hero-lede { font-size: clamp(18px, 1.1vw, 24px); }
}

/* Tabletas: reserva el espacio de la cabecera y permite que los heroes crezcan con el contenido. */
@media (min-width: 761px) and (max-width: 1100px) {
  .page-hero,
  .contact-page-hero,
  .stories-hero,
  .service-hero,
  .kd-hero,
  .ai-hero,
  .solutions-hero {
    min-height: 100svh !important;
    padding: clamp(140px, 16svh, 180px) 32px 72px;
  }
  .service-hero-inner { width: 100%; max-width: 1500px; margin-inline: auto; }
  .service-container {
    width: min(1220px, calc(100% - 48px));
    max-width: 1220px;
    margin-inline: auto;
  }
  .hero-stage { min-height: 100svh; padding-inline: clamp(32px, 6vw, 72px); }
}

/* Móviles y pantallas compactas: evita recortes laterales y títulos desbordados. */
@media (max-width: 760px) {
  .page-hero,
  .contact-page-hero,
  .stories-hero,
  .service-hero,
  .kd-hero,
  .ai-hero,
  .solutions-hero {
    min-height: 100svh !important;
    padding: clamp(126px, 18svh, 156px) 22px 54px;
  }
  .page-hero h1,
  .contact-page-hero h1,
  .stories-hero h1,
  .service-hero h1,
  .kd-hero h1,
  .ai-hero h1,
  .solutions-hero h1 { max-width: 100%; overflow-wrap: break-word; }
  .service-hero-inner { width: 100%; }
  .service-container {
    width: calc(100% - 36px);
    max-width: 620px;
    margin-inline: auto;
  }
  .web-design-page .service-hero-inner { width: 100%; max-width: none; }
  .hero-stage { padding: 108px 22px 48px; }
  .hero-content.container { width: min(100%, 620px); }
}

@media (max-width: 380px) {
  .page-hero,
  .contact-page-hero,
  .stories-hero,
  .service-hero,
  .kd-hero,
  .ai-hero,
  .solutions-hero { padding-inline: 18px; }
  .hero-stage { padding-inline: 18px; }
}

/* Ajustes globales solicitados: esquinas discretas y azules noche algo más suaves. */
:root { --night: #101c2a; }

body:not(.product-page) .site-header,
body.home-minimal:not(.product-page) .site-header {
  background: linear-gradient(180deg, rgb(12 25 41 / 76%), rgb(12 25 41 / 70%)) !important;
}

body:not(.product-page) .page-hero,
body:not(.product-page) .contact-page-hero {
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse at 78% 35%, rgb(71 124 184 / 25%), transparent 37%),
    radial-gradient(ellipse at 17% 100%, rgb(104 190 176 / 11%), transparent 43%),
    linear-gradient(130deg, #101c2a, #172a3e 56%, #183046);
}
.solutions-hero {
  background:
    radial-gradient(ellipse at 78% 42%, rgb(71 124 184 / 28%), transparent 35%),
    radial-gradient(ellipse at 12% 100%, rgb(104 190 176 / 11%), transparent 40%),
    linear-gradient(130deg, #101c2a, #172a3e 56%, #183046);
}

body:not(.product-page) .page-shell,
body:not(.product-page) .page-hero.product-hero { background-color: var(--night); }
.nav-panel.nav-panel-services,
.nav-panel.nav-panel-solutions { background-color: #142237; }
.about-page .history-hero { background-color: #101c2a; }
.stories-hero {
  background:
    radial-gradient(ellipse at 78% 48%, rgb(62 129 213 / 32%), transparent 36%),
    radial-gradient(ellipse at 18% 88%, rgb(58 174 191 / 13%), transparent 38%),
    linear-gradient(124deg, #101c2a 0%, #17314b 54%, #172a40 100%);
}
body:not(.product-page) .page-hero.product-hero::after {
  background: linear-gradient(90deg, rgb(8 21 36 / 84%) 0%, rgb(8 21 36 / 68%) 38%, rgb(8 21 36 / 26%) 75%, rgb(8 21 36 / 16%) 100%), linear-gradient(0deg, rgb(8 21 36 / 38%), transparent 46%);
}

.home-page .hero-video-shade {
  background: linear-gradient(90deg, rgb(8 19 34 / 64%) 0%, rgb(8 19 34 / 32%) 54%, rgb(8 19 34 / 7%) 100%), linear-gradient(0deg, rgb(8 19 34 / 22%), transparent 44%);
}
.home-page .service-card-ai,
.home-page .services-section .service-card-ai { background-color: #102039; }
.ai-page { background-color: #0e1a29; }
.ai-intro-section,
.ai-process-section { background-color: #111f30; }
.ai-opportunities { background-color: #132236; }
.ai-demo-section { background-color: #101e30; }
.ai-trust-section { background: linear-gradient(120deg, #142b43, #102034 75%); }
.ai-contact-section { background-color: #14283f; }
.ai-page .site-footer { background-color: #0e1927; }
.web-design-page main,
.web-design-page .service-content-section.is-white { background-color: #101c2a; }
.web-design-page .design-service-hero {
  background-image: radial-gradient(ellipse at 78% 35%, rgb(71 124 184 / 22%), transparent 38%), linear-gradient(135deg, #101c2a 0%, #14263a 58%, #183149 100%);
}
.web-design-page .design-trust-section,
.web-design-page .service-content-section.is-blue { background-color: #142233; }
.web-design-page .design-work-section { background-color: #101c2a; }
.web-design-page .design-film-section { background-color: #14283c; }
.web-design-page .design-contact-section { background-image: radial-gradient(ellipse at 14% 50%, rgb(71 124 184 / 22%), transparent 42%), linear-gradient(125deg, #101c2a, #1a354b); }

/* Todos los bloques tipo tarjeta y los marcos de imagen comparten esquinas de 5 px. */
:where([class*="card"], [class*="tile"], [class*="image"], [class*="visual"], [class*="frame"], img) {
  border-radius: 5px !important;
}

/* Heroes de servicios: imagen y texto ocupan mitades equivalentes, como en Diseño web. */
.service-page .service-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 4.5vw, 66px);
}
.service-page .service-hero-visual {
  width: 100%;
  min-height: clamp(370px, 42vw, 570px);
}

/* La foto de RGPDnet ocupa toda su mitad del hero y queda alineada con el contenido. */
body:not(.product-page) .page-hero.product-hero.rgpdnet-hero { background-color: #101c2a; }
.page-hero.product-hero.rgpdnet-hero > .rgpdnet-hero-backdrop {
  opacity: .36;
  filter: blur(26px) saturate(.78);
}
.page-hero.product-hero.rgpdnet-hero > .product-hero-background {
  inset: 0 0 0 auto;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}
.page-hero.product-hero.rgpdnet-hero .product-hero-copy {
  width: 47%;
  max-width: 720px;
}

@media (min-width: 761px) and (max-width: 940px) {
  .service-page .service-hero-grid { gap: 24px; }
  .service-page .service-hero-visual { min-height: 360px; }
  .page-hero.product-hero.rgpdnet-hero > .product-hero-background { width: 50%; }
  .page-hero.product-hero.rgpdnet-hero .product-hero-copy { width: 47%; }
}

@media (max-width: 760px) {
  .service-page .service-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-page .service-hero-visual { min-height: clamp(260px, 58vw, 360px); }
  .page-hero.product-hero.rgpdnet-hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-height: max(680px, 100svh);
  }
  .page-hero.product-hero.rgpdnet-hero > .product-hero-background {
    inset: 0 0 auto;
    width: 100%;
    height: 49%;
    object-position: center 45%;
  }
  body:not(.product-page) .page-hero.product-hero.rgpdnet-hero::after {
    background: linear-gradient(180deg, rgb(8 21 36 / 8%) 0%, rgb(8 21 36 / 7%) 38%, rgb(8 21 36 / 88%) 53%, #101c2a 100%);
  }
  .page-hero.product-hero.rgpdnet-hero .product-hero-copy {
    width: 100%;
    max-width: none;
    margin-top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .service-hero-visual > img { animation: none; }
}

/* Diseño web: ritmo vertical más compacto y estados claros en Presencia digital. */
.web-design-page .service-content-section { padding-block: clamp(54px, 6vw, 82px); }
.web-design-page .service-section-heading { margin-bottom: 30px; }
.web-design-page .design-film-section { padding-block: clamp(56px, 6.2vw, 84px); }
.web-design-page .design-contact-section { padding-block: clamp(54px, 6vw, 80px); }

.web-design-page .design-value-card {
  border-color: #dce5ef;
  color: #193653;
  background: #f8fbff;
  box-shadow: 0 14px 34px rgb(4 18 34 / 12%);
  transition: color 280ms ease, background-color 280ms ease, transform 280ms ease,
    border-color 280ms ease, box-shadow 280ms ease;
}
.web-design-page .design-value-card > span { color: #3678c5; transition: color 280ms ease; }
.web-design-page .design-value-card h3 { color: #173653; transition: color 280ms ease; }
.web-design-page .design-value-card p { color: #536a82; transition: color 280ms ease; }
.web-design-page .design-value-card::after { border-color: rgb(54 120 197 / 18%); transition: transform 350ms ease, border-color 280ms ease; }
.web-design-page .design-value-card:hover,
.web-design-page .design-value-card:focus-visible {
  border-color: #315f91;
  color: #fff;
  background: #183b5f;
  box-shadow: 0 22px 44px rgb(1 12 26 / 30%);
}
.web-design-page .design-value-card:hover > span,
.web-design-page .design-value-card:focus-visible > span,
.web-design-page .design-value-card:hover h3,
.web-design-page .design-value-card:focus-visible h3,
.web-design-page .design-value-card:hover p,
.web-design-page .design-value-card:focus-visible p { color: #fff; }
.web-design-page .design-value-card:hover::after,
.web-design-page .design-value-card:focus-visible::after { border-color: rgb(255 255 255 / 20%); }

/* Herramientas de Diseño web en una rejilla compacta de dos filas. */
.web-design-page .design-tech-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.web-design-page .design-tech-grid .development-stack-card {
  min-height: 188px;
  padding: 13px 12px;
  border-radius: 5px;
}
.web-design-page .design-tech-grid .development-stack-card::before { left: 12px; width: 25px; }
.web-design-page .design-tech-grid .development-stack-category { font-size: 8px; }
.web-design-page .design-tech-grid .development-stack-logo { height: 48px; margin: 9px 0 8px; padding: 5px 8px; border-color: #e1e8f1; border-radius: 5px; background: #fff; }
.web-design-page .design-tech-grid .development-stack-logo img { max-height: 36px; filter: none; opacity: 1; }
.web-design-page .design-tech-grid .development-stack-card h3 { margin-bottom: 4px; font-size: 13px; }
.web-design-page .design-tech-grid .development-stack-card p { font-size: 10px; line-height: 1.4; }
@media (max-width: 760px) {
  .web-design-page .service-content-section { padding-block: 48px; }
  .web-design-page .service-section-heading { margin-bottom: 25px; }
  .web-design-page .design-film-section { padding-block: 52px; }
  .web-design-page .design-contact-section { padding-block: 50px; }
  .web-design-page .design-tech-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .web-design-page .design-tech-grid .development-stack-card { min-height: 176px; }
}
@media (max-width: 520px) {
  .web-design-page .design-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .web-design-page .design-tech-grid .development-stack-card { min-height: 172px; padding: 12px 10px; }
  .web-design-page .design-tech-grid .development-stack-logo { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .web-design-page .design-value-card,
  .web-design-page .design-value-card::after { transition: none; }
}

/* Heroes de servicios: tipografía, paleta y márgenes alineados con AAPPnet.
   En escritorio el texto y la imagen comparten el ancho al 50%; en pantallas
   estrechas se apilan para conservar una lectura cómoda. */
.service-page .service-hero {
  box-sizing: border-box;
  min-height: 0 !important;
  padding: clamp(138px, 15svh, 178px) max(32px, calc((100vw - 1180px) / 2)) clamp(58px, 7svh, 88px);
  color: #f5f8fc;
  background:
    radial-gradient(ellipse at 79% 24%, rgb(71 124 184 / 24%), transparent 38%),
    radial-gradient(ellipse at 10% 100%, rgb(104 190 176 / 9%), transparent 42%),
    linear-gradient(130deg, #0b1420, #122338 56%, #102438);
}
.service-page .service-hero-inner { width: 100%; max-width: 1180px; margin-inline: auto; }
.service-page .service-hero .service-crumbs { margin-bottom: clamp(22px, 3vw, 36px); color: #a8b8cb; }
.service-page .service-hero .service-crumbs a:hover { color: #fff; }
.service-page .service-hero .service-hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
}
.service-page .service-hero .service-eyebrow {
  margin-bottom: 20px;
  color: #9ab5d0;
  font-size: 11px;
  letter-spacing: .15em;
}
.service-page .service-hero .service-hero-copy h1 {
  max-width: 650px;
  margin: 0;
  color: #f5f7fa;
  font-size: clamp(46px, 5.5vw, 76px);
  letter-spacing: -.07em;
  line-height: .99;
  text-wrap: balance;
}
.service-page .service-hero .service-hero-copy h1 span { color: #91acc8; }
.service-page .service-hero .service-hero-lede {
  max-width: 550px;
  margin-top: 24px;
  color: #c4d1e3;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.72;
}
.service-page .service-hero .service-actions { gap: 12px; margin-top: 28px; }
.service-page .service-hero .service-button { min-height: 52px; padding-inline: 22px; }
.service-page .service-hero .service-button-secondary {
  color: #edf3fa;
  border-color: rgb(195 216 240 / 35%);
  background: rgb(255 255 255 / 5%);
}
.service-page .service-hero .service-button-secondary:hover { background: rgb(255 255 255 / 11%); }
.service-page .service-hero .service-hero-visual {
  width: 100%;
  min-height: clamp(390px, 39vw, 520px);
  border-color: rgb(195 216 240 / 22%);
  border-radius: 5px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 28%);
}
.service-page .service-hero .service-proof-row {
  margin-top: clamp(32px, 4.5vw, 58px);
  border-color: rgb(223 230 237 / 18%);
}
.service-page .service-hero .service-proof-row > div { padding-top: 17px; color: #a8b6c7; }
.service-page .service-hero .service-proof-row strong { color: #f5f7fa; }
.web-specialized-page .service-hero .design-hero-location { color: #a8b6c7; }

/* Mockups equilibrados dentro del panel fotográfico de media anchura. */
.web-development-page .service-hero .web-code-window {
  top: 43%;
  width: min(78%, 410px);
  min-height: 210px;
}
.web-design-page .design-service-hero .web-design-mockup { top: 43%; min-height: 210px; }

@media (min-width: 1440px) {
  .service-page .service-hero { padding-top: 178px; }
}
@media (min-width: 761px) and (max-width: 960px) {
  .service-page .service-hero {
    padding: clamp(132px, 15svh, 160px) 28px 64px;
  }
  .service-page .service-hero .service-hero-grid { gap: 24px; }
  .service-page .service-hero .service-hero-copy h1 { font-size: clamp(40px, 5vw, 54px); }
  .service-page .service-hero .service-hero-visual { min-height: 360px; }
  .service-page .service-hero .service-proof-row { margin-top: 32px; }
}
@media (max-width: 760px) {
  .service-page .service-hero { padding: 132px 22px 54px; }
  .service-page .service-hero-inner { max-width: 620px; }
  .service-page .service-hero .service-crumbs { margin-bottom: 24px; font-size: 11px; }
  .service-page .service-hero .service-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-page .service-hero .service-hero-copy h1 { max-width: 600px; font-size: clamp(40px, 10vw, 58px); }
  .service-page .service-hero .service-hero-lede { margin-top: 19px; font-size: 16px; }
  .service-page .service-hero .service-actions { margin-top: 23px; }
  .service-page .service-hero .service-hero-visual { min-height: clamp(290px, 72vw, 390px); }
  .service-page .service-hero .service-proof-row { grid-template-columns: 1fr; margin-top: 30px; }
  .service-page .service-hero .service-proof-row > div { padding: 14px 0; }
  .web-development-page .service-hero .web-code-window { top: 42%; width: calc(100% - 32px); min-height: 190px; }
  .web-design-page .design-service-hero .web-design-mockup { top: 43%; min-height: 190px; }
}
@media (max-width: 420px) {
  .service-page .service-hero { padding-inline: 18px; }
  .service-page .service-hero .service-hero-copy h1 { font-size: clamp(38px, 10vw, 48px); }
  .service-page .service-hero .service-actions { align-items: stretch; flex-direction: column; }
  .service-page .service-hero .service-actions .service-button { width: 100%; }
}

/* IA aplicada: iconos claros, más contexto y la imagen nueva al lado derecho. */
.ai-page .ai-opportunity { min-height: 340px; }
.ai-page .ai-opportunity-icon {
  width: 48px;
  height: 48px;
  margin: 20px 0 16px;
}
.ai-page .ai-opportunity-icon svg { width: 24px; height: 24px; display: block; }
.ai-page .ai-opportunity p { font-size: 14px; line-height: 1.7; }
.ai-page .ai-process-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
}
.ai-page .ai-process-content { grid-column: 1; grid-row: 1; }
.ai-page .ai-process-visual { grid-column: 2; grid-row: 1; }
.ai-page .ai-process-robot-scene {
  height: clamp(540px, 46vw, 680px);
  min-height: 0;
  border: 1px solid rgb(171 199 232 / 18%);
  border-radius: 5px;
  background: #111b35;
  box-shadow: 0 28px 70px rgb(0 0 0 / 24%);
  transform: perspective(1200px) rotateY(var(--tilt-y, 0deg)) rotateX(var(--tilt-x, 0deg));
}
.ai-page .ai-process-robot-scene::before {
  inset: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 48%, rgb(98 122 240 / 13%), transparent 70%);
  filter: none;
}
.ai-page .ai-process-robot-scene > img {
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
  transform: perspective(1200px) rotateY(var(--tilt-y, 0deg)) rotateX(var(--tilt-x, 0deg)) translateZ(18px);
  filter: none;
}
@media (max-width: 900px) {
  .ai-page .ai-process-layout { grid-template-columns: minmax(0, 1.18fr) minmax(240px, .82fr); }
  .ai-page .ai-process-robot-scene { height: clamp(500px, 62vw, 620px); }
}
@media (max-width: 760px) {
  .ai-page .ai-opportunity { min-height: 320px; }
  .ai-page .ai-process-layout { grid-template-columns: minmax(0, 1fr); }
  .ai-page .ai-process-content { grid-column: 1; grid-row: 1; }
  .ai-page .ai-process-visual { grid-column: 1; grid-row: 2; }
  .ai-page .ai-process-robot-scene { height: clamp(360px, 96vw, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-page .ai-process-robot-scene { transform: none; }
  .ai-page .ai-process-robot-scene > img { transform: none; }
}

/* Diseño web: hero invertido e inicio más compacto de Qué incluye. */
.web-design-page .design-service-hero .service-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}
.web-design-page .design-service-hero .service-hero-visual { order: -1; }
.web-design-page main section[aria-labelledby="design-value-title"] { padding-bottom: clamp(34px, 4vw, 52px); }
.web-design-page #incluye { padding-top: clamp(34px, 4vw, 52px); }
.web-design-page #incluye .service-section-heading { margin-top: 0; margin-bottom: 24px; }
.web-design-page .design-includes-grid .service-card-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 760px) {
  .web-design-page .design-service-hero .service-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .web-design-page main section[aria-labelledby="design-value-title"] { padding-bottom: 30px; }
  .web-design-page #incluye { padding-top: 30px; }
}

/* Auditoría y protección: iconografía vectorial para los servicios de confianza. */
.security-page main section[aria-labelledby="security-services"] .service-card-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Aumenta de forma uniforme los iconos de las tarjetas de servicios. */
.service-page .service-card .service-card-icon {
  width: 52px;
  height: 52px;
  font-size: 23px;
}
.service-page .service-card-grid .service-card .service-card-icon svg {
  width: 30px;
  height: 30px;
}

/* IA aplicada: contraste de tarjetas, iconos de proceso y escenarios legibles. */
body.ai-page main .ai-opportunity {
  position: relative;
  z-index: 3;
  isolation: isolate;
  border: 1px solid rgb(157 190 231 / 30%);
  border-radius: 5px;
  color: #f4f7fc;
  background: #13253b;
  box-shadow: 0 18px 42px rgb(0 0 0 / 25%);
}
body.ai-page main .ai-opportunity.is-active,
body.ai-page main .ai-opportunity:hover {
  background: #172d47;
}
body.ai-page main .ai-opportunity > span { color: #9db9da; }
body.ai-page main .ai-opportunity h3 {
  color: #f5f8fd;
  text-shadow: 0 1px 0 rgb(0 0 0 / 12%);
}
body.ai-page main .ai-opportunity p {
  color: #d0dceb;
}
body.ai-page main .ai-opportunity .ai-opportunity-icon {
  color: #8bded2;
  border-color: rgb(111 211 195 / 34%);
  background: rgb(67 161 151 / 18%);
}

body.ai-page main .ai-process-step {
  min-height: 235px;
  padding: 22px;
  border: 1px solid rgb(157 190 231 / 20%);
  border-radius: 5px;
  background: linear-gradient(145deg, #14263d, #101e31);
  box-shadow: 0 14px 32px rgb(0 0 0 / 15%);
}
body.ai-page main .ai-process-step:hover {
  padding: 22px;
  border-color: rgb(105 164 237 / 55%);
  background: linear-gradient(145deg, #1a304b, #13243a);
  box-shadow: 0 20px 38px rgb(0 0 0 / 24%);
}
body.ai-page main .ai-process-step h3 {
  color: #f5f8fd;
  line-height: 1.25;
}
body.ai-page main .ai-process-step p { color: #c4d2e3; }
body.ai-page main .ai-process-count { color: #8bb8ff; }
body.ai-page main .ai-process-mark {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  color: #8bded2;
  border: 1px solid rgb(111 211 195 / 34%);
  border-radius: 5px;
  background: rgb(67 161 151 / 13%);
}
body.ai-page main .ai-process-mark svg {
  width: 23px;
  height: 23px;
  display: block;
}
body.ai-page main .ai-process-step:hover .ai-process-mark {
  color: #a9f0e5;
  border-color: rgb(111 211 195 / 60%);
  background: rgb(67 161 151 / 24%);
}

body.ai-page main .ai-demo-window-head { justify-content: flex-end; }
body.ai-page main .ai-scenario {
  min-width: 112px;
  min-height: 54px;
  flex: 1 1 112px;
  padding: 8px 13px;
  display: grid;
  place-items: center;
  line-height: 1.2;
  text-align: center;
}
body.ai-page main .ai-scenario span { display: block; }

@media (max-width: 900px) {
  body.ai-page main .ai-process-step { min-height: 235px; padding: 18px; }
  body.ai-page main .ai-process-step:hover { padding: 18px; }
}
@media (max-width: 520px) {
  body.ai-page main .ai-process-step { min-height: 0; }
  body.ai-page main .ai-scenario { min-width: 96px; flex-basis: 96px; }
}

/* Diseño web: contraste para las marcas y tarjetas de servicio más compactas. */
.web-design-page .design-trust-section {
  color: #172a42;
  background: linear-gradient(135deg, #e9f0f7, #f4f7fa 55%, #e5edf5);
}
.web-design-page .design-trust-inner h2 { color: #172a42; }
.web-design-page .design-trust-logos > div {
  border-color: #d5dee8;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 22px rgb(27 48 73 / 8%);
}
.web-design-page .design-trust-logos img {
  filter: none;
  opacity: 1;
}
.web-design-page .design-includes-grid .design-service-photo { display: none; }
.web-design-page .design-includes-grid .service-card {
  min-height: 245px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.web-design-page .design-includes-grid .service-card-number {
  margin: 0 0 15px;
}
.web-design-page .design-includes-grid .service-card .service-card-icon {
  position: static;
  width: 58px;
  height: 58px;
  margin: 0 auto 17px;
  border-radius: 5px;
}
.web-design-page .design-includes-grid .service-card .service-card-icon svg {
  width: 30px;
  height: 30px;
}
.web-design-page .design-includes-grid .service-card h3 {
  margin: 0 0 9px;
  text-align: center;
}
.web-design-page .design-includes-grid .service-card p {
  max-width: 36ch;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 760px) {
  .web-design-page .design-includes-grid .service-card {
    min-height: 0;
    padding: 22px 18px;
  }
}

/* Casos de éxito: tarjetas más compactas con mayor separación vertical. */
.featured-client-marquee { gap: 22px; }
.featured-client-marquee-group {
  gap: 23px;
  padding-bottom: 23px;
}
.featured-marquee-card {
  min-height: 146px;
  padding: 10px 12px;
  grid-template-rows: auto minmax(50px, 1fr) auto;
  gap: 7px;
  border-radius: 5px;
}
.featured-marquee-logo { min-height: 52px; }
.featured-marquee-logo img { max-height: 56px; }
.featured-marquee-name {
  font-size: 11px;
  line-height: 1.2;
}
@media (max-width: 760px) {
  .featured-client-marquee { gap: 14px; }
  .featured-client-marquee-group { gap: 16px; padding-bottom: 16px; }
  .featured-marquee-card { min-height: 132px; padding: 9px 10px; }
  .featured-marquee-name { font-size: 10px; }
}

/* Ritmo vertical coherente entre los bloques de contenido de todo el sitio. */
:root { --site-section-space: clamp(52px, 5.6vw, 76px); }
body main > section:not([class*="hero"]):not(.ai-opportunities) {
  padding-top: var(--site-section-space) !important;
  padding-bottom: var(--site-section-space) !important;
}
@media (max-width: 760px) {
  :root { --site-section-space: clamp(42px, 7vw, 54px); }
}

/* Mantiene el menú legible sobre los tramos claros que pasan bajo la cabecera fija. */
.site-header {
  color: #f4f7fc !important;
  background: linear-gradient(180deg, rgb(12 25 41 / 95%), rgb(12 25 41 / 89%)) !important;
  border-bottom-color: rgb(255 255 255 / 13%) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
}
.site-header .nav-trigger,
.site-header .nav-link,
.site-header .utility-promise,
.site-header .utility-contact a {
  color: #f0f5fc !important;
}
.site-header .nav-trigger:is(:hover, :focus-visible),
.site-header .nav-link:is(:hover, :focus-visible),
.site-header .utility-contact a:is(:hover, :focus-visible) {
  color: #9bc7ff !important;
}
.site-header .menu-toggle {
  border-color: rgb(255 255 255 / 28%);
  color: #f4f7fc;
  background: rgb(255 255 255 / 8%);
}
.site-header .menu-toggle span { background: #f4f7fc; }

/* En móvil, el desplegable de Soluciones llena el menú y alinea su flecha con Servicios. */
@media (max-width: 1100px) {
  .site-header .nav-solutions-controls { display: flex; width: 100%; }
  .site-header .nav-solutions-toggle {
    justify-content: flex-end;
    padding: 10px 4px 10px 0;
  }
  .site-header .main-nav > .nav-group > .nav-panel.nav-panel-solutions {
    box-sizing: border-box;
    width: calc(100% + 36px) !important;
    max-width: none !important;
    margin-inline: -18px !important;
    padding: 0 !important;
  }
  .site-header .main-nav > .nav-group.is-open > .nav-panel.nav-panel-solutions {
    padding: 5px 0 12px !important;
  }
}
@media (max-width: 760px) {
  .site-header .main-nav > .nav-group > .nav-panel.nav-panel-solutions {
    width: calc(100% + 26px) !important;
    margin-inline: -13px !important;
  }
}

/* Casos de éxito: nombres más discretos y tarjetas con un matiz azul suave. */
.stories-page .featured-marquee-card {
  border-color: #d4e2f2;
  background: linear-gradient(145deg, #f5f8fd, #edf4fc);
  box-shadow: 0 8px 22px rgb(39 83 135 / 8%);
}
.stories-page .featured-marquee-card:hover {
  border-color: #b8cde6;
  background: linear-gradient(145deg, #f0f6fd, #e6f0fb);
  box-shadow: 0 14px 28px rgb(39 83 135 / 12%);
}
.stories-page .featured-marquee-name {
  font-size: 10px !important;
  line-height: 1.2;
}
@media (max-width: 760px) {
  .stories-page .featured-marquee-name { font-size: 9.5px !important; }
}

/* Menú móvil a todo el ancho, sin el margen lateral del contenedor del header. */
@media (max-width: 1100px) {
  .site-header .main-nav {
    box-sizing: border-box;
    top: 100%;
    left: 50%;
    right: auto;
    width: 100vw;
    max-width: 100vw;
    transform: translateX(-50%) !important;
    border-radius: 0 0 12px 12px;
  }
  .site-header .main-nav > .nav-group > .nav-panel.nav-panel-services,
  .site-header .main-nav > .nav-group > .nav-panel.nav-panel-solutions {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }
}
