* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Roboto', sans-serif; background:#0d0d0d; color:#fff; }
a { text-decoration:none; color:inherit; }

/* NAVBAR */
nav { display:flex; align-items:center; justify-content:space-between; padding:20px 50px; background:#0d0d0d; position:sticky; top:0; z-index:1000; border-bottom:1px solid #3da35d; }
nav img { height:50px; transition: transform 0.3s; }
nav img:hover { transform: scale(1.05); }
nav ul { list-style:none; display:flex; gap:25px; }
nav ul li a { font-weight:700; transition:0.3s; }
nav ul li a:hover { color:#3da35d; }

/* HERO */
/* HERO */
/* HERO */
.hero { 
    display:flex; 
    flex-direction:column; 
    justify-content:center; 
    align-items:center; 
    text-align:center; 
    height:100vh; 
    background: linear-gradient(rgba(13,13,13,0.6), rgba(13,13,13,0.6)),
                url('../img/bus.webp') center/cover no-repeat; 
    padding:0 20px; 
}
.hero h1 { font-size:3.5rem; margin-bottom:25px; }
.hero p { font-size:1.2rem; margin-bottom:30px; color:#ddd; max-width:700px; }
.hero-buttons { display:flex; gap:20px; flex-wrap:wrap; justify-content:center; }
.btn { padding:15px 30px; background:#3da35d; color:#fff; font-weight:700; border:none; border-radius:5px; cursor:pointer; transition:0.3s; }
.btn:hover { background:#2b7c44; transform:scale(1.03); }
/* SECCIONES */
section { padding:80px 50px; }
section h2 { text-align:center; font-size:2.5rem; margin-bottom:50px; position:relative; }

/* FORMULARIOS ESTILO TARJETA - HORIZONTAL INTERNO */
.niveles {
    display: flex;
    flex-direction: column; /* Formularios uno debajo del otro */
    gap: 40px; /* Espacio entre formularios */
    align-items: center;
    padding: 20px 0;
}

.nivel-form {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 30px;
    width: 600px; /* Más ancho */
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    transition: 0.3s;
    display: flex;
    gap: 20px; /* Espacio entre columna de textos y columna de inputs */
    align-items: center;
}

.nivel-form:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

/* Contenedor para la columna de textos */
.nivel-textos {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nivel-textos h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #3da35d;
}

.nivel-textos p {
    font-size: 1rem;
    margin-bottom: 0;
    color: #ccc;
}

/* Contenedor para los inputs y botón */
.nivel-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.nivel-inputs input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    background: #2a2a2a;
    color: #fff;
}

.nivel-inputs button {
    width: 70%;
    padding: 12px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    background: #3da35d;
    cursor: pointer;
    transition: 0.3s;
}

.nivel-inputs button:hover {
    background: #2b7c44;
    transform: scale(1.03);
}

/* Foto de perfil */
.foto-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.foto-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border-radius: 50%;
}

.foto-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #3da35d;
    object-fit: cover;
    transition: 0.3s;
}

.foto-container img:hover {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media(max-width:768px){
    .nivel-form {
        flex-direction: column; /* Pasa a vertical en pantallas pequeñas */
        width: 90%;
        gap: 20px;
    }
    .nivel-inputs {
        width: 100%;
    }
    .nivel-inputs button {
        width: 100%;
    }
    .niveles {
        gap: 20px;
    }
}




.link {
  color: #3da35d;
  text-decoration: none;
  transition: 0.3s;
}

.link:hover {
  color: #2b7c44;
  text-decoration: underline;
}

/* BOTÓN */
.btn {
  width: 60%;
  padding: 10px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: #3da35d;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #2b7c44;
  transform: scale(1.03);
}

/* FLASH MESSAGES */
.flash-messages {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 20px;
}

.alert {
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
