/* =========================================================================
   DIECSA — Sitio con diseño e identidad real
   Dirección: Industrial Editorial + Ingeniería Ambiental Premium
   Misma arquitectura del wireframe (diecsa26), ahora con marca, fotografía
   real y paleta de color de DIECSA. CSS puro, sin frameworks.
========================================================================= */

:root {
  /* Paleta de marca DIECSA (extraída del logo oficial LOGO_DIECSA_FINAL.svg) */
  --navy: #154284;       /* azul principal — círculos del logo, headlines oscuros */
  --navy-deep: #0c2a56;  /* azul más oscuro para fondos "dark" (hero, CTA, footer) */
  --blue-accent: #0033a1;/* azul secundario — líneas conectoras del logo, acentos/CTA */
  --teal-gray: #8e9c9c;  /* gris verdoso — wordmark del logo, texto secundario */
  --blue-bright: #4a9eff; /* azul vivo — resaltados de texto sobre fondo navy */
  --green-accent: #8fd14f; /* verde lima — acentos decorativos (líneas, iconos, blobs) */

  --ink: #16202e;        /* texto de cuerpo, casi negro con tinte navy */
  --stone-800: #34404d;
  --stone-700: #4a5561;
  --stone-600: #5c6672;
  --stone-500: #76818c;
  --stone-400: #96a0a8;
  --stone-300: #bcc3c9;
  --stone-200: #dde1e4;
  --stone-150: #e9ebed;
  --stone-100: #f0f2f3;
  --stone-50: #eef1f4;
  --paper: #ffffff;

  --line: rgba(21, 66, 132, 0.2);
  --line-soft: rgba(21, 66, 132, 0.08);
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-dark-soft: rgba(255, 255, 255, 0.09);

  --font: -apple-system, "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-hero: clamp(2.6rem, 3.4vw + 1.6rem, 5.4rem);
  --fs-h1: clamp(2.2rem, 2.2vw + 1.4rem, 3.6rem);
  --fs-h2: clamp(1.9rem, 1.6vw + 1.2rem, 2.9rem);
  --fs-h3: clamp(1.2rem, 0.5vw + 1rem, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.4vw + 0.9rem, 1.3rem);
  --fs-body: clamp(0.98rem, 0.15vw + 0.9rem, 1.05rem);
  --fs-small: 0.84rem;
  --fs-eyebrow: 0.76rem;
  --fs-stat: clamp(2.4rem, 2.6vw + 1rem, 4rem);

  --container: 1320px;
  --pad-inline: clamp(1.25rem, 4vw, 4rem);
  --section-pad: clamp(4.5rem, 8vw, 8.5rem);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 14px 32px rgba(12, 42, 86, 0.1);
  --shadow-card-dark: 0 18px 36px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------------------------
   Reset
--------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-inline); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-eyebrow); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--teal-gray);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green-accent); display: inline-block; }
.eyebrow.on-dark { color: var(--stone-300); }

.lead { font-size: var(--fs-lead); color: var(--stone-600); max-width: 640px; }
.lead.on-dark { color: var(--stone-300); }
.whyus-intro-accent { border-left: 3px solid var(--green-accent); padding-left: 18px; margin-top: 20px; }

/* ---------------------------------------------------------------------
   Fotografía real — contenedores de imagen (reemplaza los placeholders)
--------------------------------------------------------------------- */
.photo-box { position: relative; overflow: hidden; width: 100%; height: 100%; min-height: 160px; background: var(--stone-100); }
.photo-box img, .photo-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-box video { object-position: center 32%; }
.logo-mark { display: block; height: 40px; width: auto; }
.logo-mark.footer-logo { height: 44px; filter: brightness(0) invert(1); } /* logo en blanco sobre fondo oscuro del footer */

