/* ====== ESTILOS GENERALES ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-image: url('/static/fondo.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

footer {
  background-color: #111;
  text-align: center;
  padding: 12px 10px;
  font-size: 14px;
  margin-top: auto;
}

/* ====== ENCABEZADO Y NAVEGACIÓN ====== */
header {
  background-color: #111;
  color: white;
  padding: 10px 15px;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.btn-auth {
  background-color: #c0392b;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.btn-auth:hover {
  background-color: #e74c3c;
}

.nav-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  background-color: #222;
  padding: 10px 5px;
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropbtn {
  background-color: #3a3a3a;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #222;
  min-width: 160px;
  top: 100%;
  left: 0;
  z-index: 10;
  border-radius: 6px;
}

.dropdown-content a {
  color: white;
  padding: 10px;
  display: block;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #555;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ====== ÁREA CENTRAL ====== */
.central-area {
  text-align: center;
  padding: 50px 15px;
  max-width: 700px;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}

.central-area h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

/* ====== MODALES ====== */
.modal-apoyo {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-apoyo-content {
  background-color: #2f2f2f;
  color: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 15px #000;
  position: relative;
}

.modal-apoyo h2 {
  margin-bottom: 15px;
}

.modal-apoyo p {
  margin-bottom: 10px;
  font-size: 15px;
}

.modal-apoyo input[type="text"],
.modal-apoyo input[type="email"],
.modal-apoyo input[type="password"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
}

.modal-apoyo-btn {
  background-color: #c0392b;
  color: white;
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.modal-apoyo-btn:hover {
  background-color: #e74c3c;
}

.modal-apoyo-donar {
  display: block;
  background-color: #3498db;
  color: white;
  text-align: center;
  padding: 8px 0;
  margin: 5px 0;
  border-radius: 5px;
}

.modal-apoyo-donar:hover {
  background-color: #2980b9;
}

.modal-apoyo-close {
  position: absolute;
  top: 8px;
  right: 12px;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* ====== BIENVENIDA ====== */
.bienvenida-box {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.bienvenida-box h2 {
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 15px;
}

.bienvenida-box p {
  color: #dddddd;
  font-size: 16px;
  margin: 5px 0;
}

/* ====== MENÚ MÓVIL ====== */
.btn-menu-movil {
  display: none;
  background-color: #004080;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  width: 100%;
  cursor: pointer;
}

#menu-desplegable {
  display: none;
  flex-direction: column;
  background-color: #111;
  padding: 10px 0;
}

#menu-desplegable a {
  color: white;
  padding: 10px;
  text-decoration: none;
  border-top: 1px solid #333;
  font-size: 14px;
  text-align: center;
}

#menu-desplegable a:hover {
  background-color: #222;
}

#menu-desplegable.visible {
  display: flex;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .header-top-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-top-row h1 {
    font-size: 18px;
  }

  .btn-auth {
    padding: 5px 8px;
    font-size: 12px;
  }

  .dropbtn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .dropdown-content a {
    font-size: 12px;
  }

  .central-area {
    padding: 30px 10px;
  }

  .modal-apoyo-content {
    max-width: 90%;
    padding: 20px;
  }

  .nav-section {
    display: none;
  }

  .btn-menu-movil {
    display: block;
  }
}

/* ===== MENÚ DESPLEGABLE MÓVIL MEJORADO ===== */
#menu-desplegable {
  display: none;
  flex-direction: column;
  background-color: #111;
  padding: 10px;
  gap: 8px;
}

#menu-desplegable .dropdown {
  width: 100%;
}

#menu-desplegable .dropbtn {
  background-color: #1a1a1a;
  color: white;
  border: 1px solid #333;
  padding: 12px;
  font-size: 15px;
  width: 100%;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s;
}

#menu-desplegable .dropbtn:hover {
  background-color: #292929;
}

#menu-desplegable .dropdown-content {
  display: none;
  flex-direction: column;
  background-color: #222;
  margin-top: 6px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #333;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

#menu-desplegable .dropdown-content a {
  padding: 10px 14px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #333;
  border-radius: 6px;
  transition: background-color 0.2s;
}

#menu-desplegable .dropdown-content a:hover {
  background-color: #333;
}

#menu-desplegable .dropdown-content a:last-child {
  border-bottom: none;
}

#menu-desplegable .dropdown-content.visible {
  display: flex;
}

/* Estilo general de submenús */
#menu-desplegable .dropdown-content {
  display: none;
  flex-direction: column;
  background-color: #0d1b2a; /* color más oscuro */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.5);
}

/* Enlaces del submenú (por defecto) */
#menu-desplegable .dropdown-content a {
  text-align: left;
  padding: 10px 20px;
  font-size: 14px;
  color: white;
  text-decoration: none;
}

/* Al pasar el mouse */
#menu-desplegable .dropdown-content a:hover {
  background-color: #1e2d3d;
}

/* Cuando un submenú está visible, darle color de fondo distinto */
#menu-desplegable .dropdown-content.visible {
  display: flex;
  background-color: #173753; /* celeste oscuro diferenciado */
}

/* Botón activo también se resalta */
#menu-desplegable .dropbtn.activo {
  background-color: #004080;
  color: #fff;
  font-weight: bold;
}

body {
  position: relative;
  background-image: url('/static/fondo.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
  margin: 0;
}

/* Capa oscura encima del fondo */
.fondo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* opacidad del 50% */
  z-index: -1;
}

/* Mostrar el menú en PC como barra horizontal */
@media (min-width: 769px) {
  #menu-desplegable {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
  }

  #menu-desplegable .dropdown {
    position: relative;
    width: auto;
  }

  #menu-desplegable .dropbtn {
    width: auto;
    border-radius: 8px;
  }

  #menu-desplegable .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    z-index: 1000;
  }
}

/* BOTON INICIAR SESION GMAIL*/
.google-btn {
  background-color: #db4437;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
  transition: background-color 0.3s;
}

.google-btn:hover {
  background-color: #c33c2f;
}

/* cartel  inicio de sesion gmail correcto*/
.flash-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4caf50; /* Verde profesional */
  color: white;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flash-toast.hide {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}
