/* =========================================================
   1. VARIABLES, RESET Y BASE
   ========================================================= */
:root {
  color-scheme: light;
  --black: #0b0b0c;
  --charcoal: #171719;
  --graphite: #2f3033;
  --steel: #6f7277;
  --silver: #c6c8cb;
  --line: #e2e3e5;
  --soft: #f4f4f5;
  --white: #ffffff;
  --success: #267a4b;
  --shadow-sm: 0 10px 30px rgba(12, 12, 13, 0.07);
  --shadow-lg: 0 28px 70px rgba(12, 12, 13, 0.14);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-height: 74px;
  --transition: 220ms ease;
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-line: rgba(226, 227, 229, 0.9);
  --hero-start: #ffffff;
  --hero-middle: #f6f6f7;
  --hero-end: #ececee;
  --proof-bg: rgba(255, 255, 255, 0.76);
  --dark-panel: #0b0b0c;
  --dark-panel-text: #ffffff;
  --dark-panel-muted: #dadadd;
  --footer-bg: #0b0b0c;

  /* Variables del Logo */
  --logo-dark-1: #3a3b40;
  --logo-dark-2: #1c1d21;
  --logo-dark-3: #090a0c;
  --logo-dark-4: #242529;
  --logo-facet-1: #4f5157;
  --logo-facet-2: #222327;
  --logo-facet-3: #050607;
  --logo-silver-1: #ffffff;
  --logo-silver-2: #d4d7dc;
  --logo-silver-3: #8a8e97;
  --logo-silver-4: #c5c8cf;
  --logo-silver-alt-1: #f5f6f8;
  --logo-silver-alt-2: #acb0b8;
  --logo-silver-alt-3: #6b6e76;
  --logo-silver-alt-4: #dce0e6;
  --logo-ray-edge: #0c0d0f;
  --logo-ray-highlight: rgba(255, 255, 255, 0.45);
  --logo-wrench-edge: #666a72;
  --logo-plug-edge: #5f636b;
  --logo-arc-highlight: rgba(255, 255, 255, 0.35);
  --logo-filter-drop: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --black: #f5f5f6;
  --charcoal: #e7e7e9;
  --graphite: #c5c6ca;
  --steel: #9b9da3;
  --silver: #4d4f54;
  --line: #2b2c30;
  --soft: #151619;
  --white: #0b0c0e;
  --success: #69d99a;
  --shadow-sm: 0 12px 34px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.42);
  --header-bg: rgba(11, 12, 14, 0.91);
  --header-line: rgba(255, 255, 255, 0.1);
  --hero-start: #0b0c0e;
  --hero-middle: #111216;
  --hero-end: #18191d;
  --proof-bg: rgba(19, 20, 23, 0.82);
  --dark-panel: #17181b;
  --dark-panel-text: #ffffff;
  --dark-panel-muted: #c7c8cc;
  --footer-bg: #050506;

  /* En modo oscuro se conserva la paleta negra y plateada de :root.
     Solo se ajustan contornos y reflejos para separar el logo del fondo.
     Estas variables se comparten con la barra superior y el preloader. */
  --logo-ray-edge: #777a80;
  --logo-ray-highlight: rgba(214, 217, 222, 0.64);
  --logo-wrench-edge: #868a93;
  --logo-plug-edge: #80848c;
  --logo-arc-highlight: rgba(202, 206, 213, 0.54);
  --logo-filter-drop: drop-shadow(0 0 1px rgba(198, 201, 208, 0.42)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: color 260ms ease, background 260ms ease;
}

body.menu-open, body.service-open { overflow: hidden; }
body.menu-open::before {
  position: fixed;
  z-index: 950;
  inset: var(--header-height) 0 0;
  background: rgba(5, 6, 8, 0.48);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  content: "";
}
html.modal-open { overflow: hidden; overscroll-behavior: none; }
body.modal-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(111, 114, 119, 0.55);
  outline-offset: 4px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section { padding: 48px 0; }
.section--soft { background: var(--soft); }

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--steel);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 850;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  font-weight: 820;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 650px;
  color: var(--graphite);
  font-size: clamp(0.95rem, 1.7vw, 1.08rem);
  line-height: 1.6;
}

.section-heading { margin-bottom: 24px; }
.section-heading p:last-child { margin-bottom: 0; }

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--black);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

/* =========================================================
   2. BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 780;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn--dark {
  color: var(--white);
  background: var(--black);
  box-shadow: 0 12px 26px rgba(11, 11, 12, 0.18);
}

.btn--dark:hover { background: var(--graphite); }

.btn--light {
  color: var(--black);
  background: var(--white);
  border-color: var(--line);
}

.btn--light:hover { border-color: var(--steel); }

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* =========================================================
   3. HEADER Y NAVEGACIÓN
   ========================================================= */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--black);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-bolt-icon {
  width: 46px;
  height: 46px;
  overflow: visible;
}

.brand-logo-image {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.24));
}

svg.brand-bolt-icon,
svg.preloader-bolt-icon { display: none; }

html[data-theme="dark"] .brand-logo-image {
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.58));
}

.brand-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--black);
  font-family: inherit;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-tool,
.menu-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.header-tool:hover,
.menu-toggle:hover {
  color: var(--dark-panel-text);
  background: var(--dark-panel);
  border-color: var(--dark-panel);
  transform: translateY(-2px);
}

.header-tool .icon { width: 19px; height: 19px; }

.theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

