* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.header {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    background-color: #4A90E2;
    padding: 15px 25px;
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img, .user-icon img  {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.search-container input.searchBar {
  flex: 1;
  padding: 8px;
  font-size: 16px;
}

.search-button {
  background-color: #007acc;
  color: white;
  border: none;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}

.search-button:hover {
  background-color: #005f99;
}


.main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

.selectors {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
    min-width: 150px;
}

#climaResultados {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.clima-card {
    background-color: white;
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 250px;
    text-align: center;
}

#mapa {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 400px;
}

.footer {
    background-color: #4A90E2;
    color: white;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-logo img {
    width: 30px;
}

.notificaciones-container {
    position: relative;
    display: inline-block;
}

.notificaciones-btn {
    width: 40px; 
    height: 40px; 
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notificaciones-btn img {
    width: 100%;
    height: 100%;
}
.notificaciones {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    min-width: 200px;
}

.notificaciones p {
    padding: 8px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.notificaciones p:last-child {
    border-bottom: none;
}

/* Campos del formulario dentro del modal */

/* Estilos mejorados para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  margin: 8% auto;
  padding: 30px;
  border-radius: 15px;
  width: 85%;
  max-width: 500px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 600;
  border-bottom: 2px solid #4A90E2;
  padding-bottom: 10px;
}

.cerrar {
  position: absolute;
  right: 25px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #7f8c8d;
  transition: color 0.3s;
}

.cerrar:hover {
  color: #e74c3c;
}

/* Estilos mejorados para el formulario */
#formEvento {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#formEvento input,
#formEvento textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s;
  background-color: rgba(255, 255, 255, 0.8);
}

#formEvento input:focus,
#formEvento textarea:focus {
  border-color: #4A90E2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
  outline: none;
}

#formEvento textarea {
  min-height: 100px;
  resize: vertical;
}

/* Estilos mejorados para los botones */
#formEvento button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

#formEvento button[type="submit"] {
  background: linear-gradient(135deg, #4A90E2 0%, #3a7bd5 100%);
  color: white;
}

#formEvento button[type="submit"]:hover {
  background: linear-gradient(135deg, #3a7bd5 0%, #2a6bc7 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#formEvento button[type="button"] {
  background: linear-gradient(135deg, #f5f7fa 0%, #e0e0e0 100%);
  color: #2c3e50;
}

#formEvento button[type="button"]:hover {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    padding: 20px;
    margin: 20% auto;
  }
  
  #formEvento input,
  #formEvento textarea,
  #formEvento button {
    padding: 10px 12px;
    font-size: 14px;
  }
}
/* Responsive Design */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .main {
        max-width: 100%;
        padding: 10px;
    }

    .selectors {
        flex-direction: column;
        width: 100%;
    }

    .clima-card {
        padding: 15px;
        font-size: 14px;
    }

    .footer {
        padding: 15px;
    }
}

/* === Estilo para páginas de formularios === */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
}

form {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  margin-bottom: 20px;
  transition: all 0.3s ease-in-out;
}

form input {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

form button {
  margin-top: 20px;
  padding: 12px;
  background-color: #007acc;
  border: none;
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #005f99;
}

/* Títulos centrados */
h2 {
  margin-bottom: 20px;
  color: #007acc;
  font-size: 24px;
}

/* Header ya existente */
.logo img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}
.btn {
  padding: 10px 20px;
  background-color: #007acc;
  border: none;
  color: white;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin: 10px 0;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #005fa3;
}

.btn.secondary {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
}

.btn.secondary:hover {
  background-color: #e0e0e0;
}

.extra-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}