/* ---------------------------------------------------------------------
   Botones
--------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: var(--radius-sm); white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  border: 1.5px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-accent); color: #fff; border-color: var(--blue-accent); }
.btn-primary:hover { background: var(--navy); }
.btn-outline { border-color: var(--stone-300); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-on-dark { border-color: var(--line-dark); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------------------------------------------------------------------
   Header / Nav
--------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-solid,
.site-header.header-static {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(21,66,132,.03);
}
.site-header .row { width: 100%; display: flex; align-items: center; gap: 10px; }
.site-header .brand { flex: 0 0 auto; margin-right: 30px; }
.site-header:not(.is-solid):not(.header-static) .logo-mark { filter: brightness(0) invert(1); }
.site-header:not(.is-solid):not(.header-static) ul.main-nav > li > a { color: #fff; }
.site-header:not(.is-solid):not(.header-static) .btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }

ul.main-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
ul.main-nav > li { position: relative; }
ul.main-nav > li > a {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--navy); padding: 14px 16px; transition: color 0.2s var(--ease);
}
ul.main-nav > li > a:hover { color: var(--blue-accent); }
ul.main-nav .caret { font-size: 8px; opacity: 0.7; transition: transform 0.2s var(--ease); }
ul.main-nav > li[data-has-dropdown]:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -16px;
  min-width: 320px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(21,66,132,.14);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
ul.main-nav > li[data-has-dropdown]:hover .dropdown,
ul.main-nav > li.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--radius-sm); }
.dropdown a:hover { background: var(--stone-50); }
.dropdown a .dd-name { font-size: 0.84rem; font-weight: 700; color: var(--navy); text-transform: none; letter-spacing: 0; }
.dropdown a .dd-desc { font-size: 0.74rem; color: var(--stone-500); font-weight: 400; }

.header-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 6px;
  width: 40px; height: 40px; background: none; border: 0; margin-left: 8px; z-index: 220;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.site-header:not(.is-solid):not(.header-static) .nav-toggle { color: #fff; }
body.menu-open .nav-toggle { color: var(--navy) !important; position: relative; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; background: rgba(12,42,86,.5); z-index: 190;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
body.menu-open .nav-backdrop { opacity: 1; pointer-events: auto; }

/* ---------------------------------------------------------------------
   Hero
--------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--navy-deep); overflow: hidden; padding-bottom: clamp(3rem, 7vw, 6rem);
}
.hero .photo { position: absolute; inset: 0; }
.hero .photo img { animation: kenBurns 18s ease-in-out infinite alternate; }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,42,86,.55) 0%, rgba(12,42,86,.74) 55%, rgba(10,20,35,.94) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 920px; }
.hero-content .eyebrow { margin-bottom: 22px; opacity: 0; animation: fadeUp 0.8s var(--ease) 0.15s forwards; }
.hero-content h1 { color: #fff; font-size: var(--fs-hero); line-height: 1.04; margin-bottom: 28px; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.3s forwards; }
.hero-content .hero-sub { color: var(--stone-300); font-size: var(--fs-lead); max-width: 560px; margin: 0 0 34px; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.45s forwards; }
.hero-content .cta-row { opacity: 0; animation: fadeUp 0.9s var(--ease) 0.6s forwards; }
.hero-scroll-cue {
  position: absolute; left: var(--pad-inline); bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 12px; color: var(--stone-400); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; opacity: 0; animation: fadeUp 0.9s var(--ease) 0.9s forwards;
}
.hero-scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero-scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff;
  animation: scrollCue 1.8s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
   Stat bar
--------------------------------------------------------------------- */
.stat-bar { background: var(--stone-50); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: clamp(2.2rem, 4vw, 3.4rem) var(--pad-inline); border-left: 1px solid var(--line); text-align: left; }
.stat-item:first-child { border-left: 0; }
.stat-num { display: block; font-size: var(--fs-stat); font-weight: 700; line-height: 1; color: var(--navy); letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 10px; font-size: var(--fs-small); color: var(--stone-500); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------------------------------------------------------------
   Secciones genéricas
--------------------------------------------------------------------- */
section.block { padding: var(--section-pad) 0; }
section.block.tint { background: var(--stone-50); }
section.block.dark { background: var(--navy-deep); color: #fff; }
.block-head { max-width: 720px; margin: 0 0 clamp(2.5rem, 5vw, 4.5rem); }
.block-head h2 { font-size: var(--fs-h2); line-height: 1.15; margin-top: 16px; }
.block-head p { margin-top: 16px; }
.section-index { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--blue-accent); font-weight: 700; }
.section-index::before { content: ""; width: 22px; height: 3px; background: var(--green-accent); border-radius: 2px; display: inline-block; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="stagger"] > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal="stagger"].is-visible > * { opacity: 1; transform: none; }
[data-reveal="stagger"].is-visible > *:nth-child(1) { transition-delay: 0.03s; }
[data-reveal="stagger"].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-reveal="stagger"].is-visible > *:nth-child(3) { transition-delay: 0.17s; }
[data-reveal="stagger"].is-visible > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal="stagger"].is-visible > *:nth-child(5) { transition-delay: 0.31s; }
[data-reveal="stagger"].is-visible > *:nth-child(6) { transition-delay: 0.38s; }

