/* =========================================
   PÁGINA ATTORNEYS (ESTILOS NUEVOS)
   ========================================= */

/* 1. HERO BANNER ESPECÍFICO */
.hero-attorneys {
    background: linear-gradient(rgba(17, 24, 39, 0.85), rgba(17, 24, 39, 0.85)),
        url('https://images.unsplash.com/photo-1507679799987-c73779587ccf?ixlib=rb-4.0.3&auto=format&fit=crop&w=2400&q=80');
    background-size: cover;
    background-position: center;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 60px;
    /* Ajusta según la altura de tu navbar fijo */
}

/* 2. TARJETA DEL FUNDADOR (BOB) */
.founder-card {
    display: flex;
    flex-wrap: wrap;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 80px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.founder-img-col {
    flex: 1;
    min-width: 300px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.founder-img-wrapper {
    position: relative;
    width: 260px;
    height: 285px;
}

.founder-frame {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent, #c5a059);
    z-index: 1;
}

.founder-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: contrast(1.1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

.founder-info-col {
    flex: 2;
    min-width: 300px;
    padding: 50px;
}

.founder-name {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
}

.founder-role {
    color: var(--accent, #c5a059);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.founder-quote {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
    font-style: italic;
    border-left: 4px solid var(--accent, #c5a059);
    padding-left: 15px;
}

.founder-bio {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.founder-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    list-style: none;
    margin-bottom: 30px;
    padding: 0;
}

.founder-stats li {
    display: flex;
    align-items: center;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
}

.check-icon {
    color: var(--accent, #c5a059);
    margin-right: 10px;
    font-weight: bold;
}

/* 3. GRID DE EQUIPO */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 4. SECCIÓN REFERIDOS */
.referral-section {
    background: #111111;
    /* Slate 900 */
    color: #fff;
    padding: 100px 5%;
    border-top: 5px solid var(--accent, #c5a059);
}

.referral-container {
    max-width: 1100px;
    margin: 0 auto;
}

.referral-header {
    text-align: center;
    margin-bottom: 60px;
}

.referral-eyebrow {
    color: var(--accent, #c5a059);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.referral-title {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
    font-weight: 800;
}

.referral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.referral-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 35px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.referral-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent, #c5a059);
    background: rgba(255, 255, 255, 0.06);
}

.referral-item h4 {
    color: var(--accent, #c5a059);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.referral-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.referral-cta {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 50px;
}

.referral-quote {
    margin-bottom: 30px;
    font-style: italic;
    color: #cbd5e1;
    font-size: 1.1rem;
    font-weight: 300;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .founder-card {
        flex-direction: column;
    }

    .founder-info-col {
        padding: 30px;
    }

    .founder-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        /* Alineación central pero limpia */
        max-width: 320px;
        margin: 0 auto 30px;
        text-align: left;
    }
}

/* 5. CLASES UTILITARIAS (Reemplazo de estilos inline) */
.team-section {
    background: #fff;
    padding: 80px 5%;
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}


.office-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--accent, #c5a059);
    margin-top: 80px;
    margin-bottom: 10px;
    font-weight: 800;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.office-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent, #c5a059);
}

.department-title {
    text-align: center;
    font-size: 1.2rem;
    color: #000000;
    margin-top: 80px;
    /* Space above when starting a new section alone */
    margin-bottom: 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* When the department title comes directly after the office title, tighten the spacing back */
.office-title+.department-title {
    margin-top: 5px;
}

.referral-description {
    color: #94a3b8;
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.1rem;
}

/* .btn-outline {
    background: transparent;
    border: 1px solid var(--accent, #c5a059);
    color: var(--accent, #c5a059);
    margin-top: 10px;
}

.btn-outline:hover {
    background: var(--accent, #c5a059);
    color: #fff;
} */

/* 6. ATTORNEY CARDS - Senior Associates */
.attorney-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 280px;
    /* Reduced width to match standard portrait image size */
    height: 420px;
    /* Increased to allow 10% more room for the bottom black box */
    display: flex;
    flex-direction: column;
}

.attorney-card img {
    width: 100%;
    height: 286px;
    /* Increased to give heads more room without scaling crop issue */
    object-fit: cover;
    /* changed from contain to cover so it fills the width */
    object-position: bottom center;
    background-color: #f7f7f7;
    /* Background color for empty spaces if aspect ratios don't match */
    display: block;
    transition: transform 0.4s ease;
}

.attorney-card:hover img {
    transform: scale(1.04);
}

.attorney-info {
    flex-grow: 1;
    background: #000000;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Pushes role to top and name to bottom */
    box-sizing: border-box;
}

.attorney-role {
    display: block;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.attorney-name {
    color: #C5A059;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 24px;
    }

    .attorney-name {
        font-size: 1.7rem;
    }

    .attorney-info {
        height: 210px;
        padding: 18px 20px 22px;
    }
}