/* ================================================================
   PERSONALIZAR VIAJE MODAL
   ================================================================ */

.pv-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Overlay + wrapper */
.pv-modal {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.pv-modal[hidden] {
    display: none !important;
}
.pv-modal.pv-modal-visible {
    opacity: 1;
    pointer-events: auto;
}
.pv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    cursor: pointer;
}
body.pv-modal-open {
    overflow: hidden;
}

/* Modal box — split layout */
.pv-modal-box {
    position: relative;
    display: flex;
    background: #fff;
    border-radius: 18px;
    width: 94%;
    max-width: 860px;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.pv-modal.pv-modal-visible .pv-modal-box {
    transform: translateY(0);
}

/* Aside — panel imagen */
.pv-modal-aside {
    width: 240px;
    flex-shrink: 0;
    background: var(--color-logo1, #2e7d32);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 18px 0 0 18px;
}
.pv-modal-aside-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,20,0,0.1) 0%, rgba(0,20,0,0.72) 100%);
    border-radius: inherit;
}
.pv-modal-aside-body {
    position: relative;
    z-index: 1;
    padding: 28px 22px;
    color: #fff;
}
.pv-aside-icon {
    display: block;
    margin-bottom: 14px;
    opacity: 0.9;
}
.pv-aside-tagline {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
    color: #fff;
}
.pv-aside-sub {
    font-size: 0.82rem;
    font-weight: 500;
    margin: 0;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Contenido — parte derecha */
.pv-modal-content {
    flex: 1;
    min-width: 0;
    padding: 32px 36px 28px;
    overflow-y: auto;
    max-height: 92vh;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #c8dfc8 transparent;
}

/* Close button */
.pv-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f0f4f0;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.pv-modal-close:hover {
    background: #dde8dd;
    color: #111;
}

/* Header */
.pv-modal-header {
    margin-bottom: 20px;
    padding-right: 32px;
}
.pv-modal-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #0e1f0e;
    margin: 0 0 5px;
    line-height: 1.2;
}
.pv-modal-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Form grid */
.pv-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}
.pv-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pv-field-full {
    grid-column: 1 / -1;
}
.pv-field-split {
    display: flex;
    gap: 14px;
}
.pv-field-row {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: flex-end;
}
.pv-subfield {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.pv-subfield-num {
    flex: 0 0 80px;
}
.pv-field label,
.pv-subfield label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.01em;
}
.pv-field input,
.pv-field select,
.pv-field textarea,
.pv-subfield input {
    border: 1.5px solid #d4e0d4;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.88rem;
    color: #222;
    background: #f9fbf9;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}
.pv-field input:focus,
.pv-field select:focus,
.pv-field textarea:focus,
.pv-subfield input:focus {
    border-color: var(--color-logo1, #2e7d32);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background: #fff;
}
.pv-field textarea {
    resize: vertical;
    min-height: 88px;
}
.pv-field input.pv-invalid,
.pv-field select.pv-invalid {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.08);
}

/* Phone row */
.pv-phone-row {
    display: flex;
    gap: 8px;
}
.pv-prefix-select {
    flex: 0 0 auto;
    width: 160px !important;
}
.pv-phone-row input {
    flex: 1;
}

/* Footer */
.pv-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    gap: 12px;
    flex-wrap: wrap;
}
.pv-required-note {
    font-size: 0.77rem;
    color: #999;
    margin: 0;
}
.pv-submit-btn {
    background: var(--color-logo1, #2e7d32);
    color: #fff;
    border: none;
    border-radius: 9px;
    padding: 11px 26px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    white-space: nowrap;
}
.pv-submit-btn:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}
.pv-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
@keyframes pv-spin {
    to { transform: rotate(360deg); }
}
.pv-spin {
    animation: pv-spin 0.8s linear infinite;
    display: inline-block;
}

/* Success / error message */
.pv-form-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.5;
}
.pv-msg-ok {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #c8e6c9;
}
.pv-msg-err {
    background: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

/* ── Trigger button (header) — outlined pill to match .button family ── */
.pv-modal-trigger {
    background: #ffc300;
    border: 2px solid #ffc300;
    color: #1a1a00;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.pv-modal-trigger:hover {
    background-color: #e6b000;
    border-color: #e6b000;
    color: #1a1a00;
}

/* ── Checklist de tours ── */
.pv-tour-checklist {
    max-height: 200px;
    overflow-y: auto;
    border: 1.5px solid #d4e0d4;
    border-radius: 8px;
    padding: 6px 8px;
    background: #f9fbf9;
    scrollbar-width: thin;
    scrollbar-color: #c8dfc8 transparent;
}
.pv-tour-group {
    margin-bottom: 4px;
}
.pv-tour-group:last-child {
    margin-bottom: 0;
}
.pv-tour-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-logo1, #2e7d32);
    padding: 6px 6px 3px;
    opacity: 0.75;
}
.pv-tour-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.87rem;
    color: #222;
    cursor: pointer;
    padding: 5px 6px;
    border-radius: 6px;
    transition: background 0.15s;
    user-select: none;
}
.pv-tour-check:hover {
    background: #edf4ed;
}
.pv-tour-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-logo1, #2e7d32);
    flex-shrink: 0;
    cursor: pointer;
    margin: 0;
    border: none;
    background: none;
    box-shadow: none;
    padding: 0;
}

/* ── Botón email en booking widget ── */
.reserva-btn-email {
    display: flex;
    margin-top: 10px;
    background: transparent;
    color: var(--color-principal, #2e7d32);
    border: 2px solid var(--color-principal, #2e7d32);
    text-align: center;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s, color 0.2s;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    box-sizing: border-box;
}
.reserva-btn-email:hover {
    background: var(--color-principal, #2e7d32);
    color: #fff;
}

/* ── Botón email en tarjeta de contacto ── */
.sidebar-contacto-btn-email {
    margin-top: 8px;
    background: transparent;
    border: 1.5px solid var(--color-principal, #2e7d32);
    color: var(--color-principal, #2e7d32);
    font-family: inherit;
    cursor: pointer;
    width: 100%;
}
.sidebar-contacto-btn-email:hover {
    background: var(--color-principal, #2e7d32);
    color: #fff;
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .pv-modal-aside {
        display: none;
    }
    .pv-modal-box {
        border-radius: 14px;
        max-height: 96vh;
        width: 98%;
    }
    .pv-modal-content {
        padding: 22px 18px 24px;
        max-height: 96vh;
    }
    .pv-form-grid {
        grid-template-columns: 1fr;
    }
    .pv-field-full {
        grid-column: 1;
    }
    .pv-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .pv-submit-btn {
        justify-content: center;
    }
}
