body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 420px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tabs button {
    width: 48%;
    padding: 10px;
    border: none;
    background: #e0e0e0;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.2s;
}

.tabs button:hover {
    background: #d0d0d0;
}

.formulario {
    display: none;
    flex-direction: column;
}

.formulario.activo {
    display: flex;
}

label {
    margin-top: 10px;
    font-size: 14px;
}

input {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

button[type="submit"] {
    margin-top: 20px;
    padding: 12px;
    background: #2d6cdf;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

button[type="submit"]:hover {
    background: #1f56c0;
}
.error {
    background: #ffe5e5;
    border: 1px solid #ff4d4d;
    color: #b30000;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* opcional: éxito */
.success {
    background: #e6ffed;
    border: 1px solid #2ecc71;
    color: #1e7e34;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* animación suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.active-profesor {
    background: #2d6cdf !important;
    color: white;
}

.active-afiliado {
    background: #28a745 !important;
    color: white;
}