@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-family: Arial, Helvetica, sans-serif;
}
body {
    position: relative;
    height: 1920px;
    width: 1080px;
    overflow: hidden;
    background-color: #000;
    margin: 0 auto;
    width: 100vw;
    height: 100vh;
}
img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: center;
}
.contenedor-interior {
    height: 100%;
    width: 100%;
    position: relative;
}
#main-content, #main-clase {
    height: 100%;
    width: 100%;
}
#screensaver, #seccion-clase {
    height: 100%;
    width: 100%;
    position: relative;
}
#screensaver .s-video {
    /* height: 100%; */
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}
#screensaver .s-video video {
    width: 100%;
    height: 100%;
}
#screensaver .black-layer {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
}
#screensaver .s-info-layer {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
}
#screensaver .s-title-logo {
    width: 80%;
    height: 10vh;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
}
#screensaver .logo_1 {
    height: 100%;
    width: 25%;
}
#screensaver .logo_2 {
    height: 100%;
    width: 75%;
}
#screensaver .s-empezar {
    width: 350px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}
#screensaver .s-punio {
    width: 70%;
}
#screensaver .s-text {
    font-size: 55px;
    line-height: 60px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding: 0;
    margin-top: 40px;
}
#screensaver .s-agenda {
    display: none;
    width: 70%;
    height: auto;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid #ff0000;
    border-radius: 20px;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    background-color: rgba(0, 0, 0, 0.3);
    max-height: 873px;
    /* overflow-y: auto; */
}
#screensaver .s-table-header {
    width: 100%;
    color: #fff;
    font-size: 25px;
    text-align: center;
    border-collapse: collapse;
    height: 50px;
}
.s-table-title th {
    background-color: rgba(255, 0, 0, 0.2); /* fondo rojizo para encabezado */
    border-bottom: 2px solid #ff0000;
    font-weight: bold;
    text-align: center;
}
#screensaver .s-table-info {
    width: 90%;
    color: #fff;
    font-size: 20px;
    text-align: center;
    border-collapse: collapse;
    margin: 0 auto;

}
#screensaver .s-table-info tbody tr {
    border-bottom: 2px solid #ff0000;
    cursor: pointer;
    height: 50px;
    background-color: transparent;
}
#screensaver .s-table-info .s-table-item td {
    padding: 15px 0;
}
#screensaver .s-table-info .s-table-item a {
    display: flex;
    justify-content: space-between;
    color: #fff;
    text-decoration: none;
    width: 100%;
}
#screensaver .s-table-info .s-table-item span {
    display: inline-block;
    /* width: 33%; */
}
#screensaver .s-table-info .no-classes td {
    padding: 30px 0;
}
#screensaver .s-table-info .no-classes-message {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #fff;
    font-size: 35px;
}
#screensaver .s-table-info .no-classes-message span {
    display: inline-block;
    text-align: center;
}

/* ESTADOS DE CLASE */
#screensaver .s-table-info .estado-clase {
    font-weight: bold;
}
#screensaver .s-table-info .terminada {
    color: #808080; /* Gris para clases terminadas */
}
#screensaver .s-table-info .en-curso {
    color: #00ff00; /* Verde para clases en curso */
}
#screensaver .s-table-info .próxima {
    color: #ffff00; /* Amarillo para clases próximas */
}
/* Ajustes para el mensaje de no hay clases */
#screensaver .s-table-info .no-classes td {
    padding: 30px 0;
}
#screensaver .s-table-info .no-classes-message {
    display: flex;
    justify-content: center;
    width: 100%;
    color: #fff;
    font-size: 30px;
}
#screensaver .s-table-info .no-classes-message span {
    display: inline-block;
    text-align: center;
}
#screensaver .s-table-hora {
    text-align: start; 
    padding-left: 25px;
    width: 25%;
}
#screensaver .s-table-nombre {
    text-align: center; 
    width: 50%;
}
#screensaver .s-table-estado {
    text-align: center;
    width: 25%;
}
#screensaver .clase-no-clickeable {
    display: flex    ;
    justify-content: space-between;
    width: 100%;
}

/* -------------------------------------------------------------------------- */
/*                                PAGINA CLASE                                */
/* -------------------------------------------------------------------------- */
#main-clase {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
#main-clase .card-clase-container {
    width: 80%;
    height: 14vh;
    border-radius: 20px;
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    z-index: 2;
}
#main-clase .card-clase {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}
#main-clase .card-detalles {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
#main-clase .card-detalle-a, #main-clase .card-detalle-b {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    height: 50%;
    padding-top: 40px;
}
#main-clase .card-clase .card-titulo {
    background-color: red;
    padding: 0px 30px;
    border-radius: 20px;
    font-size: 30px;
    min-width: 200px;
    text-align: center;
}
#main-clase .card-foto {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}
#main-clase .card-detalles p {
    margin: 0;
    padding: 0;
    font-size: 30px;
    width: fit-content;
    color: #fff;
    font-weight: 700;
}
#main-clase .card-clase-estado {
    color: #fff;
    font-size: 25px;
    padding: 0;
    margin: 0;
    text-align: end;
}
#main-clase .selector-ejercicios {
    width: 60%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    gap: 30px;
    z-index: 2;
}
#main-clase .selector-ejercicios a {
    text-decoration: none;
    color: #fff;
}
#main-clase .selector-item {
    font-size: 40px;
    font-weight: 800;
    border: 3px solid red;
    border-radius: 20px;
    width: 100%;
    text-align: center;
    cursor: pointer;
}
#main-clase .selector-item p {
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    height: 100px;
    color: #fff;
}
#main-clase .contenedor-logo {
    width: 100%;
    height: 10vh;
    position: absolute;
    left: 0;
    bottom: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    z-index: 2;
}

