/* =========================================================
   CCG ABOGADA
   STYLE.CSS
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy: #182b4d;
    --navy-dark: #10203b;

    --gold: #b58a3a;
    --gold-light: #d1b06a;

    --cream: #f7f5ef;

    --white: #ffffff;

    --text: #263956;
    --text-light: #64748b;

    --border: #dedbd2;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--white);

    font-size: 16px;
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin-top: 0;
}

h1,
h2,
h3 {
    margin-top: 0;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    color: var(--navy);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    height: 70px;

    display: flex;
    align-items: center;

    background: var(--white);

    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    flex-shrink: 0;

    color: var(--navy);

    font-size: 1.05rem;
    font-weight: 700;

    letter-spacing: 0.05em;
}

.logo span {
    color: var(--gold);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: var(--navy);

    font-size: 0.9rem;

    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--gold);
}


/* =========================================================
   SECTION LABELS
   ========================================================= */

.eyebrow {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 24px;
    font-weight: 700;

    letter-spacing: 0.20em;

    line-height: 1.15;

    text-transform: uppercase;
}


/* HERO EYEBROW
   Más pequeño que los demás porque acompaña al nombre.
*/

.hero .eyebrow {
    margin-bottom: 12px;

    font-size: 18px;

    letter-spacing: 0.24em;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
    max-width: 850px;

    margin-bottom: 24px;
}

.section-heading h2 {
    margin-bottom: 7px;

    color: var(--navy);

    font-size: 28px;

    line-height: 1.15;

    letter-spacing: -0.015em;
}

.section-heading > p:last-child {
    margin-bottom: 0;

    color: var(--text-light);

    font-size: 16px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    border: 1px solid var(--navy);

    font-size: 0.88rem;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--navy);
    color: var(--white);
}

.button-primary:hover {
    background: var(--navy-dark);
}

.button-secondary {
    background: transparent;
    color: var(--navy);
}

.button-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

.button-light {
    background: transparent;
    color: var(--white);

    border-color: rgba(255, 255, 255, 0.7);
}

.button-light:hover {
    background: var(--white);
    color: var(--navy);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
    padding: 48px 0 52px;
}

.section-light {
    background: var(--cream);
}


/* =========================================================
   HOME — HERO
   ========================================================= */

.hero {
    padding: 38px 0 42px;

    background: var(--cream);
}

.hero-content {
    display: grid;

    grid-template-columns:
        1.15fr
        0.85fr;

    gap: 50px;

    align-items: center;
}

.hero-text {
    max-width: 780px;
}


/* NOMBRE */

.hero h1 {
    margin-bottom: 12px;

    color: var(--navy);

    font-size: clamp(
        3.1rem,
        4vw,
        4rem
    );

    line-height: 1;

    letter-spacing: -0.035em;

    white-space: nowrap;
}


/* SUBTÍTULO */

.hero h2 {
    margin-bottom: 18px;

    color: #174a7e;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 1.2rem;

    font-weight: 400;
}


/* DESCRIPCIÓN */

.hero-description {
    max-width: 650px;

    margin-bottom: 23px;

    color: var(--text-light);

    font-size: 16px;
}


/* BOTONES */

.hero-buttons {
    display: flex;

    gap: 12px;
}


/* FOTO */

.hero-image img {
    width: 100%;
    max-width: 380px;

    margin: 0 auto;

    border-radius: 2px;
}


/* =========================================================
   HOME — ÁREAS DE PRÁCTICA
   ========================================================= */

.services-section {
    padding: 48px 0 52px;

    background: var(--white);
}

.services-section .section-heading {
    max-width: 850px;

    margin-bottom: 24px;
}

.services-section .eyebrow {
    margin-bottom: 10px;

    font-size: 24px;
}


/* TARJETAS */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}

.service-card {
    padding: 23px 26px;

    background: var(--white);

    border: 1px solid var(--border);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.service-card:hover {
    border-color: var(--gold);

    transform: translateY(-3px);
}

.service-card h3 {
    margin-bottom: 10px;

    font-size: 1.25rem;

    line-height: 1.2;
}

.service-card p {
    margin-bottom: 18px;

    color: var(--text-light);

    font-size: 0.9rem;

    line-height: 1.55;
}

.service-card a {
    color: var(--gold);

    font-size: 0.85rem;

    font-weight: 700;
}


/* =========================================================
   HOME — EXPERIENCIA
   ========================================================= */

#experiencia {
    padding: 42px 0;

    background: var(--cream);
}

