/* variables*/
:root {
    /* altura dle menu*/
    --nav-height: 100px;
    --baseColor1:#000;
}
*{
    box-sizing: border-box;
}

a{
    color: #000;
}

h1, h2, h3{
    margin-bottom: 0px;
}

hr{
    margin: 2px;
}

/* PAGINA DE LOGIN 
Y FORMULARIO */

body{
    margin: 0;
    height: 100%;
    
    font-family: "Arial Narrow", Arial, sans-serif;
    font-size: 20px;
}

.middle {
    width: calc(100vw - 20px);
    max-width: 550px;
    padding: 30px;
    background-color: #aaa;
    position: fixed;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input{
    border-radius: 15px;
    max-width: 400px;
    width:100%;
    padding: 10px 15px;
    margin: 5px 0px 10px 0px;
    border: 1px solid #ccc;
    font-size: 18px;
}

.boton{
    border-radius: 15px;
    max-width: 400px;
    width:100%;
    padding: 10px 15px;
    margin: 5px 0px;
    border: 1px solid #ccc;
    font-size: 18px;
}

input[type="color"] {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 0;
    background: none;
    cursor: pointer;
}


/* =========================
   MENU MENU MENU MENU MENU MENU MENU MENU MENU MENU MENU MENU 
========================= */
/* =========================
   NAVBAR GENERAL
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: var(--nav-height);

    background: #111;
    z-index: 9999;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: #fff;
}

/* LOGO */
.navbar .logo {
    font-weight: bold;
    font-size: 40px;
    padding:20px;
    color: white;
}

/* =========================
   LINKS DESKTOP
========================= */
.nav-links {
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-links a {
    height: 100%;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0px 20px;
    display: flex;
    align-items: center;
    transition: 0.3s;
    vertical-align: middle;
}

.nav-links a:hover {
    background: #333;
}

/* =========================
   USER INFO
========================= */
.user-info {
    color: #fff;
    padding:0px 25px;
    font-size: 20px;
    display: flex;
    align-items: flex-end; /* 👈 centra verticalmente */
    gap: 8px;
}

/* nombre usuario */
.username {
    font-size: 18px;
}

/* botón logout cuadrado */
.logout-btn {
    width: 26px;
    height: 26px;
    border-radius: 4px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #b71c1c;
    color: white;

    text-decoration: none;
    font-size: 14px;

    transition: 0.2s;
}

.logout-btn:hover {
    background: #d32f2f;
}

/* =========================
   HAMBURGUESA (OCULTA EN DESKTOP)
========================= */
.menu-toggle {
    display: none;
    font-size: 26px;
    padding: 0px 25px;
    cursor: pointer;
    user-select: none;
    color: #fff;
}

/* =========================
   OVERLAY BLOQUEANTE
========================= */
.overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.6);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

/* =========================
   MODAL BASE
========================= */
.modal {
    position: relative;

    min-width: 500px;
    width:auto;
    padding: 15px;

    border-radius: 10px;
    color: #fff;
    font-size: 20px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ÉXITO */
.modal.success {
    border:1px solid #1e7d32;
    background-color: rgba(128, 255, 128, 0.1);
}

/* ERROR */
.modal.error {
    border: 1px solid #b71c1c;
    background-color: rgba(255, 128, 128, 0.1);
}

/* BOTON DE CERAR EL OVERLAY */ 
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    background: transparent;
    border: none;

    color: #fff;
    font-size: 40px;
    line-height: 1;

    cursor: pointer;

    transition: 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
}

/* =========================
    ACORDEONES
========================= */

.acordeon {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;

}

/* cuando está abierto */
.acordeon.open {
    /* no se usa max-height aquí directamente */
}

.acordeonBTN{
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
}


/* =========================
    CONTEINDOS CONTEINDOS CONTEINDOS CONTEINDOS CONTEINDOS CONTEINDOS CONTEINDOS CONTEINDOS 
========================= */
.content {
    width: 100%;
    margin-top: var(--nav-height);
    padding: 0px 100px;

    display: flex;
    flex-direction: column;
}

.contenedor {
    width: 100%;
    padding: 0px 100px;
    display: flex;
    gap: 20px; /* separación entre columnas */
}

.col {
    flex: 1; /* cada una ocupa el 50% automáticamente */
}

/* =========================
   AVATAR BASE (perfil + menú)
========================= */

.avatar-wrapper {
    width: 100px;
    height: 100px;
    position: relative;
}

.avatar-img,
.avatar-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   PLACEHOLDER (cuando no hay imagen)
========================= */

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   UPLOAD ZONE (formulario)
========================= */

.avatar-upload {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* De LOS EQUIPOS
el boton pequeño.*/
.mini{
    border-radius: 5px;
    max-width: 100px;
    width:100%;
    padding: 5px 5px;
    margin: 5px 0px;
    border: 1px solid #ccc;
    font-size: 12px;
}
/* =========================
   MOBILE RESPONSIVO
========================= */
@media (max-width: 768px) {

    /* MENU MENU MENU MENU MENU MENU MENU MENU */  
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;

        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;

        background: #111;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
        height: calc(100vh - var(--nav-height)); /* 100px por el tamaño del navbar o barra de menu*/
    }

    .nav-links a {
        justify-content: center;
        font-size: 20px;
        width: 100%;
        height: calc((100vh - var(--nav-height))/12);/* 100px por el tamaño del navbar o barra de menu*/
    }

    .user-info {
        display: none;
    }
    
    .content{
        width:100%;
        margin-top: var(--nav-height);
        padding: 0px 10px;
        flex-direction: column;
    }
    
    .contenedor {
        width:100%;
        padding: 0px 10px;
        flex-direction: column;
    }
}


