/* ==========================================
   SISTEMA.HTML - SPECIFIC STYLES
   ========================================== */

/* Como Abrir Section */
.comobrirSection__item {
    gap: 3.5rem;
}
.image-sistema{
    width: 30em;
    height: auto;
    margin-bottom: -2em;
}

.bb-2 {
    border-bottom: .2rem solid black;
}

.comobrirSection__item__img {
    min-width: 80px;
    min-height: 80px;
    text-align: center;
}

.frontend #parent-fieldname-text a:active, .frontend #parent-fieldname-text a:focus, .frontend #parent-fieldname-text a:hover, .frontend #search-results-wrapper a:active, .frontend #search-results-wrapper a:focus, .frontend #search-results-wrapper a:hover {
    color: #170502;
    text-decoration: underline;
}

.frontend #parent-fieldname-text a, .frontend #search-results-wrapper a {
    color: #170502;
}

/* ==========================================
   STEP CARDS - Pasos del proceso
   ========================================== */
.comFuncionenSection .row.mb-5:not(:first-child) {
    position: relative;
}

.step-card {
    transition: all 0.3s ease;
    min-height: 280px;
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

/* Icono del paso */
.step-icon {
    width: 45px;
    height: 45px;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    stroke: #333;
    color: #333;
}

/* Cards de pasos con tamaño uniforme */
.comFuncionenSection .step-card {
    justify-content: flex-start;
    padding-top: 2rem;
}

.comFuncionenSection .steps-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
}

.comFuncionenSection .step-col {
    flex: 1 1 0;
    min-width: 180px;
    max-width: 250px;
    position: relative;
}

/* Flecha entre pasos */
.step-col::after {
    content: '→';
    position: absolute;
    right: -2.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    color: #333;
    font-weight: 700;
    z-index: 10;
}

/* Ocultar flecha en último paso de cada fila */
.steps-row > .step-col:last-of-type::after {
    display: none;
}

@media (max-width: 991px) {
    .step-col::after {
        display: none;
    }
    
    .comFuncionenSection .step-col {
        width: 100%;
        flex: 0 0 100%;
        max-width: none;
    }

    .comFuncionenSection .steps-row {
        gap: 1.5rem;
        align-items: center;
    }

    .comFuncionenSection .step-card {
        min-height: auto;
    }
}

/* Fraccions Section - Benefit Cards Grid */
.fraccionsSection .row.mt-4 {
    display: flex;
    flex-wrap: wrap;
}

.fraccionsSection .row.mt-4 > [class*="col-"] {
    display: flex;
}

.fraccionsSection .benefit-card {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .fraccionsSection .row.mt-4 > [class*="col-lg-4"] {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}
/* Row with benefit cards - equal height (exclude header rows) */
.comObrirSection > .container > .row:not(.mb-4),
.documentacioSection > .container > .row:not(.mb-4):not(.mt-4),
.requerimentsSection .row .row {
    display: flex;
    flex-wrap: wrap;
}

.comObrirSection > .container > .row:not(.mb-4) > [class*="col-"],
.documentacioSection > .container > .row:not(.mb-4):not(.mt-4) > [class*="col-"],
.requerimentsSection .row .row > [class*="col-"] {
    display: flex;
}

/* Contact icons */
.contact-icon {
    width: 50px;
    height: 50px;
    stroke: #333;
    color: #333;
    display: block;
    margin: 0 auto 0.5rem;
}
.benefit-card {
    width: 100%;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
}

.benefit-card .contact-icon {
    margin-top: 0;
}
