
@import url('https://fonts.googleapis.com/css2?family=Alice&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body{
    /*font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";*/
    font-family: "Atkinson Hyperlegible", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    background-color: #fff;
    font-size: 1.125rem;
    color: #2d3748;
    overflow-x: hidden;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: "Atkinson Hyperlegible", sans-serif;
    margin-bottom: .5rem;
    color: #2d3748;
    font-weight: 700;
}
.h3, .h4, .h5, .h6, h3, h4, h5, h6 {
    font-weight: 400;
}
a {
    color: #ab292f;
}

header{
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: white;
    -webkit-box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.4); 
    box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.4);
    margin-bottom: 40px;
    z-index: 5;
}
header a.logo{
    display: block;
    max-height: 100px;
}
#nav-bar{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
#nav-bar a{
    display: block;
    margin: 0 15px;
}
footer{
    padding: 20px 50px;
    margin-top: 20px;
    border-top: solid 3px #ab292f;
}
footer a{
    display: block;
    color: #2d3748;
}
footer a:hover{
    color: #ab292f;
}
footer .logo{
    display: block;
    max-width: 100%;
    max-height: 200px;
}
#copyright{
    color: #ab292f;
    font-size: 14px;
    text-align: start;
    margin-top: 20px;
}
#copyright a{
    text-decoration: underline;
    display: inline;
    color: inherit;
}
#footer-top{
    margin-bottom: 20px;
}
footer .bunch{
    display: flex;
    flex-direction: column;
}
footer .bunch-1{
    align-items: start;
}
footer .bunch-2, footer .bunch-3{
    align-items: end;
}

.btn {
    display: inline-block;
    cursor: pointer;
    border-radius: 5000px;
    text-align: center;
    border: 1px solid #ab292f;
    color: #fff;
    background: #ab292f;
    transition: .6s;
    padding: 13px 30px 10px;
    margin: 1em 12px;
}
.btn.center {
    display: block;
    margin: 1em auto;
    width: fit-content;
}
.btn.full {
    display: block;
    margin: 1em 0;
    width: 100%;
}
.btn.btn-2{
    color: #ab292f;
    background-color: #fff;
}
.btn:hover{
    color: #fff;
    background-color: #ab292f;
}
form .btn{
    margin: 1em 0px;
}
.index-btns{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
form{
    display: block;
    margin: 0 auto;
    max-width: 960px;
    padding: 30px;
    border: #d2d2d2 solid 1px;
    border-radius: 20px;
}
form label{
    display: block;
    margin-top: 20px;
}
form input,
form select{
    display: block;
    width: 100%;
    margin-top: unset;
    line-height: 26px;
    height: 32px;
}
form input.btn{
    height: unset;
}
form input[type="checkbox"]{
    height: 16px;
    vertical-align: middle;
}
form .il{
    display: inline;
    margin-top: 0px;
    width: fit-content;
}

#cards-index{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}
.card-i{
    border: solid 1px #d2d2d2;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
    width: 90%;
    gap: 20px; 
    transition-duration: 0.5s;
}
.card-i img{
    width: 64px;
    height: 64px;
    display: block;
}
.card-i p{
    margin-bottom: 0;
}
.card-i span{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 100px;
    border: solid 1px #2d3748;
    transition-duration: 0.5s;
}
.card-i:hover{
    -webkit-box-shadow: 1px 1px 10px 4px rgba(0,0,0,0.1); 
    box-shadow: 1px 1px 10px 4px rgba(0,0,0,0.1);
}
.card-i:hover span{
    background-color: #ab292f;
    border-color: #ab292f;
    color: white;
}
#socials{
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center; 
    gap: 5px;
}
#socials a{
    display: flex;
    width: 32px;
    height: 32px;
    border: solid 1px #ab292f;
    background-color: #ab292f;
    color: white;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    transition-duration: 0.3s;
    font-size: 1rem;
}
#socials a:hover{
    background-color: white;
    color: #ab292f;
}
#footer-top a{
    line-height: 32px;
}
.loader {
    display: flex;
    gap: 8px;
}

