/* Transportes El Gallego — CSS del tema (cabecera, pie y botones base).
   El contenido de cada página lo maqueta Elementor con sus propios estilos;
   este fichero solo cubre header.php / footer.php y clases compartidas. */

:root {
  --color-navy: #2f4568;
  --color-rojo: #c0272d;
  --color-dorado: #d99a2b;
  --color-gris-claro: #f6f4f0;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  color: #242424;
  margin: 0;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* ---------- Botones compartidos ---------- */
.boton {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: .3px;
}

/* ---------- NAVBAR ---------- */
.site-header {
  margin: 0;
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 8%;
  background: #eef1f7;
  border-bottom: 4px solid #c0272d;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo-img {
  height: 100px;
  width: auto;
  display: block;
}

.navbar-toggle-icono {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar-toggle-icono span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--color-navy);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.navbar-enlaces {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-enlaces ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-enlaces a {
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .2px;
  transition: color .2s ease;
}

.navbar-enlaces a:hover,
.navbar-enlaces .current-menu-item > a {
  color: #c0272d;
}

.navbar-cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  background: #c0272d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .3px;
  white-space: nowrap;
}

.navbar-idiomas {
  display: flex;
  gap: 6px;
}

.navbar-idiomas img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .navbar {
    position: relative;
    flex-wrap: wrap;
  }

  .navbar-toggle-icono {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #eef1f7;
    border-bottom: 4px solid #c0272d;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .navbar-menu.abierto {
    max-height: 420px;
  }

  .navbar-enlaces,
  .navbar-enlaces ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .navbar-enlaces a {
    display: block;
    width: 100%;
    padding: 16px 8%;
    border-top: 1px solid rgba(47, 69, 104, .12);
  }

  .navbar-idiomas {
    margin: 16px 8% 0;
  }

  .navbar-cta {
    margin: 20px 8% 28px;
  }
}

/* ---------- FOOTER ---------- */
.site-footer {
  margin: 0;
  width: 100%;
  background: #14181f;
  border-top: 4px solid #c0272d;
}

.footer-top {
  display: flex;
  gap: 50px;
  padding: 70px 8% 50px;
  flex-wrap: wrap;
}

.footer-marca {
  flex: 1 1 320px;
}

.footer-logo {
  display: inline-flex;
  text-decoration: none;
}

.footer-logo-img {
  height: 100px;
  width: auto;
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #ffffff;
}

.footer-descripcion {
  color: #c9d0dc;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 18px;
  max-width: 320px;
  text-align: justify;
}

.footer-columna {
  flex: 1 1 200px;
}

.footer-titulo {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.footer-enlaces {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.footer-enlaces ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-enlaces a {
  color: #c9d0dc;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.footer-enlaces a:hover {
  color: #d99a2b;
}

.footer-dato {
  margin-top: 22px;
}

.footer-dato-etiqueta {
  display: block;
  color: #7d8aa3;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-dato-valor {
  margin-top: 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.footer-dato-valor a,
.footer-dato-valor span {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.footer-dato-valor a:hover {
  color: #d99a2b;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 8%;
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap;
}

.footer-copy {
  color: #7d8aa3;
  font-size: 13px;
  margin: 0;
}

.footer-legal ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: #7d8aa3;
  font-size: 13px;
  text-decoration: none;
}

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

.footer-funding {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 8%;
  padding: 24px 0;
  text-align: center;
}

.footer-funding__logos {
  display: block;
  margin: 0 auto;
  width: min(720px, 84vw);
  height: auto;
  border-radius: 10px;
}

@media (max-width: 900px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
