/* Estilos para el Modal de Reserva Moderna */
:root {
    --color-pewma-blue: #003B70;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #20bd5a;
}

/* Fondo oscuro del modal */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    /* Oculto por defecto */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Contenedor del Widget */
.booking-widget-container {
    background: white;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
}

.booking-modal-overlay.active .booking-widget-container {
    transform: translateY(0);
}

/* Botón cerrar */
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-modal-btn:hover {
    background: #e5e7eb;
}

/* Estilos internos del widget (replicando BookingForm.tsx) - COMPACTADO */
.widget-content {
    padding: 1.5rem 1.5rem;
    /* Reducido de 2.5rem 2rem */
}

.widget-logo-area {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    /* Reducido de 1.5rem */
    margin-top: -0.5rem;
    /* Reducido de -1rem */
}

/* Logo limpio sin círculo */
.circle-logo {
    width: 100px;
    /* Un poco más ancho para el logo rectangular */
    height: auto;
    background-color: transparent;
    /* Sin fondo */
    border-radius: 0;
    /* Sin bordes redondos */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    /* Sin sombra */
    border: none;
    /* Sin borde blanco */
}

.widget-title {
    text-align: center;
    margin-bottom: 1rem;
    /* Reducido de 2rem */
}

.widget-title h2 {
    font-size: 1.25rem;
    /* Reducido de 1.5rem */
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
    font-family: 'DM Serif Display', serif;
}

.widget-title p {
    color: #6b7280;
    font-size: 0.85rem;
    margin: 0;
}

/* Formulario Compacto */
.form-group {
    margin-bottom: 0.8rem;
    /* Reducido de 1.25rem */
}

.form-label {
    display: block;
    font-size: 0.8rem;
    /* Reducido de 0.875rem */
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    /* Reducido de 0.75rem 1rem */
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    /* Reducido radio */
    font-size: 0.9rem;
    /* Reducido de 1rem */
    color: #111827;
    background-color: #fff;
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    height: auto;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    /* Reducido gap */
}

/* Nota amarilla compacta */
.note-box {
    background-color: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 0.5rem;
    /* Reducido padding */
    display: flex;
    align-items: start;
    gap: 0.5rem;
    margin: 1rem 0;
    /* Reducido margen */
}

.note-text {
    font-size: 0.7rem;
    color: #92400e;
    line-height: 1.3;
}

/* Botón Principal Compacto */
.btn-whatsapp-full {
    background-color: var(--color-whatsapp);
    color: white;
    width: 100%;
    padding: 0.75rem;
    /* Reducido de 1rem */
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    /* Reducido de 1.125rem */
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-whatsapp-full:hover {
    background-color: var(--color-whatsapp-hover);
    transform: translateY(-1px);
}

/* Métodos de pago Compactos */
.payment-methods {
    margin-top: 1rem;
    /* Reducido de 2rem */
    padding-top: 1rem;
    /* Reducido de 1.5rem */
    border-top: 1px dashed #e5e7eb;
    text-align: center;
}

.payment-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    /* Reducido */
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* Reducido gap */
}

.pay-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pay-icon-circle {
    width: 2rem;
    /* Reducido de 2.5rem */
    height: 2rem;
    /* Reducido de 2.5rem */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    /* Reducido icon size */
    transition: transform 0.2s;
}

.pay-item:hover .pay-icon-circle {
    transform: scale(1.1);
}

.pay-name {
    font-size: 0.6rem;
    font-weight: 500;
    color: #4b5563;
}

/* Colores pago */
.bg-blue-50 {
    background-color: #eff6ff;
    color: #2563eb;
}

.bg-green-50 {
    background-color: #f0fdf4;
    color: #16a34a;
}

.bg-purple-50 {
    background-color: #faf5ff;
    color: #9333ea;
}

/* Botón Flotante en Home */
.floating-reserve-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Al lado del botón WhatsApp nativo si existe, o reemplazándolo */
    background: var(--color-pewma-blue);
    color: white;
    padding: 12px 35px;
    min-width: 220px;
    justify-content: center;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s;
    font-size: 1rem;
    border: 2px solid white;
}

.floating-reserve-btn:hover {
    transform: translateY(-3px);
}

/* Animación pulse suave */
@keyframes softPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.floating-reserve-btn {
    animation: softPulse 3s infinite;
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .booking-widget-container {
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        width: 100%;
        position: absolute;
        bottom: 0;
        transform: translateY(100%);
    }

    .booking-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .floating-reserve-btn {
        bottom: 20px;
        right: 20px;
        /* Mantener flotante en móvil también, o barra inferior */
    }
}