/* Estilos para el frontend del formulario de reservas */
.coquette-widget-reserva {
    background: #fff7fa;
    padding: 22px 20px 24px 20px;
    border-radius: 16px;
    max-width: 520px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 0 4px 20px rgba(192, 121, 237, 0.1);
}

.coquette-widget-reserva label {
    font-weight: 500;
    margin-bottom: 2px;
    color: #50104d;
    display: block;
}

.coquette-widget-reserva input,
.coquette-widget-reserva select,
.coquette-widget-reserva textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1.2px solid #dec5ee;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.coquette-widget-reserva input:focus,
.coquette-widget-reserva select:focus,
.coquette-widget-reserva textarea:focus {
    outline: none;
    border-color: #c079ed;
    box-shadow: 0 0 0 2px rgba(192, 121, 237, 0.2);
}

/* Servicios grid */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 10px;
}

.servicio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 17px 10px;
    background: #f0e9fc;
    border-radius: 11px;
    border: 2px solid #c079ed;
    color: #50104d;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.servicio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.servicio-item:hover {
    background: #e8d7f7;
    transform: translateY(-2px);
}

.servicio-item input[type="radio"]:checked + .servicio-icono,
.servicio-item:has(input[type="radio"]:checked) {
    background: linear-gradient(90deg, #c079ed, #fb92d6);
    color: #fff;
    border-color: #a865be;
}

.servicio-icono {
    font-size: 1.9em;
    margin-bottom: 6px;
    display: block;
}

.servicio-nombre {
    font-size: 1.14em;
    font-weight: bold;
    text-align: center;
}

/* Calendario */
.calendario-container {
    background: #fff3fe;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
}

.calendario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.calendario-nav {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #c079ed;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.calendario-nav:hover {
    background: rgba(192, 121, 237, 0.1);
}

.calendario-mes {
    font-size: 1.13em;
    font-weight: bold;
    color: #a868b6;
    letter-spacing: 0.03em;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dia-semana {
    font-size: 0.99em;
    font-weight: 700;
    text-align: center;
    color: #c079ed;
    padding: 8px 0;
}

.dia-calendario {
    min-width: 33px;
    padding: 13px 0;
    margin: 1.5px 0;
    border-radius: 13px;
    border: 2.2px solid #c079ed;
    background: #f3ebfa;
    font-size: 1.06em;
    cursor: pointer;
    transition: all 0.13s ease;
    color: #a868b6;
    font-weight: 600;
    text-align: center;
}

.dia-calendario:hover:not(:disabled) {
    background: #e8d7f7;
    transform: scale(1.05);
}

.dia-calendario.selected {
    background: linear-gradient(90deg, #c079ed, #fb92d6);
    color: #fff;
    border-color: #a865be;
}

.dia-calendario:disabled {
    background: #ececec;
    color: #c7b9bf;
    border-color: #ebe3ee;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Horas disponibles */
.horas-disponibles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* Continuación de coquette.css */
.hora-btn {
    width: 100%;
    font-size: 1.07em;
    padding: 9px 0;
    border-radius: 8px;
    border: 2px solid #c079ed;
    background: #f1eafe;
    color: #5f1969;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: 0.12s;
}

.hora-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #c079ed, #fb92d6);
    color: white;
    transform: scale(1.02);
}

.hora-btn.selected {
    background: linear-gradient(90deg, #c079ed, #fb92d6);
    color: white;
    border-color: #a865be;
}

.hora-btn:disabled {
    background: #ececec;
    color: #c7b9bf;
    border-color: #ebe3ee;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Botón de reserva */
.btn-reservar {
    width: 100%;
    margin-top: 15px;
    background: linear-gradient(90deg, #c079ed, #fb92d6);
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1em;
}

.btn-reservar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 121, 237, 0.3);
}

.btn-reservar:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* Mensajes de error */
.error-mensaje {
    color: #c02d2d;
    font-size: 0.9em;
    margin-top: 5px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Checkbox de tratamiento de datos */
input[name="acepta_datos"] {
    margin-right: 8px;
}

input[name="acepta_datos"] + span {
    font-size: 0.97em;
    color: #666;
}

input[name="acepta_datos"] + span a {
    color: #c079ed;
    text-decoration: underline;
    transition: color 0.2s;
}

input[name="acepta_datos"] + span a:hover {
    color: #fb92d6;
}

/* Resultado de reserva */
#resultado-reserva {
    margin-top: 15px;
}

.mensaje-exito {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .coquette-widget-reserva {
        padding: 15px 10px;
        border-radius: 10px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .servicio-item {
        padding: 12px 8px;
    }

    .hora-btn {
        font-size: 1em;
        padding: 7px 0;
    }

    .btn-reservar {
        font-size: 1em;
        padding: 10px;
    }
}

