
.custom-calendar-tabs {
    display: flex;
    width: 100%;
    margin: 0 auto;
    justify-content: space-around;
}

.custom-calendar-tabs .daysfour,
.custom-calendar-tabs .daystwo {
    background-color: rgb(136, 135, 139);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

.custom-calendar-tabs .boton-cal.active {
    background-color: rgb(218, 59, 53);
    color: white;
}

.custom-calendar .contenedor-botones {
    width: 100%;
    text-align: end;
}

.custom-calendar .boton-book {
    background-color: #ffc407;
    border: none;
    border-radius: 10px;
    color: #00193a;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
    margin-right: 10px;
}

.custom-calendar .boton-contact {
    background-color: #00193A;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    padding: 8px 15px;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    vertical-align: middle;
}

.custom-calendar .boton-sold-out {
    background-color: #D32F2F;
    color: white;
}

.custom-calendar .spaces {
    font-weight: bold;
    font-size: 20px;

    & span {
        font-size: 15px;
    }
}

.custom-calendar .contenedor-precios {
    font-size: 20px;
    font-weight: bold;

    & span {
        font-size: 15px;
    }
}

/* Contenedor principal */
.custom-calendar-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tour-selector button {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    margin-left: 5px;
}

.tour-selector button.active {
    background: #ffc407;
    border-color: #ffc407;
    color: #fff;
    font-weight: bold;
}

/* GRID SYSTEM - LO IMPORTANTE */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas iguales */
    gap: 10px; /* Espacio entre cuadros */
}

/* Nombres de los días (Mon, Tue...) */
.day-name {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    background: #eee;
    color: #555;
    font-size: 15px;
}

/* Celdas del Calendario */
.day-cell {
    border: 1px solid #e0e0e0;
    min-height: 100px; /* Altura de cada cajita */
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    transition: all 0.2s;
    position: relative;
}

.day-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.day-info {
    text-align: center;
    display: flex;
    align-items: center;
    gap: 5px;
}

.spaces-count {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333; /* Verde para espacios */
}

.spaces-label {
    font-size: 0.8rem;
    color: #777;
}

.day-cell {
    position: relative;
    overflow: hidden; /* Para que nada se salga del cuadradito */
}

/* Estilo del Badge (Invisible por defecto) */
.badge-hover {
    position: absolute;
    bottom: 10px; /* A 10px del fondo */
    left: 50%; /* Centrado horizontalmente */
    transform: translateX(-50%) translateY(20px); /* Lo bajamos un poco para animar */

    background-color: #da3b35;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 15px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    cursor: default;
}


.day-cell:hover .badge-hover {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.day-cell:hover .day-info {
    opacity: 0.1;
    transition: opacity 0.3s;
}

/* Estados de las celdas */
.day-cell.is-empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.day-cell.is-past {
    background: #f4f4f4;
    color: #aaa;
    cursor: not-allowed;
}

.day-cell.is-past .day-number {
    color: #aaa;
}

.day-cell.no-spaces {
    background: #fff0f0;
    border-color: #ffcccc;
}

.day-cell.no-spaces .spaces-count {
    color: #c0392b;
}

.day-cell.has-spaces:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.footer-price {
    margin-top: 20px;
    text-align: right;
    font-size: 1.2rem;
}

/* Contenedor de la barra de navegación */
.navegacion-meses {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Separa flechas del centro */
    /* Centrado horizontalmente */
    margin: 30px auto 20px;
    padding: 10px;
    border-radius: 8px;
}

/* Estilo del texto del Mes */
.mes-titulo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
}

/* Botones de flecha */
.nav-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%; /* Botones redondos */
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #555;
}

.nav-btn:hover {
    background: rgb(218, 59, 53);
    color: #fff;
    border-color: rgb(218, 59, 53);
}

.nav-btn.disabled,
.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #eee;
    color: #999;
    border-color: #ddd;
}

.nav-btn.disabled:hover {
    background: #eee;
    color: #999;
}

.day-cell .icon-status {
    text-align: center;
}

.border-progress-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    z-index: 1;
    overflow: hidden;
}

.border-progress-bar {
    height: 100%;
    background-color: rgb(136, 136, 138);
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   SCROLL HORIZONTAL EN MÓVIL
   ========================================= */

/* 1. El contenedor que permite el scroll */
.scroll-container {
    width: 100%;
    overflow-x: auto; /* Activa el scroll horizontal si no cabe */
    -webkit-overflow-scrolling: touch; /* Suaviza el deslizar en iPhone */
    padding-bottom: 10px; /* Espacio para que la barra de scroll no tape nada */
}

/* 2. Forzamos al calendario a mantener su ancho original */
/* Esto obliga al navegador a sacar el scroll en pantallas chicas */
@media (max-width: 768px) {
    .calendar-grid {
        /* Define un ancho mínimo. Si la pantalla es menor a 800px, aparecerá scroll */
        min-width: 800px;
    }

    /* Opcional: Ocultar barra de scroll fea en algunos navegadores móviles (estético) */
    .scroll-container::-webkit-scrollbar {
        height: 4px;
    }
    .scroll-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
}

/* 3. Pista visual (opcional) */
.mobile-hint {
    display: none; /* Oculto en PC */
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .mobile-hint {
        display: block; /* Visible en móvil */
    }
}
