/* =========================================================
   Grupo Majime â€” Identidad visual oficial
   Paleta exclusiva del logotipo Â· Premium industrial
   ========================================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Paleta oficial (Ãºnica permitida en UI) */
  --blue: #0B2F73;           /* Azul Corporativo */
  --blue-dark: #08255B;      /* Azul Oscuro */
  --burgundy: #6E0B12;       /* Vino / Burdeos */
  --silver: #C9C9C9;         /* Gris Plata */
  --gray-light: #F5F6F8;     /* Gris Claro */
  --white: #FFFFFF;
  --black: #1A1A1A;

  /* Alias semÃ¡nticos */
  --navy: var(--blue);
  --navy-deep: var(--blue-dark);
  --burgundy-soft: #6E0B12;
  --text: var(--black);
  --text-muted: #4A4A4A;
  --border: #DCDCDC;
  --surface: var(--white);
  --surface-alt: var(--gray-light);

  /* Legacy aliases (compatibilidad interna) */
  --gray-50: var(--gray-light);
  --gray-100: #ECECEC;
  --gray-200: var(--border);
  --gray-400: var(--silver);
  --gray-600: var(--text-muted);
  --gray-800: var(--black);
  --orange: var(--burgundy);
  --orange-hover: var(--burgundy);
  --blue-soft: var(--blue);

  /* Effects â€” premium, discreto */
  --shadow-sm: 0 2px 10px rgba(8, 37, 91, 0.05);
  --shadow-md: 0 8px 28px rgba(8, 37, 91, 0.08);
  --shadow-lg: 0 18px 48px rgba(8, 37, 91, 0.12);
  --radius: 12px;
  --radius-sm: 12px;
  --radius-lg: 12px;
  --header-h: 84px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --gradient-hero: linear-gradient(
    90deg,
    rgba(8, 37, 91, 0.92) 0%,
    rgba(11, 47, 115, 0.82) 48%,
    rgba(11, 47, 115, 0.55) 100%
  );
  --gradient-cta: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  --nav-transition: 0.4s ease;
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Evita que iOS agrande el texto al girar el dispositivo */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  /* 16px evita el zoom automático de iOS al enfocar un campo */
  font-size: 1rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Typography helpers ---------- */
.section {
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
}

.section--alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header--light .section-title {
  color: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.85rem;
}

