*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    
}

.contenedor{

    width: 100%;
    height: 100vh;
    background: linear-gradient(20deg, black 40%, white);
    overflow-y: hidden;
}

.calendario {
    display: none; /* Ocultar todos los meses por defecto */
    margin: 20px auto;
    width: 520px;
}

.calendario h1{

    color: greenyellow;
}

.activo {
    display: block; /* Solo mostrar el mes activo */
}

h1 {
    font-size: 20px;
    margin-bottom: 10px;
}

ol {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas para los días */
    gap: 5px;
    padding: 0;
    list-style: none;
    background: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
}

li {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    background: white;
    border: 1px solid #ddd;
}

.nombreDia {
    font-weight: bold;
    background: #ddd;
    color: #000;
}

.hoy {
    background-color: #ffcc00 !important;
    color: black;
    border-radius: 50%;
}

.domingo {
    color: red;
}

.botones {
    text-align: center;
    margin: 20px;
}

.ic_cierre{

    position: absolute;
    display: none;
}

button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    margin: 5px;
    border: none;
    background: #007BFF;
    color: white;
    border-radius: 5px;
}

button:hover {
    background: #0056b3;
}


.menu{

    position: fixed;
    width: 400px;
    background: #ddd;
    padding: 10px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    transition: transform .5s;
    z-index: 10000;
    
}

.menu.activo{

    transform: translate(-340px);
    background-color: #000;
}

.tituloMenu{

    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.tituloMenu img{

    cursor: pointer;
}
.separador{

    width: 100%;
    height: 1px;
    margin-bottom: 10px;
    background-color: #363535;
}

.contenidoMenu{

    position: relative;
    width: 100%;
    display: flex;
    flex-flow: column wrap;
    gap: 10px;
    align-items: start;

}

.contenidoMenu button{

    font-size: 12px;
}

.contenidoNotas{

    position: relative;
    width: 85%;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    background-color: white;
    padding: 3px;
    border-radius: 8px;
    max-height: 600px;
    overflow-y:auto;
    
}
  


.divNotas{

    width: 100%;
    text-align: start;
    padding: 5px;
    display: flex;
    flex-flow: column wrap;
    gap: 5px;
    
}

.divNotas h3{

    display: block; /* Asegura que el elemento se comporte como un bloque */
    width: 100%; /* Se ajusta al ancho del contenedor */
    white-space: pre-wrap; /* Permite saltos de línea y respeta espacios */
    word-break: break-word; /* Rompe palabras largas si es necesario */
    overflow-wrap: break-word; /* Alternativa moderna */
}

.divNotas h4{

    font-weight: 500;
    background-color: #f8f8f8;
}

.btnNotas{

    display: flex;
    flex-flow: row wrap;
}

.btnNotas button{

    font-size: 13px;
    padding: 5px;
}


.divNotas:nth-child(odd) {
    background-color: #FFCCCB; /* Rojo suave */
    
}

.divNotas:nth-child(even) {
    background-color: #D3D3D3; /* Gris claro */
}

.seleccionado {
    background: #007BFF !important;
    color: white !important;
}

.fechaMenu{

    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

.nota{

    resize: none;
    width: 85%;
}


.hora{

    font-family: monospace;
    background: linear-gradient(to left, black, white);
    color: aliceblue;
    padding: 5px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column wrap;
   
}

.hora h1{

    font-size: 30px;
    cursor: pointer;
    transition: all .5s;
  
}

.hora select{

    display: none;
    transition: all .5s;
   
}

.hora select.visible {
    display: inline;
}

.iconoReloj{

    display: none;
    width: 30px;
    cursor: pointer;
}

.hora.total{

    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: 1000000;
    top: 0;
   
}

.hora.hora.total h1{

    font-size: 80px;
}


.calendario li:not(.nombreDia):not(:empty) {
    cursor: pointer;
}

#btnNotasActualiza{
    display: none;
}

.volverInicio {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 15px;
    background-color: #FFD700;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.volverInicio:hover {
    background-color: #FFC107;
}

 /* 📌 RESPONSIVE DESIGN */
 @media (max-width: 630px) {
    .calendario {
        width: 100%;
        padding: 10px;
    }

    li {
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }

    button {
        padding: 10px 14px;
        font-size: 14px;
    }

    h1 {
        font-size: 18px;
    }

    ol{
        gap: 3px;
    }

    .menu{

       width: 100%;
       
        
    }

    .menu.activo{

        transform: translateY(-430px);
       
    }

    .hora.hora.total h1{

        font-size: 50px;
    }

    .ic_cierre{

        display:inline;
        width: 40px;
        left: 0;
        top: 0;
        z-index: 100;
    }
    
}

