/*
Theme Name: LAW Group 2026
Theme URI: https://lawgroupec.com
Author: LAW Group Soluciones Jurídicas
Description: Tema institucional LAW Group.
Version: 0.4.0
*/

:root {
    --navy:#091725;
    --navy-soft:#122536;
    --ink:#142231;
    --gold:#c8a45a;
    --gold-soft:#d8bc7c;
    --ivory:#f5f2eb;
    --white:#ffffff;
    --muted:#68727d;
    --line:rgba(20,34,49,.18);

    --display:'Newsreader',Georgia,serif;
    --sans:'Manrope',Arial,sans-serif;

    --wrap:1360px;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    background:var(--ivory);
    color:var(--ink);
    font-family:var(--sans);
    -webkit-font-smoothing:antialiased;
}

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

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

button {
    font:inherit;
}

.lg-wrap {
    width:min(var(--wrap),calc(100% - 72px));
    margin:auto;
}

.lg-serif {
    font-family:var(--display);
}

.lg-label {
    margin-bottom:19px;
    color:#9d7a35;
    font-size:10px;
    font-weight:700;
    letter-spacing:.19em;
    text-transform:uppercase;
}

.lg-label::before {
    content:"";
    display:inline-block;
    width:33px;
    height:1px;
    margin:0 13px 3px 0;
    background:currentColor;
}


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

.lg-header {
    position:sticky;
    top:0;
    z-index:999;
    background:var(--navy);
    border-bottom:1px solid rgba(255,255,255,.09);
}

.admin-bar .lg-header {
    top:32px;
}

.lg-header-inner {
    width:min(var(--wrap),calc(100% - 72px));
    height:118px;
    margin:auto;

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

    gap:50px;
}

.lg-logo img {
    width:278px;
    height:auto;

    filter:brightness(0) invert(1);
}

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

.lg-nav a {
    color:rgba(255,255,255,.77);
    font-size:10px;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
}

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

.lg-nav-contact {
    padding:14px 18px;
    border:1px solid rgba(200,164,90,.62);
    color:var(--gold-soft)!important;
}

.lg-menu-button {
    display:none;
    width:44px;
    height:44px;
    border:0;
    background:transparent;
}

.lg-menu-button span {
    display:block;
    width:25px;
    height:1px;
    margin:6px auto;
    background:white;
}


/* =========================
   HERO
========================= */

.lg-hero {
    position:relative;
    min-height:720px;

    display:flex;
    align-items:center;

    overflow:hidden;

    background:
        linear-gradient(
            90deg,
            rgba(9,23,37,.98) 0%,
            rgba(9,23,37,.93) 28%,
            rgba(9,23,37,.66) 50%,
            rgba(9,23,37,.12) 76%
        ),
        url('/wp-content/uploads/lawgroup-v4/hero.jpg')
        center center / cover no-repeat;

    color:white;
}

.lg-hero-content {
    width:min(var(--wrap),calc(100% - 72px));
    margin:auto;
}

.lg-hero-copy {
    max-width:710px;
    padding:82px 0 92px;
}

.lg-hero-kicker {
    margin-bottom:22px;
    color:var(--gold);
    font-size:10px;
    font-weight:700;
    letter-spacing:.2em;
    text-transform:uppercase;
}

.lg-hero h1 {
    max-width:690px;
    margin:0;

    font-family:var(--display);
    font-size:clamp(61px,6.1vw,88px);
    font-weight:400;
    line-height:.98;
    letter-spacing:-.035em;
}