.language-control {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.language-control:hover,
.language-control:focus-within {
  color: var(--dark-panel-text);
  background: var(--dark-panel);
  border-color: var(--dark-panel);
  transform: translateY(-2px);
}

.language-select {
  width: 100%;
  height: 100%;
  padding: 0 8px;
  color: inherit;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: inherit;
  outline: 0;
}

.language-select option { color: #111113; background: #ffffff; }

.tool-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  width: 46px;
  height: 46px;
}

.menu-toggle .close-icon { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon { display: none; }
.menu-toggle[aria-expanded="true"] .close-icon { display: block; }

.main-nav {
  position: absolute;
  z-index: 2;
  top: 100%;
  right: 0;
  width: 100%;
  height: calc(100dvh - var(--header-height));
  padding: 34px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -20px 30px 50px rgba(12, 12, 13, 0.12);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 260ms ease, visibility 260ms ease;
}

.main-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-list {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 13px 8px;
  color: var(--graphite);
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active { color: var(--black); }
.nav-cta { margin-top: 16px; }

/* =========================================================
   4. HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding: calc(var(--header-height) + 24px) 0 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(151, 154, 160, 0.2), transparent 28%),
    linear-gradient(145deg, var(--hero-start) 0%, var(--hero-middle) 62%, var(--hero-end) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 114, 119, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 114, 119, 0.045) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent, black 35%, black 80%, transparent);
  content: "";
}

.hero::after {
  display: none;
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-brand-watermark {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -88px;
  width: min(82vw, 420px);
  opacity: 0.055;
  transform: translateY(-48%) rotate(4deg);
  pointer-events: none;
}

.hero-brand-watermark .brand-bolt-icon,
.identity-card__watermark .brand-bolt-icon,
.service-card__watermark .brand-bolt-icon,
.footer-logo-mark .brand-bolt-icon {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 16px 0 24px;
}

.hero-title {
  max-width: 1100px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.hero-title span {
  display: block;
  margin-top: 0.12em;
  color: var(--steel);
  font-size: 0.72em;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero-intro {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--graphite);
  font-size: clamp(0.98rem, 1.8vw, 1.14rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 12px;
}

.hero-principles {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  gap: 12px;
}

.hero-principles div {
  min-height: 48px;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.hero-principles strong {
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* =========================================================
   5. SOBRE NOSOTROS & TARJETAS INTERACTIVAS
   ========================================================= */
.identity-wrap { display: grid; gap: 32px; }
.identity-heading { max-width: 820px; }
.identity-heading .lead { margin-bottom: 0; }
.identity-grid { display: grid; gap: 18px; }

.identity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 260px;
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: color 260ms ease, background 260ms ease, transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.identity-card:hover { transform: translateY(-5px); }

.identity-card::after {
  display: none;
}

.identity-card__watermark {
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: 180px;
  opacity: 0.075;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.identity-card--mission .identity-card__watermark { opacity: 0.12; }
.identity-card:hover .identity-card__watermark { opacity: 0.13; transform: scale(1.05) rotate(3deg); }
.identity-card > :not(.identity-card__watermark) { position: relative; z-index: 1; }

.identity-card--mission {
  color: var(--dark-panel-muted);
  background: var(--dark-panel);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.identity-card--mission:hover {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.identity-card--vision { background: var(--soft); }

.identity-card--vision:hover {
  border-color: var(--silver);
  box-shadow: var(--shadow-sm);
}

.identity-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.identity-card__top .icon { width: 28px; height: 28px; }

.identity-card__tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.identity-card h3 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.identity-card--mission h3 { color: var(--dark-panel-text); }
.identity-card p { position: relative; z-index: 1; margin-bottom: 0; line-height: 1.7; font-size: 1.02rem; }
.identity-card--vision p { color: var(--graphite); }

.identity-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.92rem;
  font-weight: 800;
  color: currentColor;
  transition: gap var(--transition);
}

.identity-card:hover .identity-card__cta { gap: 14px; }
.identity-card__cta .icon { width: 18px; height: 18px; }
.identity-card--mission .identity-card__cta { color: #ffffff; }
.identity-card--vision .identity-card__cta { color: var(--black); }

.founder-entry {
  display: grid;
  align-items: center;
  gap: 24px;
  padding: 26px 32px;
  color: var(--dark-panel-text);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 38%),
    var(--dark-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: color 260ms ease, background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.founder-entry__label {
  margin-bottom: 9px;
  color: var(--dark-panel-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.founder-entry h3 {
  max-width: 670px;
  margin: 0;
  color: var(--dark-panel-text);
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1.25;
}

.founder-entry__button {
  color: #0b0b0c;
  background: #ffffff;
  border-color: #ffffff;
}

.founder-entry__button:hover { background: #e9e9eb; }

/* =========================================================
   6. SERVICIOS
   ========================================================= */
.services-grid { display: grid; gap: 18px; }

.service-card {
  position: relative;
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 24px;
  overflow: hidden;
  color: var(--charcoal);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  border-color: var(--silver);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.service-card::after {
  display: none;
}

.service-card__watermark {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 122px;
  opacity: 0.06;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.service-card:hover .service-card__watermark { opacity: 0.11; transform: scale(1.08) rotate(4deg); }
.service-card > :not(.service-card__watermark) { position: relative; z-index: 1; }

.service-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  background: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 10px 16px rgba(11, 11, 12, 0.16));
  transition: transform var(--transition), filter var(--transition);
}

.service-icon__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card:hover .service-icon {
  filter: drop-shadow(0 14px 20px rgba(11, 11, 12, 0.22));
  transform: translateY(-2px) scale(1.025);
}

.service-card__title {
  margin-bottom: 8px;
  color: var(--black);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.service-card__description { color: var(--steel); }

.service-card__action {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 750;
}

.service-card__action .icon { transition: transform var(--transition); }
.service-card:hover .service-card__action .icon { transform: translateX(3px); }

.service-card:focus-visible { outline: 3px solid var(--steel); outline-offset: 4px; }

/* Galerías de servicios. Los recursos están embebidos al final del HTML. */
.service-dialog {
  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.service-dialog[open] { display: flex; flex-direction: column; }
.service-dialog::backdrop { background: rgba(5, 5, 6, 0.8); backdrop-filter: blur(8px); }

.service-dialog__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.service-dialog__header .eyebrow { margin-bottom: 7px; font-size: 0.65rem; }
.service-dialog__header h2 { margin: 0; font-size: clamp(1.25rem, 3.5vw, 1.8rem); }

.service-dialog__close {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
}

.service-dialog__body {
  min-height: 0;
  padding: 22px 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.service-dialog__intro { max-width: 820px; margin: 0 0 24px; color: var(--graphite); }
.service-dialog__layout { display: grid; gap: 28px; align-items: start; }
.service-gallery, .service-detail { min-width: 0; }
.service-figure { margin: 0; }

.service-media-stage {
  display: grid;
  width: 100%;
  height: clamp(250px, 52vh, 490px);
  height: clamp(250px, 52dvh, 490px);
  place-items: center;
  overflow: auto;
  background: #17181b;
  border: 1px solid var(--line);
  border-radius: 14px;
  overscroll-behavior: contain;
}

.service-media-stage.is-plan { background: #fff; }
.service-media-stage img, .service-media-stage video {
  display: block;
  width: 100%;
  height: 100%;
  max-height: inherit;
  min-height: 0;
  object-fit: contain;
}

.service-media-stage.is-zoomed { display: block; }
.service-media-stage.is-zoomed img { width: 180%; max-width: none; height: auto; }
.service-figure figcaption { margin-top: 14px; color: var(--graphite); font-size: 0.87rem; line-height: 1.65; }
.service-media-title { display: block; margin-bottom: 3px; color: var(--black); font-weight: 750; }
.service-media-status { margin: 12px 0 0; font-size: 0.86rem; }
.service-media-status:empty { display: none; }

.service-gallery__tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.service-gallery__arrows { display: flex; gap: 8px; }
.service-gallery__button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-gallery__button:hover, .service-dialog__close:hover { border-color: var(--steel); }
.service-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 5px; margin: 13px -5px 0; }
.service-thumbnail {
  width: 84px;
  height: 64px;
  flex: 0 0 auto;
  padding: 4px;
  overflow: hidden;
  background: var(--soft);
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.service-thumbnail[aria-pressed="true"] { border-color: var(--black); }
.service-thumbnail img { width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.service-gallery__note { margin: 16px 0 0; color: var(--steel); font-size: 0.78rem; }
.service-detail h3 { margin-bottom: 14px; font-size: 1.35rem; }
.service-detail p { color: var(--graphite); font-size: 0.94rem; }
.service-detail__scope { display: grid; margin: 22px 0 26px; }
.service-detail__item { padding: 12px 0; border-top: 1px solid var(--line); font-size: 0.88rem; }
.service-detail__item:last-child { border-bottom: 1px solid var(--line); }
.service-detail .btn { width: 100%; }
.service-detail__actions { display: grid; gap: 10px; }
.service-detail__whatsapp {
  color: #ffffff;
  background: #267a4b;
  border-color: #267a4b;
}
.service-detail__whatsapp:hover { background: #1f6840; border-color: #1f6840; }
.service-dialog__layout.is-information { max-width: 760px; }

@media (min-width: 760px) {
  .service-dialog__header { padding: 22px 30px; }
  .service-dialog__body { padding: 28px 30px 34px; }
  .service-dialog__layout:not(.is-information) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
}

/* =========================================================
   7. CONFIANZA
   ========================================================= */
.trust-section { background: var(--white); }
.trust-heading { max-width: 780px; }

.trust-banner {
  overflow: hidden;
  margin-bottom: 42px;
  color: #ffffff;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.trust-banner__visual { display: none; background: #0d0e10; }
.trust-banner__visual > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.credential-mosaic {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 1;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle, rgba(255,255,255,.16) 1.2px, transparent 1.6px) 0 0 / 24px 24px,
    linear-gradient(135deg, #292b30, #090a0c 72%);
}
.credential-mosaic::before,
.credential-mosaic::after {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  width: 24%;
  content: "";
  background-repeat: no-repeat;
  background-size: 417% 100%, 417% 100%;
  filter: grayscale(1) contrast(1.06);
}
.credential-mosaic::before {
  left: 0;
  background-image: linear-gradient(90deg, transparent 58%, #111216), url("credencial-adonai-ute.webp");
  background-position: center, left center;
}
.credential-mosaic::after {
  right: 0;
  background-image: linear-gradient(270deg, transparent 58%, #111216), url("credencial-adonai-ute.webp");
  background-position: center, right center;
}
.credential-mosaic__content {
  position: relative;
  display: grid;
  width: min(62%, 760px);
  justify-items: center;
  color: #f7f7f8;
  text-align: center;
}
.credential-mosaic__brand { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 24px); }
.credential-mosaic__brand > strong {
  font-size: clamp(1.35rem, 3.5vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .82;
  text-align: left;
}
.credential-mosaic__brand img { display: block; width: clamp(68px, 10vw, 136px); height: auto; }
.credential-mosaic__authorisation {
  margin: clamp(4px, .8vw, 10px) 0 0;
  font-size: clamp(.62rem, 1.32vw, 1.08rem);
  font-weight: 700;
  line-height: 1.25;
}
.credential-mosaic__authorisation strong { font-size: 1.2em; font-weight: 900; letter-spacing: -.04em; }
.credential-mosaic__services {
  display: grid;
  width: 100%;
  gap: 2px;
  margin-top: clamp(5px, 1vw, 12px);
  padding: clamp(5px, .8vw, 9px) 0;
  border-top: 1px solid rgba(255,255,255,.58);
  border-bottom: 1px solid rgba(255,255,255,.58);
}
.credential-mosaic__services strong { font-size: clamp(.72rem, 1.65vw, 1.36rem); line-height: 1.12; }
.credential-mosaic__services span { color: #d3d4d7; font-size: clamp(.52rem, 1vw, .82rem); line-height: 1.2; }
.credential-mosaic__location { margin: clamp(4px, .8vw, 9px) 0 0; font-size: clamp(.56rem, 1vw, .84rem); font-weight: 700; }
.trust-banner__mobile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 190px;
  padding: 30px 24px;
  background:
    radial-gradient(circle, rgba(255,255,255,.12) 1.2px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(135deg, #25272c, #090a0c 68%);
}
.trust-banner__mobile img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.4)); }
.trust-banner__mobile div { display: grid; gap: 5px; }
.trust-banner__mobile strong { color: #fff; font-size: clamp(1.35rem, 7vw, 2rem); letter-spacing: -.04em; line-height: .95; }
.trust-banner__mobile span { color: #c9cacf; font-size: .86rem; line-height: 1.45; }
.trust-banner__caption { display: grid; gap: 20px; align-items: center; padding: 24px; border-top: 1px solid rgba(255,255,255,.12); }
.trust-banner__caption h3 { margin-bottom: 7px; color: #ffffff; }
.trust-banner__caption p { margin: 0; color: #c9cacf; line-height: 1.6; }
.trust-banner__label {
  margin-bottom: 6px !important;
  color: #ffffff !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.trust-banner__action { width: 100%; color: #111216; background: #ffffff; border-color: #ffffff; }
.trust-banner__action:hover { background: #e7e7e9; }

.trust-block { margin-top: 42px; scroll-margin-top: calc(var(--header-height) + 24px); }
.trust-block__heading { display: grid; gap: 10px; margin-bottom: 20px; }
.trust-block__heading h3 { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.trust-block__heading > p { max-width: 580px; margin: 0; color: var(--steel); line-height: 1.6; }

.work-grid { display: grid; gap: 14px; }
.work-card-link {
  display: block;
  height: 330px;
  min-width: 0;
  border-radius: var(--radius-md);
}
.work-card-link .work-card { height: 100%; }
.work-card-link:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 4px;
}
.work-card {
  position: relative;
  height: 330px;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: #16171a;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.work-card:hover img { transform: scale(1.035); }
.work-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 48px 18px 17px;
  color: #ffffff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}
.work-card figcaption strong { font-size: 0.98rem; }
.work-card figcaption span { color: #d4d5d8; font-size: 0.8rem; }
html[data-theme="dark"] .work-card-link:focus-visible { outline-color: #ffffff; }

.process-block { padding: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.process-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.process-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
}
.process-mark img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: none;
}
html[data-theme="dark"] .process-mark img { filter: none; }
.process-list h4 { margin: 0 0 5px; color: var(--black); font-size: 1rem; }
.process-list p { margin: 0; color: var(--steel); font-size: 0.86rem; line-height: 1.55; }

.testimonial-note {
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--graphite);
  border-radius: var(--radius-md);
}
.testimonial-note h3 { margin-bottom: 6px; }
.testimonial-note p:last-child { margin: 0; color: var(--steel); line-height: 1.6; }
.testimonial-note__content { max-width: 650px; }
.testimonial-note__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.review-qr {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.review-qr img {
  display: block;
  width: 96px;
  height: 96px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.review-button { white-space: nowrap; }
.review-button__star {
  margin-right: 7px;
  color: #fbbc04;
  font-size: 1.08em;
}

@media (min-width: 760px) {
  .trust-banner__visual { display: block; }
  .trust-banner__mobile { display: none; }
  .trust-banner__caption { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 26px; }
  .trust-banner__action { width: auto; }
  .trust-block__heading { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr); align-items: end; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-note { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 30px; }
  .review-qr { display: grid; }
}

@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 330px; }
  .process-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* =========================================================
   8. MÉTODOS DE PAGO
   ========================================================= */
.payment-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.payment-heading .lead { margin-bottom: 0; }

.payment-grid {
  display: grid;
  gap: 16px;
}

.payment-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  padding: 22px;
  color: var(--charcoal);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: color 260ms ease, background 260ms ease, border-color 260ms ease, transform var(--transition), box-shadow var(--transition);
}

.payment-card:hover {
  border-color: var(--silver);
  transform: translateY(-3px);
}

.payment-card__icon {
  display: grid;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  place-items: center;
  color: #ffffff;
}

.payment-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 11px rgba(0, 0, 0, 0.22));
}

.payment-card h3 {
  margin: 0 0 4px;
  color: var(--black);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.payment-card p {
  margin: 0;
  color: var(--steel);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* =========================================================
   9. PREGUNTAS FRECUENTES
   ========================================================= */
.faq-section {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.faq-heading {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin-bottom: 30px;
}

.faq-heading .lead { margin: 0; }

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--silver);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] { transform: translateY(-1px); }

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  color: var(--black);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 22px;
  color: var(--steel);
  line-height: 1.7;
}

.faq-answer p { margin: 0; }

.faq-contact {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 24px;
  color: var(--dark-panel-text);
  background: var(--dark-panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.faq-contact h3 { margin: 0 0 6px; color: var(--dark-panel-text); }
.faq-contact p { margin: 0; color: var(--dark-panel-muted); }
.faq-contact .btn { background: #ffffff; color: #090a0b; }

@media (min-width: 760px) {
  .faq-heading { grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr); align-items: end; }
  .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .faq-contact { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 30px; }
}

/* =========================================================
   10. CONTACTO
   ========================================================= */
.contact-grid { display: grid; gap: 34px; }
.contact-details { display: grid; gap: 14px; margin-top: 30px; }

.contact-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color var(--transition), transform var(--transition);
}

a.contact-item:hover { border-color: var(--steel); transform: translateX(3px); }

.contact-item__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  background: transparent;
  border-radius: 50%;
}

.contact-item__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-item small {
  display: block;
  color: var(--steel);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--black);
  font-size: 0.94rem;
}

.contact-form {
  padding: 26px;
  color: var(--dark-panel-muted);
  background: var(--dark-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: color 260ms ease, background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.form-row { display: grid; gap: 18px; }
.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 780;
}

.contact-form .field label { color: var(--dark-panel-text); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--black);
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.contact-form .field input,
.contact-form .field select,
.contact-form .field textarea {
  color: var(--dark-panel-text);
  background: #151619;
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
  color: #94969b;
  opacity: 1;
}

.field input, .field select { min-height: 50px; }
.field select { cursor: pointer; }
.field textarea { min-height: 150px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--white);
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(111, 114, 119, 0.12);
}

.contact-form .field input:focus,
.contact-form .field select:focus,
.contact-form .field textarea:focus {
  background: #1c1d21;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.09);
}

.contact-form .btn { width: 100%; }
.form-actions { display: grid; gap: 10px; }

.contact-form .btn--dark {
  color: #0b0b0c;
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.contact-form .btn--dark:hover { background: #e7e7e9; }

.contact-form__whatsapp {
  color: #ffffff;
  background: #267a4b;
  border-color: #267a4b;
}
.contact-form__whatsapp:hover { background: #1f6840; border-color: #1f6840; }

.form-note {
  margin: 13px 0 0;
  color: var(--steel);
  font-size: 0.78rem;
  text-align: center;
}

.contact-form .form-note { color: var(--dark-panel-muted); }

.form-status {
  min-height: 25px;
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 720;
  text-align: center;
}

/* =========================================================
   9. FOOTER & BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.site-footer {
  padding: 48px 0 24px;
  color: #c8c9cc;
  background: var(--footer-bg);
}

.footer-grid { display: grid; gap: 32px; }

.footer-kicker {
  max-width: 460px;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.footer-brand .footer-description { max-width: 460px; margin: 0; color: #a8aaae; }
.footer-review-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 13px;
  color: #ffffff;
  border: 1px solid #3a3b40;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.footer-review-link span { color: #fbbc04; font-size: 0.68rem; letter-spacing: 0.06em; }
.footer-review-link:hover,
.footer-review-link:focus-visible { color: #ffffff; border-color: #777980; transform: translateY(-2px); }
.footer-title { margin-bottom: 14px; color: #ffffff; font-size: 0.92rem; letter-spacing: 0; }

.social-list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transition: transform var(--transition), filter var(--transition);
}

.social-link:hover { background: transparent; filter: brightness(1.08); transform: translateY(-3px); }

.social-link__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legal-links {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.legal-button {
  padding: 0;
  color: #c8c9cc;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.legal-button:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin-top: 36px;
  padding-top: 22px;
  color: #85878c;
  border-top: 1px solid #29292d;
  font-size: 0.78rem;
}

.whatsapp-float {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: block;
  width: 60px;
  height: 60px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.32));
  transition: transform var(--transition), filter var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.whatsapp-float:active {
  transform: translateY(1px) scale(0.97);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3));
}

/* Compensa los márgenes transparentes del PNG sin alterar la imagen. */
.whatsapp-image {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 133.5%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   10. MODALES (MISIÓN, VISIÓN, CARTA FUNDADOR, LEGAL)
   ========================================================= */
.founder-dialog, .legal-dialog {
  width: min(94vw, 880px);
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.35);
  overscroll-behavior: contain;
}

.founder-dialog::backdrop, .legal-dialog::backdrop {
  background: rgba(5, 5, 6, 0.76);
  backdrop-filter: blur(8px);
}

.founder-dialog__header, .dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.founder-dialog__header span, .dialog-header h2 {
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0;
}

.founder-dialog__close, .dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.founder-dialog__body, .dialog-body {
  max-height: calc(90vh - 84px);
  padding: 32px 24px 48px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.founder-dialog h2 {
  max-width: 680px;
  margin-top: 4px;
  margin-bottom: 22px;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
}

.founder-letter { max-width: 700px; margin-inline: auto; }

.founder-letter p {
  margin-bottom: 22px;
  color: var(--graphite);
  font-size: 1rem;
  line-height: 1.85;
}

.identity-dialog {
  width: min(92vw, 760px);
  max-height: calc(100dvh - 24px);
}

.identity-dialog .founder-dialog__body {
  max-height: none;
  padding: 32px 40px 40px;
  overflow: visible;
}

.identity-dialog h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.identity-dialog .founder-letter p { margin-bottom: 16px; }
.identity-dialog .founder-letter p:last-child { margin-bottom: 0; }

.founder-letter__opening {
  color: var(--black) !important;
  font-size: clamp(1.35rem, 4vw, 1.8rem) !important;
  font-weight: 760;
  line-height: 1.45 !important;
}

.founder-letter__statement {
  margin: 28px 0 !important;
  padding: 18px 22px !important;
  color: var(--black) !important;
  background: var(--soft);
  border-radius: var(--radius-sm);
  font-size: clamp(1.15rem, 3vw, 1.45rem) !important;
  font-weight: 760;
  line-height: 1.55 !important;
}

.founder-signature {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.founder-signature strong,
.founder-signature span { display: block; }
.founder-signature strong { color: var(--black); font-size: 1.08rem; }
.founder-signature span { margin-top: 4px; color: var(--steel); font-size: 0.84rem; }

/* Modo oscuro */
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea {
  color: #f4f4f5;
  background: #111216;
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus {
  background: #0d0e10;
}

/* Los tres paneles destacados invierten su jerarquía en modo oscuro. */
html[data-theme="dark"] .identity-card--mission,
html[data-theme="dark"] .founder-entry,
html[data-theme="dark"] .contact-form {
  color: #45464a;
  background: #f4f4f5;
  border-color: #d7d8db;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .founder-entry {
  background:
    linear-gradient(120deg, rgba(11, 11, 12, 0.045), transparent 42%),
    #f4f4f5;
}

html[data-theme="dark"] .identity-card--mission:hover {
  border-color: #b9bbc0;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] .identity-card--mission h3,
html[data-theme="dark"] .identity-card--mission .identity-card__cta,
html[data-theme="dark"] .founder-entry h3,
html[data-theme="dark"] .contact-form .field label {
  color: #0b0b0c;
}

html[data-theme="dark"] .founder-entry__label,
html[data-theme="dark"] .contact-form .form-note { color: #66686e; }

html[data-theme="dark"] .founder-entry__button,
html[data-theme="dark"] .contact-form .btn--dark {
  color: #ffffff;
  background: #0b0b0c;
  border-color: #0b0b0c;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .founder-entry__button:hover,
html[data-theme="dark"] .contact-form .btn--dark:hover { background: #242529; }

html[data-theme="dark"] .contact-form .field input,
html[data-theme="dark"] .contact-form .field select,
html[data-theme="dark"] .contact-form .field textarea {
  color: #0b0b0c;
  background: #ffffff;
  border-color: #d3d4d7;
}

html[data-theme="dark"] .contact-form .field input::placeholder,
html[data-theme="dark"] .contact-form .field textarea::placeholder { color: #77797f; }

html[data-theme="dark"] .contact-form .field input:focus,
html[data-theme="dark"] .contact-form .field select:focus,
html[data-theme="dark"] .contact-form .field textarea:focus {
  background: #ffffff;
  border-color: #6f7277;
  box-shadow: 0 0 0 4px rgba(47, 48, 51, 0.12);
}

html[data-theme="dark"] .contact-form .form-status { color: #267a4b; }

html[data-theme="dark"] .social-link:hover { background: transparent; }
html[data-theme="dark"] .hero::after { border-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .contact-item { box-shadow: none; }

/* =========================================================
   11. ANIMACIONES DE ENTRADA Y PRELOADER
   ========================================================= */
.app-preloader {
  position: fixed;
  inset: 0 0 auto;
  z-index: 99999;
  height: 3px;
  background: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.app-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  width: 100%;
  height: 3px;
}

.preloader-logo-wrap,
.preloader-brand,
.preloader-tagline { display: none; }

.preloader-bar-wrap {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(128, 130, 136, 0.2);
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 36%;
  background: linear-gradient(90deg, var(--logo-silver-3), var(--black));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-110%);
  animation: preloader-bar-indeterminate 900ms ease-in-out infinite;
}

@keyframes preloader-bar-indeterminate {
  from { transform: translateX(-110%); }
  to { transform: translateX(390%); }
}

html[data-theme="dark"] .preloader-bar-fill {
  background: linear-gradient(90deg, #9b9da3, #ffffff);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.preloader-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal-delay-1 { transition-delay: 100ms; }
.js .reveal-delay-2 { transition-delay: 180ms; }
.js .reveal-delay-3 { transition-delay: 260ms; }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (min-width: 560px) {
  .hero-actions { align-items: center; flex-direction: row; }
  .contact-form { padding: 34px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { align-items: center; flex-direction: row; justify-content: space-between; }
  .hero-principles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .hero-principles div { padding: 12px 14px; }
  .founder-dialog__body, .dialog-body { padding: 48px 42px 62px; }
}

@media (min-width: 760px) {
  :root { --header-height: 74px; }
  .container { width: min(100% - 56px, var(--container)); }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 34px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid .service-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: minmax(0, 1.6fr) 0.8fr 0.8fr; }
  .brand-name { font-size: 1.25rem; }
  .header-tool { width: 40px; height: 40px; }
  .menu-toggle { width: 44px; height: 44px; }
  .hero { padding-top: calc(var(--header-height) + 16px); }
  .hero-copy { padding: 24px 0 28px; }
  .identity-wrap { gap: 32px; }
  .identity-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .identity-card { min-height: 260px; padding: 32px; }
  .founder-entry { grid-template-columns: minmax(0, 1fr) auto; padding: 26px 32px; }
  .hero-brand-watermark { right: -40px; width: min(44vw, 500px); opacity: 0.075; }
  .payment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 560px) and (max-width: 939px) {
  .main-nav { width: min(74vw, 380px); }
}

@media (max-width: 559px), (max-height: 620px) {
  .identity-dialog .founder-dialog__body {
    max-height: calc(100dvh - 80px);
    padding: 26px 22px 34px;
    overflow-y: auto;
  }
}

@media (min-width: 940px) {
  .menu-toggle { display: none; }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }

  .nav-list { align-items: center; flex-direction: row; gap: 20px; }

  .nav-link {
    position: relative;
    padding: 9px 0;
    font-size: 0.9rem;
  }

  .nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--black);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
  }

  .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
  .nav-cta { margin: 0 0 0 6px; }

  .hero-title { max-width: none; font-size: clamp(3.8rem, 6.2vw, 6.2rem); white-space: nowrap; }
  .hero-title > span:not(.hero-title__sub) { display: inline; margin-top: 0; }
  .hero-title__sub { white-space: normal; }
  .hero-copy { padding-top: 20px; }
  .hero-principles strong { font-size: 0.98rem; }

  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-card { min-height: 218px; padding: 22px; }
  .service-icon { margin-bottom: 20px; }
  .services-grid .service-card:last-child {
    display: grid;
    min-height: 150px;
    grid-template-columns: 104px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
  }
  .services-grid .service-card:last-child .service-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    margin: 0;
  }
  .services-grid .service-card:last-child .service-card__title {
    grid-row: 1;
    grid-column: 2;
    align-self: end;
  }
  .services-grid .service-card:last-child .service-card__description {
    grid-row: 2;
    grid-column: 2;
    align-self: start;
    max-width: 680px;
  }
  .services-grid .service-card:last-child .service-card__action {
    width: auto;
    grid-row: 1 / 3;
    grid-column: 3;
    gap: 18px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }
  .services-grid .service-card:last-child .service-card__watermark {
    right: 190px;
    bottom: -34px;
  }
  .hero-copy { max-width: min(74%, 880px); }
  .hero-brand-watermark { right: 2%; width: min(34vw, 520px); opacity: 0.1; }
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr); align-items: start; gap: 52px; }
  .contact-form { padding: 32px; }
}

/* Tablet vertical: portada más compacta. La vista horizontal se conserva. */
@media (min-width: 760px) and (max-width: 1100px) and (orientation: portrait) {
  .hero {
    min-height: auto;
    justify-content: flex-start;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 64px;
  }

  .hero-copy {
    max-width: min(82%, 760px);
    padding-top: 0;
    padding-bottom: 20px;
  }

  .hero-title { white-space: normal; }
  .hero-title > span:not(.hero-title__sub) { display: block; margin-top: 0.12em; }

  .hero-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    gap: 12px;
  }

  .hero-brand-watermark {
    right: -5%;
    width: min(58vw, 540px);
    opacity: 0.065;
  }
}

/* PC de poca altura: mantiene las 3 columnas y compacta solo en vertical. */
@media (min-width: 940px) and (max-height: 820px) {
  #servicios.section { padding-block: 48px; }
  #servicios .section-heading { margin-bottom: 24px; }
  .services-grid { gap: 14px; }
  .service-card { min-height: 0; padding: 18px; }
  .service-icon { width: 76px; height: 76px; margin-bottom: 12px; }
  .service-card__action { padding-top: 16px; }
}

@media (min-width: 940px) and (max-height: 620px) {
  #servicios.section { padding-block: 34px; }
  #servicios .section-heading { margin-bottom: 18px; }
  .services-grid { gap: 10px; }
  .service-card { padding: 14px 16px; }
  .service-icon { width: 62px; height: 62px; margin-bottom: 10px; }
  .service-card__title { margin-bottom: 5px; font-size: 1.02rem; }
  .service-card__description { font-size: 0.82rem; line-height: 1.35; }
  .service-card__action { padding-top: 8px; font-size: 0.72rem; }
}

@media (max-width: 759px) {
  .footer-grid { text-align: center; }
  .footer-brand p { margin-right: auto; margin-left: auto; }
  .social-list { justify-content: center; }
  .legal-links { align-items: center; }
  .legal-button { text-align: center; }
  .footer-bottom { align-items: center; text-align: center; }
}

/* Celular vertical: todo el contenido del inicio comparte un margen cómodo. */
@media (max-width: 759px) and (orientation: portrait) {
  .hero .hero-stage.container { width: min(100% - 48px, var(--container)); }
}

@media (max-width: 520px) {
  .header-map { display: none; }
  .nav-wrap { gap: 9px; }
  .brand { gap: 8px; }
  .brand-logo-wrap, .brand-bolt-icon { width: 36px; height: 36px; }
  .brand-name { font-size: 0.95rem; }
  .header-actions { gap: 4px; }
  .header-tool, .menu-toggle { width: 38px; height: 38px; }
  .language-control { width: 52px; height: 38px; }
  .language-select { padding: 0 6px; font-size: 0.65rem; }
}

@media (max-width: 360px) {
  .theme-toggle { display: none; }
  .brand-name { font-size: 0.86rem; }
}

/* Páginas individuales de servicio */
.service-page-body { min-width: 320px; }
.service-page-header { position: sticky; z-index: 100; top: 0; background: var(--header-bg); border-bottom: 1px solid var(--header-line); backdrop-filter: blur(16px); }
.service-page-header__inner { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; }
.service-page-brand { display: inline-flex; min-width: 0; align-items: center; gap: 10px; color: var(--black); }
.service-page-brand img { width: 46px; height: 46px; object-fit: contain; }
.service-page-header__actions { display: flex; align-items: center; gap: 8px; }
.service-page-theme-toggle { flex: 0 0 auto; }
.service-page-language { color: var(--black); font-size: 0.72rem; font-weight: 900; text-decoration: none; }
.service-page-header .btn { min-height: 44px; padding: 10px 16px; }
.service-page-hero { padding: 48px 0; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); }
.service-page-hero__grid { display: grid; align-items: center; gap: 32px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; color: var(--steel); font-size: 0.78rem; }
.breadcrumbs a:hover { color: var(--black); }
.service-page-hero h1 { max-width: 780px; font-size: clamp(2.2rem, 7vw, 4.4rem); }
.service-page-lead { max-width: 720px; color: var(--graphite); font-size: clamp(1rem, 2vw, 1.18rem); line-height: 1.7; }
.service-page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.service-page-whatsapp { color: #fff; background: #267a4b; border-color: #267a4b; }
.service-page-whatsapp:hover { background: #1f6840; }
.service-page-visual { height: 360px; margin: 0; overflow: hidden; background: #171719; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.service-page-visual img { width: 100%; height: 100%; object-fit: cover; }
.service-page-visual.service-page-visual--landscape { height: auto; aspect-ratio: 5 / 3; }
.service-page-content__grid { display: grid; gap: 34px; }
.service-page-content article > p { color: var(--graphite); line-height: 1.75; }
.service-page-content article h3 { margin-top: 30px; }
.service-page-scope { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.service-page-scope li { position: relative; padding: 14px 16px 14px 44px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.service-page-scope li::before { position: absolute; top: 15px; left: 17px; color: var(--success); font-weight: 900; content: '✓'; }
.service-page-local { padding: 26px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.service-page-local p { color: var(--steel); line-height: 1.65; }
.service-page-local dl { margin: 22px 0 0; }
.service-page-local dl div { display: grid; gap: 4px; padding: 13px 0; border-top: 1px solid var(--line); }
.service-page-local dt { color: var(--steel); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.service-page-local dd { margin: 0; color: var(--black); font-weight: 700; }
.service-page-project {
  color: #f5f3ef;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #0c0d0f;
  background-size: 48px 48px;
}
.service-page-project .eyebrow { color: #d7b684; }
.service-page-project__heading { display: grid; gap: 22px; align-items: start; }
.service-page-project__heading h2 { max-width: 820px; color: #f5f3ef; }
.service-page-project__heading p { max-width: 900px; color: #c9cace; line-height: 1.75; }
.service-page-project__status {
  justify-self: start;
  padding: 8px 13px;
  color: #ead2ac;
  background: rgba(215, 182, 132, .12);
  border: 1px solid rgba(215, 182, 132, .32);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.service-page-project__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 34px 0 40px; }
.service-page-project__metrics div { padding: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); }
.service-page-project__metrics dt { color: #fff; font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 850; letter-spacing: -.04em; }
.service-page-project__metrics dd { margin: 3px 0 0; color: #a8a9ad; font-size: .82rem; }
.service-page-project__gallery { display: grid; gap: 20px; }
.service-page-project__gallery figure { min-width: 0; margin: 0; }
.service-page-project__gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #171719; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); }
.service-page-project__gallery figcaption { display: grid; gap: 2px; padding: 11px 2px 0; }
.service-page-project__gallery strong { color: #fff; font-size: .92rem; }
.service-page-project__gallery span { color: #a8a9ad; font-size: .76rem; line-height: 1.5; }
.service-page-project__gallery--shekina { grid-template-columns: minmax(0, 1fr); }
.service-page-project__gallery--shekina .service-page-project__gallery-featured img { aspect-ratio: 16 / 9; }
.service-page-project__gallery--shekina figure:not(.service-page-project__gallery-featured) img { aspect-ratio: 3 / 4; object-position: center 22%; }
.service-page-photo-link { display: block; overflow: hidden; border-radius: var(--radius-md); }
.service-page-photo-link:focus-visible { outline: 3px solid #d7b684; outline-offset: 4px; }
.service-page-photo-link img { transition: transform 320ms ease; }
.service-page-photo-link:hover img { transform: scale(1.025); }
.service-page-secondary-project {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  padding: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
}
.service-page-secondary-project img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.service-page-secondary-project h3 { margin-bottom: 12px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.2rem); }
.service-page-secondary-project p { color: #c9cace; line-height: 1.7; }
.service-page-secondary-project__note { margin-bottom: 0; color: #a8a9ad !important; font-size: .82rem; }
.service-page-secondary-project.service-page-secondary-project--gallery { grid-template-columns: minmax(0, 1fr); align-items: start; }
.service-page-secondary-project__gallery { display: grid; gap: 14px; }
.service-page-secondary-project__gallery figure { min-width: 0; margin: 0; }
.service-page-secondary-project__gallery img { aspect-ratio: 3 / 4; object-position: center 24%; }
.service-page-secondary-project__gallery figcaption { display: grid; gap: 3px; padding: 11px 2px 0; }
.service-page-secondary-project__gallery strong { color: #fff; font-size: .88rem; }
.service-page-secondary-project__gallery span { color: #a8a9ad; font-size: .76rem; line-height: 1.5; }
.service-page-project__cta {
  display: grid;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  background: rgba(215,182,132,.08);
  border: 1px solid rgba(215,182,132,.34);
  border-radius: var(--radius-lg);
}
.service-page-project__cta h3 { margin-bottom: 5px; color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.service-page-project__cta p { margin-bottom: 0; color: #b9babe; }
.service-page-project__cta .btn { justify-self: start; color: #111216; background: #ead2ac; border-color: #ead2ac; }
.service-page-evidence { border-top: 1px solid var(--line); }
.service-page-evidence__heading { display: grid; gap: 16px; align-items: end; margin-bottom: 28px; }
.service-page-evidence__heading h2 { max-width: 760px; }
.service-page-evidence__heading > p { max-width: 560px; margin: 0; color: var(--graphite); line-height: 1.7; }
.service-page-evidence__gallery { display: grid; gap: 18px; }
.service-page-evidence__gallery figure { min-width: 0; margin: 0; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.service-page-evidence__gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #e7e7e8; }
.service-page-evidence__gallery .service-page-photo--top { object-position: center 25%; }
.service-page-evidence__gallery figcaption { display: grid; gap: 3px; padding: 15px 16px 18px; }
.service-page-evidence__gallery strong { color: var(--black); }
.service-page-evidence__gallery span { color: var(--steel); font-size: .82rem; line-height: 1.55; }
.service-page-evidence__note { margin: 18px 0 0; color: var(--steel); font-size: .78rem; line-height: 1.6; }
.service-page-process h2 { max-width: 700px; margin-bottom: 28px; }
.service-page-process .process-list h3 { margin-bottom: 5px; font-size: 1rem; }
.service-page-related { display: grid; gap: 14px; margin-top: 24px; }
.service-page-related a { display: grid; gap: 6px; padding: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform var(--transition), border-color var(--transition); }
.service-page-related a:hover { border-color: var(--steel); transform: translateY(-3px); }
.service-page-related strong { color: var(--black); }
.service-page-related span { color: var(--steel); font-size: 0.86rem; line-height: 1.55; }
.service-page-cta { padding: 42px 0; color: #fff; background: #111216; }
.service-page-cta .container { display: grid; align-items: center; gap: 22px; }
.service-page-cta h2 { color: #fff; }
.service-page-cta p { margin-bottom: 0; color: #c9cacf; }
.service-page-cta .btn { color: #111216; background: #fff; border-color: #fff; }
.service-page-footer { padding: 24px 0; color: #aeb0b5; background: #070708; font-size: 0.8rem; }
.service-page-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.service-page-footer a { color: #fff; }

@media (min-width: 760px) {
  .service-page-hero { padding: 76px 0; }
  .service-page-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr); }
  .service-page-visual { height: 470px; }
  .service-page-content__grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr); }
  .service-page-project__heading { grid-template-columns: minmax(0, 1fr) auto; }
  .service-page-project__status { justify-self: end; }
  .service-page-project__metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-page-project__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-page-project__gallery--shekina { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-page-project__gallery--shekina .service-page-project__gallery-featured { grid-column: 1 / -1; }
  .service-page-secondary-project { grid-template-columns: minmax(300px, .82fr) minmax(0, 1fr); align-items: center; padding: 30px; }
  .service-page-secondary-project__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-page-project__cta { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 30px; }
  .service-page-project__cta .btn { justify-self: end; }
  .service-page-evidence__heading { grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); }
  .service-page-evidence__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-page-evidence__gallery--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-page-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-page-cta .container { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 559px) {
  .service-page-brand span { font-size: 0.76rem; }
  .service-page-header .btn { min-height: 40px; padding-inline: 12px; font-size: 0.75rem; }
  .service-page-visual { height: 310px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   AJUSTES DE LA REVISIÓN (septiembre 2026)
   ========================================================= */

/* Indicador de carga: nunca tapa la portada. El respaldo solo retira la línea
   si un recurso externo queda esperando y el evento load no llega. */
.app-preloader {
  animation: preloader-failsafe 1ms linear 4s forwards;
}

@keyframes preloader-failsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-bar-fill { animation-duration: 1.6s !important; }
}

/* Subtítulo del título principal: nombra el servicio y la ciudad, que es lo
   que buscan en Google, sin competir visualmente con el eslogan. */
.hero-title .hero-title__sub {
  display: block;
  margin-top: 0.34em;
  color: var(--steel);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
}

/* Campo trampa contra spam: invisible para una persona, tentador para un bot. */
.field--hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Habilitación ante UTE: franja propia a lo ancho del pie, arriba de la barra
   inferior. Sacarla de la columna de marca empareja las cuatro columnas. */
.footer-credential {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 30px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #e8e9ea;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: center;
  transition: color var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-credential:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.48);
  transform: translateY(-2px);
}

.footer-credential__arrow {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--transition);
}

.footer-credential:hover .footer-credential__arrow { transform: translate(2px, -2px); }

/* --- Franja de valores en la portada: los nueve nombres en 3x3 --- */
.hero-principles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-principles div {
  min-height: 52px;
  padding: 9px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-principles strong {
  font-size: 0.74rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

@media (min-width: 560px) {
  .hero-principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hero-principles div { padding: 11px 10px; }
  .hero-principles strong { font-size: 0.86rem; }
}

@media (min-width: 1024px) {
  .hero-principles strong { font-size: 0.9rem; }
}

/* --- Reseña del fundador --- */
.founder-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.founder-profile__photo {
  width: 176px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

.founder-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-profile__name {
  margin: 0 0 2px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.founder-profile__role {
  margin: 0 0 14px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.founder-profile__bio p {
  margin: 0 0 12px;
  color: var(--graphite);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 68ch;
}

.founder-profile__bio p:last-child { margin-bottom: 0; }

@media (min-width: 760px) {
  .founder-profile { grid-template-columns: 176px minmax(0, 1fr); gap: 32px; }
}

html[data-theme="dark"] .founder-profile { border-top-color: #2a2b2f; }
html[data-theme="dark"] .founder-profile__photo { background: #141518; border-color: #2a2b2f; }
html[data-theme="dark"] .founder-profile__bio p { color: #a9abb1; }

/* =========================================================
   VENTANAS EMERGENTES
   Misma tipografía que los diálogos de Nosotros (Misión y Visión), y el
   contenido acomodado para que entre sin tener que deslizar.
   ========================================================= */

/* Legal y servicios heredan la lectura de la Carta del Fundador */
#legal-content p,
.service-dialog__intro,
.service-detail p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--graphite);
}

html[data-theme="dark"] #legal-content p,
html[data-theme="dark"] .service-dialog__intro,
html[data-theme="dark"] .service-detail p { color: #a9abb1; }

/* Cada texto legal en su ventana, en una sola columna y con la misma medida de
   línea que Misión y Visión: entra completo, sin deslizar. */
.legal-columns {
  max-width: 700px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .legal-dialog { max-height: 92vh; }
  #legal-content { padding-bottom: 24px; }
  #legal-content p { margin-bottom: 18px; }
}

/* En notebooks de pantalla baja la línea se ensancha y los párrafos se juntan un
   poco: el texto sigue en el mismo cuerpo que Misión y Visión, solo cambia el
   ancho de línea, y así entra completo sin deslizar. */
@media (min-width: 900px) and (max-height: 810px) {
  .legal-columns { max-width: 100%; }
  #legal-content p { margin-bottom: 14px; }
}

/* La galería de servicios ocupaba casi 700 px de alto; se acota a la pantalla
   para que la ficha del servicio entre entera. */
#service-media-stage {
  max-height: clamp(180px, 29vh, 420px);
}

.service-dialog__intro { margin-bottom: 16px; }

.service-dialog__body { padding: 18px 20px 22px; }

@media (min-width: 1024px) {
  .service-dialog__layout { gap: 24px; }
}

/* --- Pie en cuatro columnas: la de contacto llena el vacío de la derecha --- */
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
    gap: 28px;
  }
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-contact li {
  color: #a9abb1;
  font-size: 0.84rem;
  line-height: 1.5;
  word-break: break-word;
}

.footer-contact a {
  color: #a9abb1;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible { color: #ffffff; }

.footer-bottom__right { color: #85878c; }

/* --- Contacto: que la sección entre en una pantalla y los bordes coincidan --- */
@media (min-width: 760px) {
  #contacto.section { padding: 44px 0; }
}

.contact-details { margin-top: 18px; gap: 10px; }

.contact-item {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 10px 12px;
  gap: 12px;
}

.contact-item__icon { width: 48px; height: 48px; }

.contact-hours {
  margin-top: 14px;
  padding: 14px 18px;
}

.contact-hours__title { margin-bottom: 10px; }
.contact-hours__row { margin-bottom: 6px; font-size: 0.9rem; }

.contact-hours__emergency {
  margin-top: 11px;
  padding-top: 11px;
  font-size: 0.84rem;
}

@media (min-width: 1024px) {
  #contacto .lead { margin-bottom: 0; }
}

/* Horarios de atención, debajo de los datos de contacto */
.contact-hours {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.contact-hours__title {
  margin: 0 0 12px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-hours__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.contact-hours__row span { color: var(--graphite); }
.contact-hours__row strong { color: var(--black); font-weight: 700; white-space: nowrap; }

.contact-hours__emergency {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.88rem;
  line-height: 1.5;
}

html[data-theme="dark"] .contact-hours {
  background: #141518;
  border-color: #2a2b2f;
}

html[data-theme="dark"] .contact-hours__row span,
html[data-theme="dark"] .contact-hours__emergency { color: #a9abb1; }
html[data-theme="dark"] .contact-hours__row strong { color: #f2f2f3; }
html[data-theme="dark"] .contact-hours__emergency { border-top-color: #2a2b2f; }

/* Guía breve que aprovecha la columna de contacto y mejora la consulta inicial. */
.quote-prep {
  margin-top: 14px;
  padding: 17px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.quote-prep__title {
  margin: 0 0 12px;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-prep__list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-prep__list li {
  display: grid;
  grid-template-columns: minmax(104px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.quote-prep__list strong {
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 750;
}

.quote-prep__list span {
  color: var(--graphite);
  font-size: 0.82rem;
  line-height: 1.45;
}

html[data-theme="dark"] .quote-prep {
  background: #141518;
  border-color: #2a2b2f;
}

html[data-theme="dark"] .quote-prep__list strong { color: #f2f2f3; }
html[data-theme="dark"] .quote-prep__list span { color: #a9abb1; }

/* Página de confirmación del formulario. */
.confirmation-main {
  display: grid;
  min-height: calc(100dvh - 75px);
  place-items: center;
  padding: 56px 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(111, 114, 119, 0.13), transparent 30%),
    var(--soft);
}

.confirmation-card {
  width: min(100%, 720px);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 56px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.confirmation-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  place-items: center;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  background: #267a4b;
  border-radius: 50%;
  box-shadow: 0 16px 30px rgba(38, 122, 75, 0.24);
}

.confirmation-card h1 {
  margin: 8px 0 16px;
  font-size: clamp(2.2rem, 7vw, 4.3rem);
  line-height: 0.98;
}

.confirmation-card__lead {
  max-width: 590px;
  margin: 0 auto;
  color: var(--graphite);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.7;
}

.confirmation-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.confirmation-card__whatsapp {
  color: #ffffff;
  background: #267a4b;
  border-color: #267a4b;
}

.confirmation-card__whatsapp:hover { background: #1f6840; border-color: #1f6840; }

html[data-theme="dark"] .confirmation-card {
  background: #111216;
  border-color: #2a2b2f;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .confirmation-card__lead { color: #a9abb1; }

@media (max-width: 559px) {
  .quote-prep__list li { grid-template-columns: 1fr; gap: 2px; }
  .confirmation-main { padding: 28px 0; }
  .confirmation-card__actions { flex-direction: column; }
  .confirmation-card__actions .btn { width: 100%; }
}

/* Botón secundario de la portada */
.hero-actions .btn--light {
  border: 1px solid var(--line);
}

html[data-theme="dark"] .hero-actions .btn--light {
  background: #1a1b1e;
  border-color: #2c2d31;
  color: #f2f2f3;
}
