/**
 * Products Debtors — Listas de morosos
 * Figma: node 983:49124
 * Tokens: Manrope (display font), Inter (body font)
 */

/* ============================================================
   FULL-BLEED + CONTAINER OVERRIDES
   ============================================================ */
body.has-hero-header .alphinus-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

body.has-hero-header {
    overflow-x: clip;
}

.section-products-debtors {
    width: 100%;
}

/* Full-bleed helper for all sections */
.debtors-hero,
.debtors-what-is,
.debtors-faq,
.debtors-content {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* ============================================================
   HERO SECTION
   Figma: layout_W5TE6C 1440x678px total
   Hero Section: layout_MTKZGJ — starts at y=80 (header), 1440x598
   fill_BFFNDC = shutterstock image (bg)
   fill_2XXZHB = var(--skin-darkblue-500) overlay, opacity 0.5
   Container: layout_7URAXS — column, center, gap 96px, padding 0 20px
   Text: layout_MR8BC8 — column, center, gap 20px
   H1: Manrope/H2/Bold — 65px/87px, var(--skin-white-500), center
   Subtitle: inter/body L/Regular — 20px/24px, var(--skin-white-500), center
   Search bar: layout_HAGVEI — 950px wide, gap 16px
   Search container: layout_Y3BC27 — col, padding 14px 12px, h=80, radius 12px, shadow-xl
   Button: layout_5WH3LG — fill_2XXZHB=var(--skin-darkblue-500), padding 12px 24px, radius 12px
   Button text: inter/body s/semibold — 14px, var(--skin-white-500)
   ============================================================ */
.debtors-hero {
    position: relative;
    z-index: 2;
    min-height: 678px;
}

.debtors-hero__bg {
    position: absolute;
    inset: 0;
    background: url('/cdn/sections/products/debtors/images/hero-bg-desktop.webp') center top / cover no-repeat;
    background-color: #1a2370;
    z-index: 0;
}

@media (max-width: 768px) {
    .debtors-hero__bg {
        background-image: url('/cdn/sections/products/debtors/images/hero-bg-mobile.webp');
    }
}

.debtors-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 96px;
    /* Header is 80px absolute over hero; top padding from Figma = 112px */
    padding: calc(var(--skin-header-height, 80px) + 112px) 20px 80px;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 100%;
    box-sizing: border-box;
}

/* Text block */
.debtors-hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    align-self: stretch;
}

.debtors-hero__title {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 700;
    font-size: 65px;
    line-height: 87px;
    color: var(--skin-white-500);
    text-align: center;
    margin: 0;
}

.debtors-hero__subtitle {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: var(--skin-white-500);
    text-align: center;
    margin: 0;
}

/* Search bar: 950px wide (layout_HAGVEI), gap 20px (layout_2OAFCK) */
.debtors-hero__search {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 950px;
    max-width: 100%;
}

.debtors-hero__search-label {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    color: var(--skin-white-500);
    text-align: left;
}

.debtors-hero__search-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Dropdown */
.debtors-hero__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 6px -2px rgba(10,13,18,.03), 0px 12px 16px -4px rgba(10,13,18,.08);
    z-index: 200;
    overflow: hidden;
}

.debtors-hero__dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.debtors-hero__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--skin-border-subtle-strong);
    border-top-color: var(--skin-darkblue-500);
    border-radius: 50%;
    animation: debtors-spin 0.7s linear infinite;
}

@keyframes debtors-spin {
    to { transform: rotate(360deg); }
}

.debtors-hero__dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s ease;
}

.debtors-hero__dropdown-item:hover,
.debtors-hero__dropdown-item.is-active {
    background: #F9FAFB;
}

