body {
  margin: 0;
  background: #111;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* MAPA */
#map {
  top: 0px;
  height: 100vh;
  width: 100%;
}

/* CONTROLES */
#controles {
  position: fixed;
  top: 70px;
  left: 10px;
  z-index: 1000;
  background: #222;
  padding: 10px;
  border-radius: 8px;
  width: 220px;
}

#controles button {
  padding: 8px 12px;
  margin: 6px 0;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#controles select {
  width: 100%;
  padding: 6px;
  margin-top: 5px;
  border-radius: 5px;
}

/* EDITOR */
#editor {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #222;
  padding: 10px;
  border-top: 2px solid lime;
  z-index: 999;
}

#editor input {
  margin: 5px;
  padding: 8px;
  border-radius: 5px;
  border: none;
}

/* BANDERA */
.bandera-container {
  position: relative;
  display: flex;
  align-items: center;
}

.mástil {
  width: 4px;
  height: 40px;
  background: #444;
  box-shadow: 0 0 3px rgba(0,0,0,0.6);
}

.bandera {
  margin-left: 5px;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ffffff, #eaeaea);
  color: #333;
  font-weight: bold;
  border: 1px solid #aaa;
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  transform-origin: left center;
  animation: ondear 2s infinite ease-in-out;
}

/* Animación de ondeo */
@keyframes ondear {
  0%   { transform: perspective(200px) rotateY(-10deg) skewY(0deg); }
  25%  { transform: perspective(200px) rotateY(-8deg)  skewY(2deg); }
  50%  { transform: perspective(200px) rotateY(-12deg) skewY(-2deg); }
  75%  { transform: perspective(200px) rotateY(-9deg)  skewY(1deg); }
  100% { transform: perspective(200px) rotateY(-10deg) skewY(0deg); }
}

.bandera:hover {
  background: linear-gradient(135deg, #f9f9f9, #ddd);
  transform: perspective(200px) rotateY(0deg) scale(1.05);
  animation-play-state: paused; /* Se pausa cuando pasas el mouse */
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 9%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
}

.header .logo {
    font-size: 22px;
    font-weight: bold;
    color: #4A7A32;
    text-decoration: none;
}

.header .logo i {
    margin-right: 8px;
}

.header .navbar {
    display: flex;
    gap: 20px;
}

.header .navbar a {
    font-size: 16px;
    color: #1a1753;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.header .navbar a:hover,
.header .navbar a.active {
    color: #8b5a2b;
}

.header .icons {
    display: none;
}

#menu-btn, #close-navbar {
    font-size: 20px;
    color: #1a1753;
    cursor: pointer;
    display: none;
}

/* ================= RESPONSIVE ================= */

/* Tablets */
@media (max-width: 1024px) {
  #controles {
    width: 180px;
    padding: 8px;
  }
  #controles button {
    font-size: 14px;
    padding: 6px;
  }
}

/* Celulares grandes */
@media (max-width: 768px) {
  #controles {
    top: auto;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  #controles button, 
  #controles select {
    width: 48%;
    margin: 5px 0;
    font-size: 13px;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {
  #controles {
    flex-direction: column;
    bottom: 10px;
    width: 95%;
    padding: 8px;
  }

  #controles button,
  #controles select {
    width: 100%;
    font-size: 12px;
    padding: 7px;
  }

  .header .logo {
    font-size: 18px;
  }
}

/* Responsive navbar */
@media (max-width: 900px) {
    .header .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100%;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: right 0.3s ease;
    }

    .header .navbar.active {
        right: 0;
    }

    .header .icons {
        display: block;
    }

    #menu-btn {
        display: inline-block;
    }

    #close-navbar {
        display: block;
        align-self: flex-end;
        margin-bottom: 20px;
    }
}










/* Estilo del tooltip de Intro.js */
.introjs-tooltip {
    background-color: #ffffff !important; /* Fondo blanco */
    color: #333333 !important; /* Texto oscuro */
    font-size: 16px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    max-width: 300px;
}

/* Flecha del tooltip */
.introjs-arrow {
    border-top-color: #ffffff !important; /* Ajusta según la dirección */
}

/* Botones del tutorial */
.introjs-button {
    background-color: #2e7d32 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    margin: 2px;
    cursor: pointer;
    font-weight: bold;
}

.introjs-button:hover {
    background-color: #1b5e20 !important;
}

/* Botón "Saltar" */
.introjs-skipbutton {
    background-color: #d32f2f !important;
    color: #ffffff !important;
    border-radius: 5px;
    padding: 6px 12px;
    font-weight: bold;
}

.introjs-skipbutton:hover {
    background-color: #b71c1c !important;
}



