:root {
    --fondorojo: linear-gradient(0deg, #ffd7d7c3, #ff7777);
    --fondoverde: linear-gradient(0deg, #cdf7cbdb, #83f78774);
    --wp--preset--font-family--inter: "Inter", sans-serif;
}

html {
    font-family: var(--wp--preset--font-family--inter);
}

.oculto {
    display: none;
}

.panel-reserva {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
}

#calendar {
  flex: 1 1 45%;
  min-width: 300px;
  margin: 10px;
}

#presupuesto {
  flex: 1 1 45%;
  min-width: 300px;
  margin: 10px;
}

.fc { 
    font-family: var(--wp--preset--font-family--inter); 
    -moz-osx-font-smoothing: var(--wp--custom--typography--font-smoothing--moz, auto);
    -webkit-font-smoothing: var(--wp--custom--typography--font-smoothing--webkit, auto);

    .fc-button-primary {
        background-color: var(--wpforms-button-background-color-alt, var(--wpforms-button-background-color));
        color: var(--wpforms-button-text-color);
        &:not(:disabled):hover {
            background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), var(--wpforms-button-background-color-alt, var(--wpforms-button-background-color));
        }
    }


}

.boton {
    cursor: pointer;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: .5em;
}


.fc .fc-daygrid-day-number {
    font-weight: bold;
    color: black;
    font-size: smaller;
}

.fc td {
    height: 5vh;
    cursor: pointer;
}

.fc td .reserved-day {
    background-color: #fc7b7b !important;
    cursor: not-allowed;
}

.fc .fc-daygrid-day-frame {
    --alto-dia: min(5rem, 2vh);
    min-height: var(--alto-dia);
}

.fc .fc-daygrid-day-top {
    flex-direction: row;
    width: 100%;
}

.fc .fc-daygrid-day-top a {
    text-decoration: none;
    width: 100%;
    display: block;
}

.daygrid-day {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.day-number {
    margin-bottom: calc(var(--alto-dia) / 3);
    text-align: justify;
}

.importe-dia {
    width: 100%;
    text-align: center;
    font-size: min(1.2em, var(--alto-dia));
    color: #333;
}

.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 0;
    height: 0;
}

.fc .fc-event {
    overflow: hidden;	
}

.fc .fc-day.fecha-reservada {
    background-color: rgba(255, 0, 0, 0.8);
    background: var(--fondorojo) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    hyphens: auto;
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    opacity: 0.7;
    cursor: no-drop !important;

    .booking-indicator {
        line-height: 1rem;
        font-size:smaller;
    }
}

.fc .fc-day.fecha-reservada:hover {
    background-color: rgba(255, 0, 0, 0.9);
    opacity: 1;
}

.fc .fc-day-future:not(.fc-day-disabled) {
    background: var(--fondoverde);
    color: #fff !important;
    border: 1px solid #999!important; 
    border-radius: 0 !important;
    padding: 0 !important;
}

.precio-evento-valor { 
    font-weight: bold;
}

.fc-event-tooltip {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    z-index: 1000;
    pointer-events: none;
    opacity: 0; 
    transition: opacity 0.2s ease-in-out; 
}

.fc-event-tooltip.fc-tooltip-show {
    opacity: 1; 
}

.fc-event-tooltip.fc-tooltip-hide {
    opacity: 0; 
}

.fc-multimonth-header-table {
    padding: 0.3rem;
    background-color: black;
}

.fc .fc-col-header-cell-cushion {
    padding: .5rem .5rem;
    color: rgba(10, 0, 103, 0.886);
    text-decoration: none;
}

#admin-reservas-calendar, #admin-precios-calendar {
    background-color: #fff;
}

#admin-reservas-calendar.fc .fc-daygrid-day-frame {
    min-height: 5rem;
}

#admin-reservas-calendar.fc td.fc-day {
    height: 5rem;
}

.ev-daycharter {
   background-color: red;
   color: white;
}

.ev-2days {
  background-color: darkgreen;
  color: white;
}

.precio-duracion-1-dias,
.precio-duracion-2-dias,
.precio-duracion-3-dias,
.precio-duracion-4-dias,
.precio-duracion-5-dias,
.precio-duracion-6-dias,
.precio-duracion-7-dias {
    font-weight: bold;
}

.precio-duracion-1-dias {
    background-color: rgba(0, 105, 209, 0.958);
}

.precio-duracion-2-dias {
    background-color: rgba(0, 109, 175, 0.917);
}

.precio-duracion-3-dias {
    background-color: rgba(0, 113, 157, 0.891);
}

