:root {
    --bg-gray: #f5f5f5;
    --brand-gold: #b99149;
    --active-orange: #c07b34;
    --font-title: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-gray);
    font-family: var(--font-body);
    padding: 10px 0;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.section-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

/* --- COLUMNA DE TEXTO IZQUIERDA --- */
.left-content {
    flex: 0 0 320px;
    z-index: 10;
}

.tagline {
    font-family: var(--font-title);
    color: var(--brand-gold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.main-heading {
    font-family: var(--font-title);
    font-size: 32px;
    line-height: 1.2;
    color: #111111;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.description {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.description strong {
    color: #000;
}

/* --- CONTENEDOR DE TARJETAS --- */
.slider-viewport {
    flex: 1;
    padding: 15px 5px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

/* --- TARJETAS (CARDS) --- */
.fianza-card {
    width: 100%;
    height: 420px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

/* Imagen de fondo */
.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 52%;
    object-fit: cover;
    z-index: 1;
}

/* Degradado progresivo */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.75) 48%, rgba(0,0,0,1) 68%);
    z-index: 2;
}

/* Contenedor del Icono Redondo */
.icon-wrapper {
    position: absolute;
    top: 28%;
    left: 16px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
}

.icon-wrapper img, .icon-wrapper i {
    width: 24px;
    height: 24px;
    object-fit: contain;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Contenido de textos inferior */
.card-info {
    position: relative;
    z-index: 3;
    color: #ffffff;
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

/* Contenedor unificado para centrar títulos a lo alto de forma simétrica */
.card-title-container {
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Texto específico en blanco puro */
.card-subtitle-special {
    font-family: var(--font-title);
    font-size: 11px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 4px;
    display: block;
}

.card-text {
    font-size: 11px;
    color: #cccccc;
    line-height: 1.4;
    margin-bottom: 16px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-cta {
    font-family: var(--font-title);
    font-size: 12px;
    color: var(--brand-gold);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* --- COMPORTAMIENTOS HOVER --- */
.fianza-card:hover {
    border-color: var(--active-orange);
    transform: translateY(-4px);
}

.fianza-card:hover .icon-wrapper {
    background-color: var(--active-orange);
    border-color: var(--active-orange);
}

.fianza-card:hover .icon-wrapper img {
    filter: brightness(0) invert(1);
}

.fianza-card:hover .icon-wrapper i {
    color: #ffffff;
}

.fianza-card:hover .card-cta {
    color: #ffffff;
}

.fianza-card.selected {
    border-color: var(--active-orange);
}

/* --- SISTEMA RESPONSIVO --- */

@media (max-width: 1200px) {
    .section-container {
        flex-direction: column;
        align-items: stretch;
        gap: 30px;
    }
    .left-content {
        flex: 1;
        width: 100%;
        text-align: center;
    }
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .fianza-card {
        height: 440px;
    }
    .icon-wrapper {
        top: 24%;
    }
    .card-img {
        height: 44%;
    }
    .card-title-container {
        height: 70px; /* Un poco más de tolerancia por saltos de línea adaptativos */
    }
}

@media (max-width: 576px) {
    
    .section-container {
        padding: 0 20px;
    }
    .main-heading {
        font-size: 26px;
    }
    .cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .fianza-card {
        height: 410px;
    }
    .icon-wrapper {
        top: 26%;
    }
    .card-title-container {
        height: 65px;
    }
}