/* =============================================================
   AMALIA TRANSPORTES · Hoja de estilos principal
   Mobile-first · CSS puro · Sin frameworks
   -------------------------------------------------------------
   Índice
   01. Variables y reset
   02. Utilidades y contenedores
   03. Botones e iconos
   04. Header y navegación
   05. Hero
   06. Secciones genéricas
   07. Servicios
   08. Por qué elegirnos
   09. Nosotros / estadísticas
   10. Contacto
   11. Footer
   12. Botón flotante WhatsApp
   13. Animaciones
   14. Media queries
   ============================================================= */

/* ============================================================
   01 · VARIABLES Y RESET
   ============================================================ */
:root {
  /* Paleta */
  --navy:        #1a2f5a;
  --navy-dark:   #12203e;
  --navy-light:  #2a4680;
  --accent:      #f5a623;
  --accent-dark: #d98c0c;
  --white:       #ffffff;
  --gray-50:     #f7f9fc;
  --gray-100:    #eef2f8;
  --gray-300:    #cfd8e6;
  --gray-600:    #5a6b85;
  --gray-800:    #24303f;
  --whatsapp:    #25d366;
  --whatsapp-dk: #1da851;

  /* Tipografía */
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-title: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Espaciado y formas */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(26, 47, 90, .08);
  --shadow:    0 10px 30px rgba(26, 47, 90, .12);
  --shadow-lg: 0 20px 50px rgba(26, 47, 90, .18);

  --header-h: 68px;
  --container: 1180px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--navy);
}

p  { margin: 0 0 1em; }
ul { list-style: none; margin: 0; padding: 0; }
a  { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button { font: inherit; }

::selection {
  background: var(--accent);
  color: var(--navy-dark);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--accent);
  color: var(--navy-dark);
  padding: .75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   02 · UTILIDADES Y CONTENEDORES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 64px 0;
  position: relative;
}

.section--dark {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: rgba(255, 255, 255, .82);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section__head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .6rem;
}
.section--dark .section__eyebrow { color: var(--accent); }

.section__title {
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  margin-bottom: .5rem;
}

.section__lead {
  color: var(--gray-600);
  font-size: 1.02rem;
  margin-bottom: 0;
}
.section--dark .section__lead { color: rgba(255, 255, 255, .78); }

/* ============================================================
   03 · BOTONES E ICONOS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: .6rem 1.05rem; font-size: .87rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.02rem; }

.btn--accent {
  background: var(--accent);
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(245, 166, 35, .35);
}
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 10px 26px rgba(245, 166, 35, .45); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .35);
}
.btn--whatsapp:hover { background: var(--whatsapp-dk); box-shadow: 0 12px 30px rgba(37, 211, 102, .45); }

.btn--outline {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .7);
  color: var(--white);
  backdrop-filter: blur(4px);
}
.btn--outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

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

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

/* ============================================================
   04 · HEADER Y NAVEGACIÓN
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* Estado sólido: al hacer scroll o cuando el menú móvil está abierto */
.header.is-scrolled,
.header.is-open {
  background: var(--navy);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
}
.logo__img {
  height: 40px;
  width: auto;
}
.logo__img.is-missing { display: none; }

.logo__text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.logo__text span {
  display: block;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Botón hamburguesa --- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.header.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.header.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Menú (móvil: panel deslizante) --- */
.nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(320px, 84vw);
  height: calc(100vh - var(--header-h));
  padding: 1.75rem 1.5rem 2.5rem;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateX(105%);
  transition: transform .32s var(--ease);
  overflow-y: auto;
}
.header.is-open .nav { transform: translateX(0); }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav__link {
  display: block;
  padding: .7rem .25rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.nav__link:hover,
.nav__link.is-active { color: var(--accent); padding-left: .55rem; }

.nav__cta { width: 100%; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9, 16, 32, .55);
  backdrop-filter: blur(2px);
  animation: fade-in .25s var(--ease) both;
}

