/*  ===== GLOBAL USUARIOS ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(to right, #0a1a4a, #000000);
    color: #f5f5f5;
}

/* ===== Header principal ===== */
header{
    background-color: rgba(30, 58, 138, 0.9);
    padding: 15px 30px;
}

.header-container {
    display: flex;
    background-color: #1c1c2e;
    padding: 1rem 2rem;
    color: white;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
/* ===== Tamaño Logo ===== */
.logo {
    height: 50px;
}

/* ===== Barra de navegación ===== */
.nav-bar-superior ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-bar-superior ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-bar-superior ul li a:hover {
    color: #ffd700;
    
}
/* =====  Posicion Nombre de Usuario y Botones===== */
.usuario-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}


/* Avatar del usuario */
.avatar-logo {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.logo-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #00bfff;
}
/* ===== Botones Nav ===== */
.boton-nav:hover {
  background-color: #c0392b;
}

.boton-nav {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}


/* ===== Textos ===== */
.texto-nav {
  background-color: #2c3e50;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #ffd700;
}

p {
    margin-bottom: 10px;
}

footer {
    background-color: rgba(30, 58, 138, 0.9);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    border-top: 2px solid #ffd700;
}

/* ===== ADMINISTRACION USUARIOS===== */

/* ===== Tarjetas de cursos o talleres ===== */
.tarjetas-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 10px;
}

.tarjeta {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.2s;
    color: #fff;
}

/* Contenedor de tarjetas */
.tarjetas-container-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 10px;
}

/* Tarjeta individual */
.tarjeta-4 {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(25, 12, 211, 0.3);
    text-align: center;
    transition: transform 0.2s;
    color: #fff;
    
}

.tarjeta-4:hover {
    transform: translateY(-5px);
}

/* Elementos internos de la tarjeta */
.tarjeta-4 p {
    font-size: 18px;
    margin-top: 15px;
}

.tarjeta-4 a {
    text-decoration: none;
}

.tarjeta-4 img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Texto adicional */
.texto-4 p {
    font-size: 17px;
}

.tarjeta:hover {
    transform: translateY(-5px);
}



/* ===== Listas y detalles ===== */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin: 10px 0;
}

/* ===== Mensajes de advertencia ===== */
.warning {
    color: red;
    font-size: 20px;
    margin-right: 5px;
}

/* ===== Botones generales ===== */
.btn {
    text-decoration: none;
    color: white;
}

.btn:hover {
    transition: 1500ms;
    box-shadow: 0px 1px 1px 5px rgb(1, 247, 247, 0.2);
}


.bajo{
    height: 78vh;
    padding: 10px;
}
.panel{
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    
}

.panel div{
    display: flex;
    justify-content: center;
}

table{
    margin: 15px;
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    color: #fff;
}

table th, table td{
    border: 1px solid #444;
    padding: 10px;
    text-align: center;
}

table th{
    background: rgba(30, 58, 138, 0.9);
    color: #ffd700;
}

.btn{
    background: #1e3a8a;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn.agregar{
    background: #28a745;
    margin-top: 10px;
    font-style: none;
    text-decoration: none;
    width: 500px;

}

.btn.agregar:hover{
    background: #218838;
    color: #fff;
    font-size: 20px;
}

/* ===== PROFESORES USUARIOS===== */

/* Sección de suscritos */
.suscritos {
    margin-top: 80px;
}

/* Contenedor de tarjetas 2 */
.tarjetas_container2 {
    display: flex;
    justify-content: center;
}

/* Tarjeta 2 */
.tarjeta2 {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); 
    color: #fff;
    display: flex;
    grid-template-columns: repeat(3,2fr);
    gap: 40px;
}

/* Acciones del profesor */
.accionesprofesor {
    background: #18181B;
    width: 21rem;
    border-radius: 12px;
    box-shadow: 0 4px 4px rgba(0,0,0,0.3);
    text-align: center;
    color: #fff;
}

.accionesprofesor p {
    margin-top: 15px;
    font-size: 15px;
}

.accionesprofesor img {
    width: 7rem;
}

/* ===== ESTUDIANTES USUARIOS===== */

/* ===== Seccion Con Cursos===== */
.card {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    background: rgba(26, 31, 61, 0.9);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.2s;
    backdrop-filter: blur(5px);
    width: 25rem;
    height: 30rem;
    margin: 10px;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 10rem;
    margin-left: 100px;
}

.card h3 {
    text-align: center;
    color: #ffcc00;
    margin-bottom: 10px;
}

.card h4 {
    color: #ffff;
    display: flex;
    justify-content: center;
}

.card p {
    margin-top: 20px;
    text-align: center;
}

/* ===== Seccion Sin Cursos===== */

.no-courses.formal {
  text-align: center;
  padding: 3rem 1rem;
  background-color: #f7f8fc;
  border-radius: 12px;
  border-left: 5px solid #007bff;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.no-courses.formal h2 {
  color: #1c1c2e;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-courses.formal p {
  color: #555;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.no-courses.formal .btn-cta {
  background-color: #007bff;
  color: white;
  padding: 0.9rem 1.6rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.no-courses.formal .btn-cta:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/*===== RESPONSIVE =====*/

@media(max-width: 480px){
    .texto-nav{
        font-size: 9px;
       padding: 5px;
    }

    .boton-nav{
        padding: 5px;
    }

    .header-container{
        padding: 10px;
        align-items: center; 
        flex-wrap: nowrap;
        
    }

    .usuario-nav {
        margin-top: 0; 
    }

    .logo {
        height: 40px; 
        margin-right: 5px;
    }

    .logo-avatar {
        width: 30px; 
        height: 30px;
    }

    .esconder{
        display: none;
    }
    
    .card{
        width: auto;
        height: auto;
    }
}