.debtors-hero__dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #E7EFFF;
    color: var(--skin-darkblue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.debtors-hero__dropdown-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.debtors-hero__dropdown-item-name {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 500;
    color: var(--skin-dark-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.debtors-hero__dropdown-item-meta {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 12px;
    color: var(--skin-text-muted);
}

.debtors-hero__dropdown-empty {
    padding: 20px 16px;
    text-align: center;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 14px;
    color: var(--skin-text-muted);
}

/* Botón limpiar */
.debtors-hero__search-clear {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #B4BDC1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Resultado formulario ASNEF inline */
.debtors-hero__result {
    position: relative;
    z-index: 10;
    margin-top: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 4px 16px rgba(10,13,18,.12);
    padding: 24px;
    color: var(--skin-dark-900);
}

/* White search container: row layout, height 80px */
.debtors-hero__search-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 14px 12px;
    height: 80px;
    box-sizing: border-box;
    box-shadow:
        0px 3px 3px -1.5px rgba(10, 13, 18, 0.04),
        0px 8px 8px -4px rgba(10, 13, 18, 0.03),
        0px 20px 24px -4px rgba(10, 13, 18, 0.08);
}

/* Input area: row with icon + text, takes all available space */
.debtors-hero__search-input-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.debtors-hero__search-icon {
    color: #B4BDC1;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.debtors-hero__search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--skin-dark-900);
    min-width: 0;
}

.debtors-hero__search-input::placeholder {
    color: #B4BDC1;
}


/* Search button inside the white container */
.debtors-hero__search-btn {
    background: var(--skin-darkblue-500);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
    transition: opacity 0.15s ease;
    align-self: stretch;
}

.debtors-hero__search-btn:hover {
    opacity: 0.9;
}


/* ============================================================
   MODAL ASNEF/RAI
   Figma: node I983:48081;756:25480 — desktop popup 618x448px
   Overlay: rgba(26,26,26,0.5), position fixed, inset 0
   Card: 618px wide, pad 24px, gap 32px, radius 12px, white bg
   Shadow: 0 20px 40px rgba(0,0,0,0.25)
   Header: "Debtors list of X" Manrope 24px/600 var(--skin-dark-900) + X btn 20x20
   Content: el HTML legacy del formulario ASNEF inyectado
   ============================================================ */

.debtors-modal {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.debtors-modal__card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 618px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
}

/* ─── COMPANY INFO HEADER ─── */
.debtors-modal__company {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.debtors-modal__company-avatar {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--skin-darkblue-500);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.debtors-modal__company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.debtors-modal__company-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.debtors-modal__company-name {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: 28px;
    line-height: 34px;
    color: var(--skin-dark-900);
}

.debtors-modal__company-badge {
    display: inline-flex;
    align-items: center;
    background: #F0FDF4;
    color: #008236;
    border: 1px solid #B9F8CF;
    border-radius: 8px;
    padding: 2px 12px;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
}

.debtors-modal__company-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--skin-text-muted);
}

.debtors-modal__company-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--skin-text-muted);
    line-height: 16px;
}

.debtors-modal__company-meta-item img {
    flex-shrink: 0;
    opacity: 0.6;
}

.debtors-modal__company-meta-link {
    color: var(--skin-text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
}

.debtors-modal__company-meta-link:hover {
    color: var(--skin-darkblue-500);
    text-decoration: underline;
}

.debtors-modal__company-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #151F58;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-decoration: none;
    border: 1px solid #151F58;
    border-radius: 12px;
    padding: 12px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.debtors-modal__company-profile:hover {
    background: rgba(21, 31, 88, 0.04);
    text-decoration: none;
}

/* ─── PRODUCTS (radio buttons) ─── */
.debtors-modal__products {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.debtors-modal__products-title {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-dark-900);
    margin: 0;
}

.debtors-modal__product-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.debtors-modal__product-radio {
    width: 16px;
    height: 16px;
    accent-color: var(--skin-darkblue-500);
    cursor: pointer;
    flex-shrink: 0;
}

.debtors-modal__product-label {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--skin-text-muted);
}

/* ─── PRECIO FINAL (dos columnas) ─── */
.debtors-modal__price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.debtors-modal__price-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.debtors-modal__price-final-label {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 29px;
    color: var(--skin-dark-900);
}

.debtors-modal__total-label {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: var(--skin-text-muted);
}

.debtors-modal__price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.debtors-modal__total-price {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 29px;
    color: var(--skin-darkblue-500);
}

.debtors-modal__price-note {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--skin-text-muted);
    margin: 0;
}


/* ─── DIVIDER ─── */
.debtors-modal__divider {
    height: 1px;
    background: var(--skin-border-subtle-strong);
    margin: 0;
}

/* Header: título a la izquierda + botón cerrar a la derecha */
.debtors-modal__header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.debtors-modal__title {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: 24px;
    line-height: 29px;
    color: var(--skin-dark-900);
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.debtors-modal__title-company {
    font-weight: 700;
}

/* Botón cerrar X */
.debtors-modal__close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--skin-dark-900);
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.15s ease;
}

