body {
  background-image: url(img/nubes.png);
  background-size: cover;
}
.navbar {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: auto;
  height: 60px;
  justify-content: left;
}
.logo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
}
.container {
  width: 1320px;
  height: 800px;
  background: rgba(10, 10, 10, 0.5);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  opacity: 1;
  padding-top: 1px;
}
.info-flex {
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  align-items: center;
}
.main-box {
    width: 500px;
    margin: 60px auto;
    background: rgba(1, 1, 1, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 32px 24px;
}

.search-bar {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative
}

.search-bar input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    padding: 0 12px;
    border: 1px solid #ccc;
    font-size: 1.1rem;
}

.city-name {
    width: 100%;
    background: transparent;
    text-align: center;
}

.city-name h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
}
.datos-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.datosclima {
    width: 100%;
    margin: 0 auto;
    background: rgba(10,10,10,0.8);
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: #fff;
    gap: 12px;
}

.sensacion-row,
.clima-row {
    width: 90%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #888;
    color: #fff;
}

.sensacion-row:last-child,
.clima-row:last-child {
    border-bottom: none;
}

.sensacion-izq, .sensacion-centro, .sensacion-der,
.clima-izq, .clima-centro, .clima-der {
    min-height: 64px; /* igual a la altura del icono */
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensacion-izq, .clima-izq {
    justify-content: flex-start;
     flex: 0 0 64px;
}
.sensacion-centro, .clima-centro {
    justify-content: center;
    flex: 1;
    text-align: center;
}
.sensacion-der, .clima-der {
    justify-content: flex-end;
     flex: 0 0 80px; /* espacio fijo para los valores, como 75%, 1015, etc. */
    text-align: right;
}

.temp {
    font-size: 2rem;
    font-weight: bold;
}

.description {
    font-size: 1.2rem;
    font-weight: 400;
    padding-right: 20px;
    white-space: nowrap;
}
.icono-clima{
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding-left: 20px;
}
.icono-clima2{
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    padding-right: 20px;
}
.icono-termica,
.icono-humedad {
    width: 54px;
    height: 64px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.sensacion-row, .clima-row, .datosclima {
    min-height: 80px; /* Ajusta según el tamaño de tus íconos */
    align-items: center;
}

.clima-centro, .clima-der,
.sensacion-centro, .sensacion-der {
    line-height: 64px; /* Igual a la altura del icono */
}
/* Sugerencias de autocompletado */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
}

#suggestions li {
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

#suggestions li:last-child {
    border-bottom: none;
}

#suggestions li:hover,
#suggestions li:focus {
    background: #2a7cff;
    color: #fff;
}