/* Fondo degradado animado */
body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #e63946, #457b9d, #2a9d8f, #f4a261, #e9c46a);
  background-size: 400% 400%;
  animation: gradientAnim 20s ease infinite;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
}

/* Animación del fondo */
@keyframes gradientAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contenedor principal */
.main-container {
  flex: 1; /* ocupa el espacio disponible */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px; /* espacio mínimo arriba/abajo */
  box-sizing: border-box;
}

/* ====== Tarjeta Login ====== */
.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 380px;  /* por defecto en móvil/tablet */
  text-align: center;
  margin: auto;
  animation: fadeIn 1s ease;
}

@media (min-width: 992px) {
  .login-card {
    max-width: 500px;  /* más ancho en PC */
    padding: 2.5rem;
  }
}

/* ====== Igualar altura de las cards ====== */
.equal-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: auto;
}

@media (min-width: 992px) {
  .equal-card {
    height: 100%;
    min-height: 550px; /* puedes ajustar este valor */
  }
}


/* Animación suave al aparecer */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inputs */
.login-card .form-control {
  border-radius: 8px;
  padding: 10px;
}

/* ===== Botones principales con degradado animado ===== */
.btn-fesc,
.btn-link-fesc {
  display: inline-block;
  background: linear-gradient(135deg, #e63946, #457b9d, #2a9d8f, #f4a261, #e9c46a);
  background-size: 400% 400%;
  animation: gradientAnim 6s ease infinite;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 15px;
  border: none;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-fesc:hover,
.btn-link-fesc:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #fff !important;
}

/* ====== Footer FESC ====== */
.footer-fesc {
  background: #123465; /* azul oscuro */
  color: #eee;
  padding: 2rem 1rem 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 250px;
}

.footer-col h5 {
  color: #f4a261;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #eee;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #f4a261;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9c46a;
  color: #234;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: #e76f51;
  color: #fff;
}

/* Franja inferior */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.9rem;
  color: #ccc;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-col {
    flex: 1 1 100%;
  }

  .footer-social {
    justify-content: center;
  }
}


