*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.flow-body {
    background: #F7F6F2;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* ── Main area ───────────────────────────────────────────── */

.flow-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.flow-brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.flow-brand-logo img {
    max-height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.flow-card {
    background: #fff;
    border: 1px solid #e8e6e0;
    border-radius: 4px;
    padding: 40px 48px;
    width: 100%;
    max-width: 520px;
}

/* ── Node title ──────────────────────────────────────────── */

.flow-node-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 28px;
    line-height: 1.3;
    text-align: center;
}

/* ── Form fields ─────────────────────────────────────────── */

.flow-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flow-field-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.flow-field-input {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #111;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    padding: 6px 0 8px;
    outline: none;
    width: 100%;
    transition: border-color 0.15s ease;
}

.flow-field-input:focus {
    border-bottom-color: #111;
}

.flow-field-input::placeholder {
    color: #ccc;
}

.flow-field-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.flow-field-textarea {
    resize: vertical;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 8px 10px;
}

.flow-field-textarea:focus {
    border-color: #111;
}

/* ── Submit button ───────────────────────────────────────── */

.flow-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.flow-submit-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #111;
    color: #F7F6F2;
    border: 1px solid #111;
    border-radius: 3px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.flow-submit-btn:hover {
    background: #333;
    border-color: #333;
}

.flow-submit-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.flow-submit-btn:disabled:hover {
    background: #ccc;
    border-color: #ccc;
}

/* ── Complete state ──────────────────────────────────────── */

.flow-card--complete {
    text-align: center;
    padding: 56px 48px;
}

.flow-complete-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.flow-complete-heading .flow-node-title {
    margin-bottom: 0;
}

.flow-complete-icon {
    font-size: 1.6rem;
    color: #4a7c59;
    line-height: 1;
    flex-shrink: 0;
}

.flow-complete-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin-top: 12px;
    line-height: 1.6;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 600px) {
    .flow-card {
        padding: 28px 24px;
    }

    .flow-node-title {
        font-size: 1.25rem;
    }
}

/* ── Selection node ──────────────────────────────────────── */

.flow-selection-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.flow-sel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid #e0ded9;
    text-align: center;
    cursor: pointer;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.flow-sel-card:hover {
    background: #f5f3ee;
    border-color: #ccc;
    transform: translateY(-1px);
}

.flow-sel-card:active {
    transform: translateY(0);
    background: #eceae4;
}

.flow-sel-card-img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 3px;
    filter: grayscale(0.2);
    transition: filter 0.15s ease;
}

.flow-sel-card:hover .flow-sel-card-img {
    filter: none;
}

.flow-sel-card-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
}

.flow-sel-card-desc {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Two-column grid when 3+ options and no images */
@media (min-width: 480px) {
    .flow-selection-grid.has-many {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Lista (checklist) ────────────────────────── */
.flow-checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.flow-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}
.flow-checklist-check {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #111;
    cursor: pointer;
}
.flow-checklist-label {
    font-size: 0.92rem;
    color: #333;
    line-height: 1.5;
}

.flow-info-content {
    margin-bottom: 28px;
    color: #444;
    line-height: 1.75;
    font-size: 0.95rem;
}
.flow-info-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #111;
    margin: 0 0 14px;
    font-weight: 600;
}
.flow-info-content strong { color: #111; }
.flow-info-content ul {
    padding-left: 20px;
    margin: 8px 0;
}
.flow-info-content li { margin-bottom: 5px; }

.flow-recognition-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.flow-recognition-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Video node */
@keyframes flow-spin { to { transform: rotate(360deg); } }

.flow-video-wrap {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.flow-video {
    display: block;
    width: 100%;
}

.flow-video-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.flow-video-spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    animation: flow-spin 0.8s linear infinite;
}

.flow-video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

.flow-video-ctrl {
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

.flow-video-ctrl:hover {
    background: rgba(0,0,0,0.7);
    border-color: rgba(255,255,255,0.9);
}

.flow-video-ctrl--lg {
    width: 52px;
    height: 52px;
    font-size: 1.1rem;
}

.flow-video-ctrl--sm {
    width: 38px;
    height: 38px;
    font-size: 0.65rem;
    flex-direction: column;
    gap: 1px;
}

.flow-video-ctrl--sm span {
    font-family: 'Inter', sans-serif;
    font-size: 0.55rem;
    font-weight: 600;
    line-height: 1;
}

.flow-video-mute {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    z-index: 2;
}

.flow-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.flow-video-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.flow-video-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 18px 52px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 3px;
    background: #111;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.flow-video-btn:hover {
    background: #333;
}

/* ── Monto Mensual node ──────────────────────────────────── */

.flow-monto-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.flow-monto-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #E0DED9;
    border-radius: 6px;
    overflow: hidden;
    align-self: center;
}

.flow-monto-tab {
    padding: 10px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    background: #F7F6F2;
    color: #888;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.04em;
}

.flow-monto-tab + .flow-monto-tab {
    border-left: 1px solid #E0DED9;
}

.flow-monto-tab.is-active {
    background: #111;
    color: #fff;
}

.flow-monto-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.flow-monto-input {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    color: #111;
    background: transparent;
    border: none;
    border-bottom: 2px solid #E0DED9;
    outline: none;
    width: 200px;
    text-align: center;
    transition: border-color 0.15s;
    -moz-appearance: textfield;
}

.flow-monto-input::-webkit-outer-spin-button,
.flow-monto-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.flow-monto-input:focus { border-color: #111; }

.flow-monto-currency {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.06em;
}

.flow-monto-slider {
    width: 100%;
    accent-color: #111;
    cursor: pointer;
    margin-bottom: 8px;
}
