/* =========================================
   PÁGINA: TIPOS DE CRÉDITO DETALLE (PREMIUM EDITORIAL)
   ========================================= */

/* Hero Luminoso */
.creditos-hero-light {
    position: relative;
    width: 100%;
    min-height: 45vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 0.9) 100%),
        url('img/head.webp') center/cover no-repeat;
    border-bottom: 1px solid #e2e8f0;
}

.hero-container {
    max-width: 1250px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-content {
    padding: 4rem 0;
}

.hero-eyebrow {
    color: var(--accent-premium);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.creditos-hero-light h1 {
    font-family: var(--font-headers);
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.creditos-hero-light p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* =========================================
   ESTRUCTURA EDITORIAL (ZIG-ZAG CON OVERLAP)
   ========================================= */
.detalle-creditos-container {
    max-width: 1200px;
    margin: 0 auto; 
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
}

.credito-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    padding-bottom: 6rem;
    margin-bottom: 6rem;
    border-bottom: 1px solid #e2e8f0;
    
    /* Estado inicial animación */
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.credito-row.reverse {
    flex-direction: row-reverse;
}

.credito-row.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Columna Visual con Overlap */
.credito-visual {
    flex: 1.1;
    position: relative;
}

.credito-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 480px;
}

.credito-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.credito-row:hover .credito-img img {
    transform: scale(1.05);
}

/* Caja de Estadísticas Superpuesta */
.stats-box {
    position: absolute;
    bottom: -30px;
    right: -30px; /* Overlap hacia la derecha por defecto */
    background: #ffffff;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-left: 4px solid var(--accent-premium);
    z-index: 2;
}

/* En la fila reverse, el overlap va hacia la izquierda */
.credito-row.reverse .stats-box {
    right: auto;
    left: -30px;
}

.stat-num {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    color: var(--accent-premium);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 5px 0 0 0;
}

/* Panel de Información de Texto */
.premium-panel {
    flex: 0.9;
    position: relative;
    padding: 2rem 0;
}

/* Marca de agua numérica adaptada */
.watermark {
    position: absolute;
    top: -60px;
    left: -30px;
    font-size: 12rem;
    font-family: var(--font-headers);
    font-weight: bold;
    color: rgba(37, 99, 235, 0.04); /* Tono azul extremadamente sutil */
    z-index: -1;
    pointer-events: none;
    line-height: 1;
}

.credito-row.reverse .watermark {
    left: auto;
    right: -30px;
}

.premium-panel h2 {
    font-family: var(--font-headers);
    color: var(--text-main);
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.premium-panel p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.premium-panel ul {
    list-style: none;
    margin-bottom: 2.5rem;
    padding: 0;
}

.premium-panel ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 500;
}

.premium-panel ul li i {
    color: var(--accent-premium);
    margin-top: 4px;
    font-size: 1.2rem;
}

/* =========================================
   RESPONSIVIDAD
   ========================================= */
@media (max-width: 1024px) {
    .credito-row, 
    .credito-row.reverse {
        gap: 4rem;
    }
    .stats-box {
        right: -15px;
        bottom: -15px;
    }
    .credito-row.reverse .stats-box {
        left: -15px;
    }
}

@media (max-width: 768px) {
    .detalle-creditos-container {
        padding: 4rem 5%;
    }
    .credito-row, 
    .credito-row.reverse {
        flex-direction: column;
        text-align: left;
        gap: 3rem;
        padding-bottom: 4rem;
        margin-bottom: 4rem;
    }
    .credito-visual,
    .premium-panel {
        width: 100%;
        flex: none;
    }
    .credito-img {
        height: 350px;
    }
    .stats-box {
        right: 20px;
        left: 20px; /* Centrado estirado en móviles */
        bottom: -20px;
        text-align: center;
    }
    .credito-row.reverse .stats-box {
        left: 20px;
    }
    .watermark, .credito-row.reverse .watermark {
        top: -30px;
        left: 0;
        font-size: 8rem;
    }
    .creditos-hero-light h1 {
        font-size: 2.6rem;
    }
}