/* ==========================================================
   ANDAMIOS ZP S.A.S. — Páginas de servicio
   Enlazar como ../CSS/paginas.css
   ========================================================== */

:root {
  --blue: #316cf5;
  --blue-dark: #245be0;
  --blue-soft: #8db0ff;
  --navy: #071536;
  --ink: #111b35;
  --muted: #5d6680;
  --light: #f4f6fa;
  --line: #e4e8f0;
  --white: #ffffff;
  --amber: #ffb81c;
  --radius: 22px;
  --shadow: 0 24px 55px rgba(7, 21, 54, 0.12);

  /* Retícula de andamio: módulos con arriostramiento en X */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.2'%3E%3Cpath d='M0 0h96v96H0z'/%3E%3Cpath d='M0 0l96 96M96 0L0 96'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M0 0h72v72H0z' fill='none' stroke='%23071536' stroke-opacity='.045' stroke-width='1'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f2f4f8;
  font-family: "DM Sans", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--blue);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-soft);
  outline-offset: 4px;
}

.page-site {
  min-height: 100vh;
  overflow: hidden;
  background: var(--white);
}

.page-wrap {
  width: min(1120px, 90%);
  margin-inline: auto;
}

/* ==========================================================
   CABECERA
   ========================================================== */

.page-header {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.page-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.page-brand img {
  width: 90%;
  height: 90px;
  object-fit: contain;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #4b5770;
  font-size: 15px;
  font-weight: 700;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.page-nav a:hover,
.page-nav a[aria-current="page"] {
  color: var(--blue);
}

/* La hoja de Material Symbols se carga después: se sube la especificidad */
.page-nav .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

/* Submenú */

.page-nav .dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
}

.page-nav .dropdown-arrow {
  margin-left: -4px;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.page-nav .dropdown-toggle:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.page-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 1001;
  display: none;
  flex-direction: column;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(7, 21, 54, 0.16);
}

/* Puente invisible para que el menú no se cierre al bajar el cursor */
.page-nav .dropdown-menu::before {
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
  content: "";
}

.page-nav .dropdown-toggle:hover + .dropdown-menu,
.page-nav .dropdown-toggle:focus-visible + .dropdown-menu,
.page-nav .dropdown-menu:hover,
.page-nav .dropdown-menu:focus-within {
  display: flex;
}

.page-nav .dropdown-menu a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.page-nav .dropdown-menu a:hover {
  background: #eef3ff;
  color: var(--blue);
}

.page-nav .page-nav-cta {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(49, 108, 245, 0.3);
  color: #fff;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.page-nav .page-nav-cta:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================
   PORTADA
   ========================================================== */

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 780px);
  padding-top: 84px;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  color: #fff;
  isolation: isolate;
}

/* Capa oscura + brillo azul */
.page-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(
      circle at 82% 30%,
      rgba(49, 108, 245, 0.35),
      transparent 45%
    ),
    linear-gradient(
      90deg,
      rgba(7, 21, 54, 0.97) 0%,
      rgba(7, 21, 54, 0.86) 50%,
      rgba(7, 21, 54, 0.4) 100%
    );
}

.page-hero-content {
  padding-block: 72px 96px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.page-eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentcolor;
  content: "";
}

.page-hero .page-eyebrow {
  color: #a9c2ff;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 24px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
}