.debtors-modal__close:hover {
    opacity: 1;
}

/* Loading state */
.debtors-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    min-height: 200px;
}

.debtors-modal__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--skin-border-subtle-strong);
    border-top-color: var(--skin-darkblue-500);
    border-radius: 50%;
    animation: debtors-spin 0.7s linear infinite;
    flex-shrink: 0;
}

.debtors-modal__loading-text {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--skin-text-muted);
    margin: 0;
    text-align: center;
}

/* Empty state */
.debtors-modal__empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--skin-text-muted);
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 14px;
}

/* ─── CTA BUTTON ─── */
.debtors-modal__cta {
    display: flex;
    justify-content: center;
}

.debtors-modal__btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    padding: 16px 48px;
    background: var(--skin-darkblue-500);
    color: var(--skin-white-500);
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    border: 1px solid #2719A5;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05);
    transition: background 0.2s;
}

.debtors-modal__btn-primary:hover {
    background: var(--skin-navy-hover);
}

.debtors-modal__btn-primary:disabled {
    background: #B0B8D4;
    border-color: #B0B8D4;
    cursor: not-allowed;
}

/* Content: HTML legacy del formulario ASNEF
   Clases del legacy: .formulario-asnef-rai, .box__header, .box__content,
   .container-name-button, .formulario-asnef-rai__precios__btn-carrito
   Figma spec: company info row (icon 64x64 + name Manrope 28px/600 + badge + meta)
   Then: "Available products:" Manrope 20px/600, checkbox RAI, price row, Add to cart btn
   ============================================================ */

/* Contenedor raíz: reset de estilos Materialize heredados */
.debtors-modal__content {
    flex: 1;
    color: var(--skin-dark-900);
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-size: 16px;
}

.debtors-modal__content .formulario-asnef-rai {
    padding: 0;
    margin: 0;
    background: none;
    box-shadow: none;
    border: none;
}

.debtors-modal__content .formulario-compra-docs__box {
    padding: 0;
    margin: 0;
}

/* ─── HEADER DEL LEGACY: estilizar la info de empresa ─── */

/* El modal Alphinus ya tiene el título "Consulta de morosos: X" en el header.
   El box__header legacy tiene: icono SVG + "Lista de morosos de" + h3 empresa + btn perfil.
   Ocultamos el texto "Lista de morosos de" y el icono, mostramos h3 + btn perfil. */
.debtors-modal__content .box__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--skin-border-subtle-strong);
    margin-bottom: 4px;
}

/* Ocultar el span con icono y texto "Lista de morosos de" */
.debtors-modal__content .title-container {
    display: none;
}

/* Row con nombre empresa + botón perfil */
.debtors-modal__content .container-name-button {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0;
}

/* Nombre de la empresa
   Figma: Manrope 28px/34px/600 var(--skin-dark-900) */
.debtors-modal__content #formulario-cuentas-anuales__box-name {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: 28px;
    line-height: 34px;
    color: var(--skin-dark-900);
    margin: 0;
}

/* Columnas del row */
.debtors-modal__content .container-name-button .col.l7 {
    flex: 1;
    min-width: 0;
}

.debtors-modal__content .container-name-button .col.l5 {
    flex-shrink: 0;
    width: auto !important;
}

/* Ocultar icono close del legacy (redundante con el X del modal Alphinus) */
.debtors-modal__content .icon-close.close-btn {
    display: none !important;
}

/* ─── COMPANY INFO ROW
   Figma: icon 64x64 navy, nombre Manrope 28px/600, badge Active, meta muted ─── */

/* ─── PRODUCTOS DISPONIBLES ─── */
.debtors-modal__content .box__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
}

/* Reset Materialize row/col */
.debtors-modal__content .row {
    margin-bottom: 0;
}

.debtors-modal__content .col {
    float: none;
    display: block;
    width: auto;
    padding: 0;
    box-sizing: border-box;
}

/* Sección "Productos disponibles" */
.debtors-modal__content .formulario-asnef-rai__box-step-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Título "Productos disponibles:"
   Figma: Manrope/body L/semibold — 20px/600/29px var(--skin-dark-900)
   Solo aplica al h5 dentro de la sección de ejercicio (productos), NO al de precios */
.debtors-modal__content .formulario-asnef-rai__box-step-content h5.f-bold {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: 20px;
    line-height: 29px;
    color: var(--skin-dark-900);
    margin: 0;
}

