/* ==========================================================================
   CargoFrío — sitio estático
   Refinamiento de la web original, no un rediseño. La paleta, el radio de
   80px del hero y el ritmo de 100px vienen de los bloques Astra del sitio
   en vivo (ver sites/cargofrio/source/raw/uag-css-1399.css).
   Página clara: blanco, secciones alternas en mist, titulares navy.
   Azul sólo en botones, enlaces y acentos finos.
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */

:root {
  --blue: #007cfb;
  --blue-dark: #006edc;
  --navy: #031246;
  --slate: #3a4268;
  --mist: #f3f4f8;
  --white: #ffffff;
  --line: #e2e8f0;
  --muted: #94a3b8;
  --star: #ffb800;
  --danger: #b42318;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 100px);
  --radius: 10px;
  --radius-lg: 16px;

  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--slate);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

p + p,
p + ul,
p + ol,
p + figure,
ul + p,
figure + p {
  margin-top: 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 700;
  color: var(--navy);
}

::selection {
  background: rgba(0, 124, 251, 0.18);
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--blue-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* 3. Utilidades ----------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus-visible {
  top: 16px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* 4. Encabezado ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-height: var(--header-h);
}

.brand {
  display: block;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand__img {
  width: clamp(180px, 17vw, 222px);
  height: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--muted);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 20px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.4vw, 32px);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
}

.nav__link {
  position: relative;
  display: block;
  padding-block: 8px;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__link:hover {
  color: var(--navy);
}

.nav__link[aria-current="page"] {
  color: var(--navy);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

/* Contacto directo del encabezado: dos divulgaciones apiladas ------------- */

.nav__contacts {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Los dos botones del header son los del sitio original: links directos a
   WhatsApp con mensaje precargado, tamano pequeno (Astra sm). */
.btn--header {
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--blue);
  font-size: 0.875rem;
  white-space: nowrap;
}

.btn--header:hover,
.btn--header:focus-visible {
  background: var(--blue-dark);
  color: var(--white);
}

.contact-menu {
  position: static;
}

.contact-menu__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.contact-menu__summary::-webkit-details-marker {
  display: none;
}

.contact-menu__summary::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease), margin-top 0.2s var(--ease);
}

.contact-menu__summary:hover {
  border-color: var(--muted);
  background: var(--mist);
}

.contact-menu[open] .contact-menu__summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

.contact-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  min-width: 248px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 44px -24px rgba(3, 18, 70, 0.4);
}

.contact-menu__link {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--slate);
  font-size: 0.875rem;
  text-decoration: none;
}

.contact-menu__link:hover,
.contact-menu__link:focus-visible {
  background: var(--mist);
  color: var(--navy);
}

/* 5. Botones y etiquetas -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px clamp(32px, 6.5vw, 100px);
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn:hover {
  background: var(--navy);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--mist);
  border-color: var(--navy);
  color: var(--navy);
}

.on-dark .btn:hover {
  background: var(--white);
  color: var(--navy);
}

.on-dark .btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.on-dark .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.on-dark .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.lead {
  color: var(--slate);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.65;
}

.section-sub {
  margin-top: 14px;
  color: var(--slate);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.6;
}

.actions {
  margin-top: clamp(24px, 3vw, 32px);
}

/* 6. Secciones y rejillas ------------------------------------------------- */

.section {
  padding-block: var(--section-y);
}

.section--mist {
  background: var(--mist);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  max-width: none;
}