/* ============================================================
   05 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
  color: var(--white);
}

/* Fondo: si aún no existe la imagen, se ve el gradiente profesional */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--navy);
  background-image:
    linear-gradient(115deg, rgba(18, 32, 62, .93) 0%, rgba(26, 47, 90, .78) 45%, rgba(26, 47, 90, .55) 100%),
    /* EDITAR: colocar la foto principal en img/hero/hero.jpg (ver img/README.md) */
    url('../img/hero/hero.jpg');
  background-size: cover;
  background-position: center;
  animation: hero-zoom 18s ease-out both;
}

/* Textura sutil de líneas diagonales sobre el fondo */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(245, 166, 35, .18), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, .45);
  border-radius: 999px;
  padding: .35rem .9rem;
  margin-bottom: 1.1rem;
  background: rgba(245, 166, 35, .08);
}

.hero__title {
  font-size: clamp(2.1rem, 8.5vw, 4rem);
  color: var(--white);
  margin-bottom: .5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}

.hero__subtitle {
  font-size: clamp(1rem, 3.6vw, 1.22rem);
  color: rgba(255, 255, 255, .9);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2.25rem;
}
.hero__actions .btn { flex: 1 1 240px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
}
.hero__badges li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .82);
}
.hero__badges li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .48em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, .2);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  z-index: 1;
  display: none;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-hint 1.8s var(--ease) infinite;
}

/* ============================================================
   06 · SERVICIOS
   ============================================================ */
.services { background: var(--gray-50); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, .5);
}

/* Placeholder: el gradiente queda visible si la foto todavía no existe */
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
}
.card__media::after {
  content: 'Foto del servicio';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.card__media img.is-missing { display: none; }
.card:hover .card__media img { transform: scale(1.06); }

.card__body {
  position: relative;
  /* Por encima de .card__media img (z-index 1): si no, la foto tapa el ícono,
     que sobresale hacia arriba con top: -26px. */
  z-index: 2;
  padding: 26px 22px 26px;
  flex: 1;
}

.card__icon {
  position: absolute;
  top: -26px;
  left: 22px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent);
  color: var(--navy-dark);
  box-shadow: 0 8px 18px rgba(245, 166, 35, .4);
  transition: transform .3s var(--ease);
}
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }

.card__title { font-size: 1.2rem; margin: 12px 0 .4rem; }
.card__text  { color: var(--gray-600); font-size: .95rem; margin: 0; }

/* ============================================================
   07 · POR QUÉ ELEGIRNOS
   ============================================================ */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.feature {
  text-align: center;
  padding: 30px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .09);
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 1rem;
  border-radius: 20px;
  background: rgba(245, 166, 35, .16);
  color: var(--accent);
  border: 1px solid rgba(245, 166, 35, .35);
}
.feature__icon svg { width: 32px; height: 32px; }

.feature__title { font-size: 1.15rem; margin-bottom: .4rem; }
.feature__text  { color: rgba(255, 255, 255, .75); font-size: .95rem; margin: 0; }

/* ============================================================
   08 · NOSOTROS
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  box-shadow: var(--shadow);
}
.about__media::after {
  content: 'Foto del equipo o de la flota';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.about__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__media img.is-missing { display: none; }

.about__text { color: var(--gray-600); }

/* --- Estadísticas --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 2px dashed var(--gray-300);
}
.stat { text-align: center; }
.stat__number {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  color: var(--navy);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: .4rem;
  font-size: .78rem;
  color: var(--gray-600);
  letter-spacing: .02em;
}

/* ============================================================
   09 · CONTACTO
   ============================================================ */
.contact { background: var(--gray-50); }

.contact__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--accent);
}

.contact__lead {
  color: var(--gray-600);
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: 1.8rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-bottom: 2rem;
}

.contact__info {
  display: grid;
  gap: .8rem;
  text-align: left;
  max-width: 560px;
  margin-inline: auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--gray-100);
}
.contact__info li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .95rem;
  color: var(--gray-600);
}
.contact__info svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: .2rem;
  color: var(--accent-dark);
}
.contact__info strong { color: var(--navy); }
.contact__info a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   10 · FOOTER
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, .72);
  padding: 48px 0 24px;
  font-size: .93rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.logo--footer { margin-bottom: .9rem; }

.footer__text { max-width: 42ch; margin: 0; }

