* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;

    background: rgb(4, 10, 70);

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
    padding-bottom: 10em;

    overflow-x: hidden;
    color: #0f172a;
}

/* Placeholder de inputs y textarea */
input::placeholder,
textarea::placeholder {
    color: #6e6e6e;
    opacity: 1;
}

/* Compatibilidad extra */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #6e6e6e;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #6e6e6e;
}


.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
}

/* OVERLAY OSCURO + AZUL */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
       rgba(0, 0, 0, 0.499);

    z-index: -2;
}

/* BLUR GENERAL */

body::after {
    content: "";
    position: fixed;
    inset: 0;
   
    z-index: -1;
}






.cont-principal{
display: flex;
flex-direction: column;
width: 100%;
justify-content: center;
align-items: center;
margin-top: 3em;
}

#titulo-credenciales{
font-weight: 400;
}

.cont-titulo{
padding-bottom: 2.5em;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}

.cont-titulo h3{
margin: 0px;
padding: 0px;
font-weight: 350;
color: #efefef;
font-size: 23px;
padding-bottom: 0.2em;

}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 31px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: -0.04em;
}

form {
    width: 100%;
    max-width: 600px;
    padding: 34px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.117);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow:
        0 30px 80px rgba(8, 47, 73, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

form > div {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

input,
select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    font-size: 15px;
    transition: 0.25s ease;
}

input:focus,
select:focus {
    border-color: rgba(255, 255, 255, 0.9);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}

.especialidad-row {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.especialidad-row select {
    flex: 1;
}

#agregarEspecialidad,
.eliminarEspecialidad {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    color: white;
    background: rgba(15, 23, 42, 0.88);
    transition: 0.25s ease;
}

#agregarEspecialidad:hover,
.eliminarEspecialidad:hover {
    transform: translateY(-2px) scale(1.03);
    background: #020617;
}

button[type="submit"] {
    width: 100%;
    height: 52px;
    margin-top: 10px;
    border: none;
    border-radius: 18px;
    background: #005eff;
    color: #ededed;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

button[type="submit"]:hover {
   background: #004daa;
   
}

.alert {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.alert-danger {
    background: rgba(254, 226, 226, 0.9);
    color: #991b1b;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding-top: 28px;
    }

    h1 {
        font-size: 28px;
    }

    form {
        padding: 24px;
        border-radius: 24px;
    }
}