/* "Precio final:" label
   Figma Frame 2147225935: el label es Inter 14px/400/17px var(--skin-text-muted) */
.debtors-modal__content #formulario-cuentas-anuales__box-step--precios h5.f-bold {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--skin-text-muted);
    margin: 0;
}

/* Contenedor del checkbox RAI */
.debtors-modal__content .checkLabelContainer {
    display: block;
    width: auto;
    padding: 0;
}

.debtors-modal__content .checkContainer {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* RAI label: Inter 16px/500/24px var(--skin-text-muted) (Figma) */
.debtors-modal__content .checkContainer label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--skin-text-muted);
}

/* Checkbox nativo — estilo básico ya que Materialize filled-in no carga */
.debtors-modal__content input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1.5px solid #D0D5DD;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    background: #FFFFFF;
    position: relative;
}

.debtors-modal__content input[type="checkbox"]:checked {
    background: var(--skin-darkblue-500);
    border-color: var(--skin-darkblue-500);
}

.debtors-modal__content input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* RAI label text — same as label */
.debtors-modal__content .checkContainer label strong {
    font-weight: 500;
    color: var(--skin-text-muted);
}

/* Ocultar preloader spinner dentro del label */
.debtors-modal__content .hide {
    display: none !important;
}

/* ─── PRECIO FINAL ─── */
.debtors-modal__content #formulario-cuentas-anuales__box-step--precios {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    border: none;
    background: none;
}

.debtors-modal__content .total-cuentas {
    display: block;
    padding: 0;
    width: auto;
}

.debtors-modal__content .formulario-compra-docs__precios {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* "IVA no incluido" / subtexto
   Figma VTA not included: Manrope/body s/Regular — 14px/400/20px var(--skin-text-muted) */
.debtors-modal__content .formulario-compra-docs__precios li {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-size: 14px;
    font-weight: 400;
    color: var(--skin-text-muted);
    line-height: 20px;
}

/* Total value — Manrope 20px/700 navy (el valor numérico €XX.XX)
   Figma: Manrope/body L/Bold — 20px/700/29px var(--skin-darkblue-500) */
.debtors-modal__content .formulario-compra-docs__precios li.f-bold {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 700;
    font-size: 20px;
    line-height: 29px;
    color: var(--skin-darkblue-500);
}

/* Botón "finalizar compra"
   Figma: 214x54px, primary navy, radius 12px, Inter 16px/600 var(--skin-white-500) */
.debtors-modal__content .a-center {
    text-align: center;
    padding: 0;
    width: 100%;
}

.debtors-modal__content .formulario-asnef-rai__precios__btn-carrito,
.debtors-modal__content .button-cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--skin-darkblue-500) !important;
    color: var(--skin-white-500) !important;
    border: 1px solid #2719A5 !important;
    border-radius: 12px !important;
    padding: 16px 48px !important;
    font-family: var(--skin-font-body, 'Inter', sans-serif) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    height: auto !important;
    min-height: 54px !important;
    box-shadow: 0px 1px 2px rgba(10, 12, 18, 0.05) !important;
    transition: opacity 0.15s ease !important;
    width: auto;
    min-width: 214px;
}

.debtors-modal__content .formulario-asnef-rai__precios__btn-carrito:hover,
.debtors-modal__content .button-cart:hover {
    opacity: 0.9 !important;
}

/* Ocultar icono del carrito del legacy (usamos solo texto) */
.debtors-modal__content .button-cart i,
.debtors-modal__content .formulario-asnef-rai__precios__btn-carrito i {
    display: none;
}

/* "Ver perfil de esta empresa" — link secundario
   Figma: 177x43px, border #151F58, Inter 14px/600, #151F58 */