.section-label--light {
  color: var(--silver);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 0.95rem 1.85rem;
  font-size: 0.98rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(11, 47, 115, 0.22);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--accent {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(110, 11, 18, 0.25);
}

.btn--accent:hover {
  background: var(--burgundy-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(110, 11, 18, 0.3);
}

.btn--outline {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 201, 201, 0.45);
  box-shadow: var(--shadow-md);
}

/* ---------- Intro Overlay ---------- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #061D47;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #061D47;
  border: 0;
  border-radius: 0;
  display: block;
}

.skip-intro {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background var(--transition);
  z-index: 2;
}

.skip-intro:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.intro-active {
  overflow: hidden;
}

/* ---------- Header / Navbar ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition:
    background var(--nav-transition),
    box-shadow var(--nav-transition),
    backdrop-filter var(--nav-transition),
    height var(--nav-transition);
}

.header.is-scrolled {
  height: 72px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(8, 37, 91, 0.1);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__logo {
  height: 56px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 0.3rem 0.55rem;
  box-shadow: 0 2px 12px rgba(8, 37, 91, 0.12);
  transition: height var(--nav-transition), transform var(--nav-transition), box-shadow var(--nav-transition);
}

.header.is-scrolled .navbar__logo {
  height: 44px;
}

.navbar__brand:hover .navbar__logo {
  transform: translateY(-1px);
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
}

.navbar__link {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.35rem 0;
  transition: color var(--nav-transition);
}

.header.is-scrolled .navbar__link {
  color: var(--blue);
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width var(--transition);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--white);
}

.header.is-scrolled .navbar__link:hover,
.header.is-scrolled .navbar__link.active {
  color: var(--blue-dark);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 100%;
}

.navbar__cta {
  margin-left: 0.35rem;
}

.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--nav-transition);
}

.header.is-scrolled .navbar__toggle {
  background: rgba(11, 47, 115, 0.08);
}

.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--nav-transition);
}

.header.is-scrolled .navbar__toggle-bar {
  background: var(--blue-dark);
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero (Fortune 500 layout) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  padding-bottom: 3.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero__image {
  width: 100%;
  height: 115%;
  object-fit: cover;
  transform: translateY(0) scale(1.05);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  padding-top: calc(var(--header-h) + 2.25rem);
  padding-bottom: 4.5rem;
}

.hero__copy {
  max-width: 560px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.35rem;
}

.hero__eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--burgundy);
  flex-shrink: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
  color: var(--white);
}

.hero__subtitle {
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__subtitle strong {
  font-weight: 600;
  color: var(--white);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.hero__trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 100%;
}

.hero__trust-card i {
  color: var(--silver);
  font-size: 1.05rem;
}

.hero__trust-card span {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.hero__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.hero__pillars li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(8, 37, 91, 0.35);
  border: 1px solid rgba(201, 201, 201, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
}

.hero__pillars i {
  color: var(--burgundy);
  font-size: 0.95rem;
}

.hero__collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(70px, 1fr));
  gap: 0.75rem;
  min-height: 480px;
  height: min(560px, 68vh);
}

.hero__tile {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(8, 37, 91, 0.28);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.55s ease, box-shadow 0.55s ease;
}

.site-ready .hero__tile {
  animation: tileIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero__tile:hover {
  box-shadow: 0 16px 40px rgba(8, 37, 91, 0.35);
}

.hero__tile:hover img {
  transform: scale(1.08);
}

.hero__tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(transparent, rgba(8, 37, 91, 0.85));
}

.hero__tile--a { grid-column: 1 / 3; grid-row: 1 / 3; animation-delay: 0.15s; }
.hero__tile--b { grid-column: 3 / 5; grid-row: 1 / 2; animation-delay: 0.25s; }
.hero__tile--c { grid-column: 3 / 4; grid-row: 2 / 4; animation-delay: 0.35s; }
.hero__tile--d { grid-column: 4 / 5; grid-row: 2 / 3; animation-delay: 0.45s; }
.hero__tile--e { grid-column: 1 / 2; grid-row: 3 / 5; animation-delay: 0.55s; }
.hero__tile--f { grid-column: 2 / 4; grid-row: 4 / 5; animation-delay: 0.65s; }
.hero__tile--g { grid-column: 4 / 5; grid-row: 3 / 5; animation-delay: 0.75s; }
.hero__tile--h { grid-column: 2 / 3; grid-row: 3 / 4; animation-delay: 0.85s; }

@keyframes tileIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-anim { opacity: 0; }

.site-ready .hero-anim[data-anim="fade-up"] {
  animation: fadeUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-ready .hero-anim[data-anim="slide-right"] {
  animation: slideRight 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-ready .hero-anim[data-delay="1"] { animation-delay: 0.12s; }
.site-ready .hero-anim[data-delay="2"] { animation-delay: 0.24s; }
.site-ready .hero-anim[data-delay="3"] { animation-delay: 0.36s; }
.site-ready .hero-anim[data-delay="4"] { animation-delay: 0.48s; }
.site-ready .hero-anim[data-delay="5"] { animation-delay: 0.6s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-mouse span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--white);
  animation: mouseWheel 1.8s ease-in-out infinite;
}

@keyframes mouseWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Hero strip stats ---------- */
.hero-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 -8px 30px rgba(8, 37, 91, 0.06);
}

.hero-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.hero-strip__card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: background var(--transition);
}

.hero-strip__card:hover {
  background: var(--gray-light);
}

.hero-strip__icon {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(110, 11, 18, 0.08);
  color: var(--burgundy);
  font-size: 1.15rem;
}

.hero-strip__number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.1;
}

.hero-strip__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero-strip__label strong {
  color: var(--blue);
  font-weight: 600;
}


/* ---------- History ---------- */
.history__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.history__media {
  position: relative;
}

.history__logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 440px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--gray-light) 0%, #FFFFFF 45%, var(--gray-light) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Reserva espacio visual para la tarjeta 2020 y centra el logo arriba de ella */
  padding: 2.5rem 1.5rem 6.5rem;
  box-sizing: border-box;
}