/* Acento editorial en cursiva (Playfair Display ya está cargada en el HTML) */
.page-hero h1 span,
.page-section-heading h2 span {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.page-hero h1 span {
  color: var(--blue-soft);
}

.page-hero p {
  max-width: 640px;
  margin: 0;
  color: #d4ddf1;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.8;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* ==========================================================
   BOTONES
   ========================================================== */

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

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

.page-btn-primary {
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(49, 108, 245, 0.32);
  color: #fff;
}

.page-btn-primary::after {
  margin-left: 10px;
  content: "→";
  transition: transform 0.2s ease;
}

.page-btn-primary:hover {
  background: var(--blue-dark);
}

.page-btn-primary:hover::after {
  transform: translateX(4px);
}

.page-btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.page-btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ==========================================================
   SECCIONES
   ========================================================== */

.page-section {
  padding-block: clamp(56px, 8vw, 100px);
}

/* Fondo claro con retícula muy sutil */
.page-section-light {
  background-color: var(--light);
  background-image: var(--lattice-soft);
  background-size: 72px 72px;
}

.page-section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.page-section-heading h2,
.page-content h2 {
  margin: 6px 0 18px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.1px;
}

.page-section-heading h2 span {
  color: var(--blue);
}

.page-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.page-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.page-content p {
  color: var(--muted);
  font-size: 16px;
}

.page-content .page-btn {
  margin-top: 10px;
}

.page-feature-image {
  width: 100%;
  min-height: 340px;
  max-height: 500px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 26px;
  /* Bloque desplazado detrás de la foto */
  box-shadow:
    -16px 16px 0 -2px #e6eeff,
    var(--shadow);
}

/* ---------- Listas con check ---------- */

.page-content ul {
  --check-bg: rgba(49, 108, 245, 0.12);
  --check-fg: var(--blue);
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.page-content li {
  position: relative;
  margin-block: 14px;
  padding-left: 40px;
  color: #3b4663;
  font-size: 15px;
  line-height: 1.65;
}

.page-content li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--check-bg);
  content: "";
}

.page-content li::after {
  position: absolute;
  top: 6px;
  left: 10px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--check-fg);
  border-bottom: 2px solid var(--check-fg);
  content: "";
  transform: rotate(45deg);
}

/* ---------- Sección de seguridad (la que sigue a la franja clara) ---------- */

.page-section-light + .page-section .page-two-column .page-feature-image {
  order: -1;
  box-shadow:
    16px 16px 0 -2px #fff0cc,
    var(--shadow);
}

.page-section-light + .page-section .page-eyebrow {
  color: #b87900;
}

/* Barra de precaución en vez de la línea simple */
.page-section-light + .page-section .page-eyebrow::before {
  width: 36px;
  height: 9px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 6px,
    var(--ink) 6px 12px
  );
}

.page-section-light + .page-section .page-content ul {
  --check-bg: rgba(255, 184, 28, 0.25);
  --check-fg: #8a5a00;
}

/* Aviso final de la sección de seguridad */
.page-section-light + .page-section .page-content p:last-child {
  margin-bottom: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: #fff8e6;
  color: #5a4a1d;
  font-size: 14px;
}

/* ==========================================================
   TARJETAS
   ========================================================== */

.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.page-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 21, 54, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Línea de acento que se dibuja al pasar el cursor */
.page-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.page-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.page-card:hover::after {
  transform: scaleX(1);
}

.page-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #e6e9ef;
  transition: transform 0.6s ease;
}

.page-card:hover img {
  transform: scale(1.06);
}

.page-card-content {
  position: relative;
  padding: 26px 26px 30px;
  background: #fff;
}

.page-number {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(49, 108, 245, 0.1);
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.page-card h3 {
  margin: 0 0 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.page-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ==========================================================
   LLAMADO A LA ACCIÓN
   ========================================================== */

.page-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 8%, rgba(49, 108, 245, 0.6), transparent 50%),
    linear-gradient(120deg, #0b1d4a, var(--navy) 65%);
  box-shadow: 0 30px 60px rgba(7, 21, 54, 0.25);
  color: #fff;
  isolation: isolate;
}

.page-cta::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: var(--lattice);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}

.page-cta::after {
  position: absolute;
  z-index: -1;
  right: -90px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(255, 255, 255, 0.03),
    0 0 0 80px rgba(255, 255, 255, 0.02);
  content: "";
}

.page-cta .page-eyebrow {
  color: var(--amber);
}

.page-cta h2 {
  max-width: 680px;
  margin: 0 0 16px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.page-cta p:not(.page-eyebrow) {
  max-width: 600px;
  margin: 0 0 26px;
  color: #d2dcf3;
  font-size: 17px;
}

/* Botón blanco para que contraste sobre el fondo azul */
.page-cta .page-btn-primary {
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  color: var(--navy);
}

.page-cta .page-btn-primary:hover {
  background: var(--amber);
}

/* ==========================================================
   FOOTER
   ========================================================== */

.page-footer {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 85% 0%, rgb(49 108 245 / 18%), transparent 45%),
    var(--navy);
  color: var(--white);
  isolation: isolate;
}

