/* Estilos globales */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-principal);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.layout__header {
    position: fixed;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 4rem;
    text-align: center;
    background-color: black;
    color: #fff;
    padding: 0.12rem;
    align-items: center;
    z-index: 2;
    box-shadow: 4px 0px 5px rgba(0, 0, 0, 0.5);
}

#user-name-img {
    width: 2.5rem;
    height: 2.5rem;
}

.size_title {
    font-size: 1rem;
}

.size-font {
    position: fixed;
    display: flex;
    left: 35%;
    top: 0.2em;
    line-height: 2;

}

.header-left {
    position: fixed;
    display: flex;
    font-weight: 20;
    gap: 1rem;
    left: 26%;
    line-height: 4
}

.title-header {
    position: fixed;
    display: flex;
    font-size: 1rem;
    line-height: 1.7;
    left: 44%;
}

.size_title {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.no-style {
    all: unset;
    /* Elimina todos los estilos heredados */
    display: inline-block;
    /* Para que mantenga su tamaño */
    padding: 0;
    cursor: pointer;
    font-size: 2rem;
    overflow: hidden;
    height: 4.2rem;
    margin-right: 0.5rem;

}


.controller {
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: 0.2s ease;
}

.sidebar-usuario {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    height: 4.9rem;
    line-height: 3.1;
    font-size: 1.5rem;
    color: white;
    align-items: center;


}

.header-left {
    position: fixed;
    display: flex;
    font-weight: 20;
    gap: 1rem;
    left: 26%;
    line-height: 4;

}

.controller {
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: 0.2s ease;
    color: #fff;
}


header h1 {
    color: white;
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    flex-grow: 1;
    /* Permite que el título use el espacio central */
}

.container {

    display: flex;
    width: 100%;
    height: 100vh;
    /* Hacer que ocupe todo el alto de la ventana */
}

/* Estilos del sidebar */
.sidebar {
    width: 20%;
    background-color: var(--color-principal);
    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100vh;
    margin-top: 50px;
    position: fixed;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    text-decoration: none;
    color: var(--color-title);
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.sidebar a:hover {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--color-background);
}

.sidebar a.active {
    background-color: var(--color-border-reviews);
    color: var(--color-secondary);
}

.sidebar a:hover,
.sidebar a.active {
    color: var(--color-secondary);
}

/* Estilos del contenido principal */
.content {
    margin-left: 20%;
    margin-top: 100px;
    width: 80%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title {
    text-align: center;
    font-size: 48px;
    color: var(--color-title);
    margin-bottom: 40px;
}

.masters {
    display: flex;
    flex-direction: column;
    /* Cambiar a columna para que se apilen */
    gap: 30px;
    width: 100%;
}

.disable-link {
    pointer-events: none;
    /* Evita clics en el enlace */
    opacity: 0.5;
    /* Hace que se vea más tenue */
    cursor: not-allowed;
    /* Muestra un cursor de prohibido */
}


.master-card {
    width: 100%;
    max-width: 1000px;
    /* Asegurar que las tarjetas no se expandan demasiado */
    background-color: var(--color-principal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s ease;
    text-align: center;
    margin: 0 auto;
}

.master-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.master-card img {
    width: 100%;
    height: 100%;
    margin-right: 1.875rem;
    margin-bottom: 1.875rem;


}

.master-card .img-global {
    width: 100% !important;
    height: 100% !important;
    margin-right: 30px;
    margin-bottom: 30px;
    background-color: red;

}

.master-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.master-info h2 {
    font-size: 28px;
    color: var(--color-title);
    margin-bottom: 15px;
}

.master-info p {
    color: var(--color-text);
    font-size: 18px;
    margin-bottom: 20px;
}

.progress-bar {

    border-radius: 5px;
    border: solid 1px rgb(73, 71, 71);
    height: 10px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.progress {
    background-color: hsl(133, 63%, 43%);
    height: 100%;
    width: 0%;
    border-radius: 5px;
    line-height: 1.2;
    font-size: 8px;
}

.percentage {
    font-size: 2px;
    color: var(--color-title);
    font-weight: bold;
    margin-bottom: 15px;
}

.description {
    font-size: 16px;
    color: var(--color-subtitle);
    margin-top: 10px;
}

/*estilos boton inscribirse*/
.button-style {
    position: relative;

    background-color: #10913b;
    /* Color de fondo */
    color: #ffffff !important;
    /* Texto en blanco */
    padding: 12px 20px;
    /* Más espacio para mejor apariencia */
    border: none;
    /* Quita el borde predeterminado */
    border-radius: 12px;
    /* Bordes más redondeados */
    font-size: 1.5rem;
    /* Texto más grande */
    font-weight: bold;
    /* Texto en negrita */
    text-transform: uppercase;
    /* Texto en mayúsculas */
    letter-spacing: 1px;
    /* Espaciado entre letras */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    /* Sombra para un efecto elevado */
}

/* Efecto hover más llamativo */
.button-style:hover {
    background-color: #b60c14;
    /* Un tono más oscuro al pasar el mouse */
    transform: scale(1.05);
    /* Efecto de agrandamiento */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3);
    /* Sombra más fuerte */
}

/* Estilos popup*/
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    /* Se mostrará por defecto y JS lo ocultará si es necesario */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 600px;
}

.popup-content input {
    width: 90%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.popup-content button {
    margin-top: 20px;
    padding: 10px 15px;
    left: 0;
    background:#10913b;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    align-content: center;
}

.popup-inscripcion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.popup-inscripcion-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 50%;
    align-items: center;
}

#confirmar-inscripcion {
    left: 0;
    margin-top: 20px;
    font-size: 1rem;
    width: 96%;
}

#nombre {
    width: 96%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#telefono {
    width: 96%;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.inscrito {
    background: none !important;
    /* Elimina el fondo */
    border: none !important;
    /* Elimina el borde */
    color: gray !important;
    /* Cambia el color del texto a gris */
    cursor: default !important;
    /* Cambia el cursor para indicar que no es clickeable */
    font-weight: bold;
    /* Hace el texto más visible */
}




/* Estilos responsivos */
@media (max-width: 850px) {
    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        margin-top: 100px;
        align-items: center;
    }

    .masters {
        gap: 20px;
    }

    .master-card {
        padding: 1.25rem;
    }

    .master-card img {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .master-info h2 {
        font-size: 24px;
    }

    .master-info p {
        font-size: 16px;
    }

    .progress-bar {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .percentage {
        margin-bottom: 10px;
    }

    .description {
        font-size: 14px;
    }

    html {
        font-size: 14px;
    }
    #telefono,
    #nombre,
    #user-name {
        font-size: 1.5rem;
    }

    .popup-content{
        height: 40%;
        width: 90%;
    }
}

@media (max-width: 500px) {

    p {
        font-size: 1.2rem;
    }

    #confirmar-inscripcion {
        margin-top: 2.5rem;
    }

    #telefono,
    #nombre,
    #user-name {
        font-size: 1.5rem;
    }

    .popup-content{
        height: 30%;
        width: 90%;
    }
    .popup-inscripcion-content {
        height: 60%;
        width: 90%;
    }

    .title-header {
        width: 75%;
        left: 25%
    }

    .sidebar-usuario {
        gap: 0.5rem;
    }

    .master-card {
        width: 100%;
        height: 60%;
        /* Asegurar que las tarjetas no se expandan demasiado */
        background-color: var(--color-principal);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        transition: box-shadow 0.3s ease;
        text-align: center;
        margin: 0 auto;
    }

    .masters {
        width: 100%;
        height: 80%;
    }

    .button-style {
        position: relative;

        top: 3rem;
        margin: 0 auto;

    }

    .header-left {
        display: none;
    }

}

@media (max-width: 395px) {

    .popup-content{
        height: 40%;
        width: 90%;
    }
    .button-style {
        position: relative;

        top: 3rem;
        margin: 0 auto;

    }

    .master-card {
        width: 100%;
        height: 80%;
    }
}