.lg-hero p {
    max-width:610px;

    margin:28px 0 34px;

    color:rgba(255,255,255,.72);

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

.lg-hero-actions {
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.lg-button {
    min-height:52px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0 22px;

    border:1px solid rgba(255,255,255,.34);

    color:white;

    font-size:10px;
    font-weight:700;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.lg-button-primary {
    border-color:var(--gold);
    background:var(--gold);
    color:var(--navy);
}


/* =========================
   FIRMA
========================= */

.lg-firma {
    padding:105px 0;
}

.lg-firma-grid {
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:84px;
    align-items:center;
}

.lg-firma-image {
    overflow:hidden;
}

.lg-firma-image img {
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
    object-position:center;
}

.lg-firma h2 {
    max-width:620px;

    margin:0;

    font-family:var(--display);
    font-size:clamp(49px,4.7vw,68px);
    font-weight:400;
    line-height:1.01;
    letter-spacing:-.035em;
}

.lg-firma-copy {
    max-width:590px;

    margin:25px 0 0;

    color:var(--muted);

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

.lg-firma-note {
    max-width:570px;

    margin:31px 0 0;
    padding:19px 0 0;

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

    font-family:var(--display);
    font-size:24px;
    line-height:1.3;
}


/* =========================
   PRÁCTICAS
========================= */

.lg-practices {
    padding:100px 0 108px;
    background:white;
}

.lg-practices-grid {
    display:grid;
    grid-template-columns:.7fr 1.3fr;
    gap:90px;
}

.lg-practices-intro {
    position:sticky;
    top:155px;
    align-self:start;
}

.lg-practices h2 {
    max-width:480px;

    margin:0;

    font-family:var(--display);
    font-size:clamp(50px,4.8vw,69px);
    font-weight:400;
    line-height:1;
    letter-spacing:-.035em;
}

.lg-practices-intro p {
    max-width:440px;

    margin:24px 0 0;

    color:var(--muted);

    font-size:14px;
    line-height:1.8;
}

.lg-practice-list {
    border-top:1px solid var(--line);
}

.lg-practice {
    display:grid;
    grid-template-columns:42px 1fr;

    gap:19px;

    padding:30px 0 33px;

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

.lg-practice-number {
    padding-top:6px;

    color:var(--gold);

    font-size:9px;
    font-weight:700;
    letter-spacing:.14em;
}

.lg-practice-name {
    margin:0;

    font-family:var(--display);
    font-size:clamp(30px,3vw,43px);
    font-weight:400;
    line-height:1.05;

    transition:transform .2s ease;
}

.lg-practice:hover .lg-practice-name {
    transform:translateX(5px);
}

.lg-practices-more {
    margin-top:31px;

    color:var(--muted);

    font-size:11px;
    line-height:1.8;
}

.lg-practices-more strong {
    display:block;

    margin-bottom:8px;

    color:var(--ink);

    font-size:9px;
    letter-spacing:.13em;
    text-transform:uppercase;
}


/* =========================
   ESTRUCTURA HORIZONTAL
========================= */

.lg-horizontal {
    background:var(--navy);
    color:white;
}

.lg-horizontal-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    min-height:570px;
}

.lg-horizontal-image {
    overflow:hidden;
}

.lg-horizontal-image img {
    width:100%;
    height:100%;
    min-height:570px;

    object-fit:cover;
    object-position:center;
}

.lg-horizontal-copy {
    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:70px clamp(45px,7vw,105px);
}

.lg-horizontal h2 {
    max-width:600px;

    margin:0;

    font-family:var(--display);
    font-size:clamp(49px,4.9vw,70px);
    font-weight:400;
    line-height:1.01;
}

.lg-horizontal p {
    max-width:570px;

    margin:26px 0 0;

    color:rgba(255,255,255,.66);

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


/* =========================
   EQUIPO
========================= */

.lg-team {
    padding:105px 0 112px;
    overflow:hidden;
}

.lg-team-head {
    display:grid;
    grid-template-columns:1fr .8fr;
    gap:70px;

    align-items:end;

    margin-bottom:50px;
}

.lg-team h2 {
    max-width:710px;

    margin:0;

    font-family:var(--display);
    font-size:clamp(50px,5vw,71px);
    font-weight:400;
    line-height:1;
}

.lg-team-head p {
    max-width:500px;
    margin:0;

    color:var(--muted);

    font-size:14px;
    line-height:1.85;
}

.lg-carousel-head {
    display:flex;
    align-items:center;
    justify-content:flex-end;

    gap:8px;

    margin-bottom:18px;
}

.lg-arrow {
    width:46px;
    height:46px;

    display:grid;
    place-items:center;

    border:1px solid var(--line);
    background:transparent;

    color:var(--ink);

    cursor:pointer;
}

.lg-arrow:hover {
    border-color:var(--gold);
    background:var(--gold);
}

.lg-team-track {
    display:flex;

    gap:22px;

    overflow-x:auto;

    padding:0 8vw 5px 0;

    scroll-snap-type:x mandatory;
    scrollbar-width:none;
}

.lg-team-track::-webkit-scrollbar {
    display:none;
}

.lg-person {
    flex:0 0 clamp(270px,23vw,335px);

    scroll-snap-align:start;
}

.lg-person-photo {
    width:100%;
    aspect-ratio:2/3;

    overflow:hidden;

    background:#ddd7ce;
}

.lg-person-photo img {
    width:100%;
    height:100%;

    object-fit:cover;
    object-position:center top;

    transition:transform .45s ease;
}

.lg-person:hover .lg-person-photo img {
    transform:scale(1.015);
}

.lg-person-info {
    padding:18px 1px 0;
}

.lg-person-role {
    margin-bottom:7px;

    color:#9d7a35;

    font-size:8px;
    font-weight:700;
    letter-spacing:.16em;
    text-transform:uppercase;
}

.lg-person-name {
    max-width:310px;

    margin:0;

    font-family:var(--display);
    font-size:25px;
    font-weight:400;
    line-height:1.07;
}


/* =========================
   CONTACTO
========================= */

.lg-contact {
    padding:98px 0;
    background:var(--navy);
    color:white;
}

.lg-contact-grid {
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:95px;
    align-items:end;
}

.lg-contact h2 {
    max-width:700px;

    margin:0;

    font-family:var(--display);
    font-size:clamp(54px,5.4vw,77px);
    font-weight:400;
    line-height:1;
}

.lg-contact p {
    max-width:540px;

    margin:25px 0 0;

    color:rgba(255,255,255,.61);

    font-size:14px;
    line-height:1.85;
}

.lg-contact-data {
    border-top:1px solid rgba(255,255,255,.18);
}

.lg-contact-row {
    padding:18px 0;
    border-bottom:1px solid rgba(255,255,255,.18);
}

.lg-contact-row small {
    display:block;

    margin-bottom:7px;

    color:var(--gold);

    font-size:8px;
    font-weight:700;
    letter-spacing:.15em;
    text-transform:uppercase;
}

.lg-contact-row a,
.lg-contact-row span {
    font-family:var(--display);
    font-size:21px;
    line-height:1.35;
}


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

.lg-footer {
    background:#040b12;
    color:rgba(255,255,255,.43);
}

.lg-footer-inner {
    width:min(var(--wrap),calc(100% - 72px));
    min-height:125px;

    margin:auto;

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

    gap:30px;

    font-size:9px;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.lg-footer img {
    width:190px;
    filter:brightness(0) invert(1);
    opacity:.74;
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:950px) {

    .lg-header-inner,
    .lg-wrap,
    .lg-hero-content,
    .lg-footer-inner {
        width:calc(100% - 36px);
    }

    .lg-nav {
        position:fixed;
        inset:0;

        z-index:1000;

        padding:130px 28px 50px;

        flex-direction:column;
        align-items:flex-start;

        background:var(--navy);

        opacity:0;
        pointer-events:none;

        transition:opacity .2s ease;
    }

    .lg-menu-open .lg-nav {
        opacity:1;
        pointer-events:auto;
    }

    .lg-nav a {
        font-family:var(--display);
        font-size:37px;
        font-weight:400;
        letter-spacing:0;
        text-transform:none;
    }

    .lg-nav-contact {
        font-family:var(--sans)!important;
        font-size:10px!important;
        letter-spacing:.1em!important;
        text-transform:uppercase!important;
    }

    .lg-menu-button {
        display:block;
        position:relative;
        z-index:1001;
    }

    .lg-firma-grid,
    .lg-practices-grid,
    .lg-horizontal-grid,
    .lg-team-head,
    .lg-contact-grid {
        grid-template-columns:1fr;
    }

    .lg-firma-grid,
    .lg-team-head,
    .lg-contact-grid {
        gap:45px;
    }

    .lg-practices-grid {
        gap:45px;
    }

    .lg-practices-intro {
        position:static;
    }

    .lg-horizontal-copy {
        padding:65px 28px;
    }

}


@media(max-width:620px) {

    .admin-bar .lg-header {
        top:46px;
    }

    .lg-header-inner {
        height:92px;
    }

    .lg-logo img {
        width:205px;
    }

    .lg-hero {
        min-height:700px;

        background:
            linear-gradient(
                0deg,
                rgba(9,23,37,.97) 0%,
                rgba(9,23,37,.78) 54%,
                rgba(9,23,37,.17) 100%
            ),
            url('/wp-content/uploads/lawgroup-v4/hero.jpg')
            58% center / cover no-repeat;

        align-items:flex-end;
    }

    .lg-hero-copy {
        padding:290px 0 58px;
    }

    .lg-hero h1 {
        font-size:51px;
    }

    .lg-hero p {
        font-size:14px;
    }

    .lg-hero-actions {
        display:grid;
        grid-template-columns:1fr;
    }

    .lg-button {
        width:100%;
    }

    .lg-firma,
    .lg-practices,
    .lg-team,
    .lg-contact {
        padding:76px 0;
    }

    .lg-firma h2,
    .lg-practices h2,
    .lg-horizontal h2,
    .lg-team h2,
    .lg-contact h2 {
        font-size:44px;
    }

    .lg-firma-image img {
        aspect-ratio:3/2;
    }

    .lg-horizontal-image img {
        min-height:390px;
    }

    .lg-person {
        flex-basis:76vw;
    }

    .lg-team-track {
        padding-right:18vw;
    }

    .lg-footer-inner {
        min-height:170px;
        flex-direction:column;
        justify-content:center;
        text-align:center;
    }

}


/* =========================================================
   LAW GROUP V4.1
   Refinamiento visual
========================================================= */


/* eliminar espacios automáticos del block theme */

html body .wp-site-blocks {
    padding-top:0 !important;
    padding-bottom:0 !important;
}

html body .wp-site-blocks > * {
    margin-block-start:0 !important;
    margin-block-end:0 !important;
}

.wp-block-template-part {
    margin:0 !important;
}

.lg-main {
    margin:0 !important;
    padding:0 !important;
}


/* HEADER — logo protagonista y navegación más elegante */

.lg-header-inner {
    height:128px;
}

.lg-logo img {
    width:335px;
}

.lg-nav {
    gap:31px;
}

.lg-nav a {
    font-size:13px;
    font-weight:500;
    letter-spacing:.015em;
    text-transform:none;
}

.lg-nav-contact {
    padding:14px 20px;
    font-size:12px !important;
    letter-spacing:.015em !important;
}


/* HERO — texto en tercio inferior para no cubrir rostros */

.lg-hero {
    min-height:760px;

    align-items:flex-end;

    background:
        linear-gradient(
            0deg,
            rgba(9,23,37,.94) 0%,
            rgba(9,23,37,.45) 42%,
            rgba(9,23,37,.05) 73%
        ),
        linear-gradient(
            90deg,
            rgba(9,23,37,.90) 0%,
            rgba(9,23,37,.69) 28%,
            rgba(9,23,37,.15) 59%,
            rgba(9,23,37,.02) 78%
        ),
        url('/wp-content/uploads/lawgroup-v4/hero.jpg')
        center 42% / cover no-repeat;
}

.lg-hero-copy {
    max-width:610px;

    padding:
        365px
        0
        66px;
}

.lg-hero-kicker {
    margin-bottom:14px;

    font-size:9px;
    letter-spacing:.17em;
}

.lg-hero h1 {
    max-width:600px;

    font-size:clamp(52px,4.9vw,69px);
    line-height:1;
}

.lg-hero p {
    max-width:540px;

    margin:20px 0 28px;

    font-size:14px;
    line-height:1.78;
}

.lg-button {
    min-height:49px;
}


/* más compacto y continuo */

.lg-firma {
    padding:84px 0 90px;
}

.lg-practices {
    padding:82px 0 90px;
}

.lg-team {
    padding:88px 0 96px;
}

.lg-contact {
    padding:80px 0 84px;
}


/* Firma */

.lg-firma-grid {
    gap:70px;
}

.lg-firma-image img {
    aspect-ratio:16/11;
}

.lg-firma h2 {
    font-size:clamp(47px,4.3vw,63px);
}

.lg-firma-note {
    font-size:21px;
}


/* Prácticas */

.lg-practices-grid {
    gap:76px;
}

.lg-practices-intro {
    top:160px;
}

.lg-practice {
    padding:26px 0 29px;
}

.lg-practice-name {
    font-size:clamp(30px,2.8vw,40px);
}

.lg-practices-more {
    margin-top:25px;
}


/* NUEVA SECCIÓN: experiencia + trabajo en equipo */

.lg-teamwork {
    padding:72px 0 78px;

    background:var(--navy);
    color:white;
}

.lg-teamwork-grid {
    display:grid;

    grid-template-columns:.38fr 1.62fr;

    gap:80px;

    align-items:start;
}

.lg-teamwork .lg-label {
    margin-top:9px;
}

.lg-teamwork h2 {
    max-width:760px;

    margin:0;

    font-family:var(--display);
    font-size:clamp(46px,4.6vw,66px);
    font-weight:400;
    line-height:1.02;
}

.lg-teamwork p {
    max-width:690px;

    margin:22px 0 0;

    color:rgba(255,255,255,.62);

    font-size:14px;
    line-height:1.85;
}


/* Equipo */

.lg-team-head {
    margin-bottom:40px;
}

.lg-carousel-group + .lg-carousel-group {
    margin-top:68px;
}

.lg-carousel-heading {
    display:flex;

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

    gap:30px;

    margin-bottom:20px;
}

.lg-carousel-heading > h3 {
    margin:0;

    font-family:var(--display);
    font-size:31px;
    font-weight:400;
}

.lg-carousel-head {
    margin:0;
}

.lg-person {
    flex:0 0 clamp(295px,25vw,365px);
}


/*
   NO recortar fotografías:
   usamos su proporción original
*/

.lg-person-photo {
    width:100%;
    height:auto;
    aspect-ratio:auto;

    overflow:hidden;

    background:#e7e1d8;
}

.lg-person-photo img {
    display:block;

    width:100%;
    height:auto;

    object-fit:contain;
    object-position:center top;

    transform:none !important;
}

.lg-person:hover .lg-person-photo img {
    transform:none !important;
}

.lg-person-info {
    padding-top:16px;
}

.lg-person-name {
    font-size:24px;
}

.lg-person-no-photo {
    order:999;
}


/* asistentes ligeramente más contenidos */

.lg-assistants .lg-person {
    flex-basis:clamp(275px,22vw,325px);
}


/* Contacto */

.lg-contact-grid {
    gap:78px;
}

.lg-contact h2 {
    font-size:clamp(49px,4.6vw,66px);
}

.lg-contact-row a {
    display:block;
}

.lg-contact-row a + a {
    margin-top:5px;
}

.lg-contact-row span,
.lg-contact-row a {
    font-size:20px;
}


/* Footer */

.lg-footer img {
    width:225px;
}


/* TABLET */

@media(max-width:950px) {

    .lg-logo img {
        width:260px;
    }

    .lg-nav a {
        font-family:var(--display);

        font-size:38px;

        letter-spacing:0;
    }

    .lg-nav-contact {
        font-family:var(--sans) !important;
    }

    .lg-teamwork-grid {
        grid-template-columns:1fr;
        gap:25px;
    }

}


/* MOBILE */

@media(max-width:620px) {

    .lg-header-inner {
        height:96px;
    }

    .lg-logo img {
        width:225px;
    }

    .lg-hero {
        min-height:720px;

        background:
            linear-gradient(
                0deg,
                rgba(9,23,37,.96) 0%,
                rgba(9,23,37,.54) 48%,
                rgba(9,23,37,.06) 75%
            ),
            url('/wp-content/uploads/lawgroup-v4/hero.jpg')
            59% center / cover no-repeat;
    }

    .lg-hero-copy {
        padding:
            365px
            0
            48px;
    }

    .lg-hero h1 {
        font-size:46px;
    }

    .lg-hero p {
        max-width:95%;
    }

    .lg-firma,
    .lg-practices,
    .lg-team,
    .lg-contact {
        padding:66px 0;
    }

    .lg-teamwork {
        padding:58px 0;
    }

    .lg-teamwork h2 {
        font-size:43px;
    }

    .lg-person {
        flex-basis:81vw;
    }

    .lg-assistants .lg-person {
        flex-basis:76vw;
    }

    .lg-carousel-heading > h3 {
        font-size:28px;
    }

}


/* =========================================================
   LAW GROUP V4.2 — refinamiento tipográfico
========================================================= */

.lg-nav a {
    font-size:15px;
    font-weight:500;
    letter-spacing:-.01em;
}

.lg-nav {
    gap:35px;
}

.lg-nav-contact {
    padding:15px 22px;
    font-size:14px !important;
}

.lg-hero-kicker {
    font-size:10px;
    letter-spacing:.16em;
}

.lg-hero p {
    max-width:620px;
    font-size:15px;
    line-height:1.83;
}

.lg-logo img {
    width:350px;
}

@media(max-width:1100px) {
    .lg-nav a {
        font-size:13px;
    }

    .lg-nav {
        gap:24px;
    }

    .lg-logo img {
        width:310px;
    }
}

@media(max-width:950px) {
    .lg-nav a {
        font-size:38px;
    }
}

@media(max-width:620px) {
    .lg-logo img {
        width:235px;
    }

    .lg-hero p {
        font-size:14px;
    }
}