.history__pulse {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(260px, 58%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(11, 47, 115, 0.14);
  background: radial-gradient(circle, rgba(11, 47, 115, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: historyPulse 3.8s ease-out infinite;
  pointer-events: none;
}

.history__pulse--2 {
  animation-delay: 1.25s;
  width: min(340px, 74%);
}

.history__pulse--3 {
  animation-delay: 2.5s;
  width: min(420px, 90%);
}

.history__logo {
  position: relative;
  z-index: 1;
  width: min(360px, 88%);
  height: auto;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 10px 28px rgba(8, 37, 91, 0.12);
  animation: historyLogoMotion 3.6s ease-in-out infinite;
  margin: 0 auto;
  display: block;
}

.history__image {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}

.history__float {
  position: absolute;
  bottom: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 2;
}

@keyframes historyLogoMotion {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 28px rgba(8, 37, 91, 0.12);
  }
  50% {
    transform: translateY(-12px) scale(1.035);
    box-shadow: 0 18px 40px rgba(8, 37, 91, 0.18);
  }
}

@keyframes historyPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0.65;
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history__logo,
  .history__pulse {
    animation: none !important;
  }
}

.history__float-year {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}

.history__float-text {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 500;
}

.history__lead {
  font-size: 1.12rem;
  margin: 1.25rem 0 1rem;
  color: var(--gray-800);
}

.history__content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.history__emphasize {
  color: var(--navy-deep) !important;
  font-weight: 600;
  margin-top: 1.25rem !important;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.pill-list li {
  padding: 0.55rem 1.05rem;
  border-radius: 12px;
  background: var(--gray-light);
  border: 1px solid var(--border);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pill-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(110, 11, 18, 0.25);
}

/* ---------- About ---------- */
.about__top {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: 3rem;
}

.about__intro p {
  color: var(--gray-600);
  margin: 0.9rem 0;
}

.about__goal {
  font-weight: 500;
  color: var(--navy-deep) !important;
  border-left: 3px solid var(--burgundy);
  padding-left: 1rem;
  margin: 1.4rem 0 1.75rem !important;
}

.about__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 4;
  transition: transform 0.8s ease;
}

.about__visual:hover img {
  transform: scale(1.05);
}

.about__visual-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(8, 37, 91, 0.92);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

.about__visual-badge i {
  color: var(--silver);
}

.catalog {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.catalog__title {
  color: var(--navy-deep);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.catalog__grid li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--navy-deep);
  font-weight: 500;
  font-size: 0.92rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.catalog__grid li:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 11, 18, 0.28);
  box-shadow: var(--shadow-sm);
}

.catalog__grid i {
  color: var(--burgundy);
  width: 1.1rem;
  text-align: center;
}

/* ---------- Mission / Vision ---------- */
.mission__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--burgundy) 100%);
}

.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.mission-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gray-light);
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.mission-card__title {
  font-size: 1.45rem;
  color: var(--navy-deep);
  margin-bottom: 0.85rem;
}

.mission-card p {
  color: var(--gray-600);
}

/* ---------- Values ---------- */
.values__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.values__grid--10 .value-card {
  padding: 1.5rem 1rem;
}

.values__grid--10 .value-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.values__grid--10 .value-card p {
  display: none;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11, 47, 115, 0.22);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--white);
  background: var(--blue);
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.value-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(8, 37, 91, 0.9);
  color: var(--white);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-card__media img {
  transform: scale(1.07);
}

.service-card__body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card__title {
  font-size: 1.25rem;
  color: var(--navy-deep);
  margin-bottom: 0.55rem;
}

.service-card__body > p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card__list {
  margin-bottom: 1.4rem;
  display: grid;
  gap: 0.4rem;
  flex: 1;
}

.service-card__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--gray-800);
  font-size: 0.92rem;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--burgundy);
}

.service-card__list--dense {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.85rem;
  margin-bottom: 1.4rem;
}

.service-card__list--dense li {
  font-size: 0.86rem;
}

.service-card .btn {
  align-self: flex-start;
}

