
 body {
      font-family: 'Raleway', sans-serif;
      background-color: #eef3f8;
      /* padding-top: 20px; */
    }
    .main-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
    }
.container {
  max-width: 100%;
  width: 100%;
}

     /* Mapa Dinamico */

 #airport-fun {
      position: relative;
      width: 60%;
      height: 450px;
      background-color: #cceeff;
      background-image: url("imagenes/mapaaa.png");
      background-size: cover;
      background-position: center;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .marker-container {
      position: absolute;
      transform: translate(-50%, -100%);
      cursor: pointer;
      z-index: 3;
    }
    .marker {
      font-size: 36px;
      color: #d9534f;
      transition: transform 0.3s;
      width: 2px;
    }
    .marker:hover {
      transform: scale(1.3);
    }
    .plane-icon {
      position: absolute;
      font-size: 30px;
      color: #337ab7;
      z-index: 2;
    }
    /* Animacion de los aviones */
    @keyframes fly1 {
      0% { left: -10%; top: 20%; transform: rotate(90deg); }
      100% { left: 110%; top: 20%; transform: rotate(90deg); }
    }
    .plane1 {
      animation: fly1 15s linear infinite;
    }
    /* Glosario */
    .glossary {
      width: 35%;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      padding: 20px;
    }
    .glossary h3 {
      font-weight: bold;
      margin-bottom: 20px;
    }
    .glossary table {
      width: 100%;
    }
    .glossary th {
      background-color: #337ab7;
      color: white;
      text-align: center;
    }
    .glossary td {
      padding: 10px;
      vertical-align: middle;
    }
    /* Modal bandera (bandera dentro del modal) */
    .flag {
      width: 30px;
      height: auto;
      margin-right: 8px;
      vertical-align: middle;
    }
    /* Modal */
    .modal .modal-title img {
      width: 32px;

    }
    .carousel-inner > .item > img {
      margin: 0 auto;
    }
    #triviaText {
      margin-top: 15px;
      display: none;
      font-style: italic;
      background: #ffffffe8;
      padding: 10px;
      border-left: 4px solid #337ab7;
    }


    /* Titulos */
    .section-heading h1 {
  margin-top: 0px;
  font-size: 32px;
  color: #232323;
  display: inline-block;
  margin-right: 50px;
}

.section-heading em {
  font-style: normal;
  font-weight: 700;
  color: #029e99;
}
.section-heading p {
  display: inline-block;
  font-size: 15px;
  line-height: 26px;
  color: #343434;
  position: absolute;
  top: 12.5px;
}
.section-heading {
  text-align: left;
  position: relative;
  margin-bottom: 60px;
  
}

/* Header */
:root {
      --sky-blue:       #59d2ec;
      --viridian-green: #029e99;
      --chinese-black:  #161616;
      --yankees-blue:   #0af89b;
      --snow:           #fbfaf7;
      --bg-light:       var(--snow);
      --text-light:     var(--chinese-black);
      --bg-dark:        var(--chinese-black);
      --text-dark:      var(--snow);
    }
    /* Modo Oscuro */
 .dark-mode { background-color: var(--bg-dark); color: var(--text-dark); }
    
 header {
      background: var(--chinese-black);
      color: var(--snow);
      padding: 1rem;
      text-align: center;
      position: relative;
    }
    header img { height: 80px; vertical-align: middle; }
    header h1 {
      display: inline-block;
      margin-left: 0.5rem;
      font-size: 1.75rem;
      font-weight: bold;
    }
      #theme-toggle, #translate-toggle {
      position: absolute;
      top: 1rem;
      background: var(--sky-blue);
      border: none;
      padding: 0.5rem 1rem;
      border-radius: 4px;
      color: #fff;
      cursor: pointer;
    }
    #theme-toggle { right: 1rem; }

    /* Modals */
      .marker-container {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    text-align: center;
    z-index: 3;
  }
/* iconos del mapa */
  .marker {
    font-size: 20px;
    color: #d9534f;
    text-shadow: 1px 1px 3px #fff;
  }

  .aeropuerto-box {
    padding: 10px;
    margin: 8px;
    text-align: center;
    font-weight: bold;
    border-radius: 12px;
    color: white;
  }

  .img-eu{
    width: 420px;
    height: auto;
    margin-left: 2px;
    margin-top: 80px;
  }

  /* Botón hamburguesa */
