
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111f;
    color: #ffffff;
}


/* ==========================================================
   CONTENEDOR
========================================================== */

.calendario-contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
}


/* ==========================================================
   CABECERA
========================================================== */

.calendario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.calendario-header h1 {
    margin: 0;
    font-size: 28px;
    text-transform: capitalize;
    color: #ffffff;
}

.calendario-header a {
    margin: 0;
    text-decoration: none;
    text-transform: capitalize;
    color: #00cfe0;
}

.boton-mes {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    background: #00cfe0;
    color: #031017;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.boton-mes:hover {
    opacity: 0.8;
}


/* ==========================================================
   CALENDARIO
========================================================== */

.calendario {
    width: 100%;
    background: #0d1a29;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid #1c3045;
}


/* ==========================================================
   DÍAS DE LA SEMANA
========================================================== */

.dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #0d1a29;
    color: #00cfe0;
}

.dias-semana div {
    padding: 15px 5px;
    text-align: center;
    font-weight: bold;
}


/* ==========================================================
   DÍAS
========================================================== */

.dias-calendario {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.dia {
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #1c3045;
    border-bottom: 1px solid #1c3045;
    cursor: pointer;
    position: relative;
    background: #07111f;
    color: #ffffff;
}

.dia:hover {
    background: #0d2633;
}

.dia.otro-mes {
    color: #52677b;
    background: #0a1725;
}

.numero-dia {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-weight: bold;
}

.dia.hoy .numero-dia {
    border-radius: 50%;
    background: #00cfe0;
    color: #031017;
}


/* ==========================================================
   REUNIONES
========================================================== */

.reunion {
    margin-top: 8px;
    padding: 7px;
    border-radius: 6px;
    background: #0d2633;
    border: 1px solid #1c6673;
    color: #b7eaf0;
    font-size: 12px;
    overflow: hidden;
}

.reunion-hora {
    font-weight: bold;
    margin-bottom: 3px;
    color: #00cfe0;
}

.reunion-nombre {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================
   DETALLE
========================================================== */

.detalle-reunion {
    width: 40%;
    position: relative;
    margin-top: 25px;
    padding: 25px;
    background: #0d1a29;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid #1c3045;
}

.detalle-reunion h2 {
    margin-top: 0;
    color: #ffffff;
}

.cerrar-detalle {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: transparent;
    color: #b7c5d3;
    font-size: 28px;
    cursor: pointer;
}


/* ==========================================================
   RESPONSIVE - TABLETA
========================================================== */

@media (max-width: 900px) {
    
    .detalle-reunion {
    width: 100%;
    position: relative;
    margin-top: 25px;
    padding: 25px;
    background: #0d1a29;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid #1c3045;
}

    .calendario-contenedor {
        margin: 80px auto;
        padding: 15px;
    }

    .calendario-header {
        margin-bottom: 20px;
    }

    .calendario-header h1 {
        font-size: 24px;
    }

    .boton-mes {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .dias-semana div {
        padding: 12px 4px;
        font-size: 13px;
    }

    .dia {
        min-height: 100px;
        padding: 8px;
    }

    .numero-dia {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .reunion {
        margin-top: 5px;
        padding: 6px;
        font-size: 11px;
    }

    .reunion-hora {
        margin-bottom: 2px;
    }

    .detalle-reunion {
        padding: 20px;
    }
}


/* ==========================================================
   RESPONSIVE - MÓVIL
========================================================== */

@media (max-width: 700px) {
    
    .detalle-reunion {
    width: 100%;
    position: relative;
    margin-top: 25px;
    padding: 25px;
    background: #0d1a29;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid #1c3045;
}

    .calendario-contenedor {
        width: 100%;
        margin: 80px auto;
        padding: 8px;
    }


    /* ======================================================
       CABECERA
    ====================================================== */

    .calendario-header {
        margin-bottom: 15px;
        gap: 8px;
    }

    .calendario-header h1 {
        font-size: 20px;
        text-align: center;
    }

    .boton-mes {
        width: 38px;
        height: 38px;
        font-size: 23px;
        border-radius: 7px;
    }


    /* ======================================================
       CALENDARIO
    ====================================================== */

    .calendario {
        border-radius: 8px;
    }


    /* ======================================================
       DÍAS DE LA SEMANA
       
       En móvil pasan a una columna.
    ====================================================== */

    .dias-semana {
        display: none;
    }


    /* ======================================================
       DÍAS EN VERTICAL
    ====================================================== */

    .dias-calendario {
        display: flex;
        flex-direction: column;
        width: 100%;
    }


    .dia {
        width: 100%;
        min-height: 70px;
        padding: 10px 12px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;

        border-right: none;
        border-bottom: 1px solid #1c3045;

        background: #07111f;
    }


    .dia:last-child {
        border-bottom: none;
    }


    /* ======================================================
       NÚMERO DEL DÍA
    ====================================================== */

    .numero-dia {
        width: 30px;
        height: 30px;
        font-size: 13px;
        flex-shrink: 0;
    }


    /* ======================================================
       REUNIONES
    ====================================================== */

    .reunion {
        width: 100%;

        margin-top: 7px;

        padding: 8px;

        border-radius: 6px;

        font-size: 11px;

        line-height: 1.3;
    }

    .reunion-hora {
        margin-bottom: 3px;
        font-size: 11px;
    }

    .reunion-nombre {
        font-size: 11px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }


    /* ======================================================
       DÍAS DE OTRO MES
    ====================================================== */

    .dia.otro-mes {
        background: #0a1725;
    }


    /* ======================================================
       DETALLE DE REUNIÓN
    ====================================================== */

    .detalle-reunion {
        margin-top: 15px;
        padding: 18px 15px;
        border-radius: 9px;
    }

    .detalle-reunion h2 {
        font-size: 19px;
    }

    .cerrar-detalle {
        top: 7px;
        right: 10px;
        font-size: 24px;
    }
}


/* ==========================================================
   RESPONSIVE - MÓVIL PEQUEÑO
========================================================== */

@media (max-width: 400px) {
    
    .detalle-reunion {
    width: 100%;
    position: relative;
    margin-top: 25px;
    padding: 25px;
    background: #0d1a29;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid #1c3045;
}

    .calendario-contenedor {
        padding: 5px;
        margin: 80px auto;
    }


    /* ======================================================
       CABECERA
    ====================================================== */

    .calendario-header h1 {
        font-size: 18px;
    }

    .boton-mes {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }


    /* ======================================================
       DÍAS
    ====================================================== */

    .dia {
        min-height: 65px;
        padding: 8px 10px;
    }

    .numero-dia {
        width: 27px;
        height: 27px;
        font-size: 11px;
    }


    /* ======================================================
       REUNIONES
    ====================================================== */

    .reunion {
        padding: 7px;
        font-size: 10px;
    }

    .reunion-hora {
        font-size: 10px;
    }

    .reunion-nombre {
        font-size: 10px;
    }
}