/* ---------- Why Us ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}

.why__grid--5 .why-card {
  text-align: center;
  padding: 1.6rem 1rem;
}

.why__grid--5 .why-card__icon {
  margin-left: auto;
  margin-right: auto;
}

.why__grid--5 .why-card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
}

.why__grid--5 .why-card p {
  display: none;
}

.why-card {
  padding: 2rem 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(110, 11, 18, 0.08);
  color: var(--burgundy);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}

.why-card h3 {
  color: var(--navy-deep);
  margin-bottom: 0.45rem;
  font-size: 1.1rem;
}

.why-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* ---------- Coverage / Map ---------- */
.coverage__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.coverage__lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin: 1rem 0 0.75rem;
}

.coverage__content p {
  color: var(--gray-600);
}

.coverage__cities {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.coverage__cities li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
  color: var(--navy-deep);
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition);
}

.coverage__cities li:hover {
  transform: translateX(4px);
  border-color: rgba(11, 47, 115, 0.28);
}

.coverage__cities i {
  color: var(--burgundy);
}

.coverage__extra {
  margin-top: 1.25rem;
  font-weight: 500;
  color: var(--navy-deep) !important;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(110, 11, 18, 0.05);
  border: 1px dashed rgba(110, 11, 18, 0.22);
}

.coverage__map {
  background: var(--white);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.coverage__map-frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-light);
  border: 1px solid var(--border);
  min-height: 360px;
  aspect-ratio: 4 / 3;
}

.coverage__map-iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}

.coverage__map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.9rem;
  padding: 0 0.25rem;
}

.coverage__map-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-dark);
}

.coverage__map-legend .pin {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--burgundy);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--burgundy);
  flex-shrink: 0;
}

.coverage__map-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--gradient-cta);
  color: var(--white);
  overflow: hidden;
}

.stats .section-title {
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform var(--transition), background var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
}

.stat-card__icon {
  font-size: 1.5rem;
  color: var(--silver);
  margin-bottom: 0.75rem;
}

.stat-card__number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-card__label {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Testimonials ---------- */
.testimonials__slider {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.testimonials__track {
  position: relative;
  min-height: 320px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.testimonial-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.testimonial-card__stars {
  color: var(--burgundy);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}

.testimonial-card__quote {
  font-size: 1.15rem;
  color: var(--gray-800);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-100);
}

.testimonial-card__author cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy-deep);
  display: block;
}

.testimonial-card__author span {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.testimonials__btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), background var(--transition);
}

.testimonials__btn:hover {
  background: var(--navy-deep);
  transform: scale(1.06);
}

.testimonials__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: width var(--transition), background var(--transition);
}

.testimonials__dot.is-active {
  width: 28px;
  border-radius: 12px;
  background: var(--burgundy);
}

/* ---------- CTA ---------- */
.cta {
  padding-top: 2rem;
  background: var(--gray-50);
}

.cta__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: 12px;
  background: var(--gradient-cta);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.cta__content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta__content p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 47, 115, 0.12);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--burgundy);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.is-success {
  color: var(--blue);
}

