/* ==================== Reset y globales ==================== */
* {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: "Roboto", sans-serif;
  }
  
  /* ==================== Encabezado ==================== */
  .headerMain {
    background-color: #002f6c;
    padding: 10px 20px;
    color: white;
  }
  
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .hMainLeft {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .logo {
    font-size: 22px;
    font-weight: bold;
  }
  
  .rayito {
    display: inline-block;
    transform: rotate(-45deg);
    margin-left: 4px;
  }
  
  .hamburger {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
  }
  
  /* ==================== Contenido principal ==================== */
  #container {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-top: 0; /* lo maneja el #results */
    height: calc(100vh - 180px); /* ajusta si header+results son más altos */
    box-sizing: border-box;
  }
  
  .form-wrapper {
    width: 30%;
    min-width: 360px;
    padding: 0;               /* Opcional: quitar espacio interno */
    background-color: transparent; /* ✅ Elimina el fondo blanco */
    border: none;             /* ✅ Asegura que no haya borde */
    box-shadow: none;         /* ✅ Elimina sombra */
  }
  
  /* ==================== Mapa ==================== */
  #map {
    flex: 1;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    padding-bottom: 200px;
  }
  
  .custom-map-label {
    background-color: #005dab;
    border-radius: 15px;
    margin: 5px;
    padding: 6px 24px;
    font-size: 16px;
    color: white;
    font-weight: 500;
  }
  
  /* ==================== Formulario ==================== */
  form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  input {
    width: 100%;
    margin-top: 0;
    padding: 0.5em;
    border: 0.5px solid gray;
    border-radius: 10px;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
  }
  
  input:disabled {
    background-color: #f0f0f0;
    color: #888;
    border-color: #ccc;
    cursor: not-allowed;
  }
  
  input[type=reset] {
    width: auto;
    height: auto;
    border-bottom: 0;
    background-color: transparent;
    color: rgb(104, 104, 104);
    font-size: 14px;
  }
  
  /* ==================== Etiquetas y campos ==================== */
  .form-label {
    width: 100%;
    padding: 0.5em;
  }
  
  .full-field {
    margin: 15px 0;
  }
  
  label.full-field:has(#search_cp) {
    display: none;
  }
  
  .slim-field-left,
  .slim-field-right {
    flex: 1 150px;
    margin: 15px;
  }
  
  .title {
    font-size: 20px;
    font-weight: 500;
  }
  
  .mensajeOK {
    margin-top: 50px;
    font-size: 18px;
    color: rgb(200, 0, 0);
    font-weight: 500;
  }
  
  .note {
    font-size: 12px;
  }
  
  /* ==================== Botones ==================== */
  .my-button {
    background-color: #0077d9;
    border-radius: 15px;
    color: #fff;
    border: none;
    margin: 5px;
    cursor: pointer;
    padding: 6px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
  }
  
  .my-button:hover {
    background-color: #666;
  }
  
  .my-button:active {
    position: relative;
    top: 1px;
  }
  
  /* ==================== Loader ==================== */
  #contenedor {
    background-color: transparent;
    display: grid;
    place-content: center;
    height: 5vh;
    color: #ed2a00;
  }
  
  .cargando {
    position: relative;
    color: #0077d9;
    margin-top: 0.1em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .rueda {
    border: 10px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
    border-left-color: transparent;
    width: 10px;
    height: 10px;
    animation: giro 1s linear infinite;
  }
  
  @keyframes giro {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /* ==================== Responsive ==================== */
  @media (max-width: 768px) {
    #container {
      flex-direction: column;
      height: auto;
    }
  
    #map {
      height: 400px;
      width: 100%;
    }
  
    .form-wrapper {
        max-width: 320px;
        padding: 0;               /* Opcional: quitar espacio interno */
        background-color: transparent; /* ✅ Elimina el fondo blanco */
        border: none;             /* ✅ Asegura que no haya borde */
        box-shadow: none;         /* ✅ Elimina sombra */
      }
      
  }
  
  #results {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 16px;
  }
  
  