/* =====================================================
   HERO DINÁMICO CON VIDEO DE FONDO (TIPO GIF) Y LOGO
===================================================== */
.video-hero-banner {
    position: relative;
    width: 100%;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #001533;
    color: #ffffff;
    padding: 50px 5%;
    box-sizing: border-box;
}

.video-hero-banner video.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.45) contrast(1.1);
}

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 21, 51, 0.85) 0%, rgba(0, 86, 179, 0.65) 100%);
    z-index: 2;
}

.hero-glass-content {
    position: relative;
    z-index: 3;
    max-width: 960px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 30px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    animation: fadeInDown 0.7s ease;
}

@media (max-width: 768px) {
    .hero-glass-content {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
}

.hero-brand-logo {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    background: #ffffff;
    padding: 10px;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.hero-text-box h1 {
    margin: 0 0 10px 0;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-text-box p {
    margin: 0 0 16px 0;
    font-size: 1.02rem;
    color: #e2e8f0;
    line-height: 1.5;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-pill {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* =====================================================
   CONTENEDOR Y WIZARD INTERACTIVO (PASO A PASO)
===================================================== */
.seller-app-bg {
    background: #f1f5f9;
    padding: 40px 4% 70px;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #0f172a;
}

.seller-app-layout {
    max-width: 1240px;
    margin: -35px auto 0;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .seller-app-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

.app-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.wizard-topbar {
    background: #f8fafc;
    padding: 24px 35px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.wizard-topbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.step-counter-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #0056b3;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-toggle-view {
    background: none;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    transition: 0.2s;
}

.btn-toggle-view:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wizard-steps-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.w-step-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    transition: 0.25s;
}

.w-step-num {
    width: 34px;
    height: 34px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.w-step-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    display: block;
}

.w-step-btn.active .w-step-num {
    background: #0056b3;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.2);
    transform: scale(1.08);
}

.w-step-btn.active .w-step-label {
    color: #001f4d;
}

.w-step-btn.done .w-step-num {
    background: #16a34a;
    color: #fff;
}

.progress-track {
    height: 7px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #0056b3, #ff4757);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-body {
    padding: 35px 40px;
}

@media (max-width: 640px) {
    .app-body {
        padding: 25px 20px;
    }
}

.wizard-pane {
    display: none;
    animation: fadeSlideIn 0.35s ease;
}

.wizard-pane.active {
    display: block;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.pane-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #001f4d;
}

.pane-header span {
    font-size: 13px;
    color: #64748b;
}

/* =====================================================
   CAMPOS DE FORMULARIO Y GRILLAS
===================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.col-full {
    grid-column: 1 / -1;
}

.f-group {
    display: flex;
    flex-direction: column;
}

.f-group label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.req-star {
    color: #ff4757;
}

.f-input {
    padding: 13px 15px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
    transition: all 0.2s ease;
}

.f-input:focus {
    background: #fff;
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
    transform: translateY(-1px);
}

.slug-preview-hint {
    color: #0056b3;
    font-size: 12px;
    margin-top: 5px;
}

.bank-security-alert {
    grid-column: 1 / -1;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    border-radius: 6px;
}

/* =====================================================
   DROPZONES INTERACTIVOS PARA DOCUMENTACIÓN
===================================================== */
.doc-card {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 18px;
    background: #f8fafc;
    position: relative;
    transition: all 0.25s ease;
    cursor: pointer;
}

.doc-card:hover {
    border-color: #0056b3;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.doc-card.uploaded {
    border-style: solid;
    border-color: #16a34a;
    background: #f0fdf4;
}

.doc-card input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.doc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.doc-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.tag-status {
    font-size: 10.5px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 12px;
    text-transform: uppercase;
}

.tag-req { background: #fee2e2; color: #991b1b; }
.tag-cond { background: #fef3c7; color: #92400e; }
.tag-rec { background: #dbeafe; color: #1e40af; }
.tag-opt { background: #e2e8f0; color: #475569; }

.doc-status-text {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.doc-card.uploaded .doc-status-text {
    color: #15803d;
    font-weight: 700;
}

/* =====================================================
   ITEMS DE CONDICIONES INTERACTIVOS Y MODAL DE CONCEPTO
===================================================== */
.btn-check-all {
    background: #eff6ff;
    color: #0056b3;
    border: 1px solid #bfdbfe;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-check-all:hover {
    background: #dbeafe;
}

.consent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}

.consent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 13.5px;
    color: #1e293b;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.consent-item:hover {
    border-color: #93c5fd;
    background: #f8fafc;
    transform: translateX(3px);
}

.consent-item.is-checked {
    border-color: #86efac;
    background: #f0fdf4;
}

.consent-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    cursor: pointer;
}

.consent-left input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: #0056b3;
    flex-shrink: 0;
}

.consent-link {
    color: #0056b3;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.2s;
}

.consent-link:hover {
    color: #ff4757;
}

.btn-read-concept {
    background: #eff6ff;
    color: #0056b3;
    border: 1px solid #bfdbfe;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-read-concept:hover {
    background: #0056b3;
    color: #ffffff;
    border-color: #0056b3;
}

/* Modal Emergente de Conceptos Legales */
.concept-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.25s ease;
}

.concept-modal-overlay.open {
    display: flex;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.concept-modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 650px;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: zoomInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInModal {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.concept-modal-header {
    background: linear-gradient(135deg, #001533 0%, #003d82 100%);
    color: #ffffff;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ff4757;
}

.concept-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.concept-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.concept-modal-close:hover {
    background: #ff4757;
}

.concept-modal-body {
    padding: 26px 28px;
    max-height: 65vh;
    overflow-y: auto;
    color: #334155;
    font-size: 14px;
    line-height: 1.65;
}

.concept-summary-box {
    background: #f0f7ff;
    border-left: 4px solid #0056b3;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    color: #001f4d;
    font-weight: 600;
    font-size: 13.5px;
}

.concept-modal-body ul {
    padding-left: 20px;
    margin: 12px 0;
}

.concept-modal-body li {
    margin-bottom: 10px;
}

.concept-modal-footer {
    background: #f8fafc;
    padding: 16px 28px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-modal-close-sec {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
}

.btn-modal-accept {
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    transition: 0.2s;
}

.btn-modal-accept:hover {
    background: #15803d;
    transform: translateY(-1px);
}

/* =====================================================
   BOTONES DE NAVEGACIÓN DEL WIZARD
===================================================== */
.wizard-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    gap: 15px;
}

.btn-wiz {
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-wiz-prev {
    background: #e2e8f0;
    color: #334155;
}

.btn-wiz-prev:hover {
    background: #cbd5e1;
}

.btn-wiz-next {
    background: #0056b3;
    color: #ffffff;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0, 86, 179, 0.3);
}

.btn-wiz-next:hover {
    background: #003d82;
    transform: translateY(-2px);
}

.btn-send-application {
    background: linear-gradient(135deg, #ff4757 0%, #e03140 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 16px 34px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 8px 22px rgba(255, 71, 87, 0.4) !important;
    transition: 0.25s !important;
    margin-left: auto;
}

.btn-send-application:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 28px rgba(255, 71, 87, 0.5) !important;
}

/* =====================================================
   BARRA LATERAL Y SIMULADOR DE GANANCIAS
===================================================== */
.side-panel {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.commission-card {
    background: linear-gradient(135deg, #001f4d 0%, #003d82 100%);
    color: #fff;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(0, 31, 77, 0.22);
}

.comm-badge-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comm-badge-top img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    object-fit: contain;
}

.comm-number {
    font-size: 3.2rem;
    font-weight: 900;
    color: #ff4757;
    line-height: 1;
}

.comm-sub {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #f8fafc;
}

.comm-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 13px;
}

.comm-list li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profit-sim-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.profit-sim-box label {
    font-size: 12px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 6px;
}

.profit-sim-box input[type="range"] {
    width: 100%;
    accent-color: #ff4757;
    cursor: pointer;
}

.sim-result {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
}

.sim-net {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4ade80;
}

.workflow-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.workflow-card h4 {
    margin: 0 0 16px 0;
    font-size: 13.5px;
    text-transform: uppercase;
    color: #001f4d;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.wf-step {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12.8px;
    color: #475569;
}

.wf-step strong {
    color: #0f172a;
    display: block;
}

.wf-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mensajes de Alerta */
.msg-box {
    padding: 18px 22px;
    border-radius: 10px;
    margin-bottom: 26px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
}

.msg-box.error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 5px solid #dc2626;
}

.msg-box.success {
    background: #f0fdf4;
    color: #166534;
    border-left: 5px solid #16a34a;
}