/* =========================================================
   ESTUDIO LEGAL CÉSPEDES Y CÉSPEDES — Estilos
   Conversión de tamaños: 1pt (Photoshop, 72 ppi) = 1px → /16 = rem
   ========================================================= */

:root {
    --morado: #484dd1;
    --morado-hover: #3a3fb8;
    --gris: #627284;
    --morado-oscuro: #202375;
    --texto: #3f464e;
    --texto-2: #2f2f2f;
    --morado-claro: #f4f5fd;
    --blanco: #ffffff;

    --fuente: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    /* Peso "Thin" del diseño. Si los párrafos se leen muy delgados, súbelo a 200 o 300 */
    --peso-thin: 100;

    /* Tamaños (desktop) */
    --fs-h2: 1.875rem;   /* 30pt */
    --fs-h3: 1.25rem;    /* 20pt */
    --fs-h4: 1.125rem;   /* 18pt */
    --fs-body: 1.125rem; /* 18pt */

    --ancho: 1100px;
    --header-alto: 90px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-alto);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--fuente);
    font-size: var(--fs-body);
    font-weight: var(--peso-thin);
    line-height: 1.6;
    color: var(--texto);
    background: var(--blanco);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.25; }
h2 { color: var(--morado); font-size: var(--fs-h2); font-weight: 100; }
h3 { color: var(--texto-2); font-size: var(--fs-h3); font-weight: 400; }
h4 { color: var(--texto-2); font-size: var(--fs-h4); font-weight: 400; }
p  { margin: 0 0 1.2em; }
strong { font-weight: 600; color: var(--texto-2); }

.wrap {
    width: 100%;
    max-width: var(--ancho);
    margin-inline: auto;
    padding-inline: 20px;
}

.seccion { padding-block: 90px; }

#nosotros{padding-bottom: 30px}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.saltar-contenido {
    position: absolute;
    left: 10px; top: -60px;
    z-index: 2000;
    background: var(--morado);
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: .875rem;
    font-weight: 600;
    transition: top .3s;
}
.saltar-contenido:focus { top: 10px; }

:focus-visible { outline: 2px solid var(--morado); outline-offset: 3px; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0);
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.header.scrolled {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 24px rgba(12, 16, 40, .07);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-alto);
}

.logo img {
    width: 180px;
    height: auto;
    transition: width .35s var(--ease);
}
.header.scrolled .logo img { width: 150px; }

/* ---------- Hamburguesa (oculta en desktop) ---------- */
.hamburguesa { display: none; }
.menu-cerrar { display: none; }

/* =========================================================
   MENÚ DESKTOP (≥ 875px)
   ========================================================= */
@media only screen and (min-width: 875px) {

    .menu-fx ul {
        list-style: none;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
        border-radius: 50px;
        border: 1px solid #000;
        border-left-width: 4px;
        padding: 8px 8px 8px 30px;
        background: rgba(255, 255, 255, .8);
    }

    .menu-fx li { position: relative; min-width: max-content; }

    .menu-fx a {
        position: relative;
        display: block;
        color: var(--gris);
        padding: 6px 14px;
        border-radius: 30px;
        letter-spacing: 1px;
        font-size: 12px;
        font-weight: 400;
        text-transform: uppercase;
        transition: color .3s ease-in-out, background-color .3s ease-in-out;
    }

    /* Línea animada bajo cada enlace */
    .menu-fx a:not(.menu-cta)::before {
        content: "";
        position: absolute;
        left: 14px; right: 14px; bottom: 2px;
        height: 1px;
        background: var(--morado);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .3s var(--ease);
    }
    .menu-fx a:not(.menu-cta):hover,
    .menu-fx a.activo:not(.menu-cta) { color: var(--morado); }
    .menu-fx a:not(.menu-cta):hover::before,
    .menu-fx a.activo:not(.menu-cta)::before { transform: scaleX(1); }
    .menu-fx a.activo:not(.menu-cta) { font-weight: 700; }

    /* Botón destacado "Contacto" */
    .menu-fx .menu-cta {
        background: var(--morado);
        color: #fff;
        margin-left: 40px;
        padding: 6px 44px 6px 20px;
    }
    .menu-fx .menu-cta::after {
        content: "";
        position: absolute;
        right: 5px;
        top: 50%;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23484dd1' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 13px no-repeat;
        transition: transform .3s var(--ease);
    }
    .menu-fx .menu-cta:hover {
        background: var(--morado-hover);
        color: rgba(255, 255, 255, .85);
    }
    .menu-fx .menu-cta:hover::after { transform: translateY(-50%) rotate(45deg); }
}

