/* Widget Flotante del Asesor de Reservas con IA - Alquiler Temporario Cañuelas */

.alquiler-bot-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999998;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Botón Disparador Flotante */
.alquiler-bot-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.bot-label-pill {
    background: #ffffff;
    color: #128c7e;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border: 1px solid rgba(18, 140, 126, 0.2);
    animation: botPillFloat 3s ease-in-out infinite;
}

@keyframes botPillFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.bot-circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: #ffffff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.4);
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.bot-circle-btn:hover {
    transform: scale(1.08);
}

.bot-icon-close {
    display: none;
}

.bot-pulse-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: botPulse 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes botPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Ventana de Chat */
.alquiler-bot-window {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    z-index: 999999 !important;
}

.alquiler-bot-window.bot-hidden {
    display: none !important;
}

/* Header */
.bot-header {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    color: #ffffff;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bot-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bot-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.bot-status-online {
    font-size: 11px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #25d366;
}

.bot-header-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Chips Rápidos */
.bot-quick-chips {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    background: #f7fafc;
    overflow-x: auto;
    border-bottom: 1px solid #edf2f7;
    white-space: nowrap;
}

.quick-chip {
    background: #ffffff;
    border: 1px solid #cbd5e0;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: #2d3748;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-chip:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* Mensajes */
.bot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.bot-msg-agent {
    align-self: flex-start;
}

.bot-msg-user {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    word-break: break-word;
}

.bot-msg-agent .msg-bubble {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border-bottom-left-radius: 4px;
    border: 1px solid #f1f5f9;
}

.bot-msg-user .msg-bubble {
    background: #365c49;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Tipografía y Markdown en Burbujas */
.msg-bubble p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble strong {
    color: #0f172a;
    font-weight: 700;
}

.bot-msg-user .msg-bubble strong {
    color: #ffffff;
}

.bot-heading {
    margin: 10px 0 6px 0;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.bot-heading:first-child {
    margin-top: 0;
}

.bot-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.bot-list {
    margin: 6px 0 10px 0;
    padding-left: 18px;
    list-style-type: disc;
}

.bot-list li {
    margin-bottom: 5px;
    line-height: 1.45;
}

.msg-bubble a {
    color: #365c49;
    text-decoration: underline;
    font-weight: 600;
}

/* Slider de Tarjetas de Propiedades Recomendadas */
.bot-cards-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 4px 14px 4px;
    margin-top: 8px;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bot-cards-slider::-webkit-scrollbar {
    height: 5px;
}

.bot-cards-slider::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.bot-card-preview {
    flex: 0 0 240px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bot-card-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.bot-card-img-wrap {
    position: relative;
    width: 100%;
    height: 125px;
    background: #f1f5f9;
    overflow: hidden;
}

.bot-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bot-card-preview:hover .bot-card-img-wrap img {
    transform: scale(1.04);
}

.bot-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(27, 46, 35, 0.9);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.bot-card-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bot-card-title {
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.3;
    color: #1e293b;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bot-card-loc {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
}

.bot-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.bot-pill {
    font-size: 10.5px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.bot-card-price-row {
    margin-top: auto;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.bot-card-price {
    font-size: 15px;
    font-weight: 800;
    color: #365c49;
}

.bot-card-price small {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
}

.bot-card-actions {
    display: flex;
    gap: 6px;
}

.btn-card-prereserva {
    flex: 1;
    background: #365c49;
    color: #ffffff;
    border: none;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.2s;
    text-align: center;
}

.btn-card-prereserva:hover {
    background: #24362b;
}

.btn-card-detail {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e0;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-card-detail:hover {
    background: #e2e8f0;
}

/* Footer / Input */
.bot-footer {
    padding: 12px;
    background: #ffffff;
    border-top: 1px solid #edf2f7;
}

.bot-input-form {
    display: flex;
    gap: 8px;
}

.bot-input-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}

.bot-input-form input:focus {
    border-color: #128c7e;
}

.btn-bot-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #128c7e;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.btn-bot-send:hover {
    background: #075e54;
}

/* ==========================================================================
   Caja Interactiva de Pre-Reserva Rápida (In-Chat Booking Box)
   ========================================================================== */
.bot-booking-box {
    background: #ffffff;
    border: 2px solid #365c49;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0;
    box-shadow: 0 4px 16px rgba(54, 92, 73, 0.12);
    width: 100%;
    max-width: 330px;
    box-sizing: border-box;
}

.bot-booking-header {
    color: #1b2e23;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-booking-header i {
    color: #365c49;
}

.bot-booking-prop {
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.bot-booking-desc {
    font-size: 11.5px;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.bot-form-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.bot-form-col {
    flex: 1;
    min-width: 0;
}

.bot-form-col label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
}

.bot-input-field {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #f8fafc;
}

.bot-input-field:focus {
    border-color: #365c49;
    background: #ffffff;
}

.bot-booking-footer {
    margin-top: 10px;
}

.btn-bot-confirm {
    width: 100%;
    background: #365c49;
    color: #ffffff;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-bot-confirm:hover {
    background: #24362b;
}

.btn-bot-confirm:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.bot-booking-error {
    margin-top: 8px;
    padding: 6px 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 11.5px;
    border-radius: 6px;
    line-height: 1.35;
}

/* ==========================================================================
   Tarjeta de Reserva Confirmada en Perfex CRM
   ========================================================================== */
.bot-reserva-confirmada-card {
    background: #f0fdf4;
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 14px;
    margin-top: 10px;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
    max-width: 330px;
    box-sizing: border-box;
}

.bot-reserva-badge {
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.bot-reserva-cod {
    font-size: 15px;
    color: #14532d;
    font-weight: 700;
    margin-bottom: 6px;
}

.bot-reserva-info {
    font-size: 12px;
    color: #166534;
    line-height: 1.5;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.bot-reserva-note {
    font-size: 11px;
    color: #4b5563;
    line-height: 1.35;
    margin-bottom: 12px;
}

.bot-reserva-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-reserva-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 12.5px;
    padding: 9px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
    transition: background 0.2s;
    text-align: center;
}

.btn-reserva-whatsapp:hover {
    background: #1eb956;
}

.btn-reserva-precheckin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    transition: background 0.2s;
    text-align: center;
}

.btn-reserva-precheckin:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   Caja de Datos Bancarios Seguros para Transferencia
   ========================================================================== */
.bot-bank-card {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bot-bank-header {
    font-size: 11.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 5px;
}

.bot-bank-header i {
    color: #128c7e;
}

.bot-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 5px;
    gap: 6px;
}

.bot-bank-lbl {
    font-weight: 600;
    color: #64748b;
    width: 50px;
    flex-shrink: 0;
}

.bot-bank-val {
    flex: 1;
    color: #1e293b;
    word-break: break-all;
}

.bot-alias-code {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #0f766e;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.btn-copy-alias {
    background: #0f766e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.btn-copy-alias:hover {
    background: #115e59;
}

.bot-bank-security {
    font-size: 10.5px;
    color: #0f766e;
    background: #f0fdfa;
    border-radius: 4px;
    padding: 4px 6px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   WIDGET INTELIGENTE DE RESERVA & ASESOR IA (Ficha de Propiedad)
   ========================================================================== */
.alquiler-widget-reserva {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 22px 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.widget-reserva-header {
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.widget-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.widget-badge-live {
    font-size: 11px;
    color: #15803d;
    background: #dcfce7;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dot-live {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.widget-badge-tipo {
    font-size: 11px;
    font-weight: 700;
    color: #365c49;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 8px;
}

.widget-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.widget-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: #365c49;
    letter-spacing: -0.5px;
}

.widget-price-unit {
    font-size: 13px;
    color: #64748b;
}

.widget-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.widget-meta-pills span {
    font-size: 11px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 7px;
    border-radius: 6px;
}

/* Campos de Fechas y Selección */
.widget-dates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.form-group-date label,
.form-group-field label,
.widget-consulta-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.form-group-date input,
.form-group-field select,
.widget-consulta-field input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group-date input:focus,
.form-group-field select:focus,
.widget-consulta-field input:focus {
    border-color: #365c49;
    box-shadow: 0 0 0 2px rgba(54, 92, 73, 0.15);
}

.widget-row-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-bottom: 12px;
}

/* Consulta IA y Chips */
.widget-consulta-field {
    margin-bottom: 16px;
}

.widget-chips-ia {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 6px;
}

.chip-mini-ia {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.chip-mini-ia:hover {
    background: #365c49;
    color: #ffffff;
    border-color: #365c49;
}

/* Botón Consultar */
.btn-widget-consultar {
    width: 100%;
    background: #365c49;
    color: #ffffff;
    border: none;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.1s;
    box-shadow: 0 4px 10px rgba(54, 92, 73, 0.2);
}

.btn-widget-consultar:hover {
    background: #24362b;
    transform: translateY(-1px);
}

/* Respuesta Inteligente del Bot en el Widget */
.widget-bot-response {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #cbd5e1;
    animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-response-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
}

.bot-response-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.res-badge-disponibilidad {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.badge-disponible {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-ocupado {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.res-badge-noches {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

/* Tabla de desglose */
.res-desglose-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12.5px;
}

.desglose-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #475569;
}

.desglose-line strong {
    color: #1e293b;
}

.desglose-hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.line-total {
    font-size: 13.5px;
    color: #0f172a;
}

.line-total strong {
    font-size: 15px;
    color: #365c49;
    font-weight: 800;
}

.line-sena {
    color: #047857;
    font-weight: 600;
    font-size: 12px;
    background: #ecfdf5;
    padding: 4px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.line-sena strong {
    color: #047857;
}

/* Burbuja de IA */
.bot-response-bubble {
    display: flex;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #1e293b;
}

.bot-avatar-mini {
    font-size: 18px;
    flex-shrink: 0;
}

.bot-speech-text p {
    margin: 0 0 6px 0;
}

.bot-speech-text p:last-child {
    margin-bottom: 0;
}

/* Acciones en la respuesta */
.bot-response-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-preguntar-otro {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.btn-preguntar-otro:hover {
    background: #f1f5f9;
}

/* Footer del Widget */
.widget-reserva-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 11px;
    color: #64748b;
}

/* ============================================================
   CORRECCIÓN DEFINITIVA DE SIDEBAR STICKY (FICHA DE PROPIEDAD)
============================================================ */
@media (min-width: 992px) {
    /* Forzar que el contenedor principal de la ficha sea flexbox para estirar columnas */
    .detail-property-page .container > .row,
    .detail-property-page-v2 .container > .row,
    .main-content-area .container > .row {
        display: -webkit-box !important;
        display: -webkit-flex !important;
        display: -ms-flexbox !important;
        display: flex !important;
        -webkit-flex-wrap: wrap !important;
        -ms-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .detail-property-page .container > .row:before,
    .detail-property-page .container > .row:after,
    .detail-property-page-v2 .container > .row:before,
    .detail-property-page-v2 .container > .row:after,
    .main-content-area .container > .row:before,
    .main-content-area .container > .row:after {
        display: none !important;
    }

    .detail-property-page .col-lg-8,
    .detail-property-page .col-md-8,
    .detail-property-page-v2 .col-lg-8,
    .detail-property-page-v2 .col-md-8 {
        float: none !important;
        -webkit-flex: 0 0 66.666667% !important;
        -ms-flex: 0 0 66.666667% !important;
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }

    .detail-property-page .col-lg-4.homey_sticky,
    .detail-property-page .col-md-4.homey_sticky,
    .detail-property-page-v2 .col-lg-4.homey_sticky,
    .detail-property-page-v2 .col-md-4.homey_sticky {
        float: none !important;
        -webkit-flex: 0 0 33.333333% !important;
        -ms-flex: 0 0 33.333333% !important;
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        position: relative !important;
        height: auto !important;
    }

    /* Fijar la sidebar completa al hacer scroll */
    .homey_sticky .theiaStickySidebar {
        width: 100% !important;
    }

    .homey_sticky .sidebar-booking-module {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 90px !important;
        z-index: 99 !important;
        max-height: calc(100vh - 105px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(30, 91, 79, 0.4) transparent;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    }

    .homey_sticky .sidebar-booking-module::-webkit-scrollbar {
        width: 5px;
    }
    .homey_sticky .sidebar-booking-module::-webkit-scrollbar-thumb {
        background: rgba(30, 91, 79, 0.35);
        border-radius: 4px;
    }

    /* En la ficha de propiedad, mover el botón flotante del bot para no tapar el formulario */
    body.single-listing #alquiler-bot-wrap {
        right: 15px !important;
        bottom: 15px !important;
        z-index: 90 !important;
    }
    body.single-listing .alquiler-bot-label {
        display: none !important;
    }
}

/* ============================================================
   BUSCADOR DE CABECERA / HEADER VERTICAL CON IA (PERFECT FIT)
============================================================ */
.alquiler-buscador-header-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.alquiler-buscador-header-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.28), 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
    width: 100%;
}

.buscador-header-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.buscador-header-badge-row .badge-left {
    display: flex;
    align-items: center;
    gap: 7px;
}

.buscador-header-badge-row .live-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

.buscador-header-badge-row .badge-text {
    font-size: 12px;
    font-weight: 700;
    color: #1e5b4f;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.buscador-header-badge-row .badge-sub {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Campos verticales y 2-columnas */
.buscador-header-form {
    width: 100%;
    box-sizing: border-box;
}

.buscador-group-full {
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.buscador-row-2col {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.buscador-col-half {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.buscador-header-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.buscador-header-form label i {
    color: #1e5b4f;
    font-size: 13px;
}

.buscador-header-form select,
.buscador-header-form input[type="date"],
.buscador-header-form input[type="text"] {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.buscador-header-form select:focus,
.buscador-header-form input[type="date"]:focus,
.buscador-header-form input[type="text"]:focus {
    border-color: #1e5b4f !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(30, 91, 79, 0.12) !important;
}

/* Sección de Consulta con IA */
.buscador-ia-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 4px;
    margin-bottom: 14px;
}

.buscador-ia-box label {
    color: #1e5b4f;
    margin-bottom: 6px;
}

.buscador-ia-box .input-buscador-ia {
    background: #ffffff !important;
    margin-bottom: 8px;
    height: 38px !important;
    font-size: 12px !important;
}

.buscador-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.buscador-chips-row .chip-mini-ia {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}

.buscador-chips-row .chip-mini-ia:hover {
    background: #1e5b4f;
    color: #ffffff;
    border-color: #1e5b4f;
}

/* Botón Principal Full Width */
.btn-buscador-submit {
    width: 100% !important;
    height: 48px !important;
    background: linear-gradient(135deg, #1e5b4f 0%, #16433a 100%) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(30, 91, 79, 0.4) !important;
    text-transform: none !important;
    box-sizing: border-box !important;
}

.btn-buscador-submit:hover {
    background: linear-gradient(135deg, #16433a 0%, #0f2e28 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(30, 91, 79, 0.5) !important;
    color: #ffffff !important;
}

/* Panel de Resultados Dinámico */
.buscador-resultados-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.buscador-res-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.buscador-res-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.res-badge-status {
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.res-badge-summary {
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

.btn-cerrar-res {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 6px;
}
.btn-cerrar-res:hover {
    color: #ef4444;
}

/* Burbuja Bot */
.buscador-bot-bubble {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.bot-bubble-icon {
    width: 28px;
    height: 28px;
    background: #1e5b4f;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.bot-bubble-text {
    font-size: 12px;
    line-height: 1.5;
    color: #1e293b;
    flex: 1;
}

.bot-bubble-text p {
    margin: 0 0 6px 0;
}
.bot-bubble-text p:last-child {
    margin-bottom: 0;
}

/* Grilla de Propiedades */
.buscador-propiedades-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.buscador-prop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.bpc-thumb {
    width: 110px;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.bpc-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 60%);
}

.bpc-tag-tipo {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    align-self: flex-start;
    text-transform: uppercase;
}

.bpc-tag-precio {
    position: relative;
    z-index: 2;
    background: #1e5b4f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    align-self: flex-start;
}

.bpc-content {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.bpc-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bpc-meta {
    display: flex;
    gap: 6px;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 6px;
}

.bpc-total-row {
    font-size: 10px;
    color: #475569;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.bpc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: auto;
}

.bpc-btn-ver {
    background: #f1f5f9;
    color: #334155;
    font-size: 10px;
    font-weight: 700;
    padding: 5px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
}
.bpc-btn-ver:hover {
    background: #e2e8f0;
}

.bpc-btn-wa {
    background: #25d366;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
}

.buscador-global-cta {
    text-align: center;
}

.btn-buscador-wa-global {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .alquiler-buscador-header-card {
        padding: 16px 14px;
    }
    .buscador-row-2col {
        flex-direction: column;
        gap: 10px;
    }
}


/* ============================================================
   HERO FULL SCREEN (100vh) CON COLOR PLANO
============================================================ */
.elementor-element.elementor-element-ca87c77 {
    min-height: 100vh !important;
    background-color: #143d34 !important;
    background-image: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    box-sizing: border-box !important;
}

.elementor-element.elementor-element-ca87c77 .elementor-background-video-container,
.elementor-element.elementor-element-ca87c77 .elementor-background-video-embed {
    display: none !important;
}