.page-footer::before {
  position: absolute;
  z-index: -1;
  top: -180px;
  right: -100px;
  width: 420px;
  height: 420px;
  border: 1px solid rgb(49 108 245 / 16%);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgb(49 108 245 / 4%),
    0 0 0 90px rgb(49 108 245 / 3%);
  content: "";
  pointer-events: none;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 56px;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.footer-kicker {
  margin: 0 0 10px;
  color: #a9c2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 620px;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.footer-cta .page-btn {
  flex-shrink: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr minmax(318px, 1.1fr);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
  padding-block: 60px;
}

.footer-column h3 {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-column h3::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  content: "";
}

.footer-brand {
  max-width: 380px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-logo .footer-logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4d83ff, var(--blue-dark));
  box-shadow: 0 10px 24px rgb(49 108 245 / 35%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.footer-logo-text {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.footer-logo-text small {
  margin-left: 2px;
  color: #a9c2ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-description {
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 13px;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  gap: 4px;
}

.footer-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding-block: 6px;
  color: rgb(255 255 255 / 70%);
  font-size: 13px;
  line-height: 1.5;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-nav a::before {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  content: "";
  transform: rotate(45deg);
  transition: border-color 180ms ease;
}

.footer-nav a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-nav a:hover::before {
  border-color: #91adff;
}

.footer-contact {
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgb(255 255 255 / 8%),
    rgb(255 255 255 / 3%)
  );
  box-shadow: 0 18px 40px rgb(0 0 0 / 18%);
}

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

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-contact-list li + li {
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.footer-contact-list .footer-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(145 173 255 / 28%);
  border-radius: 12px;
  background: rgb(49 108 245 / 20%);
  color: #a9c2ff;
  font-size: 21px;
  line-height: 1;
}

.footer-label {
  display: block;
  margin-bottom: 2px;
  color: rgb(255 255 255 / 52%);
  font-size: 11px;
  line-height: 1.5;
}

.footer-contact-list a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 180ms ease;
}

.footer-contact-list a:hover {
  color: #91adff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  min-height: 75px;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.footer-bottom p {
  margin: 0;
  color: rgb(255 255 255 / 54%);
  font-size: 11px;
  line-height: 1.8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-legal a {
  color: rgb(255 255 255 / 70%);
  font-size: 11px;
  transition: color 180ms ease;
}

.footer-legal a:hover {
  color: #91adff;
}

/* ==========================================================
   WHATSAPP FLOTANTE
   ========================================================== */

.page-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #20bf62;
  box-shadow: 0 10px 28px rgba(10, 90, 47, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transition: transform 0.2s ease;
}

/* Anillo suave que invita a hacer clic */
.page-whatsapp::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #20bf62;
  content: "";
  animation: page-pulse 2.6s ease-out infinite;
}

.page-whatsapp:hover {
  transform: translateY(-3px);
}

.page-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentcolor;
}

@keyframes page-pulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }

  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

/* ==========================================================
   ANIMACIONES
   ========================================================== */

.page-reveal {
  animation: page-appear 0.7s ease both;
}