.precio-duracion-4-dias {
    background-color: rgba(0, 117, 139, 0.866);
}

.precio-duracion-5-dias {
    background-color: rgba(0, 121, 121, 0.840);
}

.precio-duracion-6-dias {
    background-color: rgba(0, 125, 103, 0.827);
}

.precio-duracion-7-dias {
    background-color: rgba(0, 128, 0, 0.815);
}

#importe-seleccionado {
    font-size: 1.2em;
    font-weight: bold;
    color: darkgreen;
    padding: 5px;
    border: 1px solid lightgreen;
    border-radius: 5px;
    margin-left: 10px;
    display: inline-block;
}

#importe-seleccionado.actualizado {
    animation: pulse-precio 1s ease-in-out;
}

#descuentos {
    animation: pulse-precio .5s ease-in-out;
}

@keyframes pulse-precio {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.label-importe {
    margin-left: 5px;
    font-style: italic;
    color: #777;
}

.dia-seleccionado {
    background-color: #007bff !important;
    color: white !important;
    overflow: hidden;
}

.dia-seleccionado .fc-daygrid-day-events {
    background-color: #007bff !important; /* Azul para días seleccionados */
    color: white !important;
    overflow: hidden;
    .fc-daygrid-day-events {
        position: absolute !important;
        background-clip: content-box;
        width: 100%;    
        min-height: var(--alto-dia) !important;
        background-image: linear-gradient(to top,
                            #2568f93d,
                            #02666e80 1rem,
                            #eeeeee50 2rem,
                            #89dcff 2rem,
                            #89d6ffa5 3rem,
                            #eeeeee50 4rem,
                            #2568f93d 100%);
        animation: wave2 20S infinite alternate ease-out;
    }
    .fc-daygrid-day-bg{
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ffffff33" d="M0 50 Q25 0 50 50 T100 50 V100 H0 Z"/></svg>');
        background-size: cover;
        animation: wave 10s linear infinite;
    }
}

@keyframes wave {
  from { transform: translate3d(100px,100px,0);}
  to { transform: translate3d(-100px, -100px, 0);}
}

@keyframes wave2 {
  from { background-position: 0 100px; }
  to { background-position: 0 -100px; }
}

/* Estilos para formulario de reservas */
.ma-barco-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.ma-barco-form-group {
    margin-bottom: 15px;
}

.ma-barco-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.ma-barco-form-group input,
.ma-barco-form-group select,
.ma-barco-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--wp--preset--font-family--inter);
}

.ma-barco-form-group textarea {
    resize: vertical;
}

.ma-barco-btn {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.ma-barco-btn:hover {
    background-color: #005a87;
}

.ma-barco-btn-delete {
    background-color: #dc3545;
}

.ma-barco-btn-delete:hover {
    background-color: #c82333;
}

.admin-reservas-container {
    padding: 20px;
}

.admin-reservas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-reservas-header h1 {
    margin: 0;
}

.wpforms-container {
    max-width: 100%;
}

.linea-presupuesto {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.linea-presupuesto.total {
    border-bottom: 2px solid #333;
    font-weight: bold;
    font-size: 1.1em;
    padding: 15px 0;
}

.importe-dias {
    flex: 1;
}

.importe-cifra {
    text-align: right;
    min-width: 100px;
    font-weight: bold;
}

.wpforms-field-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

a.boton {
  display: inline-block;
  padding: 0.45rem 0.60rem;
  background-color: #22C0F020;
  text-decoration: none;
  font-weight: bold;
}

.idiomas {
    position: relative;
    top: -10px;
    left: -10px;
    z-index: 1000;
    #idioma {
        padding: 0.5rem;
        font-size: min(1rem, 3vw);
        &, &::picker(select) {
            appearance: base-select;
            background-color: white;
            font-family: var(--wp--preset--font-family--inter);
        }
        &::picker-icon {
            display: none;
        }
        option {
            padding-bottom: 1rem;
        }
    }
}

#presupuesto {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    .linea-presupuesto {
        transition: all 0.3s ease;
        display: flex;
        justify-content: space-between;
        margin-bottom: 0.5rem;
        font-size: min(1.2rem, 4vw);
        .importe-cifra {
            font-weight: bold;
        }
         &.total {
            font-size: min(1.4rem, 4.5vw);
            border-top: 1px solid #ccc;
            padding-top: 0.5rem;
        }
        input[type="date"] {
            --tamañofecha: min(1.2rem, 4vw);
            padding: 0.2rem;
            font-family: var(--wp--preset--font-family--inter);
            font-size: var(--tamañofecha);
            width: calc(8*var(--tamañofecha));
        }
    }
}