.loader span {
    width: 12px;
    height: 12px;
    background: #ab292f;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loader span:nth-child(1) { animation-delay: -0.32s; }
.loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
#submit_email_loader,
#submit_password_loader{
    display: none;
    width: fit-content;
    margin: 0 auto;
}
#email_error,
#password_error{
    display: none;
    color: red;
}
#info-div{
    display: block;
    margin: 0 auto;
    max-width: 960px;
    padding: 30px;
    border: #d2d2d2 solid 1px;
    border-radius: 20px;
}
#password_form,
#info-div{
    display: none;
}
#pss-back{
    color: #2d3748;
    text-decoration: underline;
    font-size: 1rem;
    width: fit-content;
    cursor: pointer;
}
p.error{
    margin-bottom: 0;
    color: red;
    font-size: 0.9rem;
}
p.success{
    margin-bottom: 0;
    color: green;
    font-size: 0.9rem;
}
#sede-card{
    display: none;
}
#banner{
    height: 600px;
    width: 100%;
    background-image: url("../images/banner-bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: -40px;
    margin-bottom: 40px;
}
#banner-content{
    height: 100%;
    width: 100%;
    background-color: #00000088;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#banner-content h1{
    color: white;
    font-size: 4rem;
    text-align: center;
}
#my-data{
    display: block;
    margin: 0 auto;
    max-width: 800px;
    padding: 30px;
    border: #d2d2d2 solid 1px;
    border-radius: 20px;
}
#sede-selection-fr{
    /*display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;*/
    margin: 20px 0;
}
#sede-selection-fr>div{
    text-align: center;
}
#sede-selection-fr select{
    padding: 10px 20px 8px;
    border-radius: 3px;
}
#sede-card p{
    width: fit-content;
    margin: 10px auto;
    border-bottom: solid 2px #ab292f;
}

/* ——— FullCalendar overrides ——— */
.fc .fc-toolbar-title {
    /*font-family: 'DM Serif Display', serif;*/
    font-size: 1.3rem;
    color: #ab292f;
    text-transform: capitalize;
}

.fc .fc-button-primary {
    background: #ab292f !important;
    border-color: #ab292f !important;
    border-radius: 8px !important;
    /*font-family: 'DM Sans', sans-serif;*/
    font-size: .82rem;
    padding: .35rem .8rem;
    transition: opacity .2s;
}

.fc .fc-button-primary:hover { opacity: .85; }

.fc .fc-button-primary:disabled {
    background: #2d3748 !important;
    border-color: #2d3748 !important;
    color: white !important;
    cursor: not-allowed;
}

.fc-day-today { background: rgba(82, 183, 136, .08) !important; }

.fc-col-header-cell {
    font-weight: 500;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #2d3748;
    padding: .6rem 0 !important;
}

/* Evento disponible */
.fc-event {
    background: #ab292f !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: .78rem !important;
    /*font-family: 'DM Sans', sans-serif;*/
    padding: 2px 6px !important;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
a.fc-event{
    color: white;
}
.fc-event:hover {
    opacity: .85;
    transform: scale(1.02);
}


/*.fc-daygrid-event-dot { display: none; }*/

.fc .fc-daygrid-body{
    width: 100%;
}

/* Leyenda */
.leyenda {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    font-size: .8rem;
    color: #2d3748;
}

.leyenda-dot {
    width: 12px; height: 12px;
    border-radius: 3px;
    background: #ab292f;
}

/* Loading overlay */
#loading {
    display: none;
    text-align: center;
    padding: 3rem;
    color: #2d3748;
    font-size: .9rem;
}

#loading span {
    display: inline-block;
    width: 20px; height: 20px;
    border: 2px solid #ab292f;
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-right: .5rem;
    vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-success:focus{
    background-color: #ab292f;
}