@keyframes page-appear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aparición al hacer scroll (solo en navegadores compatibles) */
@supports (animation-timeline: view()) {
  .page-card,
  .page-feature-image {
    animation: page-rise linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }

  @keyframes page-rise {
    from {
      opacity: 0;
      transform: translateY(32px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }
}

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

  .page-card,
  .page-feature-image,
  .page-whatsapp::before {
    animation: none;
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* El botón flotante de WhatsApp queda debajo de los enlaces legales */
@media (max-width: 1320px) {
  .page-footer {
    padding-bottom: 72px;
  }
}

@media (max-width: 1024px) {
  .footer-cta {
    padding-block: 44px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 34px;
    padding-block: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: 550px;
  }

  .footer-contact {
    grid-column: 1 / -1;
    max-width: 440px;
  }
}

@media (max-width: 900px) {
  .page-header-inner {
    min-height: 76px;
  }

  .page-nav {
    gap: 14px;
    font-size: 13px;
  }

  .page-nav .dropdown {
    gap: 14px;
  }

  .page-two-column {
    grid-template-columns: 1fr;
  }

  /* En una sola columna la imagen vuelve a ir después del texto */
  .page-section-light + .page-section .page-two-column .page-feature-image {
    order: 0;
  }

  .page-feature-image {
    min-height: 260px;
  }
}

@media (max-width: 620px) {
  .page-wrap {
    width: min(100% - 32px, 1120px);
  }

  .page-header-inner {
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding-block: 8px 12px;
  }

  .page-brand img {
    height: 48px;
  }

  .page-nav {
    justify-content: center;
    gap: 9px 14px;
    font-size: 12px;
  }

  .page-nav .material-symbols-outlined {
    font-size: 18px;
  }

  .page-nav .dropdown-menu {
    left: 50%;
    min-width: 230px;
    transform: translateX(-50%);
  }

  .page-nav .page-nav-cta {
    padding: 8px 14px;
  }

  .page-hero {
    min-height: 560px;
    padding-top: 120px;
  }

  .page-hero-content {
    padding-block: 40px 64px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10.5vw, 48px);
    letter-spacing: -1.4px;
  }

  .page-actions .page-btn {
    flex: 1 1 100%;
  }

  .page-feature-image {
    min-height: 220px;
    border-radius: 20px;
    box-shadow:
      -10px 10px 0 -2px #e6eeff,
      var(--shadow);
  }

  .page-section-light + .page-section .page-two-column .page-feature-image {
    box-shadow:
      -10px 10px 0 -2px #fff0cc,
      var(--shadow);
  }

  .page-card img {
    height: 210px;
  }

  .page-cta {
    border-radius: 22px;
  }

  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding-block: 36px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 38px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: auto;
  }

  .footer-contact {
    padding: 22px 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
  }

  .page-whatsapp {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }
}

/* Pantallas muy angostas: permitir que el correo baje de línea */
@media (max-width: 400px) {
  .footer-contact-list a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* ==========================================================
   INGENIERÍA CIVIL — tema "plano de ingeniería"
   Cargar DESPUÉS de paginas.css:
   <link rel="stylesheet" href="../CSS/ingenieria-civil.css" />
   ========================================================== */

/* ---------- Numeración tipo lámina de plano (01, 02, 03…) ---------- */

main {
  counter-reset: sheet;
}

.page-eyebrow {
  counter-increment: sheet;
}

.page-eyebrow::before {
  width: auto;
  height: auto;
  padding: 3px 8px;
  border: 1px solid currentcolor;
  border-radius: 6px;
  background: none;
  content: counter(sheet, decimal-leading-zero);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ---------- Portada: papel milimetrado ---------- */

.page-hero::after {
  background-image:
    linear-gradient(rgb(141 176 255 / 16%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 176 255 / 16%) 1px, transparent 1px),
    linear-gradient(rgb(141 176 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 176 255 / 7%) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 25%, #000 90%);
  mask-image: linear-gradient(100deg, transparent 25%, #000 90%);
}

/* Palabra clave subrayada como con marcador técnico */
.page-hero h1 span,
.page-section-heading h2 span {
  padding-inline: 4px;
  margin-inline: -4px;
  background-image: linear-gradient(
    transparent 78%,
    rgb(141 176 255 / 28%) 78% 94%,
    transparent 94%
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.page-section-heading h2 span {
  background-image: linear-gradient(
    transparent 78%,
    rgb(49 108 245 / 14%) 78% 94%,
    transparent 94%
  );
}

/* ---------- Regla de medir entre la portada y el contenido ---------- */

.page-hero + .page-section {
  position: relative;
}

.page-hero + .page-section::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, #b4c0d9 0 1px, transparent 1px 12px) top /
      100% 8px no-repeat,
    repeating-linear-gradient(90deg, #7f8fb3 0 1.5px, transparent 1.5px 60px)
      top / 100% 18px no-repeat;
  content: "";
  opacity: 0.75;
  pointer-events: none;
}

/* ---------- Fotos: marco de plano en línea discontinua ---------- */

.page-site .page-section .page-two-column .page-feature-image {
  box-shadow: var(--shadow);
  outline: 1.5px dashed rgb(49 108 245 / 40%);
  outline-offset: 14px;
}

/* ---------- Franja clara: hoja de plano azul ---------- */

.page-section-light {
  background-color: #eef3fb;
  background-image:
    linear-gradient(rgb(49 108 245 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(49 108 245 / 9%) 1px, transparent 1px),
    linear-gradient(rgb(49 108 245 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(49 108 245 / 5%) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
}

/* ---------- Tarjetas: fichas técnicas ---------- */

.page-cards {
  counter-reset: card;
}

.page-card {
  counter-increment: card;
}

.page-card img {
  filter: grayscale(0.35) contrast(1.04);
  transition:
    transform 0.6s ease,
    filter 0.5s ease;
}

.page-card:hover img {
  filter: none;
}

/* Regla de ticks entre la foto y el texto */
.page-card-content {
  overflow: hidden;
}

.page-card-content::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    #c9d2e4 0 1px,
    transparent 1px 10px
  );
  content: "";
}

/* Número grande de fondo */
.page-card-content::after {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgb(49 108 245 / 8%);
  content: counter(card, decimal-leading-zero);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.page-card-content > * {
  position: relative;
  z-index: 1;
}

.page-number {
  border: 1px solid rgb(49 108 245 / 25%);
  background: #fff;
}

/* ---------- Sección "Alcance y responsabilidad": versión azul ---------- */
/* Anula el tema amarillo de precaución de paginas.css */

.page-section-light + .page-section .page-eyebrow {
  color: var(--blue);
}

.page-section-light + .page-section .page-eyebrow::before {
  width: auto;
  height: auto;
  border-radius: 6px;
  background: none;
}

.page-section-light + .page-section .page-content ul {
  --check-bg: rgba(49, 108, 245, 0.12);
  --check-fg: var(--blue);
}

/* Aviso final como nota técnica */
.page-section-light + .page-section .page-content p:last-child {
  border-left-color: var(--blue);
  background: #eff4ff;
  color: #34456b;
}

/* ---------- Llamado a la acción: cuadrícula de plano ---------- */

.page-cta::before {
  background-image:
    linear-gradient(rgb(141 176 255 / 16%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 176 255 / 16%) 1px, transparent 1px),
    linear-gradient(rgb(141 176 255 / 7%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 176 255 / 7%) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
}

.page-cta .page-eyebrow {
  color: #a9c2ff;
}

/* ---------- Responsive ---------- */

@media (max-width: 620px) {
  .page-site .page-section .page-two-column .page-feature-image {
    outline-offset: 9px;
  }

  .page-card-content::after {
    font-size: 48px;
  }

  .page-hero::after {
    background-size:
      96px 96px,
      96px 96px,
      24px 24px,
      24px 24px;
  }
}

/* ==========================================================
   INGENIERÍA CIVIL — NUEVA ESTRUCTURA
   (bloque agregado al final del CSS de la página)
   ========================================================== */

/* ---------- 01 · Portada con cajetín de plano ---------- */

.eng-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: 72px 96px;
}

.eng-hero-text h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.eng-titleblock {
  overflow: hidden;
  border: 1px solid rgb(141 176 255 / 38%);
  border-radius: 14px;
  background: rgb(7 21 54 / 58%);
  box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.eng-titleblock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgb(141 176 255 / 30%);
  background: rgb(49 108 245 / 22%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eng-titleblock-head span:last-child {
  color: #a9c2ff;
}

.eng-titleblock-list {
  margin: 0;
  padding: 0;
}

.eng-titleblock-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid rgb(141 176 255 / 18%);
}

.eng-titleblock-list dt {
  color: #a9c2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eng-titleblock-list dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Mayor especificidad: ".page-hero p" también apunta a este párrafo */
.page-hero .eng-titleblock-foot {
  max-width: none;
  padding: 16px 20px;
  color: #c9d5f0;
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- 02 · Enfoque asimétrico + panorámica ---------- */

.eng-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.eng-split-head h2,
.eng-req-intro h2 {
  margin: 6px 0 28px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -1.1px;
}

.eng-split-body {
  padding-left: clamp(0px, 3vw, 36px);
  border-left: 1px dashed rgb(49 108 245 / 38%);
}

.eng-split-body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.eng-split-body .eng-lead {
  color: var(--ink);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500;
  line-height: 1.65;
}

.eng-panorama {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: 0;
}

.eng-panorama img {
  width: 100%;
  min-height: 240px;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
  outline: 1.5px dashed rgb(49 108 245 / 40%);
  outline-offset: 12px;
}

.eng-panorama figcaption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgb(7 21 54 / 82%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eng-panorama figcaption::before {
  color: var(--blue-soft);
  content: "FIG. 01";
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* ---------- 03 · Filas de proceso ---------- */

.eng-steps {
  margin: 0;
  padding: 0;
  border-bottom: 1px dashed rgb(49 108 245 / 40%);
  list-style: none;
}

.eng-step {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  padding: 34px 24px;
  border-top: 1px dashed rgb(49 108 245 / 40%);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.eng-step:hover {
  background: rgb(255 255 255 / 85%);
  box-shadow: 0 18px 40px rgb(7 21 54 / 8%);
}

.eng-step-index {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Números "calados": solo contorno, como trazo de plano */
.eng-step-index span {
  color: rgb(49 108 245 / 8%);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--blue);
}

.eng-step-index small {
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eng-step-body h3 {
  margin: 0 0 10px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(21px, 2.4vw, 26px);
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.eng-step-body p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.eng-step-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  filter: grayscale(0.35) contrast(1.04);
  outline: 1px solid rgb(49 108 245 / 25%);
  outline-offset: 6px;
  transition: filter 0.5s ease;
}

.eng-step:hover .eng-step-img {
  filter: none;
}

/* ---------- 04 · Lista de verificación ---------- */

.eng-req {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

.eng-req-intro h2 {
  margin-bottom: 18px;
}

.eng-req-intro p:not(.page-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.eng-req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.eng-req-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(7 21 54 / 5%);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.eng-req-tile:hover {
  border-color: rgb(49 108 245 / 45%);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

/* La hoja de Material Symbols se carga después: se sube la especificidad */
.eng-req-tile .eng-req-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(49 108 245 / 25%);
  border-radius: 12px;
  background: rgb(49 108 245 / 10%);
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
}

.eng-req-tile p {
  margin: 0;
  color: #3b4663;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

/* Casilla de verificación en la esquina */
.eng-req-tile::after {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgb(49 108 245 / 45%);
  border-radius: 5px;
  background: #fff;
  content: "";
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.eng-req-tile::before {
  position: absolute;
  z-index: 1;
  top: 25px;
  right: 29px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  content: "";
  transform: rotate(45deg);
  transition: border-color 0.25s ease;
}

.eng-req-tile:hover::after {
  border-color: var(--blue);
  background: var(--blue);
}

.eng-req-tile:hover::before {
  border-color: #fff;
}

/* Nota técnica */
.eng-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: clamp(32px, 5vw, 56px);
  padding: 22px 26px;
  border: 1px solid rgb(49 108 245 / 22%);
  border-left: 4px solid var(--blue);
  border-radius: 0 16px 16px 0;
  background: #eff4ff;
}

.eng-note-tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid currentcolor;
  border-radius: 6px;
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eng-note p {
  margin: 0;
  color: #34456b;
  font-size: 14px;
  line-height: 1.75;
}

/* ---------- 04 · Obras y experiencia (franja azul oscuro) ---------- */

.page-section.eng-works {
  position: relative;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 88% 0%, rgb(49 108 245 / 28%), transparent 48%),
    linear-gradient(rgb(141 176 255 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 176 255 / 10%) 1px, transparent 1px),
    linear-gradient(rgb(141 176 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(141 176 255 / 5%) 1px, transparent 1px);
  background-size:
    auto,
    120px 120px,
    120px 120px,
    24px 24px,
    24px 24px;
  color: #fff;
}

.page-section.eng-works .page-section-heading .page-eyebrow {
  color: #a9c2ff;
}

.eng-works .page-section-heading h2 span {
  color: var(--blue-soft);
  background-image: linear-gradient(
    transparent 78%,
    rgb(141 176 255 / 28%) 78% 94%,
    transparent 94%
  );
}

.eng-works .page-section-heading > p {
  color: #c9d5f0;
}

.eng-works-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(300px, 1fr));
  gap: 20px;
}

.eng-work {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #0b1d4a;
  box-shadow: 0 24px 50px rgb(0 0 0 / 30%);
  outline: 1px solid rgb(141 176 255 / 30%);
  outline-offset: -1px;
  isolation: isolate;
}

.eng-work-lead {
  grid-row: 1 / -1;
}

.eng-work img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.04);
  transition:
    transform 0.6s ease,
    filter 0.5s ease;
}

.eng-work:hover img {
  filter: none;
  transform: scale(1.05);
}

/* Degradado para que el texto se lea sobre la foto */
.eng-work::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    180deg,
    rgb(7 21 54 / 0%) 38%,
    rgb(7 21 54 / 92%) 100%
  );
}

.eng-work figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.eng-work-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgb(141 176 255 / 45%);
  border-radius: 6px;
  background: rgb(7 21 54 / 70%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #a9c2ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eng-work h3 {
  margin: 0 0 6px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.eng-work p {
  max-width: 440px;
  margin: 0;
  color: #d4ddf1;
  font-size: 14px;
  line-height: 1.6;
}

.eng-works-note {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
  line-height: 1.7;
}

@supports (animation-timeline: view()) {
  .eng-work {
    animation: page-rise linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eng-work {
    animation: none;
  }

  .eng-work img {
    transition: none;
  }
}

@media (max-width: 900px) {
  .eng-works-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .eng-work {
    min-height: 300px;
  }

  .eng-work-lead {
    grid-row: auto;
    min-height: 380px;
  }
}

@media (max-width: 620px) {
  .eng-work,
  .eng-work-lead {
    min-height: 280px;
  }

  .eng-work figcaption {
    padding: 18px;
  }
}

/* ---------- Llamado final dentro del footer ---------- */

.footer-cta-copy {
  max-width: 560px;
  margin: 12px 0 0;
  color: rgb(255 255 255 / 68%);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- Aparición al hacer scroll ---------- */

@supports (animation-timeline: view()) {
  .eng-step,
  .eng-req-tile,
  .eng-panorama img {
    animation: page-rise linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eng-step,
  .eng-req-tile,
  .eng-panorama img {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .eng-step {
    grid-template-columns: 130px minmax(0, 1fr) minmax(180px, 240px);
  }
}

@media (max-width: 900px) {
  .eng-hero-grid {
    grid-template-columns: 1fr;
    padding-block: 56px 72px;
  }

  .eng-split,
  .eng-req {
    grid-template-columns: 1fr;
  }

  .eng-split-body {
    padding-left: 0;
    border-left: 0;
  }

  .eng-step {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 16px;
  }

  .eng-step-index {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }

  .eng-step-index span {
    font-size: 52px;
  }

  .eng-step-img {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .eng-hero-grid {
    padding-block: 40px 64px;
  }

  .eng-hero-text h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .eng-titleblock-list > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .eng-panorama img {
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    outline-offset: 8px;
  }

  .eng-panorama figcaption {
    bottom: 12px;
    left: 12px;
    font-size: 11px;
  }

  .eng-req-grid {
    grid-template-columns: 1fr;
  }

  .eng-note {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================
   MENÚ HAMBURGUESA (móvil)
   Pegar AL FINAL de tu CSS (debe ir después de las reglas del
   header y de los @media anteriores, para que las sobrescriba).
   ========================================================== */

/* El botón no existe en escritorio */
.page-toggle {
  display: none;
}

@media (max-width: 900px) {
  /* Cabecera: logo a la izquierda, botón a la derecha (anula la
     versión en columna de ≤620px) */
  .page-header-inner {
    flex-direction: row;
    gap: 12px;
    min-height: 72px;
    padding-block: 0;
  }

  .page-brand img {
    width: auto;
    max-width: 170px;
    height: 52px;
  }

  /* ---------- Botón ---------- */
  .page-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgb(7 21 54 / 8%);
    color: var(--ink);
    cursor: pointer;
    transition:
      background 0.2s ease,
      border-color 0.2s ease;
  }

  .page-toggle:hover {
    border-color: var(--blue);
  }

  /* Las 3 barras: la del medio es el propio span; arriba y abajo, pseudo-elementos */
  .page-toggle-bars,
  .page-toggle-bars::before,
  .page-toggle-bars::after {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: currentcolor;
    content: "";
    transition:
      transform 0.3s ease,
      opacity 0.2s ease,
      top 0.3s ease;
  }

  .page-toggle-bars {
    top: 50%;
    margin: -1.25px 0 0 -11px;
  }

  .page-toggle-bars::before {
    top: -7px;
    left: 0;
  }

  .page-toggle-bars::after {
    top: 7px;
    left: 0;
  }

  /* Estado abierto: se convierte en "X" */
  .page-header.is-menu-open .page-toggle {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }

  .page-header.is-menu-open .page-toggle-bars {
    background: transparent;
  }

  .page-header.is-menu-open .page-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  .page-header.is-menu-open .page-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* ---------- Panel ---------- */
  .page-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - 72px);
    padding: 12px 16px 20px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 24px 40px rgb(7 21 54 / 16%);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0s linear 0.25s;
  }

  .page-header.is-menu-open .page-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .page-nav > a,
  .page-nav .dropdown > a {
    width: 100%;
    gap: 12px;
    padding: 14px 14px;
    border-radius: 12px;
  }

  .page-nav > a:hover,
  .page-nav .dropdown > a:hover {
    background: #eef3ff;
  }

  .page-nav .material-symbols-outlined {
    font-size: 22px;
  }

  /* ---------- Submenú como acordeón ---------- */
  .page-nav .dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .page-nav .dropdown-toggle {
    justify-content: flex-start;
  }

  /* Flecha al extremo derecho */
  .page-nav .dropdown-arrow {
    margin-left: auto;
    font-size: 22px;
  }

  /* Anula el efecto hover de escritorio (en táctil se queda "pegado") */
  .page-nav .dropdown-toggle:hover .dropdown-arrow {
    transform: none;
  }

  .page-nav .dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Submenú: dentro del flujo, sin caja flotante */
  .page-header .page-nav .dropdown > .dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    transform: none; /* anula el translateX(-50%) de ≤620px */
    margin: 0 0 4px 22px;
    padding: 4px 0 4px 14px;
    border: 0;
    border-left: 2px solid rgb(49 108 245 / 30%);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-nav .dropdown-menu::before {
    display: none;
  }

  /* Cerrado por defecto (gana al :hover de escritorio); solo abre con .is-open */
  .page-header .page-nav .dropdown:not(.is-open) > .dropdown-menu {
    display: none;
  }

  .page-header .page-nav .dropdown.is-open > .dropdown-menu {
    display: flex;
  }

  .page-nav .dropdown-menu a {
    padding: 12px 12px;
    font-size: 15px;
    white-space: normal;
  }

  /* Botón Cotizar: ancho completo al final del panel */
  .page-nav .page-nav-cta {
    justify-content: center;
    margin-top: 10px;
    padding: 14px 20px;
  }

  .page-nav .page-nav-cta:hover {
    transform: none;
  }

  /* Evita scroll de fondo con el menú abierto */
  body.menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-nav,
  .page-toggle-bars,
  .page-toggle-bars::before,
  .page-toggle-bars::after {
    transition: none;
  }
}