/* =========================================================
   MENÚ MÓVIL (≤ 874px)
   ========================================================= */
@media only screen and (max-width: 874px) {

    :root { --header-alto: 80px; }

    .logo img { width: 150px; }
    .header.scrolled .logo img { width: 130px; }

    .hamburguesa {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 6px;
        width: 48px;
        height: 48px;
        padding: 0 13px;
        border: 0;
        border-radius: 50%;
        background: var(--morado);
        cursor: pointer;
        transition: transform .3s var(--ease), background-color .3s;
    }
    .hamburguesa span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: width .3s var(--ease);
    }
    .hamburguesa span:nth-child(2) { width: 65%; }
    .hamburguesa:hover span:nth-child(2) { width: 100%; }
    .hamburguesa:hover { background: var(--morado-hover); }
    .hamburguesa:active { transform: scale(.94); }

    /* Fondo oscuro */
    .menu-fx {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(12, 16, 40, .7);
        opacity: 0;
        visibility: hidden;
        transition: opacity .35s ease, visibility .35s ease;
    }
    .menu-fx.menu-activo-fx { opacity: 1; visibility: visible; }

    /* Panel lateral */
    .menu-panel {
        position: relative;
        width: calc(100% - 30px);
        max-width: 400px;
        height: 100%;
        padding: 90px 20px 30px;
        background: var(--morado);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .45s var(--ease);
    }
    .menu-fx.menu-activo-fx .menu-panel { transform: translateX(0); }

    /* Botón cerrar (X) */
    .menu-cerrar {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 46px;
        height: 46px;
        border: 0;
        border-radius: 50%;
        background: rgba(0, 0, 0, .2);
        cursor: pointer;
        transition: background-color .3s, transform .3s var(--ease);
    }
    .menu-cerrar:hover { background: rgba(0, 0, 0, .35); transform: rotate(90deg); }
    .menu-cerrar span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
    }
    .menu-cerrar span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
    .menu-cerrar span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

    .menu-fx ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    /* Entrada escalonada de los enlaces */
    .menu-fx li {
        opacity: 0;
        transform: translateX(-20px);
        transition: opacity .4s ease, transform .4s var(--ease);
    }
    .menu-fx.menu-activo-fx li { opacity: 1; transform: none; }
    .menu-fx.menu-activo-fx li:nth-child(1) { transition-delay: .15s; }
    .menu-fx.menu-activo-fx li:nth-child(2) { transition-delay: .22s; }
    .menu-fx.menu-activo-fx li:nth-child(3) { transition-delay: .29s; }
    .menu-fx.menu-activo-fx li:nth-child(4) { transition-delay: .36s; }

    .menu-fx a {
        display: block;
        padding: 12px 20px;
        border-radius: 30px;
        background: rgba(0, 0, 0, .2);
        color: rgba(255, 255, 255, .85);
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        transition: background-color .3s ease-in-out, color .3s;
    }
    .menu-fx a:hover,
    .menu-fx a.activo { background: rgba(0, 0, 0, .45); color: #fff; }
    .menu-fx .menu-cta { background: #fff; color: var(--morado); }
    .menu-fx .menu-cta:hover { background: rgba(255, 255, 255, .85); color: var(--morado); }

    body.menu-abierto { overflow: hidden; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { overflow: hidden; 
    padding-top: clamp(10px, 5vw, 80px);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 30px;
}

.hero__texto { padding-bottom: 40px; }

.hero__titulo { margin: 0; }
.hero__titulo img { width: 100%; max-width: 490px; }

.hero__texto p {
    max-width: 520px;
    margin: 18px 0 48px;
    font-size: 1.625rem;
    font-weight: 100;
    line-height: 1.3;
    color: var(--gris);
}

.hero__botones { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 190px;
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn--gris   { background: var(--gris); }
.btn--morado { background: var(--morado); }
.btn--gris:hover   { background: #536170; }
.btn--morado:hover { background: var(--morado-hover); }
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(72, 77, 209, .28);
}
.btn .flecha { transition: transform .3s var(--ease); }
.btn:hover .flecha { transform: translateX(4px); }

.hero__imagen { align-self: end; justify-self: center; }
.hero__imagen img {
    width: 100%;
    max-width: 470px;
    animation: respirar 7s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes respirar {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-38px); }
}

/* =========================================================
   CARRUSEL
   ========================================================= */
.contenedor {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    border-top: 7px solid #202375;
    border-bottom: 7px solid #202375;
    background-color: var(--morado);
}

.subcontenedor {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: fit-content;
    animation: mover-solo-50 25s linear infinite;
}

.lista1, .lista2 {
    display: flex;
    list-style: none;
    margin: 0;
    padding: clamp(10px, 2.2vw, 15px) 0 clamp(10px, 3vw, 15px);
}

.lista1 li, .lista2 li {
    position: relative;
    display: flex;
    color: #fff;
    font-family: var(--fuente);
    font-weight: 500;
    line-height: 1;
    font-size: clamp(2rem, 5vw, 3.5rem);
    padding: 8px clamp(15px, 3vw, 45px);
}

.lista1 li::after, .lista2 li::after {
    content: "/";
    position: absolute;
    right: 0;
    font-weight: 300;
    color: #fff;
    -webkit-text-stroke-width: 0;
    transform: translateX(50%);
}

.lista1 li:nth-child(odd), .lista2 li:nth-child(odd) {
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
}

.contenedor:hover .subcontenedor { animation-play-state: paused; }

@keyframes mover-solo-50 {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.nosotros__imagen img {
    width: 100%;
    animation: flotar 8s ease-in-out infinite;
}

@keyframes flotar {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(6px, -10px) rotate(-2deg); }
}

.nosotros__texto p { font-size: 1rem; line-height: 1.7; }

.valores {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.valor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px 18px;
    border: 1px solid var(--gris);
    text-align: center;
    font-size: .8125rem;
    font-weight: 300;
    color: var(--gris);
    transition: transform .35s var(--ease), border-color .35s, color .35s, box-shadow .35s;
}
.valor svg {
    width: 30px;
    height: 30px;
    color: var(--gris);
    transition: color .35s, transform .35s var(--ease);
}
.valor:hover {
    border-color: var(--morado);
    color: var(--morado);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(72, 77, 209, .12);
}
.valor:hover svg { color: var(--morado); transform: scale(1.12); }

/* ---------- Equipo ---------- */
.equipo { margin-top: 70px; }

.equipo__intro { max-width: 650px; margin-bottom: 30px; }
.equipo__intro h4 { margin-bottom: .3em; }
.equipo__intro p { font-size: 1rem; line-height: 1.7; }

.equipo__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.abogado {
    min-height: 290px;
    padding: 65px 20px;
    background: var(--morado-claro);
    text-align: center;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    border-radius: 8px;
}
.abogado:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(72, 77, 209, .12);
}

.abogado__foto {
    width: 108px;
    height: 108px;
    margin: 0 auto 22px;
    border-radius: 50%;
    border: 3px solid var(--morado);
    overflow: hidden;
}
.abogado__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .5s ease, transform .6s var(--ease);
}
.abogado:hover .abogado__foto img { filter: grayscale(0); transform: scale(1.07); }

.abogado h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--morado);
}
.abogado p { margin: 0; font-size: .875rem; font-weight: 300; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.servicios { padding-top: 40px; }
.servicios h2 { text-align: center; margin-bottom: 45px; }

.servicios__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 18px 30px;
    border: 1px solid var(--morado);
    background: #fff;
    text-align: center;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .4s;
    border-radius:8px;
}
.servicio svg {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--morado);
    transition: transform .4s var(--ease);
}
.servicio h3 { margin-bottom: .5em; }
.servicio p {
    max-width: 240px;
    margin: 0 0 10px;
    font-size: .875rem;
    font-weight: 300;
    line-height: 1.45;
}
.servicio__link {
    margin-top: auto;
    font-size: .875rem;
    font-weight: 300;
    color: var(--morado);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: text-underline-offset .3s, opacity .3s;
}
.servicio__link:hover { text-underline-offset: 6px; }

.servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(72, 77, 209, .16);
}
.servicio:hover svg { transform: scale(1.08) rotate(-3deg); }

/* Tarjeta destacada (Cotizar) */
.servicio--destacado { background: var(--morado); }
.servicio--destacado svg,
.servicio--destacado h3,
.servicio--destacado p,
.servicio--destacado .servicio__link { color: #fff; }
.servicio--destacado h3 { font-weight: 700; }
.servicio--destacado p { font-weight: 400; }
.servicio--destacado .servicio__link { font-weight: 700; }
.servicio--destacado:hover { background: var(--morado-hover); }

/* Tarjeta destacada como enlace (tel:) */
a.servicio { color: inherit; text-decoration: none; cursor: pointer; }
a.servicio:focus-visible { outline: 3px solid var(--morado-oscuro); outline-offset: 3px; }

/* Botón "Ver detalle" (abre popup) */
button.servicio__link {
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}

/* =========================================================
   POPUPS DE SERVICIOS
   ========================================================= */
.modal {
    width: min(640px, calc(100% - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: var(--texto);
    box-shadow: 0 30px 80px rgba(32, 35, 117, .35);
    overflow: hidden;
}
.modal::backdrop {
    background: rgba(32, 35, 117, .55);
    backdrop-filter: blur(3px);
}
.modal[open] { animation: modal-entra .35s var(--ease); }
.modal[open]::backdrop { animation: fondo-entra .35s ease; }
@keyframes modal-entra { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fondo-entra { from { opacity: 0; } }

.modal__caja {
    position: relative;
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    padding: 44px 40px 36px;
}
.modal h2 {
    margin: 0 40px 20px 0;
    line-height: 1.15;
}
.modal__lista {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}
.modal__lista li {
    position: relative;
    padding: 9px 0 9px 26px;
    border-bottom: 1px solid var(--morado-claro);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.45;
}
.modal__lista li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--morado);
}
.modal__cerrar {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--morado-claro);
    color: var(--morado);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.modal__cerrar:hover { background: var(--morado); color: #fff; transform: rotate(90deg); }
.modal__btn { display: inline-flex; }
body.modal-abierto { overflow: hidden; }

@media (max-width: 600px) {
    .modal__caja { padding: 36px 22px 28px; }
    .modal__lista li { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
    .modal[open], .modal[open]::backdrop { animation: none; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    padding: 70px 0 80px;
    background: var(--morado-oscuro);
    color: rgba(255, 255, 255, .7);
    text-align: center;
}

.redes {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}
.redes a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--morado);
    color: #fff;
    transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.redes svg { width: 16px; height: 16px; fill: currentColor; }
.redes a:hover { background: #fff; color: var(--morado); transform: translateY(-3px); }

.footer__menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-bottom: 22px;
}
.footer__menu a {
    font-size: .8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    transition: color .3s;
}
.footer__menu a:hover { color: #9a9dff; }

.footer__datos {
    margin-bottom: 30px;
    font-size: .875rem;
    font-style: normal;
    font-weight: 300;
    line-height: 1.8;
}
.footer__datos a { color: #fff; font-weight: 500; }
.footer__datos a:hover { color: #9a9dff; }

.footer__copy {
    max-width: 640px;
    margin: 0 auto;
    padding: 12px 20px;
    border-radius: 50px;
    background: var(--morado);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
}

/* =========================================================
   ANIMACIONES DE SCROLL
   (usa "translate"/"scale" para no chocar con los hover que usan "transform")
   ========================================================= */
.js .reveal {
    opacity: 0;
    translate: 0 40px;
    transition:
        opacity .9s ease,
        translate .9s var(--ease),
        scale .9s var(--ease),
        transform .4s var(--ease),
        box-shadow .4s var(--ease),
        background-color .4s,
        border-color .35s,
        color .35s;
    transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s, 0s, 0s, 0s;
}
.js .reveal--izq  { translate: -50px 0; }
.js .reveal--der  { translate: 50px 0; }
.js .reveal--zoom { translate: 0 0; scale: .92; }
.js .reveal.visible { opacity: 1; translate: 0 0; scale: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
    .servicios__grid { grid-template-columns: repeat(2, 1fr); }
    .equipo__grid { gap: 18px; }
}

@media (max-width: 768px) {
    :root {
        --fs-h2: 1.5rem;
        --fs-h3: 1.125rem;
        --fs-h4: 1rem;
        --fs-body: 1rem;
    }

    .seccion { padding-block: 60px; }

    /* Hero */
    .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 10px; }
    .hero__texto { padding: 30px 0 0; }
    .hero__titulo img { margin-inline: auto; max-width: 340px; }
    .hero__texto p { margin: 14px auto 32px; font-size: 1.25rem; }
    .hero__botones { justify-content: center; }
    .btn { min-width: 160px; }
    .hero__imagen img { max-width: 340px; }

    /* Nosotros */
    .nosotros__grid { grid-template-columns: 1fr; gap: 30px; }
    .nosotros__imagen img { max-width: 280px; margin-inline: auto; }
    .nosotros__texto p { font-size: .9375rem; }
    .valores { gap: 10px; }
    .valor { padding: 18px 6px 14px; font-size: .75rem; }

    .equipo { margin-top: 50px; }
    .equipo__intro p { font-size: .9375rem; }
    .equipo__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
    .abogado { min-height: auto; padding: 45px 20px; }

    .footer { padding: 55px 0 60px; }
    .footer__copy { font-size: .6875rem; }
}

@media (max-width: 560px) {
    .servicios__grid { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }
}

@media (max-width: 380px) {
    .btn { min-width: 0; }
    .valores { grid-template-columns: 1fr; }
}

/* Usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .reveal { opacity: 1; translate: 0 0; scale: 1; }
}
