/* Sitio institucional ETUB. Paleta tomada de la contratapa del brochure. */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --azul: #095686;
  --azul-oscuro: #063654;
  --azul-profundo: #04263c;
  --tinta: #173044;
  --texto: #243b4c;
  --cielo: #eef5fa;
  --linea: #d5e3ee;
  --blanco: #ffffff;
  --cabecera: 4.75rem;
  --ancho: 1120px;
  --sombra: 0 12px 30px rgba(6, 54, 84, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--cabecera);
}

body {
  margin: 0;
  color: var(--texto);
  background: var(--blanco);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--azul);
  margin: 0 0 0.85rem;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  color: var(--blanco);
  max-width: 14ch;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

h3 {
  font-size: 1.55rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--azul);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--blanco);
  color: var(--azul-oscuro);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.saltar:focus {
  top: 0.5rem;
}

.contenedor {
  width: min(var(--ancho), calc(100% - 2rem));
  margin-inline: auto;
}

section {
  scroll-margin-top: calc(var(--cabecera) + 0.6rem);
}

/* Cabecera fija */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--cabecera);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--linea);
  backdrop-filter: blur(8px);
}

.cabecera-interior {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marca {
  display: block;
  flex: 0 0 auto;
}

.marca img {
  height: 52px;
  width: auto;
}

.menu ul {
  display: flex;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  color: var(--tinta);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.menu a[aria-current="true"] {
  color: var(--azul);
  box-shadow: inset 0 -2px 0 var(--azul);
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--azul);
}

.menu-boton {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--linea);
  background: var(--blanco);
  border-radius: 4px;
  padding: 0;
}

.hamburguesa,
.hamburguesa::before,
.hamburguesa::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--azul-oscuro);
  position: relative;
}

.hamburguesa {
  margin: 0 auto;
}

.hamburguesa::before,
.hamburguesa::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburguesa::before {
  top: -6px;
}

.hamburguesa::after {
  top: 6px;
}

/* Portada */
.hero {
  position: relative;
  min-height: calc(100vh - var(--cabecera));
  min-height: calc(100dvh - var(--cabecera));
  display: grid;
  align-items: end;
  background: var(--azul-oscuro);
  overflow: hidden;
}

.hero-foto,
.hero-velo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-foto {
  object-fit: cover;
  object-position: 70% center;
}

.hero-velo {
  background: linear-gradient(90deg, rgba(4, 38, 60, 0.92) 0%, rgba(9, 86, 134, 0.72) 46%, rgba(9, 86, 134, 0.12) 100%);
}

.hero-texto {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
}

.sobrelinea {
  margin: 0 0 0.4rem;
  color: #d7ebf8;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

/* Bloques de contenido */
.seccion {
  padding: 4.5rem 0;
}

.seccion-cielo {
  background: var(--cielo);
}

.seccion-azul {
  background: var(--azul);
  color: #e7f3fa;
}

.seccion-azul h2,
.seccion-azul h3,
.seccion-azul strong {
  color: var(--blanco);
}

.bloque {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.pila-textos {
  display: grid;
  gap: 1.75rem;
}

.foto-marco img,
.foto-ancha img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--sombra);
}

.foto-marco {
  margin: 0;
  min-height: 280px;
}

.foto-marco img {
  aspect-ratio: 4 / 3;
}

.foto-ancha {
  margin: 1.5rem 0 0;
}

.foto-ancha img {
  aspect-ratio: 16 / 7;
  max-height: 460px;
}

.foto-clara img {
  box-shadow: none;
}

.lead {
  font-size: 1.15rem;
  max-width: 78ch;
}

.valores,
.lista-transporte,
.lista-simple,
.correos,
.logos-socios,
.sellos {
  margin: 0;
  padding: 0;
  list-style: none;
}

.valores li + li {
  margin-top: 1.1rem;
}

.valores h3 {
  margin-bottom: 0.2rem;
}

.lista-transporte li,
.lista-simple li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.85rem;
}

.lista-transporte li::before,
.lista-simple li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  background: var(--azul);
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.seccion-azul .lista-transporte li::before {
  background: var(--blanco);
}

.lista-simple {
  columns: 2;
  max-width: 28rem;
}

/* Calidad y eficiencia */
.franja-calidad {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--blanco);
}

.franja-calidad img,
.franja-velo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.franja-calidad img {
  object-fit: cover;
  object-position: center 30%;
}

.franja-velo {
  background: linear-gradient(180deg, rgba(9, 86, 134, 0.05) 20%, rgba(6, 54, 84, 0.82) 100%);
}

.franja-calidad .contenedor {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
}

.franja-calidad h2 {
  color: var(--blanco);
  font-size: clamp(3rem, 7vw, 5.5rem);
}

/* Servicios */
.banda-seccion {
  margin: 0;
}

.banda-seccion img,
.cierre img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.rejilla-servicios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2.5rem 0 4rem;
}

.servicio {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra);
}

.servicio img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.servicio-texto {
  padding: 1.1rem 1.15rem 1.25rem;
}

.servicio-texto p {
  margin: 0;
}

.servicio-texto-solo {
  background: var(--azul);
  color: #e7f3fa;
  justify-content: center;
  min-height: 100%;
}

.servicio-texto-solo h3 {
  color: var(--blanco);
}

/* Socios */
.logos-socios {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.logos-socios li {
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: 4px;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 0.7rem;
}

.logos-socios img {
  max-height: 68px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Contacto y pie */
.contacto {
  background: var(--cielo);
  text-align: center;
}

.correos {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.correos a {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.correos a:hover,
.correos a:focus-visible {
  text-decoration: underline;
}

.pie {
  background: var(--azul-profundo);
  color: #d5e7f2;
  padding: 2.2rem 0 2.5rem;
}

.pie-interior {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  text-align: center;
}

.pie-marca {
  width: 64px;
  height: 63px;
}

.pie p {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sellos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.sellos li {
  background: var(--blanco);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  display: grid;
  place-items: center;
  min-width: 120px;
}

.sellos img {
  height: 64px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.redes {
  display: flex;
  gap: 0.55rem;
}

.red {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 4px;
  background: var(--blanco);
  display: grid;
  place-items: center;
}

.red svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: var(--azul);
}

:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .menu-boton {
    display: grid;
    place-items: center;
  }

  .menu {
    position: absolute;
    top: var(--cabecera);
    left: 0;
    right: 0;
    background: var(--blanco);
    border-bottom: 1px solid var(--linea);
    display: none;
    padding: 0.5rem 1rem 1rem;
  }

  .menu.abierto {
    display: block;
  }

  .menu ul {
    flex-direction: column;
    gap: 0;
  }

  .menu a {
    display: block;
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--linea);
  }

  .bloque,
  .rejilla-servicios,
  .logos-socios {
    grid-template-columns: 1fr 1fr;
  }

  .logos-socios {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .bloque,
  .rejilla-servicios,
  .logos-socios,
  .lista-simple {
    grid-template-columns: 1fr;
    columns: 1;
  }

  .hero-texto {
    padding: 3rem 0;
  }

  .seccion {
    padding: 3.2rem 0;
  }

  .marca img {
    height: 46px;
  }

  .foto-ancha img {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