.footer__title {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.footer__col ul { display: grid; gap: .5rem; }
.footer__col a { transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.social {
  display: flex !important;
  flex-wrap: wrap;
  gap: .6rem;
}
.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  transition: background-color .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.social a:hover {
  background: var(--accent);
  color: var(--navy-dark);
  transform: translateY(-3px);
}
.social svg { width: 20px; height: 20px; }

.footer__bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .55);
}
.footer__bottom p { margin: 0; }
/* Deja libre la esquina inferior derecha: ahí vive el botón flotante */
.footer__bottom p:last-child { padding-right: 76px; }

/* ============================================================
   11 · BOTÓN FLOTANTE DE WHATSAPP
   ============================================================ */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 13px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
  animation: wa-pop .5s var(--ease) .8s both;
}
.wa-float:hover { transform: scale(1.07); background: var(--whatsapp-dk); }
.wa-float svg { width: 30px; height: 30px; }

.wa-float__label {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: .95rem;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .3s var(--ease), margin .3s var(--ease);
}
.wa-float:hover .wa-float__label { max-width: 120px; margin-right: .35rem; }

/* Halo pulsante */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--whatsapp);
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}

/* ============================================================
   12 · ANIMACIONES
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-zoom {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}
@keyframes scroll-hint {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}
@keyframes wa-pop {
  from { opacity: 0; transform: scale(.4) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Entrada del hero al cargar (fade-in desde abajo, escalonado) */
.reveal {
  opacity: 0;
  animation: fade-up .8s var(--ease) forwards;
}
.reveal[data-delay="0"] { animation-delay: .10s; }
.reveal[data-delay="1"] { animation-delay: .22s; }
.reveal[data-delay="2"] { animation-delay: .34s; }
.reveal[data-delay="3"] { animation-delay: .46s; }
.reveal[data-delay="4"] { animation-delay: .58s; }

/* Aparición al hacer scroll (activada por Intersection Observer en main.js).
   Se oculta SOLO si JavaScript está activo (clase .js en <html>); así, si el JS
   falla o está deshabilitado, el contenido siempre queda visible. */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Respeta la preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .reveal-on-scroll { opacity: 1; transform: none; }
}

/* ============================================================
   13 · MEDIA QUERIES
   ============================================================ */

/* --- Móvil: áreas táctiles cómodas (mín. 44px, criterio WCAG 2.5.5) ---
   En el footer los enlaces son solo texto de 18px de alto: sin esto quedan
   demasiado juntos para el dedo y Lighthouse los marca como error. */
@media (max-width: 899px) {
  .footer__col ul { gap: 0; }
  .footer__col ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .contact__info { gap: 1.1rem; }
}

/* --- Tablet (≥ 640px) --- */
@media (min-width: 640px) {
  .section { padding: 80px 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid      { grid-template-columns: repeat(3, 1fr); }
  .contact__card  { padding: 48px 40px; }
  .hero__actions .btn { flex: 0 1 auto; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
  .wa-float { right: 22px; bottom: 22px; }
}

/* --- Desktop (≥ 900px) --- */
@media (min-width: 900px) {
  :root { --header-h: 78px; }

  .section { padding: 100px 0; }
  .section__head { margin-bottom: 56px; }

  /* Navegación horizontal */
  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    transform: none;
    overflow: visible;
  }
  .nav__list { flex-direction: row; gap: 1.7rem; }
  .nav__link {
    position: relative;
    padding: .35rem 0;
    font-size: .96rem;
    border-bottom: 0;
  }
  .nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .28s var(--ease);
  }
  .nav__link:hover,
  .nav__link.is-active { padding-left: 0; }
  .nav__link:hover::after,
  .nav__link.is-active::after { width: 100%; }
  .nav__cta { width: auto; }

  .logo__img { height: 46px; }
  .logo__text { font-size: 1.25rem; }

  .hero__scroll { display: block; }

  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .about__media { aspect-ratio: 4 / 3.2; }

  .footer__grid { grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 40px; }

  .contact__card { padding: 60px; }
}

/* --- Pantallas grandes (≥ 1100px) --- */
/* Las 4 cards pasan a una sola fila solo cuando hay ancho suficiente
   para que el texto no quede en columnas demasiado estrechas. */
@media (min-width: 1100px) {
  .hero__title { letter-spacing: -.02em; }
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
  }
}