/* ---------------------------------------------------------------------
   Servicios — Bento grid
--------------------------------------------------------------------- */
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(6, 1fr);
  grid-template-areas:
    "box1 box1 box4 box4"
    "box1 box1 box4 box4"
    "box2 box3 box4 box4"
    "box2 box3 box6 box6"
    "box5 box5 box6 box6"
    "box5 box5 box6 box6";
}
.bento-tile {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  background: var(--paper); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.bento-tile:hover { box-shadow: 0 24px 44px rgba(21,66,132,.16); transform: translateY(-2px); }
.bento-tile:nth-child(1) { grid-area: box1; }
.bento-tile:nth-child(2) { grid-area: box2; }
.bento-tile:nth-child(3) { grid-area: box3; }
.bento-tile:nth-child(4) { grid-area: box4; }
.bento-tile:nth-child(1) .tile-photo, .bento-tile:nth-child(4) .tile-photo,
.bento-tile:nth-child(5) .tile-photo, .bento-tile:nth-child(6) .tile-photo { min-height: 300px; }
.bento-tile:nth-child(1) .tile-photo img, .bento-tile:nth-child(3) .tile-photo img,
.bento-tile:nth-child(5) .tile-photo img { object-position: center 80%; }
.bento-tile:nth-child(5) { grid-area: box5; }
.bento-tile:nth-child(6) { grid-area: box6; }
.bento-tile .tile-photo { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 140px; }
.bento-tile .tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.bento-tile .tile-tint { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,42,86,.05), rgba(12,42,86,0)); transition: background-color 0.3s var(--ease); }
.bento-tile:hover .tile-photo img { transform: scale(1.06); }
.bento-tile:hover .tile-tint { background: rgba(12,42,86,.14); }
.bento-tile .tile-body { position: relative; z-index: 2; padding: 22px 22px 24px; flex: 0 0 auto; }
.bento-tile .tile-num { font-size: 11px; color: var(--blue-accent); font-weight: 700; letter-spacing: 0.08em; display: block; margin-bottom: 10px; }
.bento-tile h3 { color: var(--navy); font-size: var(--fs-h3); margin-bottom: 8px; }
.bento-tile p { font-size: 0.83rem; color: var(--stone-500); margin: 0 0 14px; }
.bento-tile .tile-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy); }
.bento-tile .tile-link .arrow { transition: transform 0.3s var(--ease); }
.bento-tile:hover .tile-link .arrow { transform: translateX(6px); }
@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-areas: "box1" "box2" "box3" "box4" "box5" "box6";
  }
  .bento-tile:nth-child(1) .tile-photo { min-height: 220px; }
}