.about-content {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 60px;

    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 390px;

    margin: 0 auto;

    border-radius: 2px;
}

.about-text {
    max-width: 680px;
}


/* EYEBROW */

.about-text .eyebrow {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 24px;
}


/* TÍTULO */

.about-text h2 {
    margin-bottom: 18px;

    color: var(--navy);

    font-size: 28px;

    line-height: 1.12;

    letter-spacing: -0.02em;
}


/* TEXTO */

.about-text p:not(.eyebrow) {
    margin-bottom: 14px;

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.55;
}


/* LINK */

.about-text .text-link {
    display: inline-block;

    margin-top: 2px;

    color: var(--gold);

    font-size: 0.95rem;

    font-weight: 700;

    transition: color 0.2s ease;
}

.about-text .text-link:hover {
    color: var(--navy);
}


/* =========================================================
   HOME — PUBLICACIONES
   ========================================================= */

#publicaciones {
    padding: 48px 0 54px;

    background: var(--white);
}

#publicaciones .section-heading {
    max-width: 850px;

    margin-bottom: 24px;
}

#publicaciones .eyebrow {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 24px;
}

#publicaciones .section-heading h2 {
    margin-bottom: 7px;

    color: var(--navy);

    font-size: 28px;

    line-height: 1.15;
}

#publicaciones .section-heading > p:last-child {
    color: var(--text-light);

    font-size: 16px;
}


/* GRID */

.publications-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


/* CARD */

.publication-card {
    min-height: 190px;

    padding: 23px 25px;

    border: 1px solid var(--border);

    background: var(--white);
}


/* MEDIO */

.publication-source {
    margin-bottom: 13px;

    color: var(--gold);

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* TÍTULO */

.publication-card h3 {
    margin-bottom: 10px;

    font-size: 1.25rem;

    line-height: 1.2;
}


/* TEXTO */

.publication-card p:not(.publication-source) {
    color: var(--text-light);

    font-size: 0.9rem;

    line-height: 1.5;
}


/* LINK */

.publication-card a {
    color: var(--navy);

    font-size: 0.86rem;

    font-weight: 700;
}


/* =========================================================
   SERVICE PAGE — HERO
   ========================================================= */

.service-hero {
    padding: 48px 0 45px;

    background: var(--cream);

    border-bottom: 1px solid var(--border);
}

.service-hero h1 {
    margin-bottom: 14px;

    color: var(--navy);

    font-size: clamp(
        3rem,
        4vw,
        3.6rem
    );

    line-height: 1.05;

    letter-spacing: -0.025em;
}

.service-intro {
    max-width: 700px;

    margin-bottom: 0;

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.55;
}


/* =========================================================
   FAMILY — SERVICES
   ========================================================= */

.family-services {
    padding: 48px 0 52px;
}

.family-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.family-heading .eyebrow {
    margin-bottom: 10px;
    font-size: 24px;
    line-height: 1.15;
}

.family-heading h2 {
    margin-bottom: 0;

    color: var(--navy);

    font-size: 28px;
    line-height: 1.15;

    letter-spacing: -0.015em;
}


/* SERVICIOS */

.family-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    column-gap: 72px;
    row-gap: 0;
}

.family-service {
    padding: 23px 0 25px;

    border-top: 1px solid var(--border);
}

.family-service:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
}


/* ACENTO */

.service-accent {
    width: 28px;
    height: 2px;

    margin-bottom: 13px;

    background: var(--gold);

    transition: width 0.25s ease;
}

.family-service:hover .service-accent {
    width: 48px;
}


/* TÍTULO DEL SERVICIO */

.family-service h3 {
    margin-bottom: 8px;

    color: var(--navy);

    font-size: 20px;
    line-height: 1.2;
}


/* DESCRIPCIÓN */

.family-service > p {
    max-width: 570px;

    margin-bottom: 10px;

    color: var(--text-light);

    font-size: 16px;
    line-height: 1.5;
}


/* BULLETS */

.family-service ul {
    margin: 0;
    padding-left: 18px;
}

.family-service li {
    margin-bottom: 5px;

    color: var(--text);

    font-size: 15px;
    line-height: 1.45;
}

.family-service li:last-child {
    margin-bottom: 0;
}

.family-service li::marker {
    color: var(--gold);
}


/* =========================================================
   FAMILY — SABÍAS QUE
   ========================================================= */

.family-knowledge {
    padding: 48px 0 52px;

    background: var(--cream);
}

.knowledge-heading {
    margin-bottom: 24px;
}

