/* ========== HEADER & NAVBAR ========== */
header {
  background-color: var(--color-blanco);
  box-shadow: 0 2px 6px rgba(6, 146, 30, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}


.logo {
  max-height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
  padding: 0.5rem;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.nav-links li a:hover {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
}

/* ========== HERO SECTION ========== */
.hero-desktop {
  display: block;
}

.hero-mobile {
  display: none;
}

.hero-banner {
  position: relative;
  max-width: auto;
  margin: 0 auto;
  padding-top: 0;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: -50px;
  /* sobresale hacia abajo del banner */
  left: 0;
  width: 100%;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

.side-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 250px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.side-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* Tracking-box icon */
.tracking-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  max-width: 550px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  position: relative;
}

.tracking-box h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  /* Espacio entre icono y texto */
  font-size: 1.5rem;
  margin: 0 0 15px 0;
}

.tracking-box .tracking-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Botón con lupa */
.tracking-form {
  display: flex;
  width: 100%;
}

.tracking-form input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #2e2d2d;
  border-radius: 2px 0 0 2px;
  /* Redondeado solo lado izquierdo */
  font-size: 0.8rem;
  outline: none;
}

.tracking-form .btn-icon {
  background-color: #049e19;
  border: 1px solid #2e2d2d;
  border-left: none;
  /* Quita borde izquierdo para quedar pegado al input */
  border-radius: 0 2px 2px 0;
  /* Redondeado lado derecho */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 12px;
}

.tracking-form .btn-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}


.icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Para que la siguiente sección no se solape */
.hero-banner+section {
  margin-top: 80px;
}

/* Leyenda en banner, centrada verticalmente a la derecha */
.hero-legend {
  position: absolute;
  right: 70px;
  top: 45%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 1.55rem;
  font-weight: 500;
  text-align: center;
  max-width: 200px;
  text-shadow: 1.5px 1.5px 3.5px rgba(0,0,0,0.6);
}



/* ========== SECCIONES ========== */
section {
  padding: 2rem 2rem;
  /* menos espacio global */
}

.servicios,
.sobre,
.contacto {
  background-color: var(--color-blanco);
}

/* ========== FOOTER ========== */
footer {
  background-color: #f5f7fa;
  /* gris muy claro */
  color: #2c3e50;
  /* texto azul oscuro para buen contraste */
  padding: 2rem 1rem 1rem 1rem;
  font-size: 0.9rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
  gap: 2rem;
  text-align: left;
}

.footer-logo img {
  max-height: 60px;
}

.footer-contacto,
.footer-direccion {
  flex: 1 1 200px;
}

.footer-contacto h4,
.footer-direccion h4 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #34495e;
  /* tono azul oscuro para títulos */
}

.footer-contacto a {
  color: #2980b9;
  /* azul corporativo para enlaces */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contacto a:hover {
  color: #1c5980;
  /* azul más oscuro para hover */
}

.footer-bottom {
  border-top: 1px solid #dcdfe3;
  /* borde gris claro */
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: #7f8c8d;
  /* gris medio para texto secundario */
}

.footer-bottom a {
  color: #2980b9;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: #1c5980;
}



/* ========== LAYOUT UTILITY CLASSES ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ========== TOP PROMO BAR ========== */
.top-promo-bar {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ========== TOP USER BAR ========== */
.top-user-bar {
  background-color: var(--color-fondo);
  border-bottom: 1px solid var(--color-gris);
  padding: 0.5rem 0;
  /* Sin padding horizontal para que el container controle */
  width: 100%;
  /* Se asegura de abarcar todo */
}

.top-user-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.user-links {
  list-style: none;
  display: flex;
  justify-content: center;
  /* CENTRAR */
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  max-width: 1200px;
  /* OPCIONAL: para mantener contenido centrado */
  margin: 0 auto;
  /* OPCIONAL: centrado horizontal si hay max-width */
}

.user-links li span {
  color: var(--color-texto);
}

.user-links li a {
  color: var(--color-primario);
  font-weight: 600;
}


/*Versichrung*/

.versicherung-text {
  flex: 2;
}

.versicherung-image {
  flex: 1;
  max-width: 350px;
}


.versicherung-image img {
  width: 80%;
  height: auto;
  border-radius: 8px;
}