/* ---------------------------------------------------------------------
   Proceso — sticky storytelling
--------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.process-indicators { display: flex; flex-direction: column; gap: 8px; margin-top: 34px; }
.process-indicator {
  display: flex; align-items: center; gap: 22px;
  padding: 18px 22px; border-radius: var(--radius-sm);
  border-left: 3px solid rgba(143, 209, 79, .3);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.process-indicator-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--stone-100); color: var(--stone-400);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.process-indicator-icon svg { width: 21px; height: 21px; }
.process-indicator-text { display: flex; flex-direction: column; gap: 4px; }
.process-indicator .num { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; color: var(--stone-400); transition: color 0.35s var(--ease); }
.process-indicator .lbl { font-size: 1.1rem; font-weight: 700; color: var(--stone-500); text-transform: none; letter-spacing: normal; transition: color 0.35s var(--ease); }
.process-indicator-arrow {
  margin-left: auto; flex: 0 0 auto; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-accent); opacity: 0; transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.process-indicator-arrow svg { width: 100%; height: 100%; display: block; }
.process-indicator.is-active { background: var(--stone-50); box-shadow: var(--shadow-card); border-left-color: var(--green-accent); }
.process-indicator.is-active .process-indicator-icon { background: var(--blue-accent); color: #fff; box-shadow: 0 0 0 6px rgba(0,51,161,.12); }
.process-indicator.is-active .num { color: var(--blue-accent); }
.process-indicator.is-active .lbl { color: var(--navy); }
.process-indicator.is-active .process-indicator-arrow { opacity: 1; transform: translateX(0); }
.process-progress { width: 2px; background: var(--stone-200); height: 220px; position: relative; margin-top: 30px; }
.process-progress-fill { position: absolute; top: 0; left: 0; width: 100%; background: var(--blue-accent); transition: height 0.4s var(--ease); }
.process-steps { display: flex; flex-direction: column; gap: clamp(4rem, 10vw, 8rem); }
.process-step { border-top: 1px solid var(--line); padding-top: 28px; opacity: 0.45; transition: opacity 0.4s var(--ease); }
.process-step.is-active { opacity: 1; }
.process-step .step-eyebrow { font-size: 0.78rem; font-weight: 700; color: var(--blue-accent); text-transform: uppercase; letter-spacing: 0.06em; }
.process-step h3 { font-size: var(--fs-h2); margin: 14px 0 16px; }
.process-step p { color: var(--stone-600); max-width: 480px; }
.process-step .photo-box { height: 320px; margin-top: 24px; border-radius: var(--radius); }

/* Variante sobre fondo oscuro (sección Proceso en el home) */
.block.dark .block-head h2 { color: #fff; }
.block.dark .block-head p { color: var(--stone-300); }
.block.dark .section-index { color: rgba(255,255,255,.55); }
.block.dark .process-indicator-icon { background: rgba(255,255,255,.1); color: #fff; }
.block.dark .process-indicator .num { color: rgba(255,255,255,.5); }
.block.dark .process-indicator .lbl { color: rgba(255,255,255,.7); }
.block.dark .process-indicator + .process-indicator { border-top: 1px solid var(--line-dark); }
.block.dark .process-indicator.is-active {
  background: linear-gradient(135deg, rgba(0,51,161,.55), rgba(74,158,255,.16));
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
  border-top-color: transparent;
}
.block.dark .process-indicator.is-active + .process-indicator { border-top-color: transparent; }
.block.dark .process-indicator.is-active .process-indicator-icon { background: var(--blue-bright); color: #0c2a56; box-shadow: 0 0 0 8px rgba(74,158,255,.2); }
.block.dark .process-indicator.is-active .num { color: rgba(255,255,255,.85); }
.block.dark .process-indicator.is-active .lbl { color: #fff; }
.block.dark .process-indicator.is-active .process-indicator-arrow { color: #fff; }
.block.dark .process-progress { display: none; }
.block.dark .process-step { border-top-color: var(--line-dark); }
.block.dark .process-step .step-eyebrow { color: var(--stone-300); }
.block.dark .process-step h3 { color: #fff; }
.block.dark .process-step p { color: var(--stone-300); }
.block.dark .process-step .photo-box { border: 1px solid var(--line-dark); }
.block.dark .process-step {
  border-top: none;
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.block.dark .process-step.is-active {
  background: #fdfdfe;
  border-radius: 20px;
  box-shadow: var(--shadow-card-dark);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.block.dark .process-step.is-active .step-eyebrow { color: var(--blue-accent); }
.block.dark .process-step.is-active h3 { color: var(--navy); }
.block.dark .process-step.is-active p { color: var(--stone-600); }
.block.dark .process-step.is-active .photo-box { border: none; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process-sticky { position: static; margin-bottom: 12px; }
  .process-progress { display: none; }
}

/* ---------------------------------------------------------------------
   Nosotros — panel dividido asimétrico
--------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .photo-box { height: 460px; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.split blockquote { margin: 26px 0 0; padding-left: 22px; border-left: 2px solid var(--blue-accent); font-size: var(--fs-lead); color: var(--navy); font-weight: 500; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .photo-col { order: -1; }
}

/* ---------------------------------------------------------------------
   Por qué DIECSA — banda oscura
--------------------------------------------------------------------- */
/* ---------------------------------------------------------------------
   Por qué DIECSA — versión con foto, blob decorativo e íconos
--------------------------------------------------------------------- */
.whyus-grid-main { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.whyus-headline { font-size: var(--fs-h1); line-height: 1.16; color: #fff; margin-top: 18px; }
.hl-blue { color: var(--blue-bright); }
.whyus-photo-wrap { width: 100%; }
.whyus-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; box-shadow: var(--shadow-card-dark); }
.whyus-photo .photo-box, .whyus-photo img { width: 100%; height: 100%; }
.whyus-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.whyus-card { display: flex; gap: 22px; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; overflow: hidden; box-shadow: var(--shadow-card-dark); }
.whyus-card-photo { flex: 0 0 auto; width: 130px; align-self: stretch; border-radius: var(--radius-sm); overflow: hidden; }
.whyus-card-photo .photo-box { width: 100%; height: 100%; min-height: 230px; }
.whyus-card-body { flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.whyus-card-num { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.whyus-card-num.blue { color: var(--blue-bright); }
.whyus-card-num.green { color: var(--green-accent); }
.whyus-card p { color: var(--stone-300); font-size: 0.95rem; margin: 0; }
.whyus-card p strong { color: #fff; }
@media (max-width: 560px) { .whyus-card { flex-direction: column; } .whyus-card-photo { width: 100%; } .whyus-card-photo .photo-box { min-height: 160px; } }
@media (max-width: 900px) {
  .whyus-grid-main { grid-template-columns: 1fr; }
  .whyus-photo-wrap { order: -1; max-width: 340px; }
}
@media (max-width: 620px) { .whyus-cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Contacto
--------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-info h2 { font-size: var(--fs-h2); margin: 16px 0 20px; }
.contact-rows { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.contact-row-item { display: flex; align-items: center; gap: 16px; }
.contact-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: var(--radius-sm); background: rgba(0,51,161,.08); color: var(--blue-accent); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-row-item .lbl { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone-500); }
.contact-row-item .val { display: block; font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-top: 2px; }
.contact-tagline { margin-top: 36px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: clamp(1.8rem, 3vw, 2.8rem); }
.form-card-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.form-card-icon svg { width: 26px; height: 26px; }
.form-card h3 { font-size: var(--fs-h3); margin: 4px 0 10px; color: var(--navy); }
.form-card-sub { color: var(--stone-600); font-size: 0.92rem; margin: 0 0 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--stone-600); margin-bottom: 8px; }
.field-input { position: relative; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--stone-200); border-radius: var(--radius-sm);
  padding: 13px 44px 13px 16px; font-family: var(--font); font-size: 0.95rem; color: var(--ink); background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--stone-400); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(0,51,161,.12); }
.field-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--stone-400); pointer-events: none; display: flex; }
.field-icon svg { width: 18px; height: 18px; }
.btn-block { width: 100%; justify-content: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   CTA Final
--------------------------------------------------------------------- */
.cta-final { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.cta-final .photo { position: absolute; inset: 0; }
.cta-final .photo img { animation: kenBurns 20s ease-in-out infinite alternate; }
.cta-final .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,42,86,.88), rgba(10,20,35,.95)); }
.cta-final .inner { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-final h2 { color: #fff; font-size: var(--fs-h1); line-height: 1.1; }
.cta-final .sub { color: var(--stone-300); font-size: var(--fs-lead); margin: 18px 0 34px; }
.cta-final .cta-row { justify-content: center; margin-bottom: 40px; }
.cta-final .contact-strip { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 30px; }
.cta-final .contact-strip a { font-size: 0.88rem; font-weight: 600; color: var(--stone-300); }
.cta-final .contact-strip a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
footer.site-footer { background: var(--navy-deep); color: var(--stone-300); padding: clamp(3rem, 6vw, 4.5rem) 0 24px; font-size: 0.86rem; }
footer.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
footer.site-footer .brand-col p { color: var(--stone-400); font-size: 0.85rem; max-width: 280px; margin: 16px 0 0; }
footer.site-footer h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,.55); margin: 0 0 16px; }
footer.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
footer.site-footer ul a:hover { color: #fff; }
footer.site-footer .legal { border-top: 1px solid var(--line-dark); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,.4); }
@media (max-width: 900px) { footer.site-footer .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { footer.site-footer .cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Breadcrumb / título de página interna (servicios)
--------------------------------------------------------------------- */
.wf-breadcrumb { padding: 16px 0; font-size: 0.78rem; color: var(--stone-500); border-bottom: 1px solid var(--line); }
.wf-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.wf-breadcrumb a:hover { color: var(--navy); }
.page-offset { padding-top: var(--header-h); }
.wf-pagetitle { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; }
.wf-pagetitle .pagetitle-photo { position: absolute; inset: 0; }
.wf-pagetitle .pagetitle-photo img { object-position: center 30%; }
.wf-pagetitle .pagetitle-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,20,35,.93) 15%, rgba(12,42,86,.6) 75%, rgba(12,42,86,.4) 100%); }
.wf-pagetitle .pagetitle-inner { position: relative; z-index: 2; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.wf-pagetitle h1 { font-size: var(--fs-h1); margin-top: 16px; max-width: 780px; color: #fff; }
.wf-pagetitle p { margin-top: 18px; }

/* ---------------------------------------------------------------------
   Detalle de servicio
--------------------------------------------------------------------- */
.service-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.service-aside { position: sticky; top: calc(var(--header-h) + 30px); }
.service-aside h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--stone-400); margin-bottom: 16px; }
.service-aside ul { display: flex; flex-direction: column; gap: 2px; }
.service-aside a { display: block; padding: 12px 14px; font-size: 0.86rem; font-weight: 600; border-left: 2px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.service-aside a:hover { background: var(--stone-50); }
.service-aside li.current a { border-left-color: var(--green-accent); background: var(--stone-50); color: var(--navy); }
.norm-list { display: flex; flex-direction: column; }
.norm-list li { font-size: 0.92rem; color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.norm-list li .n-idx { color: var(--blue-accent); font-weight: 700; font-size: 0.8rem; flex: 0 0 auto; padding-top: 2px; }
.norm-list li:first-child { padding-top: 0; }
.subsec { padding: 22px 0; border-bottom: 1px solid var(--line); }
.subsec:first-of-type { padding-top: 0; }
.subsec h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; color: var(--navy); }
.subsec p { font-size: 0.92rem; color: var(--stone-600); margin: 0; }
.accred-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--line); background: var(--stone-50); border-radius: 20px; padding: 7px 16px; margin-bottom: 26px; }
.stat-callout { display: flex; align-items: baseline; gap: 18px; border: 1px solid var(--line); border-left: 3px solid var(--blue-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin-bottom: 26px; background: var(--stone-50); }
.stat-callout-num { font-family: var(--font); font-weight: 700; font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem); color: var(--navy); line-height: 1; flex: 0 0 auto; }
.stat-callout-label { font-size: 0.88rem; color: var(--stone-600); }
@media (max-width: 480px) { .stat-callout { flex-direction: column; gap: 6px; } }
.norm-block-title { font-size: 1.1rem; margin: 40px 0 6px; color: var(--navy); }
.norm-block-title:first-child { margin-top: 0; }
.service-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.service-photos .photo-box { min-height: 220px; border-radius: var(--radius); }
.service-photos .photo-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-aside { position: static; margin-bottom: 8px; }
}
@media (max-width: 560px) { .service-photos { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Botón flotante WhatsApp
--------------------------------------------------------------------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
  z-index: 150; box-shadow: 0 10px 24px rgba(12,42,86,.35);
  transition: transform 0.25s var(--ease);
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.08); }

/* ---------------------------------------------------------------------
   Keyframes
--------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollCue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ---------------------------------------------------------------------
   Responsive — nav mobile
--------------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-cta .btn-outline { display: none; }
  ul.main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(88vw, 380px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 20px) 28px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 50px rgba(12,42,86,.2); z-index: 210;
  }
  body.menu-open ul.main-nav { transform: translateX(0); }
  ul.main-nav > li { width: 100%; border-bottom: 1px solid var(--line); }
  ul.main-nav > li > a { color: var(--navy) !important; padding: 16px 4px; width: 100%; justify-content: space-between; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    padding: 0 0 12px; display: none; min-width: 0;
  }
  ul.main-nav > li.is-open .dropdown { display: block; }
  .dropdown a { padding: 10px 8px; }
}
@media (max-width: 620px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-item { border-left: 0; border-top: 1px solid var(--line); }
  .stat-item:first-child { border-top: 0; }
}
