/* CABECERA */
header {
    background-color: #2e326e;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid #2e326e;    
    
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%; /* Ocupa todo el ancho */
    padding: 0;
    justify-content: space-between; /* Alinea logo a izquierda, menú a derecha */
    margin: 0; /* Elimina margen automático */
   
}


.logo { 
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    /* No necesita más nada */
}

.logo img {
    height: 80px;
    display: block;
    margin: 0;
    padding: 0;
}

.ticker-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
    padding: 0 20px;
}

.ticker {
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker span {
    color: #ce1b1b;
    font-size: 16px;
    padding: 0 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff4b4b;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

.login-button {
  background-color: #d12026;
  color: white;
  border: none;
  padding: 10px 26px;
  font-size: 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
}

.login-button:hover {
  background-color:  #f64646;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #2e326e;
        width: 200px;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .ticker-container {
        display: none;
    }
}

/* para el login/
/* ESTILOS GENERALES DEL MODAL BOOTSTRAP PERSONALIZADO */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out, opacity 0.3s ease;
  transform: translateY(-50px);
  opacity: 0;
}

.modal.show .modal-dialog {
  transform: translateY(0);
  opacity: 1;
}

.modal-content {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ENCABEZADO - AZUL PROFUNDO */
.modal-header {
  background: linear-gradient(135deg, #060b41 0%, #0b1455 100%);
  color: white;
  padding: 1.2rem;
  border-bottom: none;
  position: relative;
}

.modal-header h5 {
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.5px;
}

.modal-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  filter: invert(1) brightness(2);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-header .btn-close:hover {
  opacity: 1;
}

/* CUERPO DEL MODAL */
.modal-body {
  padding: 2rem;
  background-color: #f8f9fa;
}

/* FORMULARIO */
#login-form .form-group {
  margin-bottom: 1.5rem;
}

#login-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
}

#login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: #fff;
}

#login-form input:focus {
  border-color: #1a237e;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
  outline: none;
}

/* BOTÓN DE ENVÍO - ROJO ELEGANTE */
/* Estilo para los botones del modal-footer */
.modal-footer {
  border-top: none;
  padding: 1.5rem;
  padding-top: 0;
  display: flex;
  justify-content: center; /* Centra los botones */
  gap: 1rem; /* Espacio entre botones */
}

/* Estilo base para ambos botones */
.btn-login, .btn-close-modal {
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
  min-width: 150px; /* Mismo ancho */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}

/* Botón INGRESAR - Gradiente rojo */
.btn-login {
  background: linear-gradient(135deg, #a70808 0%, #b30c0c 100%);
  color: white;
}

/* Botón CERRAR - Gradiente azul */
.btn-close-modal {
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
}

/* Efectos hover */
.btn-login:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8e0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(198, 40, 40, 0.3);
}

.btn-close-modal:hover {
  background: linear-gradient(135deg, #283593 0%, #1a237e 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(26, 35, 126, 0.3);
}

/* Ajuste para íconos */
.btn-login i, .btn-close-modal i {
  font-size: 1.1em;
  margin-right: 8px;
}

/* Asegurar que el modal no se cierre al hacer clic fuera */
.modal {
  pointer-events: none;
}

.modal-dialog {
  pointer-events: all;
}

.submit-button:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8e0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(198, 40, 40, 0.15);
}

.submit-button:active {
  transform: translateY(0);
}

/* EFECTOS ADICIONALES */
@media (max-width: 576px) {
  .modal-dialog {
      margin: 1rem auto;
  }
  
  .modal-body {
      padding: 1.5rem;
  }
}

/* ANIMACIÓN AL MOSTRARSE */
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal.show .modal-content {
  animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}