.knowledge-heading .eyebrow {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 24px;
    line-height: 1.15;
}

.knowledge-heading h2 {
    margin-bottom: 0;

    color: var(--navy);

    font-size: 28px;
    line-height: 1.15;

    letter-spacing: -0.015em;
}


/* TARJETAS */

.knowledge-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}

.knowledge-card {
    padding: 21px 23px;

    background: var(--white);

    border: 1px solid var(--border);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.knowledge-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}


/* TÍTULO DE TARJETA */

.knowledge-card h3 {
    margin-bottom: 7px;

    color: var(--navy);

    font-size: 19px;
    line-height: 1.25;
}


/* CONTENIDO */

.knowledge-card p {
    margin-bottom: 0;

    color: var(--text-light);

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    padding: 50px 0;

    background: var(--navy);

    color: var(--white);
}

.contact-content {
    max-width: 820px;

    margin: 0 auto;

    text-align: center;
}

.contact-section .eyebrow {
    color: var(--gold-light);

    font-size: 24px;
}

.contact-section h2 {
    margin-bottom: 13px;

    color: var(--white);

    font-size: 18px;

    line-height: 1.08;
}

.contact-section > .container > p:not(.eyebrow) {
    max-width: 620px;

    margin-right: auto;
    margin-left: auto;

    color: rgba(255, 255, 255, 0.78);
}

.contact-details {
    display: flex;

    justify-content: center;

    gap: 30px;

    margin: 22px 0;
}

.contact-details a {
    color: var(--white);

    font-size: 0.95rem;
}

.contact-details a:hover {
    color: var(--gold-light);
}

.contact-buttons {
    display: flex;

    justify-content: center;

    gap: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 23px 0;

    background: var(--navy-dark);

    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 25px;
}

.footer strong {
    color: var(--white);
}

.footer p {
    margin-bottom: 0;

    font-size: 0.8rem;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .hero h1 {
        white-space: normal;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE — SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

    .container {
        width: min(92%, 1180px);
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 32px;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 360px;
    }

    .about-content {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .about-image img {
        max-width: 350px;
    }

    .publications-grid {
        grid-template-columns: 1fr;
    }

    .family-services-grid {
        column-gap: 45px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .container {
        width: 92%;
    }


    /* HEADER */

    .header {
        height: auto;

        padding: 16px 0;
    }

    .header-content {
        flex-direction: column;

        gap: 12px;
    }

    .nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 10px 17px;
    }

    .nav a {
        font-size: 0.82rem;
    }


    /* SECTION LABELS */

    .eyebrow {
        font-size: 20px;

        letter-spacing: 0.18em;
    }

    .hero .eyebrow {
        font-size: 16px;

        letter-spacing: 0.20em;
    }


    /* HERO */

    .hero {
        padding: 38px 0 42px;
    }

    .hero h1 {
        font-size: 3rem;

        white-space: normal;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    /* SECTION TITLES */

    .section {
        padding: 44px 0 48px;
    }

    .section-heading h2,
    .about-text h2,
    .family-heading h2,
    .knowledge-heading h2,
    #publicaciones .section-heading h2 {
        font-size: 26px;
    }


    /* ÁREAS */

    .services-section {
        padding: 44px 0 48px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 22px 23px;
    }


    /* EXPERIENCIA */

    #experiencia {
        padding: 42px 0;
    }

    .about-text .eyebrow {
        font-size: 20px;
    }


    /* PUBLICACIONES */

    #publicaciones {
        padding: 44px 0 48px;
    }


    /* SERVICE PAGE */

    .service-hero {
        padding: 42px 0;
    }

    .service-hero h1 {
        font-size: 3rem;
    }


    /* FAMILY */

    .family-services {
        padding: 44px 0 48px;
    }

    .family-heading .eyebrow {
        font-size: 20px;
    }

    .family-services-grid {
        grid-template-columns: 1fr;

        column-gap: 0;
    }

    .family-service {
        padding: 22px 0 24px;
    }

    .family-service:last-child {
        border-bottom: 1px solid var(--border);
    }


    /* KNOWLEDGE */

    .family-knowledge {
        padding: 44px 0 48px;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }


    /* CONTACT */

    .contact-section {
        padding: 45px 0;
    }

    .contact-section .eyebrow {
        font-size: 20px;
    }

    .contact-details {
        flex-direction: column;

        gap: 7px;
    }

    .contact-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    /* FOOTER */

    .footer-content {
        flex-direction: column;

        text-align: center;

        gap: 8px;
    }
}