.debtors-modal__content .formulario-cuentas-anuales__btn-empresa {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    color: #151F58 !important;
    border: 1px solid #151F58 !important;
    border-radius: 12px !important;
    padding: 12px 8px !important;
    font-family: var(--skin-font-body, 'Inter', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 17px !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    height: auto !important;
    min-width: 177px;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: background 0.15s ease !important;
}

.debtors-modal__content .formulario-cuentas-anuales__btn-empresa:hover {
    background: #F9FAFB !important;
}

/* ─── ROW DEL BOTÓN CARRITO ─── */
.debtors-modal__content .formulario-compra-docs__box-step.box__row {
    padding: 0;
    border: none;
    background: none;
    margin: 0;
}

/* Reset columnas del bloque precio+botón */
.debtors-modal__content .col-md-7,
.debtors-modal__content .col-sm-4,
.debtors-modal__content .col-xs-12 {
    float: none;
    width: auto;
    padding: 0;
}

/* Fila precio final — izquierda label, derecha valores */
.debtors-modal__content .formulario-compra-docs__box-step {
    padding: 0;
    border: none;
    background: none;
}

/* La lista de precios: quitar viñetas */
.debtors-modal__content ul.formulario-compra-docs__precios {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.debtors-modal__content ul.formulario-compra-docs__precios li::before {
    display: none;
}

/* Botón centrado con margen top */
.debtors-modal__content .col-sm-4.a-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
}

/* Imagen del legacy en box__header: ocultar */
.debtors-modal__content .title-container img {
    display: none !important;
}

/* Separador entre nombre y productos */
.debtors-modal__content .formulario-asnef-rai__box-step-content > div:first-child {
    padding-top: 0;
}

/* Reset de estilos Materialize que pueden interferir */
.debtors-modal__content .container-fluid {
    padding: 0;
    width: 100%;
}

.debtors-modal__content * {
    box-sizing: border-box;
}

/* Ocultar el ícono del legacy i.icon-close */
.debtors-modal__content .icon-close,
.debtors-modal__content .close-btn {
    display: none !important;
}

/* Mobile: modal full-width */
@media (max-width: 680px) {
    .debtors-modal {
        padding: 0;
        align-items: flex-end;
    }

    .debtors-modal__card {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
    }
}

/* ============================================================
   WHAT IS A DEBTORS LIST — bg #F9FAFB
   Figma: layout_MKHBLD — column, gap 48px, padding 96px 0
   Header: layout_HBLRLD — column, center, gap 16px
   Title: Manrope/H5/Bold — 40px/48px, var(--skin-dark-900), center
   Cards outer: layout_1OIRIY — column, center, padding 0 80px, gap 24px
   Row: layout_EBYKZ6 — row, center, gap 24px
   Card: layout_O6H1AL — column, gap 12px, padding 24px, radius 16px, white, shadow-xs
   Icon wrapper: layout_0KRWE5 — 48×48px, bg #E7EFFF, radius 12px
   Icon inside: layout_X6O23R — 28×28px (SVG)
   Text: Manrope/body L/Regular — 20px/29px, var(--skin-dark-900)
   ============================================================ */
.debtors-what-is {
    background: #F9FAFB;
}

.debtors-what-is__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    padding: 96px 0;
}

.debtors-what-is__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.debtors-what-is__title {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: var(--skin-dark-900);
    text-align: center;
    margin: 0;
}

.debtors-what-is__cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 80px;
}

.debtors-what-is__row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 24px;
    align-self: stretch;
}

.debtors-what-is__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 1px 2px rgba(10, 13, 18, 0.05);
    flex: 1;
}

.debtors-what-is__card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
}

.debtors-what-is__card-icon img {
    width: 48px;
    height: 48px;
}

.debtors-what-is__card-text {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 400;
    font-size: 20px;
    line-height: 29px;
    color: var(--skin-dark-900) !important;
    margin: 0;
    text-decoration: none;
}

/* ============================================================
   FAQ SECTION — bg white
   Figma: layout_K8XNRC — column, padding 96px 80px
   Inner: layout_X9Z7SV — row, gap 96px
   Left col: 503px — H5 title only
   H5: Manrope/H5/Bold — 40px/48px, var(--skin-dark-900), text-align LEFT
   Accordion: layout_E1JYGW — width 681px, col, gap 10px
   Item (closed): layout_HMB69Q — col, padding 0 0 24px, width 681px
   Question row: layout_8FWFVA — row, center, space-between, gap 10px
   Question text: Manrope/body L/Medium — 20px/29px, 500, var(--skin-dark-900)
   Answer: inter/body M/Regular — 16px/20px, var(--skin-dark-900)
   Icon: layout_W5R8DP — 26×26px
   ============================================================ */
.debtors-faq {
    background: #FFFFFF;
}

.debtors-faq__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 96px 80px;
    display: flex;
    flex-direction: row;
    gap: 96px;
    align-items: flex-start;
    box-sizing: border-box;
}

.debtors-faq__left {
    width: 503px;
    flex-shrink: 0;
    position: sticky;
    top: calc(80px + 24px);
}

