/* =====================================================
   DERECHO DE FAMILIA - JURADO LEGAL
===================================================== */

.family-page {
    background: #fff;
}


/* HERO */

.family-hero {
    background:
        radial-gradient(circle at 80% 20%,
        rgba(192,145,70,.13),
        transparent 32%),
        linear-gradient(
        115deg,
        #15110d 0%,
        #2c241b 55%,
        #3a3025 100%);
    color: #fff;
    padding: 88px 0 96px;
}

.family-hero-inner {
    max-width: 1120px;
}

.family-hero .breadcrumbs {
    font-size: 13px;
    margin-bottom: 22px;
    color: rgba(255,255,255,.72);
}

.family-hero .breadcrumbs a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
}

.family-hero .breadcrumbs span {
    margin: 0 6px;
}

.family-hero .eyebrow,
.section-kicker {
    display: block;
    color: #bd8e42;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .19em;
    margin-bottom: 14px;
}

.family-hero h1 {
    max-width: 980px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.035em;
}

.family-hero h1 span {
    display: block;
    color: #d3a558;
}

.family-hero-text {
    max-width: 760px;
    margin: 28px 0 0;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255,255,255,.84);
}

.family-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.btn-outline-light:hover {
    background: #fff;
    color: #211a14;
}


/* INTRODUCCIÓN */

.family-intro {
    padding: 90px 0;
}

.family-intro-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: start;
}

.family-intro h2,
.section-heading h2,
.detail-content h2,
.problem-box h2,
.documents-grid h2,
.faq-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: #18130f;
    font-size: clamp(34px,4vw,52px);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0;
}

.family-intro p,
.detail-content p,
.documents-grid p,
.faq-heading p {
    color: #625b54;
    font-size: 16px;
    line-height: 1.8;
}

.family-intro .lead {
    color: #2c261f;
    font-size: 19px;
    margin-top: 0;
}


/* ENCABEZADOS */

.section-heading {
    max-width: 730px;
    margin-bottom: 46px;
}

.section-heading p {
    color: #6b625a;
    line-height: 1.75;
    font-size: 16px;
}


/* TARJETAS SERVICIOS */

.family-services {
    background: #f7f4ef;
    padding: 90px 0;
}

.family-service-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.family-service-card {
    background: #fff;
    border: 1px solid #e8ded0;
    border-radius: 12px;
    padding: 30px;
    min-height: 240px;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.family-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(31,22,14,.08);
}

.service-number {
    display: block;
    color: #bd8e42;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    margin-bottom: 36px;
}

.family-service-card h3 {
    margin: 0 0 12px;
    color: #1d1712;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.family-service-card p {
    margin: 0;
    color: #6a625a;
    line-height: 1.7;
    font-size: 14px;
}


/* BLOQUES DE CONTENIDO */

.family-detail {
    padding: 88px 0;
    border-bottom: 1px solid #eee6dc;
}

.family-detail-alt {
    background: #fbfaf8;
}

.detail-grid {
    display: grid;
    grid-template-columns: 170px minmax(0,720px);
    gap: 55px;
}

.detail-number {
    font-family: Georgia, "Times New Roman", serif;
    color: #d5b57c;
    font-size: 70px;
    line-height: 1;
}

.detail-content h2 {
    margin-bottom: 25px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;

    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px 30px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: #3d362f;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b78639;
    font-weight: 800;
}


/* SITUACIONES */

.family-problems {
    padding: 90px 0;
}

.problem-box {
    background:
        linear-gradient(
        115deg,
        #17120e,
        #33291f);
    border-radius: 16px;
    padding: 58px;
    color: #fff;

    display: grid;
    grid-template-columns: .9fr 1.2fr .75fr;
    gap: 55px;
    align-items: start;
}

.problem-box h2 {
    color: #fff;
}

.problem-list p {
    padding: 0 0 14px;
    margin: 0 0 14px;
    border-bottom:
        1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.86);
    line-height: 1.55;
}

.problem-action p {
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-top: 0;
}

.problem-action .btn {
    margin-top: 12px;
}


/* PROCESO */

.family-process {
    background: #f7f4ef;
    padding: 90px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid #ddd1c2;
}

.process-grid article {
    padding: 32px 28px;
    border-right: 1px solid #ddd1c2;
}

.process-grid article:last-child {
    border-right: 0;
}

.process-grid span {
    color: #b4863d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
}

.process-grid h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #1d1712;
    font-size: 22px;
    margin: 35px 0 12px;
}

.process-grid p {
    color: #696057;
    font-size: 14px;
    line-height: 1.7;
}


/* DOCUMENTOS */

.family-documents {
    padding: 90px 0;
}

.documents-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 90px;
}

.documents-list {
    border-top: 1px solid #ddd2c5;
}

.documents-list div {
    padding: 18px 5px;
    border-bottom: 1px solid #ddd2c5;
    color: #332c25;
    font-weight: 600;
}


/* FAQ */

.family-faq {
    background: #fbfaf8;
    padding: 90px 0;
}

.faq-layout {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 90px;
}

.faq-list details {
    border-bottom: 1px solid #ddd2c5;
}

.faq-list summary {
    cursor: pointer;
    padding: 22px 0;
    color: #241e18;
    font-weight: 700;
    font-size: 16px;
}

.faq-list details p {
    color: #665e56;
    line-height: 1.75;
    padding: 0 25px 22px 0;
    margin: 0;
}


/* OTRAS ÁREAS */

.other-practices {
    padding: 90px 0;
}

.practice-links {
    border-top: 1px solid #ded4c8;
}

.practice-links a {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;

    padding: 25px 5px;

    border-bottom:
        1px solid #ded4c8;

    text-decoration: none;
    color: #211b16;

    transition:
        padding .2s ease,
        background .2s ease;
}

.practice-links a:hover {
    padding-left: 15px;
    background: #faf8f5;
}

.practice-links span {
    color: #b98b43;
    font-size: 12px;
    font-weight: 800;
}

.practice-links strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
}

.practice-links small {
    font-weight: 700;
}


/* CTA */

.family-final-cta h2 {
    max-width: 650px;
}


/* TABLET */

@media (max-width:900px) {

    .family-service-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .family-intro-grid,
    .documents-grid,
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .detail-grid {
        grid-template-columns: 90px 1fr;
        gap: 25px;
    }

    .problem-box {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .process-grid {
        grid-template-columns: repeat(2,1fr);
    }

}


/* MÓVIL */

@media (max-width:640px) {

    .family-hero {
        padding: 58px 0 65px;
    }

    .family-hero h1 {
        font-size: 44px;
    }

    .family-hero-text {
        font-size: 16px;
    }

    .family-hero-actions {
        flex-direction: column;
    }

    .family-hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .family-intro,
    .family-services,
    .family-detail,
    .family-problems,
    .family-process,
    .family-documents,
    .family-faq,
    .other-practices {
        padding: 62px 0;
    }

    .family-service-grid {
        grid-template-columns: 1fr;
    }

    .family-service-card {
        min-height: auto;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-number {
        font-size: 45px;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .problem-box {
        padding: 35px 25px;
        border-radius: 10px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid article {
        border-right: 0;
        border-bottom: 1px solid #ddd1c2;
        padding-left: 0;
        padding-right: 0;
    }

    .practice-links a {
        grid-template-columns: 45px 1fr;
        gap: 5px;
    }

    .practice-links small {
        display: none;
    }

    .practice-links strong {
        font-size: 20px;
    }

}