/* ==========================================================================
   WIDGET: CREDIT OBSTACLES (Luxury Financial Grid Layout)
   ========================================================================== */

.fc-credit-obstacles {
    position: relative;
    background: var(--fc-secondary);
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
}

/* Grilla bilateral asimétrica */
.fc-credit-obstacles__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- COLUMNA IZQUIERDA: CONTENIDOS --- */

.fc-credit-obstacles .fc-widget-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--fc-accent);
    text-transform: uppercase;
    background: #ffffff;
    border: 1px solid rgba(var(--fc-accent-rgb), 0.18);
    margin-bottom: 16px;
}

.fc-credit-obstacles .fc-obstacles-title {
    margin: 0 0 24px 0;
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 540px;
}

.fc-credit-obstacles .fc-obstacles-title span {
    color: var(--fc-accent);
}

.fc-credit-obstacles .fc-credit-obstacles__lead {
    margin: 0 0 36px 0;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 520px;
}

/* CAJA TÁCTICA DE PERFILES COMPLEJOS (Glassmorphism de mitigación) */
.fc-credit-obstacles .fc-credit-obstacles__box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 40px;
    max-width: 540px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fc-credit-obstacles .fc-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #ffffff;
}

.fc-credit-obstacles .fc-box-icon {
    width: 20px;
    height: 20px;
    color: var(--fc-accent);
    flex-shrink: 0;
}

.fc-credit-obstacles .fc-box-header strong {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Lista estilizada con micro-indicadores premium */
.fc-credit-obstacles .fc-obstacles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fc-credit-obstacles .fc-obstacles-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.92rem;
    color: #cbd5e1;
    font-weight: 500;
}

.fc-credit-obstacles .fc-obstacles-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fc-accent);
    box-shadow: 0 0 10px rgba(var(--fc-accent-rgb), 0.45);
}

/* FILA DE ACCIONES */
.fc-credit-obstacles .fc-credit-obstacles__actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.fc-credit-obstacles .fc-credit-obstacles__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 32px;
    border-radius: 14px;
    background: var(--fc-accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-credit-obstacles .fc-btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.fc-credit-obstacles .fc-credit-obstacles__btn:hover {
    transform: translateY(-3px);
    box-shadow: none;
    filter: brightness(1.08);
}

.fc-credit-obstacles .fc-credit-obstacles__btn:hover .fc-btn-arrow {
    transform: translateX(4px);
}

.fc-credit-obstacles .fc-credit-obstacles__note {
    font-size: 0.84rem;
    color: #64748b;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fc-credit-obstacles .fc-credit-obstacles__note i {
    color: var(--fc-accent);
    font-size: 0.95rem;
}


/* --- COLUMNA DERECHA: MOSAICO ASIMÉTRICO DE TARJETAS --- */

.fc-credit-obstacles .fc-credit-obstacles__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fc-credit-obstacles .fc-credit-obstacles-card {
    background: linear-gradient(180deg, #16233a 0%, #1a2942 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* El Modificador del Mosaico Asimétrico */
.fc-credit-obstacles .fc-credit-obstacles-card.is-offset {
    transform: translateY(32px);
}

/* Contenedor del Icono */
.fc-credit-obstacles .fc-credit-obstacles-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid #00d9ff;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 24px;
    transition: all 0.35s ease;
}

.fc-credit-obstacles .fc-credit-obstacles-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.fc-credit-obstacles .fc-credit-obstacles-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #b7c4d6;
    font-weight: 500;
}

/* Hover tarjeta */
.fc-credit-obstacles .fc-credit-obstacles-card:hover {
    border-color: rgba(255, 255, 255, 0.10);
    background: linear-gradient(180deg, #1a2c47 0%, #203554 100%);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.55);
}

.fc-credit-obstacles .fc-credit-obstacles-card:hover.is-offset {
    transform: translateY(26px);
}

/* Hover icono: acento SEO Expertos */
.fc-credit-obstacles .fc-credit-obstacles-card:hover .fc-credit-obstacles-card__icon {
    background: rgba(0, 217, 255, 0.10);
    border-color: rgba(0, 217, 255, 0.55);
    color: #00d9ff;
    box-shadow: 0 0 0 6px rgba(0, 217, 255, 0.07);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */

@media (max-width: 1100px) {
    .fc-credit-obstacles__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .fc-credit-obstacles__content {
        max-width: 100%;
    }
    .fc-credit-obstacles .fc-obstacles-title,
    .fc-credit-obstacles .fc-credit-obstacles__lead,
    .fc-credit-obstacles .fc-credit-obstacles__box {
        max-width: 100%;
    }
    /* En tablets reducimos el desfase para evitar colisiones */
    .fc-credit-obstacles .fc-credit-obstacles-card.is-offset {
        transform: translateY(16px);
    }
    .fc-credit-obstacles .fc-credit-obstacles-card:hover.is-offset {
        transform: translateY(10px);
    }
}

@media (max-width: 640px) {
    .fc-credit-obstacles__grid {
        padding: 0 20px;
    }
    .fc-credit-obstacles .fc-credit-obstacles__cards {
        grid-template-columns: 1fr; /* Una sola tarjeta por fila en teléfonos */
        gap: 16px;
    }
    /* Eliminamos por completo el desfase en pantallas móviles pequeñas */
    .fc-credit-obstacles .fc-credit-obstacles-card.is-offset {
        transform: translateY(0) !important;
    }
    .fc-credit-obstacles .fc-credit-obstacles__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .fc-credit-obstacles .fc-credit-obstacles__btn {
        width: 100%; /* Botón de ancho completo en móvil */
    }
}

.fc-credit-obstacles-card__icon-image {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}