/*Estilos para adaptar el modelo de la pagina*/
.menu-principal{
    align-items: start;
    /* padding-top: calc(50vh - 214px); */
    justify-content: center;
}
.acumulador-filas{
    max-height: 194px;
    opacity: 1;
    transition: all .2s ease;

    /*Falso gap*/
    margin-top: 16px;
}

/*Estilos para el buscador*/
.input-busqueda{
    width: 100%;
    box-sizing: border-box;
    background-color: #f5f5f5;
    box-shadow: var(--input-border-1);
    border: 0;
    border-radius: .25em;
    font-size: 1.4rem;
    height: 50px;
    line-height: 1.2142857143;
    padding: 0 0 0 2.9375em;
    margin: 16px;
    font-family: var(--font);
    font-weight: 300;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.icono-busqueda-input{
    margin: 0 8px 0 29px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: .523;
}

/*Estilos para el abecedario*/
.abecedario{
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 9px;
    width: 100%;
    overflow: hidden;

    /*Falso gap*/
    padding: 1px 16px;
    box-sizing: border-box;
}
.letra-abecedario{
    width: 100%;
    border-radius: .25em;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    box-shadow: var(--input-border-1);
    color: #828282;
    font-weight: 400;
    user-select: none;
    cursor: pointer;
}
.letra-abecedario:hover {
    background-color: #b5b5b5;
    box-shadow: 0px 0px 0px 1px #b5b5b5;
    color: #fff;
    font-weight: 500;
}
.letra-seleccionada{
    background-color: #009CE1;
    box-shadow: 0px 0px 0px 1px #009CE1;
    color: white;
    font-weight: 600;
}
.letra-seleccionada:hover{
    background-color: #009CE1;
    box-shadow: 0px 0px 0px 1px #009CE1;
    color: white;
    font-weight: 600;
}

/*Estilos para los resultados*/
a:focus{
    background-color: rgba(0,0,0,.04);
}
.resultados-cerrado{
    max-height: 0px;
    opacity: 0;
    margin-top: 16px;
    pointer-events: none;
    visibility: hidden;
}

/*Estilos "Ver todos los resultados"*/
.ver-mas{
    max-height: 49px;
    opacity: 1;
    transition: all .2s ease;
}
.ver-mas-cerrado{
    max-height: 0px;
    opacity: 0;
    margin-top: 0px;
    pointer-events: none;
}
.panel-calendario{
    box-shadow: var(--box-shadow), 0 6px 16px 0 rgba(0,0,0,.1);
    position: relative;
}
.calendario, .semana{
    display:grid;
    grid-template-columns:repeat(7, 1fr);
    gap: 9px;
    justify-content:center;
    align-items:center;
    padding:16px;
    padding-top: 0px;
    box-sizing: border-box;
}
.calendario{
    height: 100%;
}

/*Transicion para cambiar de mes suavemente*/
.fila-superior, .semana, .calendario {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.fila-superior.animando, .semana.animando, .calendario.animando {
    opacity: 0;
    transform: translateY(10px);
}

.semana{
    padding:0 16px;
}
.dia_calendario{
    max-width: 97px;
    min-width: 68px;
    width: 100%;
    min-height:90px;
    height: 100%;
    border-radius: var(--redondeo-esquinas-2);
    box-shadow: var(--input-border-1);
    background: #f5f5f5;
    overflow: hidden;
}
.dia_numero {
    display: flex;
    width: 100%;
    height: 21px;
    justify-content: center;
    align-items: center;
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
}
.dia_semana{
    display:flex;
    justify-content:center;
    align-items:end;
    max-width: 97px;
    min-width: 68px;
    width: 100%;
    height:20px;
    line-height:12px;
    border-radius: var(--redondeo-esquinas-2) var(--redondeo-esquinas-2) 0px 0px;
    box-shadow:
    1px 0 0 rgba(0, 0, 0, 0.14),   /* derecha */
    -1px 0 0 rgba(0, 0, 0, 0.14),   /* izquierda */
    0 -1px 0 rgba(0, 0, 0, 0.14);  /* arriba */
    border-bottom: none;
    background: #f5f5f5;
}
.calendario > :nth-child(-n+7) {
    border-radius: 0px 0px var(--redondeo-esquinas-2) var(--redondeo-esquinas-2);
    box-shadow:
    1px 0 0 rgba(0, 0, 0, 0.14),   /* derecha */
    -1px 0 0 rgba(0, 0, 0, 0.14),   /* izquierda */
    0 1px 0 rgba(0, 0, 0, 0.14);   /* abajo */

}

.eventos{
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin: 0 6px;
    overflow: hidden;
}
.evento, .mas-eventos{
    font-size: 1.3rem;
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 3px;
    height: 18px;
    text-wrap: nowrap;
    border-radius: var(--redondeo-esquinas-2);
    transition: all .15s ease-in-out;
}

/*Transicion para mostrar evento cuando es cargado*/
.evento {
    position: relative;
    opacity: 0;
    transition: all 0.15s ease-in-out;
}
.evento.mostrar {
    opacity: 1;
}

.mas-eventos{
    font-weight: 600;
}
.evento:hover, .mas-eventos:hover{
    background-color: rgba(65, 137, 230, 0.2);
    border-color: transparent;
    color: #009ee3;
    cursor: pointer;
}
.agenda-seleccionada-nombre {
    padding: 16px;
    box-sizing: border-box;
    padding-top: 0px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
#cambiar_agenda, #mes_siguiente, #mes_anterior, .popup-btn.editar, .popup-btn.borrar, .popup-btn.cerrar{
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    opacity: .9;
    aspect-ratio: 1/1;
    transition: all .15s ease-in-out;
}
#cambiar_agenda:hover, #mes_siguiente:hover, #mes_anterior:hover, .popup-btn.editar:hover, .popup-btn.borrar:hover, .popup-btn.cerrar:hover {
    background: #f5f5f5;
}
.fuera-mes {
    opacity: 0.4;
}

.icono_cuenta_gmail{
    transition: all .15s ease-in-out;
}
.icono_cuenta_gmail:hover{
    cursor: pointer;
    filter: brightness(0.85);
}
.ocultar_calendario {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(255,255,255,.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}
.iniciar_sesion_google, #selectorAgenda{
    width: min-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-wrap: nowrap;
    padding: 10px 16px;
    background-color: white;
    color: #444;
    font-weight: 500;
    border-radius: var(--redondeo-esquinas);
    border: 1px solid #ccc;
    transition: all .15s ease-in-out;
}
div.columna-contenedores:nth-child(2) {
    position: sticky;
    top: 104px;
}
.menu-principal {
    flex-direction:row;
    position: relative;
}
.panel-calendario {
    width: 100% !important;
    height: calc(100vh - 144px);
    display: flex;
    flex-direction: column;
}
.opacador{
    background: hsla(0,0%,100%,1);
}

/*RECUADRO EVENTO*/
.popup-evento {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 12px;
    z-index: 999;
    min-width: 220px;
    max-width: 280px;
    transition: opacity 0.2s ease-in-out;
    transform: translate(0, 0);
}
.popup-evento.oculto {
    opacity: 0 !important;
    pointer-events: none;
}
.popup-header {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}
.popup-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
}
.popup-linea {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.linea-color {
    width: 5px;
    height: 40px;
    background-color: gray;
    border-radius: 4px;
}
.popup-nombre {
    font-weight: 600;
}
.popup-fecha-hora {
    font-size: 1.4rem;
    opacity: 0.7;
}