.debtors-faq__title {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 700;
    font-size: 40px;
    line-height: 48px;
    color: var(--skin-dark-900);
    text-align: left;
    margin: 0;
}

.debtors-faq__accordion {
    width: 681px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.debtors-faq__item {
    border-bottom: 1px solid var(--skin-border-subtle-strong);
}

.debtors-faq__item:first-child {
    border-top: 1px solid var(--skin-border-subtle-strong);
}

.debtors-faq__question {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.debtors-faq__question-text {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 500;
    font-size: 20px;
    line-height: 29px;
    color: var(--skin-dark-900);
    flex: 1;
}

.debtors-faq__item.is-open .debtors-faq__question-text {
    font-weight: 500;
}

.debtors-faq__icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.debtors-faq__answer {
    overflow: hidden;
}

.debtors-faq__answer p {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--skin-dark-900);
    margin: 0 0 24px;
}

/* ============================================================
   CONTENT CARDS SECTION — bg white
   Figma: layout_RQRHSN — column, gap 48px, padding 80px 0
   Row: layout_RRZFOT — row, center, gap 48px
   Card: layout_GF6PJ2 — 585×450px, padding 32px, radius 12px
     fill_JYVRC4=#F9F9F9, justify-content space-between
   Image: 585×450px, radius 12px, object-fit cover
   Card inner top: layout_ZL1T09 — col, gap 40px (NOT used, we use F5SDH3)
   Text block: layout_F5SDH3 — col, gap 24px
   Title: Manrope/H6/semibold — 32px/43px, var(--skin-dark-900)
   Body: inter/body M/Regular — 16px/20px, var(--skin-text-muted) (fill_MEWBS1)
   ============================================================ */
.debtors-content {
    background: #FFFFFF;
}

.debtors-content__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 80px 0;
}

.debtors-content__row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 48px;
}

.debtors-content__card {
    width: 585px;
    min-height: 450px;
    background: #F9F9F9;
    border-radius: 12px;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.debtors-content__card-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.debtors-content__card-title {
    font-family: var(--skin-font-display, 'Manrope', sans-serif);
    font-weight: 600;
    font-size: 32px;
    line-height: 43px;
    color: var(--skin-dark-900);
    margin: 0;
}

.debtors-content__card-body {
    font-family: var(--skin-font-body, 'Inter', sans-serif);
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: var(--skin-text-muted);
    margin: 0;
}

.debtors-content__image {
    width: 585px;
    height: 450px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #E7EFFF;
    flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — Mobile (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Hero */
    .debtors-hero {
        height: auto;
        min-height: 480px;
    }

    .debtors-hero__inner {
        gap: 48px;
        padding: calc(var(--skin-header-height, 80px) + 40px) 16px 40px;
        height: auto;
    }

    .debtors-hero__title {
        font-size: 36px;
        line-height: 48px;
    }

    .debtors-hero__subtitle {
        font-size: 16px;
        line-height: 22px;
    }

    .debtors-hero__search {
        width: 100%;
    }

    /* What is */
    .debtors-what-is__inner {
        padding: 48px 0;
        gap: 32px;
    }

    .debtors-what-is__cards {
        padding: 0 16px;
    }

    .debtors-what-is__row {
        flex-direction: column;
        gap: 16px;
    }

    .debtors-what-is__title {
        font-size: 28px;
        line-height: 36px;
        padding: 0 16px;
    }

    /* FAQ */
    .debtors-faq__inner {
        flex-direction: column;
        padding: 48px 16px;
        gap: 32px;
    }

    .debtors-faq__left {
        width: 100%;
        position: static;
    }

    .debtors-faq__title {
        font-size: 28px;
        line-height: 36px;
    }

    .debtors-faq__accordion {
        width: 100%;
    }

    /* Content cards */
    .debtors-content__inner {
        padding: 48px 0;
        gap: 32px;
    }

    .debtors-content__row {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .debtors-content__row--left {
        flex-direction: column-reverse;
    }

    .debtors-content__card {
        width: 100%;
        min-height: auto;
        border-radius: 0;
        padding: 24px 16px;
    }

    .debtors-content__card-title {
        font-size: 24px;
        line-height: 32px;
    }

    .debtors-content__image {
        width: 100%;
        height: 240px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .debtors-hero__title {
        font-size: 28px;
        line-height: 38px;
    }
}
