/* ==========================================================================
   ROSALES DIGITAL AGENCY - SECCIÓN NOSOTROS
   ========================================================================== */

/* --- 1. HEADER & DISPLAY --- */
.page-header { 
    padding-top: 160px !important; 
    padding-bottom: 80px !important; 
}

.display-title { 
    color: var(--primary-color); 
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 900; 
    line-height: 1.1; 
    margin-bottom: 20px; 
}

.lead-text { 
    font-size: 1.25rem; 
    max-width: 800px; 
    color: var(--text-color); 
    line-height: 1.6; 
}

.header-divider { 
    width: 60px; 
    height: 4px; 
    background: var(--primary-color); 
    margin-top: 30px; 
    border-radius: 2px; 
}

/* --- 2. STATS (Con aire arriba y abajo) --- */
.stats-section { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding: 100px 0; /* Ajuste de aire solicitado */
}

.stats-wrapper { 
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
    gap: 40px; 
    text-align: center; 
}

.stat-number { 
    color: var(--primary-color); 
    font-size: 3.5rem; 
    margin-bottom: 0; 
    font-weight: 900; 
}

.stat-label { 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--text-color); 
}

/* --- 3. PROCESO --- */
.proceso-section { 
    background: rgba(255,255,255,0.02); 
}

.proceso-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.step-card { 
    padding: 40px; 
    border: 1px solid rgba(255,255,255,0.08); 
    border-radius: var(--radius-global); 
    background: rgba(255,255,255,0.01); 
    transition: all 0.3s ease; 
}

.step-card:hover { 
    border-color: var(--primary-color); 
    transform: translateY(-5px); 
}

.step-number { 
    display: block; 
    color: var(--primary-color); 
    font-weight: 800; 
    font-size: 1.2rem; 
    margin-bottom: 15px; 
    font-family: monospace; 
}

.step-title { 
    color: var(--title-color); 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
}

.step-desc { 
    color: var(--text-color); 
    line-height: 1.6; 
}

/* --- 4. EQUIPO / COMPROMISO --- */
.equipo-section { 
    background: var(--bg-color); 
}

.equipo-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 40px; 
}

.member-card { 
    text-align: center; 
    transition: transform 0.3s ease; 
}

/* Estilo base para imágenes de equipo (si usas cards) */
.member-img-wrapper { 
    position: relative; 
    margin-bottom: 20px; 
    overflow: hidden; 
    border-radius: 15px; 
}

.member-card img { 
    width: 100%; 
    height: 400px; 
    object-fit: cover; 
    filter: grayscale(100%); 
    transition: filter 0.4s ease; 
}

.member-card:hover img { 
    filter: grayscale(0%); 
}

.member-name { color: var(--title-color); font-size: 1.4rem; margin-bottom: 5px; }
.member-role { color: var(--primary-color); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.member-bio { color: var(--text-color); font-size: 0.95rem; margin-top: 10px; line-height: 1.5; }

/* --- 5. ESTRUCTURA DE FILAS (ROW-FLEX) --- */
.row-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.row-flex.reverse {
    flex-direction: row-reverse;
}

.col-text {
    flex: 1.5;
    min-width: 320px;
}

.col-img {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

/* Estilo estándar para las imágenes de historia (Sin escala) */
.img-frame {
    border-radius: var(--radius-global);
}

.img-frame img {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --- 6. RECORTE QUIRÚRGICO (Solo última imagen) --- */
#nosotros_compromiso .img-frame {
    overflow: hidden !important; 
    line-height: 0;
}

#nosotros_compromiso .img-frame img {
    /* Escalamos un 15% y desplazamos para ocultar el rombito de la esquina */
    transform: scale(1.15) translate(2px, 2px) !important;
    transform-origin: top left !important;
    width: 100% !important;
}

#nosotros_compromiso .img-frame:hover img {
    filter: grayscale(0%) !important;
}

/* --- 7. UTILS & RESPONSIVE --- */
.text-center { text-align: center; }

.section-title { 
    margin-bottom: 60px; 
    font-size: 2.5rem; 
    font-weight: 800; 
    color: var(--title-color); 
}

.story-actions {
    margin-top: 35px;
}

@media (max-width: 768px) {
    .row-flex { gap: 30px; }
    .col-text, .col-img { flex: 1 1 100%; }
    .img-frame img { max-width: 100%; }
    .stats-section { padding: 60px 0; }
}

@media (min-width: 993px) {
    .row-flex-reverse { flex-direction: row-reverse; }
    .row-flex-reverse .col-text {
        padding-right: 0 !important;
        padding-left: 80px !important;
    }
}