/* -------------------------------------------------------------------------- */
/*                              ITEMS EJERCICIOS                              */
/* -------------------------------------------------------------------------- */

/* RELOJ */
.digital-clock-container {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 15px 20px;
    display: inline-block;
    width: 80%;
    height: 11vh;
    border: 3px solid red;
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.digital-clock {
    /* font-family: 'DS-Digital', 'Orbitron', monospace; */
    font-family: "Share Tech Mono", monospace;
    font-size: 120px;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    letter-spacing: 5px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.contenedor-interior-tempo {
    height: 100%;
    width: 100%;
    position: relative;
}
.digital-clock.temporizador, .digital-clock.contador {
    font-family: "Share Tech Mono", monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
    text-align: center;
    white-space: nowrap;
    font-size: 120px;
    font-weight: bold;
}
.controles-temporizador, .controles-contador {
    width: 40%;
    position: absolute;
    left: 50%;
    bottom: -40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    transform: translateX(-50%);
}
.controles-temporizador .btntemp, .controles-contador .btntemp {
    color: red;
    text-transform: uppercase;
    min-width: 120px;
    text-align: center;
    margin: 0;
    padding: 10px;
    border: 2px solid red;
    border-radius: 10px;
    background-color: #000;
}
.tipo-control-tiempo.time {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translate(-50%, 50%);
    color: red;
    /* text-transform: uppercase; */
    /* min-width: 120px; */
    text-align: center;
    margin: 0;
    padding: 10px;
    /* border: 2px solid red; */
    border-radius: 10px;
    /* background-color: #000; */
}
.tipo-control-tiempo.temporizador, .tipo-control-tiempo.contador {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    /* text-transform: uppercase; */
    /* min-width: 120px; */
    text-align: center;
    margin: 0;
    padding: 10px;
    /* border: 2px solid red; */
    border-radius: 10px;
    /* background-color: #000; */
}
#main-clase section {
    height: 100%;
    width: 100%;
    position: relative;
}
.tipo-ejercicio {
    color: white;
    font-size: 40px;
    font-weight: 800;
    border: 3px solid red;
    border-radius: 20px;
    height: 100px;
    padding: 0 50px;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    width: max-content;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tipo-ejercicio p {
    margin: 0;
}
.tipo-detalle {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 30px;
    width: 50%;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 20px;
}
.table-tipo-detalle {
    width: 100%;
}
.table-tipo-title {
    text-transform: uppercase;
    font-weight: 700;
    text-align: start;
    width: 40%;
    vertical-align: text-top;
    font-size: 35px;
    padding-bottom: 20px;
}
.table-tipo-title.rondas {
    padding: 0;
}
.table-tipo-texto.rondas {
    padding: 0;
}
.table-tipo-texto {
    font-weight: 400;
    text-align: end;
    width: 60%;
    line-height: 40px;
    font-size: 35px;
    padding-bottom: 20px;
}
/* .table-tipo-detalle td {
    padding-bottom: 20px;
} */
.tipo-area-texto {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%);
    color: white!important;
    font-size: 35px;
    width: 70%;
    height: 40vh;
    padding: 30px;
    /* line-height: 50px; */
    z-index: 2;
    background-color: rgba(0,0,0,0.25);
    border-radius: 20px;
    overflow-y: auto;
    /* text-transform: uppercase; */
}
.tipo-area-texto p {
    padding: 0;
}
.tipo-botonera {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    z-index: 2;
}
.btn-volver {
    border: 1px solid gray;
    cursor: pointer;
    width: fit-content;
    padding: 20px 30px;
    color: white;
    font-size: 30px;
    line-height: 30px;
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.25);
}
.btn-volver.back {
    position:absolute;
    left: 10%;
    bottom: 5%;
    z-index: 3;
    border-radius: 20px;
}
.tipo-volver p, .btn-volver p {
    margin: 0;
}
.refresh {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    display: none;
}

#main-clase .black-layer {
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
}
#calentamiento {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
#principal {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
#wod {
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Webkit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e; /* Gris muy oscuro */
}

::-webkit-scrollbar-thumb {
    background-color: #555; /* Gris medio */
    border-radius: 4px;
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #888; /* Gris más claro al hacer hover */
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #555 #1e1e1e;
}

/* -------------------------------------------------------------------------- */
/*                                BOTON SPOTIFY                               */
/* -------------------------------------------------------------------------- */
.spotify-float-btn {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    /* background-color: #1DB954; */
    background-color: #000000;
    color: white;
    font-size: 24px;
    height: 90px;
    width: 90px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.3s ease;
}
.spotify-float-btn:hover {
    transform: scale(1.1);
}
.spotify-float-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}