/* ====== Header FESC ====== */
.header-fesc {
  background: #234; /* azul oscuro */
  color: #fff;
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.logo img {
  max-height: 40px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #f4a261;
}

/* ====== Mobile Menu ====== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .header-container {
    flex-direction: column;
  }
}
/* ===== Header ===== */
.header-fesc {
  background: #234;
  color: #fff;
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: bold;
  font-size: 1.1rem;
}

.logo img {
  max-height: 40px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: #f4a261;
}

/* ===== Botón hamburguesa ===== */
.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
}
.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger.active {
  transform: rotate(90deg); /* pequeño giro al activar */
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #123;
    padding: 1rem;
    position: absolute;
    top: 60px;
    right: 10px;
    border-radius: 8px;
  }

  .nav-menu.show {
    display: flex;
  }
}
/* Botón principal */
.btn-fesc {
  background: linear-gradient(135deg, #e63946, #457b9d, #2a9d8f, #f4a261, #e9c46a);
  background-size: 400% 400%;
  animation: gradientAnim 6s ease infinite;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px;
  border: none;
  transition: transform 0.3s ease;
}

.btn-fesc:hover {
  transform: scale(1.05);
  color: #fff;
}

/* Enlaces secundarios (registrarse / olvidar contraseña) */
a.text-decoration-none {
  font-weight: 500;
  color: #1d4ed8;
  transition: color 0.3s ease;
}

a.text-decoration-none:hover {
  color: #e63946; /* resalta con uno de los colores del fondo */
}
.register-card {
  max-width: 450px;
}
.container {
  min-height: calc(100vh - 200px); /* resta header + footer */
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1d4ed8;
  margin-bottom: 1.5rem;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; 
}
/* ============================= */
/* Ajustes responsive completar_datos */
/* ============================= */
/* ============================= */
/* Ajustes Header y Footer igual que Index */
/* ============================= */
.header-fesc {
  background: #234;
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo img {
  max-height: 50px;
}

/* ===== Footer ===== */
.footer-fesc {
  background: #123465;
  color: #eee;
  padding: 2.5rem 1rem;
}

.footer-col h5 {
  color: #f4a261;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-col a,
.footer-col p {
  font-size: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 1rem;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    font-size: 1rem;
  }
  .logo img {
    max-height: 40px;
  }
  .footer-col h5 {
    font-size: 1.1rem;
  }
  .footer-col a,
  .footer-col p {
    font-size: 0.95rem;
  }
}

.header-fesc {
  background-color: #003366; /* azul institucional */
  padding: 0.5rem 1rem;
}

.header-fesc .navbar-brand span {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.header-fesc .navbar-toggler {
  border: none;
}

.header-fesc .navbar-toggler:focus {
  box-shadow: none;
}

.header-fesc {
  background-color: #002147; /* azul de tu index */
}

.perfil-card {
  max-width: 800px; /* ancho máximo en escritorio */
  margin: 0 auto;   /* centrar */
}

.perfil-card .form-control {
  padding: 12px 15px; /* inputs más grandes */
  font-size: 1rem;
}

.perfil-card .mb-4 {
  margin-bottom: 1.5rem !important; /* más espacio vertical */
}

/* ============================= */
/* Estilos para Editar Perfil */
/* ============================= */
.perfil-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 850px;   /* ancho máximo en escritorio */
  margin: 40px auto;  /* centrado con espacio arriba */
  text-align: left;   /* labels alineados a la izquierda */
  animation: fadeIn 1s ease;
  box-sizing: border-box;
}

/* Inputs dentro del perfil */
.perfil-card .form-control {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1rem;
  width: 100%;
}

/* Más espacio entre grupos */
.perfil-card .mb-4 {
  margin-bottom: 1.8rem !important;
}

/* Responsive: móviles y tablets */
@media (max-width: 768px) {
  .perfil-card {
    padding: 1.2rem;
    margin: 20px;
    max-width: 100%;   /* que ocupe todo el ancho disponible */
  }
}

.btn-outline-secondary {
  border-left: none; /* elimina doble borde */
}

.btn-outline-secondary:hover {
  background-color: #0d6efd;
  color: white;
}

/* Asegura que el card de talleres crezca en pantallas grandes */
@media (min-width: 992px) {
  .col-lg {
    flex: 1;
  }
}

/* Que el texto no empuje al botón */
.list-group-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.login-card {
  max-width: 400px;
  width: 100%;
  margin: 20px auto;
  border-radius: 12px;
}

.login-card img {
  max-height: 70px;
  margin-bottom: 15px;
}

.login-card h4 {
  font-weight: bold;
}

.login-card form .form-control {
  border-radius: 8px;
}

.login-card .btn {
  font-weight: bold;
  border-radius: 8px;
  padding: 10px;
}

/* Botones de abajo */
.login-card .btn-link-fesc {
  display: inline-block;
  padding: 10px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

/* Ajuste para responsivo */
@media (max-width: 576px) {
  .login-card {
    max-width: 95%;
    padding: 15px;
  }

  .login-card .d-flex {
    flex-direction: column;
  }

  .login-card .d-flex a {
    margin-bottom: 10px;
  }
}
.equal-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px; /* ajusta este valor según lo que quieras */
}
/* ===== Igualar altura solo en pantallas grandes ===== */
@media (min-width: 992px) {  /* PC */
  .equal-card {
    height: 100%; 
    min-height: 500px;   /* alto mínimo para que no se vean pequeños */
    display: flex;
    flex-direction: column;
  }
}

/* ===== En móviles se apilan normalmente ===== */
@media (max-width: 991px) {
  .equal-card {
    height: auto;   /* que crezca según contenido */
    min-height: auto;
  }
}