.recurso-1  .fc-daygrid-event-dot{ border-color: #FFFFFF; }
.recurso-2  .fc-daygrid-event-dot{ border-color: #FFD700; }
.recurso-3  .fc-daygrid-event-dot{ border-color: #00E5FF; }
.recurso-4  .fc-daygrid-event-dot{ border-color: #00FF7F; }
.recurso-5  .fc-daygrid-event-dot{ border-color: #1E90FF; }
.recurso-6  .fc-daygrid-event-dot{ border-color: #FF69B4; }
.recurso-7  .fc-daygrid-event-dot{ border-color: #7CFC00; }
.recurso-8  .fc-daygrid-event-dot{ border-color: #FFA500; }
.recurso-9  .fc-daygrid-event-dot{ border-color: #E0FFFF; }
.recurso-10 .fc-daygrid-event-dot{ border-color: #F5F5F5; }

#btnRefreshCalendar{
    display: none;
}
.alert{
    color: white;
    padding: 3px 7px;
    border-radius: 5px;
    background-color: #ab292f;
    padding-bottom: unset;
    margin-bottom: 10px;
    border: unset;
}
.alert>p{
    margin-bottom: unset;
}
.alert a{
    color: white;
    text-decoration: underline;
}
.btn-success:disabled, .btn-success.disabled{
    color: #fff;
    background-color: #bf767a;
    border-color: #bf767a;
}
#citaActiva{
    margin: 20px 0;
}
#citaActivaInfo,
#noCitaActivaInfo,
#blockedInfo{
    display: none;
}
.cita-card{
    padding: 15px;
    border: solid 3px grey;
    border-radius: 10px;
    margin-bottom: 30px;
}
.cita-card[data-activa="1"]{
    border-color: #ab292f;
}
.cita-card .aa,
.cita-card .ca,
.cita-card .da{
    display: none;
}
.cita-card[data-activa="1"] .aa,
.cita-card[data-status="0"] .ca,
.cita-card[data-status="-1"] .da{
    display: block;
}
.aa-label{
    font-size: 0.8rem;
    color: #ab292f;
}
#f_localita_it{
    /*display: none;*/
}

input:disabled,
select:disabled,
textarea:disabled {
    color: #2d3748;
    -webkit-text-fill-color: #2d3748; /* Safari/Chrome */
    opacity: 1; /* Firefox reduce la opacidad por defecto */
}
.text-align-center{
    text-align: center;
}
.tick-list,
.dash-list {
    list-style: none;
}
.tick-list li,
.dash-list li{
    position: relative;
}
.tick-list li:before,
.dash-list li:before{
    position: absolute;
    left: -22px;
}
.tick-list li:before {
    content: '✓';
}
.dash-list li:before {
    content: '—';
}
#no-dates-label{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff77;
    z-index: 14;
}
#no-dates-label span{
    position: absolute;
    text-align: center;
    display: block;
    padding: 5px;
    background-color: #ab292f;
    color: white;
    border-radius: 5px;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -50%);
}
#calendario-wrapper{
    position: relative;
}

.user-admin-card{
    background-color: #ffffff;
    border-radius: 10px;
    border: solid 2px #ab292f;
    margin-bottom: 15px;
    padding: 10px;
}
.user-admin-card.uac-1 {
    /*background-color: #ffeded;*/
}
.uac-dni{
    color: #ab292f;
    cursor: pointer;
}
.uac-uuid{
    float: right;
    font-size: small;
}
.uac-uuid span{
    text-decoration: underline;
}
.rmd_active{
    font-weight: bold;
    color: #00b800;
}
.rmd_blocked{
    font-weight: bold;
    color: red;
}
.uac-citas{
    width: 100%;
    background-color: white;
}
.uac-citas th,
.uac-citas td{
    padding: 5px;
    border: solid 1px grey;
}
.uac-citas tr:nth-child(2n) td{
    background-color: #ffeded;
}
.uac-citas .cs-red{
    color: red;
}
.uac-citas .cs-green{
    color: #00b800;
}
.uac-ver-todos{
    display: block;
    width: fit-content;
    margin: 1em auto;
}
#uac-iframe{
    width: 100%;
    display: block;
    /*height: 600px;*/
}
#uac-search-input{    
    display: block;
    width: 100%;
    border-radius: 5000px;
    border: 1px solid grey;
    transition: .6s;
    padding: 13px 30px 10px;
    margin: 1em 12px;
}
#uac-search-btn{
    display: block;
    width: fit-content;
    margin: 1em 12px 1em auto; 
}