.form-status.is-error {
  color: var(--burgundy);
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-info__card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.contact-info__card h3 {
  color: var(--navy-deep);
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
}

.contact-info__list {
  display: grid;
  gap: 1.15rem;
}

.contact-info__list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-info__list i {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(11, 47, 115, 0.08);
  color: var(--navy);
  flex-shrink: 0;
}

.contact-info__list strong {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
}

.contact-info__list a,
.contact-info__list span {
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-info__list a:hover {
  color: var(--blue);
}

.contact__intro {
  max-width: 760px;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
  color: var(--gray-600);
}

.contact-team {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.contact-team h4 {
  color: var(--navy-deep);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.contact-team ul {
  display: grid;
  gap: 0.55rem;
}

.contact-team li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-team i {
  color: var(--navy);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  min-height: 260px;
  background: var(--gray-100);
}

.contact-map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 4.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer__logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 1.15rem;
  background: var(--white);
  border-radius: 12px;
  padding: 0.45rem 0.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.footer__brand p {
  font-size: 0.95rem;
  max-width: 300px;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.65rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background var(--transition), transform var(--transition);
}

.footer__social-link:hover {
  background: var(--burgundy);
  transform: translateY(-2px);
}

.footer__col h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer__col ul {
  display: grid;
  gap: 0.55rem;
}

.footer__col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer__col a:hover {
  color: var(--silver);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.footer__privacy:hover {
  color: var(--silver);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(8, 37, 91, 0.28);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__collage {
    min-height: 380px;
    height: 420px;
    order: -1;
  }

  .hero__copy {
    max-width: none;
  }

  .hero-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .history__grid,
  .about__top,
  .coverage__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .history__image,
  .history__logo-stage {
    aspect-ratio: 16 / 10;
    max-height: 420px;
    width: 100%;
    min-height: 280px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .values__grid,
  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta__banner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(8, 37, 91, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition), background var(--nav-transition), top var(--nav-transition);
    box-shadow: var(--shadow-lg);
    /* El menú se desplaza si no cabe en pantallas pequeñas */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header.is-scrolled .navbar__menu {
    top: 72px;
    max-height: calc(100dvh - 72px);
  }

  .header.is-scrolled .navbar__menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .header.is-scrolled .navbar__menu .navbar__link {
    color: var(--blue);
    border-bottom-color: var(--border);
  }

  .navbar__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar__link {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar__cta {
    margin: 1rem 0 0;
    width: 100%;
    justify-content: center;
  }

  .mission__grid {
    grid-template-columns: 1fr;
  }

  .hero__trust,
  .hero__pillars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 1.5rem, 1180px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 100px);
    height: auto;
    min-height: 0;
  }

  .hero__tile--a,
  .hero__tile--b,
  .hero__tile--c,
  .hero__tile--d,
  .hero__tile--e,
  .hero__tile--f,
  .hero__tile--g,
  .hero__tile--h {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-strip__grid {
    grid-template-columns: 1fr;
  }

  .values__grid,
  .why__grid,
  .stats__grid,
  .footer__grid,
  .form-row,
  .coverage__cities,
  .catalog__grid,
  .service-card__list--dense {
    grid-template-columns: 1fr;
  }

  .skip-intro {
    right: 1rem;
    bottom: 1rem;
  }
}

/* =========================================================
   MÓVILES (hasta 768px)
   Ajustes de altura, jerarquía y áreas táctiles
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  /* Barra compacta al hacer scroll */
  .header.is-scrolled {
    height: 60px;
  }

  .navbar__logo {
    height: 46px;
    max-width: 165px;
  }

  .header.is-scrolled .navbar__logo {
    height: 40px;
  }

  .header.is-scrolled .navbar__menu {
    top: 60px;
    max-height: calc(100dvh - 60px);
  }

  /* El Hero crece según su contenido en lugar de forzar pantalla completa */
  .hero {
    min-height: auto;
    padding-bottom: 2.5rem;
  }

  .hero__grid {
    padding-top: calc(var(--header-h) + 1.75rem);
    padding-bottom: 2.5rem;
    gap: 1.75rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: none;
  }

  .hero__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
  }

  /* Tarjetas de confianza en filas compactas para ahorrar altura */
  .hero__trust-card {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
  }

  .hero__trust-card span {
    font-size: 0.82rem;
  }

  /* Los pilares se acomodan como chips en dos líneas */
  .hero__pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero__pillars li {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  /* En móvil el mensaje va primero y el collage después */
  .hero__collage {
    min-height: 0;
    order: 2;
    grid-template-rows: repeat(4, 92px);
  }

  /* El indicador de scroll estorba en pantallas cortas */
  .hero__scroll {
    display: none;
  }

  .hero-strip {
    padding: 1.25rem 0;
  }

  /* Áreas táctiles cómodas (mínimo recomendado 44px) */
  .btn--lg,
  .btn--sm {
    min-height: 46px;
  }

  .navbar__link {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .footer__social-link {
    width: 46px;
    height: 46px;
  }

  /* Mapas más bajos: sin aspect-ratio, que ensanchaba el marco fuera de pantalla */
  .coverage__map-frame {
    aspect-ratio: auto;
    min-height: 0;
    height: 260px;
  }

  .coverage__map-iframe {
    min-height: 0;
    height: 100%;
  }

  .contact-map iframe {
    height: 240px;
  }

  .contact-map {
    min-height: 0;
  }

  /* Puntos del carrusel y enlaces del footer con área táctil usable */
  .testimonials__dots {
    gap: 0;
  }

  /* El borde transparente amplía el área táctil sin agrandar el punto */
  .testimonials__dot {
    box-sizing: content-box;
    width: 11px;
    height: 11px;
    border: 10px solid transparent;
    background-clip: content-box;
  }

  .footer__col a,
  .contact-info__list a {
    display: inline-block;
    padding: 0.5rem 0;
  }

  /* Dos columnas en las rejillas de tarjetas: la página resultaba
     interminable con una sola columna en móvil */
  .values__grid,
  .why__grid,
  .stats__grid,
  .catalog__grid,
  .coverage__cities {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .value-card,
  .why-card {
    padding: 1.35rem 1rem;
    text-align: center;
  }

  .value-card__icon,
  .why-card__icon {
    width: 46px;
    height: 46px;
    font-size: 1.05rem;
    margin: 0 auto 0.8rem;
  }

  .value-card h3,
  .why-card h3 {
    font-size: 0.98rem;
  }

  .value-card p,
  .why-card p {
    font-size: 0.86rem;
  }

  .stat-card {
    padding: 1.35rem 0.75rem;
  }

  .catalog__grid li,
  .coverage__cities li {
    padding: 0.7rem 0.8rem;
    font-size: 0.86rem;
  }

  /* El testimonio activo define la altura */
  .testimonials__track {
    min-height: 0;
  }

  .testimonial-card__quote {
    font-size: 1rem;
  }

  /* El logo animado no necesita tanta altura */
  /* Sin aspect-ratio: combinado con min-height ensanchaba el marco
     fuera de la pantalla y la tarjeta 2020 tapaba el logo */
  .history__logo-stage {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    height: 340px;
    padding: 1.25rem 1rem 7rem;
  }

  .history__logo {
    width: min(280px, 82%);
    padding: 1rem 1.15rem;
  }

  .history__pulse {
    top: 36%;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Tablets pequeñas: el collage mantiene rejilla 4x4 con altura acotada */
@media (min-width: 641px) and (max-width: 768px) {
  .hero__collage {
    height: 340px;
    grid-template-rows: repeat(4, minmax(70px, 1fr));
  }
}

/* Teléfonos angostos (hasta 400px) */
@media (max-width: 400px) {
  /* Los textos largos de botón pueden pasar a dos líneas */
  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__collage {
    grid-template-rows: repeat(4, 86px);
    gap: 0.5rem;
  }

  .hero__tile figcaption {
    font-size: 0.62rem;
    padding: 0.4rem 0.5rem;
  }

  .navbar__logo {
    max-width: 150px;
  }
}

/* =========================================================
   DISPOSITIVOS TÁCTILES
   ========================================================= */
@media (hover: none) {
  /* Sin retardo de 300 ms ni destello gris al tocar */
  a,
  button,
  .btn {
    -webkit-tap-highlight-color: rgba(11, 47, 115, 0.12);
    touch-action: manipulation;
  }

  /* El :hover se queda "pegado" tras un toque: se anulan los desplazamientos */
  .mission-card:hover,
  .value-card:hover,
  .service-card:hover,
  .why-card:hover,
  .stat-card:hover,
  .catalog__grid li:hover,
  .pill-list li:hover,
  .coverage__cities li:hover {
    transform: none;
  }

  /* Los mapas no capturan el scroll hasta que se tocan a propósito */
  .map-lock {
    position: relative;
  }

  .map-lock iframe {
    pointer-events: none;
  }

  .map-lock.is-unlocked iframe {
    pointer-events: auto;
  }

  .map-lock__hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(transparent 55%, rgba(8, 37, 91, 0.75));
    z-index: 2;
  }
}

/* Video de intro en pantallas verticales: se muestra completo, sin recortes */
@media (orientation: portrait) and (max-width: 900px) {
  .intro-video {
    object-fit: contain;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero-anim,
  .hero__tile {
    opacity: 1 !important;
    transform: none !important;
  }
}