.section-head--row > div {
  max-width: 760px;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--text {
  align-items: start;
}

.split--proposal {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.split__media {
  margin: 0;
  max-width: 440px;
}

.split__media--wide {
  max-width: none;
}

.split__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.split__body > * + * {
  margin-top: 18px;
}

.on-dark {
  color: rgba(255, 255, 255, 0.82);
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}

.on-dark a:not(.btn) {
  color: var(--white);
}

.on-dark :focus-visible {
  outline-color: var(--white);
}

/* 7. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(520px, 66vh, 680px);
  padding-block: 100px;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  background: var(--navy);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: center 48%;
}

/* El original velaba la foto con --ast-global-color-7 al 0.7. Se conserva el
   navy, pero en degradado: 0.82 sobre el texto y 0.45 al otro extremo, para
   que el camión y el puerto sigan legibles. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  background-image: linear-gradient(
    96deg,
    rgba(3, 18, 70, 0.82) 0%,
    rgba(3, 18, 70, 0.78) 40%,
    rgba(3, 18, 70, 0.58) 74%,
    rgba(3, 18, 70, 0.45) 100%
  );
}

.hero__content {
  max-width: 700px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.hero h1 {
  max-width: 100%;
  color: var(--white);
  font-size: clamp(2.125rem, 1.15rem + 3.5vw, 3.875rem);
  line-height: 1.06;
}

.hero__actions {
  margin-top: clamp(28px, 3.4vw, 40px);
}

/* 8. Marcas y listas de servicios ---------------------------------------- */

.services__mark {
  flex: 0 0 auto;
  margin: 0;
}

.services__mark img {
  width: 149px;
  height: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.service-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.service-card h3 {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.02em;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.trust li::before {
  content: "";
  flex: 0 0 auto;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--blue);
}

/* 9. Banda CTA y propuesta ------------------------------------------------ */

.cta-band {
  padding-block: clamp(56px, 7vw, 80px);
  background: var(--navy);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.cta-band h2 {
  max-width: 720px;
  color: var(--white);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

.proposal-quote {
  margin: 0;
  padding-left: clamp(20px, 2.6vw, 32px);
  border-left: 3px solid var(--blue);
  color: var(--slate);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.75;
}

/* 10. Testimonios --------------------------------------------------------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
  align-items: stretch;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.stars {
  color: var(--star);
  font-size: 1rem;
  letter-spacing: 0.16em;
  line-height: 1;
}

.testimonial__quote {
  display: grid;
  gap: 12px;
  margin: 0;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.testimonial__quote p + p {
  margin-top: 0;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.testimonial__person {
  min-width: 0;
}

.testimonial__name {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.35;
}

.testimonial__company {
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.testimonial__brand img {
  width: auto;
  height: 26px;
  max-width: 118px;
  object-fit: contain;
}

/* 11. CTA final ----------------------------------------------------------- */

.cta-final {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 24px;
  background: var(--navy);
}

.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
}

.cta-final p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
}

.cta-final .btn {
  margin-top: 12px;
}

/* 12. Encabezado de página interior --------------------------------------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 80px);
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
  background: var(--mist);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.125rem, 1.5rem + 3vw, 3.25rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 16px;
}

/* 13. Página Acerca de nosotros ------------------------------------------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}

.value-card {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.value-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
}

.value-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.value-card--media {
  position: relative;
  min-height: 200px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.value-card--media picture {
  position: absolute;
  inset: 0;
}

.value-card--media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 14. Página Servicios ---------------------------------------------------- */

.service-details {
  display: grid;
}

.service-detail {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(36px, 4.5vw, 60px);
  border-top: 1px solid var(--line);
}

.service-detail:first-child {
  padding-top: 0;
  border-top: 0;
}

.service-detail:last-child {
  padding-bottom: 0;
}

.service-detail__num {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.service-detail__body {
  max-width: 720px;
}

.service-detail__body h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.service-detail__body > p + .detail-list,
.service-detail__body > p + h3 {
  margin-top: 26px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-list li {
  position: relative;
  padding-left: 26px;
  line-height: 1.65;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.detail-list__title {
  margin-top: 26px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* 15. Página Contacto ----------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info > h2 {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
}

.info-card {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1.0625rem;
}

.info-card address {
  font-style: normal;
  line-height: 1.65;
}

.info-card__area {
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.link-arrow::after {
  content: "\2192";
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 20px);
  margin-top: clamp(20px, 2.4vw, 24px);
}

.contact-card {
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.contact-card h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-card__list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.contact-card__list dt {
  margin-bottom: 1px;
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card__list dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-card__list dd a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-card__list dd a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.contact-media {
  margin: clamp(20px, 2.4vw, 24px) 0 0;
}

.contact-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Formulario -------------------------------------------------------------- */

.form-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.form-card h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
}

.form-card__sub {
  margin-top: 10px;
  font-size: 0.9375rem;
}

.form-card__sub + .form-grid {
  margin-top: 22px;
}

.contact-form {
  margin-top: 24px;
}

.form-alert {
  margin-top: 20px;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.form-alert:not(:empty) {
  padding: 12px 14px;
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field [aria-invalid="true"]:focus-visible {
  outline-color: var(--danger);
}

.field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field-error:empty {
  margin: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 24px;
}

.form-note {
  margin-top: 20px;
  font-size: 0.875rem;
}

.form-success {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
}

.form-success h3 {
  font-size: 1.25rem;
}

.form-success p {
  margin-top: 8px;
}

.form-success .btn {
  margin-top: 20px;
}

/* 16. Página Gracias ------------------------------------------------------ */

.thanks {
  padding-block: clamp(56px, 8vw, 104px);
  background: var(--mist);
}

.thanks__card {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  text-align: center;
}

.thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.thanks__card h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.375rem);
}

.thanks__card p {
  margin-top: 12px;
  font-size: 1.0625rem;
}

.thanks__actions {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 28px;
}

.thanks__actions .btn {
  width: 100%;
  max-width: 340px;
}

/* 17. Pie de página ------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding-top: clamp(48px, 6vw, 72px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr 1.05fr;
  gap: clamp(28px, 4vw, 56px);
}

.footer__brand {
  display: inline-block;
  margin-bottom: 24px;
}

.footer__brand img {
  width: 182px;
  height: auto;
}

.footer__title {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer__col > .footer__label {
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
}

.footer__address {
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.6;
}

.footer__area {
  margin-top: 4px;
  font-size: 0.875rem;
}

.footer__contacts {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.footer__role {
  margin-bottom: 2px;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
}

.footer__contact-list {
  display: grid;
  gap: 1px;
}

.footer__contact-list a {
  color: var(--slate);
  font-size: 0.875rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer__contact-list a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

.footer__col > p {
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.65;
}

.footer__list {
  display: grid;
  gap: 8px;
}

.footer__list li {
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__list li strong {
  color: var(--navy);
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(36px, 4vw, 56px);
  padding-block: 24px;
  border-top: 1px solid var(--line);
}

.footer__copy {
  color: var(--slate);
  font-size: 0.8125rem;
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__nav a {
  color: var(--slate);
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* 18. Revelado suave (lo activa site.js) ---------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* 19. Adaptación ---------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav__contacts {
    width: 138px;
  }

  .contact-menu__summary {
    font-size: 0.78125rem;
  }
}

@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0;
    padding-block: 12px 0;
    min-height: 0;
  }

  .brand__img {
    width: 190px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-bottom: 12px;
  }

  .site-nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    padding-bottom: 16px;
    border-top: 1px solid var(--line);
  }

  html[data-nav="closed"] .site-nav {
    display: none;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 4px;
  }

  .nav__link {
    padding-block: 14px;
    font-size: 1rem;
  }

  .nav__link[aria-current="page"]::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: -16px;
    width: 3px;
    height: 18px;
    transform: translateY(-50%);
  }

  .nav__contacts {
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .contact-menu__summary {
    padding: 12px 14px;
    font-size: 0.9375rem;
  }

  .contact-menu__panel {
    position: static;
    min-width: 0;
    padding: 4px 0 4px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .contact-menu__link {
    color: var(--slate);
    font-size: 0.9375rem;
  }
  .split,
  .split--proposal,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--text {
    gap: 24px;
  }

  .split__media {
    max-width: 520px;
  }

  .split__media--wide {
    max-width: none;
  }

  .hero {
    padding-block: 80px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  .page-hero {
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  .hero__veil {
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    background-image: linear-gradient(
      170deg,
      rgba(3, 18, 70, 0.82) 0%,
      rgba(3, 18, 70, 0.76) 55%,
      rgba(3, 18, 70, 0.55) 100%
    );
  }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-card--media {
    min-height: 220px;
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid > .footer__col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 1rem;
  }

  .hero {
    min-height: 0;
    padding-block: 64px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .hero__veil {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .page-hero {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }

  .section-head--row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .services__mark {
    order: -1;
    margin-left: auto;
    margin-right: 0;
  }

  .services__mark img {
    width: 110px;
  }

  .services-grid,
  .contact-cards,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust li {
    padding: 16px 20px;
  }

  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .value-card--media {
    min-height: 200px;
  }

  .service-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service-detail__num {
    font-size: 1.25rem;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__grid > .footer__col:first-child {
    grid-column: auto;
  }

  .footer__bottom {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .testimonial__author {
    flex-wrap: wrap;
  }
}