.menu-toggle {
  position: absolute;
  left: 4rem;
  top: 3.3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1002;
}
.menu-toggle span {
  display: block;
  width: 50px;
  height: 4px;
  background: var(--snow);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Menú flotante con estilo consistente */
.floating-menu {
  position: absolute;
  top: 60px;
  left: 1rem;
  background: var(--chinese-black);
  color: var(--snow);
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  display: none;
  z-index: 1001;
  min-width: 180px;
  font-family: 'Raleway', sans-serif;
}

.floating-menu a {
  display: block;
  color: var(--snow);
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.floating-menu a:last-child {
  border-bottom: none;
}
.floating-menu a:hover {
  background-color: #333;
  padding-left: 5px;
}

/* Fondo para cerrar al hacer clic fuera */
.overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100% - 60px);
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* Dark mode también afecta al menú flotante */
.dark-mode .floating-menu {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.dark-mode .floating-menu a {
  color: var(--text-dark);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.dark-mode .floating-menu a:hover {
  background-color: #222;
}

  .modal-personalizado {
    width: 400px; /* o 600px, o lo que tú quieras */
    max-width: 900px; /* Opcional, para no hacerlo muy ancho en pantallas chicas */
  }

  @media (max-width: 768px) {
    .modal-personalizado {
      width: 95%; /* Que se vea bien en celulares */
    }
  }

/* */ 
button {
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  cursor: pointer;
  width: 80px;
  height: 35px;
  background-image: linear-gradient(to top, #D8D9DB 0%, #fff 80%, #FDFDFD 100%);
  border-radius: 40px;
  border: 1px solid #8F9092;
  transition: all 0.2s ease;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #606060;
  text-shadow: 0 1px #fff;
}

button:hover {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 3px 3px #CECFD1;
}

button:active {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}

button:focus {
  box-shadow: 0 4px 3px 1px #FCFCFC, 0 6px 8px #D6D7D9, 0 -4px 4px #CECFD1, 0 -6px 4px #FEFEFE, inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
}

.footer {
  background-color: rgba(12,12,12,0.9);
  height: 80px;
  line-height: 80px;
  display: inline-block;
  text-align: center;
  width: 100%;
  color: white;
}

.footer p {
  margin-bottom: 0px;
  font-size: 13px;
  line-height: 80px;
  color: #ffffff;
  letter-spacing: 0.5px;
  font-weight: 300;
  z-index: 3;
}

.footer p a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  z-index: 3;
}

/* ====== Tabletas y móviles grandes (<= 1024px) ====== */
@media (max-width: 1024px) {
  .main-container {
    flex-direction: column;
    align-items: center;
  }
  #airport-fun {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
  }
  .glossary {
    width: 90%;
    margin-bottom: 20px;
  }
  .section-heading h1 {
    font-size: 28px;
    margin-right: 20px;
  }
  .section-heading p {
    font-size: 14px;
    top: 10px;
  }
  header h1 {
    font-size: 1.5rem;
  }
  .img-eu {
    width: 100%;
    margin: 40px 0 0;
  }
}

/* ====== Móviles medianos (<= 768px) ====== */
@media (max-width: 768px) {
  #airport-fun {
    height: 250px;
  }
  .marker {
    font-size: 24px;
  }
  .plane-icon {
    font-size: 24px;
  }
  .glossary {
    padding: 15px;
  }
  .glossary h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .section-heading h1 {
    font-size: 24px;
  }
  .section-heading p {
    display: block;
    position: static;
    margin-top: 8px;
    line-height: 22px;
  }
  /* Ajuste de botones en cabecera */
  #theme-toggle, #translate-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    top: 0.8rem;
  }
  .menu-toggle {
    left: 1rem;
    top: 1rem;
  }
  .floating-menu {
    top: 50px;
    left: 0.5rem;
  }
}

/* ====== Celulares pequeños (<= 480px) ====== */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  #airport-fun {
    height: 200px;
    background-position: 50% 40%;
  }
  .marker {
    font-size: 20px;
  }
  .plane-icon {
    display: none; /* oculta íconos extra para simplificar */
  }
  .glossary {
    width: 100%;
    padding: 10px;
  }
  .glossary th, .glossary td {
    font-size: 12px;
    padding: 6px;
  }
  .section-heading h1 {
    font-size: 20px;
  }
  .section-heading em {
    display: block;
    margin-top: 4px;
  }
  .section-heading p {
    font-size: 13px;
  }
  header img {
    height: 60px;
  }
  header h1 {
    font-size: 1.3rem;
  }
  #theme-toggle, #translate-toggle {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  .menu-toggle span {
    width: 40px;
    height: 3px;
    margin: 4px 0;
  }
  .modal-personalizado {
    width: 100%;
    max-width: 100%;
  }
  .img-eu {
    display: none; /* opcional: oculta imagen grande en móviles */
  }
  .footer {
    font-size: 12px;
    height: auto;
    padding: 10px 0;
    line-height: 1.4;
  }
}
