/* ==========================================================================
   ENARLAW Arbitration — hoja de estilos principal
   --------------------------------------------------------------------------
   Sitio estático, sin frameworks. Este archivo es la única fuente de estilos
   del sitio: no hay Tailwind, ni CDN de CSS, ni estilos en línea en el HTML.

   ÍNDICE
     01. Tokens de diseño (colores y tipografías)
     02. Reset y base
     03. Clases compartidas
     04. Componentes reutilizables (contenedor, botones, rótulos, iconos)
     05. Cabecera
     06. Portada (hero)
     07. Credenciales
     08. Introducción institucional
     09. Áreas de práctica
     10. Sectores
     11. Valores diferenciales
     12. Llamado a la acción
     13. Pie de página
     14. Adaptación a pantallas pequeñas (móvil y tableta)
   ========================================================================== */

/* ==========================================================================
   01. TOKENS DE DISEÑO
   Editar aquí cambia el sitio completo. El resto del archivo no repite los
   valores de marca: los consume a través de estas variables.
   ========================================================================== */

:root {
  /* Paleta de marca */
  --color-ink: #122639;
  /* Azul noche: cabecera, portada, sectores, pie de página */
  --color-ink-soft: rgba(18, 38, 57, 0.95);
  /* Variante translúcida de la cabecera */
  --color-white: #ffffff;
  --color-paper: #fbfdf9;
  /* Fondo claro del sitio */
  --color-mist: #f4f7f2;
  /* Fondo de la sección de áreas de práctica */
  --color-emerald: #275e45;
  /* Verde institucional: botones y acentos */
  --color-emerald-deep: #1f4a36;
  /* Estado hover del botón principal */
  --color-forest: #527e3d;
  /* Verde de las líneas divisorias y numeración */
  --color-lime: #a3d489;
  /* Verde claro sobre fondos oscuros */
  --color-lime-bright: #bef1a3;
  /* Verde claro de acentos en el llamado a la acción */

  /* Tipografías */
  --font-display: "Cinzel", serif;

  /* Tipografía de texto principal, para cuerpo y rótulos. El sitio no carga
     una familia aparte para rótulos: si se declara una distinta aquí, hay que
     añadirla también a la petición de Google Fonts del <head>. */
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --font-icons: "Material Symbols Outlined";

  /* Pila sans genérica: la que traía la normalización base y de la que parten
     los elementos que no declaran tipografía propia. */
  --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

  /* Medidas de composición */
  --layout-width: 1360px;
  --layout-padding: 2rem;
  /* 32px en móvil, 48px desde 768px */
  --header-height: 7rem;
  /* 112px */
}

/* ==========================================================================
   02. RESET Y BASE
   Normalización equivalente a la que aportaba Tailwind, para que los
   navegadores partan del mismo punto en todo el sitio.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  text-size-adjust: 100%;
  tab-size: 4;
  font-family: var(--font-sans);
  font-feature-settings: normal;
  font-variation-settings: normal;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-tap-highlight-color: transparent;
}

/* El cuerpo del sitio usa la tipografía de texto principal. Se declara aquí
   (y no sólo en cada componente) para que todo lo que herede coincida. */
body {
  margin: 0;
  line-height: inherit;
  overscroll-behavior: none;
  background-color: var(--color-paper);
  font-family: var(--font-body);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Los párrafos de contenido van justificados. Títulos, leyendas, direcciones,
   datos de contacto y otros textos cortos conservan su alineación original. */
:where(p) {
  text-align: justify;
}

:where(.hero__lead, .credentials__title, .section-intro, .cta__lead,
       .site-footer__pitch, .site-footer__contact p,
       .site-footer__bottom p, .modal__intro, .contact-form__note) {
  text-align: start;
}

::selection {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

/* Estilo oscuro de la barra de desplazamiento, integrada con la paleta del sitio */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(18, 38, 57, 0.08);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: rgba(18, 38, 57, 0.55);
  border-radius: 5px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(18, 38, 57, 0.75);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 38, 57, 0.55) rgba(18, 38, 57, 0.08);
}

/* Los márgenes del primer y último bloque no deben empujar la composición */
main > :first-child {
  margin-top: 0 !important;
}

main > :last-child {
  margin-bottom: 0 !important;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

b,
strong {
  font-weight: bolder;
}

code,
kbd,
pre,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

table {
  text-indent: 0;
  border-color: inherit;
  border-collapse: collapse;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button,
select {
  text-transform: none;
}

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  appearance: button;
  background-color: transparent;
  background-image: none;
}

progress {
  vertical-align: baseline;
}

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  appearance: none;
}

::-webkit-file-upload-button {
  appearance: button;
  font: inherit;
}

summary {
  display: list-item;
}

blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

menu,
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

dialog {
  padding: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: #9ca3af;
}

[role="button"],
button {
  cursor: pointer;
}

:disabled {
  cursor: default;
}

audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  /*vertical-align: middle;*/
}

img,
video {
  max-width: 100%;
  height: auto;
}

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* ==========================================================================
   03. CLASES COMPARTIDAS
   Solo lo que se repite en varios componentes. El resto de la tipografía y
   del color vive en la clase propia de cada componente, más abajo.
   ========================================================================== */

/* ==========================================================================
   04. COMPONENTES REUTILIZABLES
   ========================================================================== */

/* --- Contenedores --- */

.container {
  width: 100%;
  max-width: var(--layout-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-padding);
  padding-right: var(--layout-padding);
}

.container--stacked {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.page-main {
  width: 100%;
  background-color: var(--color-paper);
  padding-top: var(--header-height);
}

.page-main__stack {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section {
  width: 100%;
}

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

.section--white {
  background-color: var(--color-white);
}

.section--mist {
  background-color: var(--color-mist);
}

.section--dark {
  background-color: var(--color-ink);
}

.section--emerald {
  background-color: var(--color-emerald);
}

/* Ritmo vertical amplio de las secciones principales */
.section--spacious {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

/* --- Botones --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--solid {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

.btn--solid:hover {
  background-color: var(--color-emerald-deep);
}

.btn--ghost {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--cream {
  padding: 1.25rem 2.5rem;
  background-color: var(--color-white);
  color: var(--color-ink);
  font-weight: 600;
  letter-spacing: 0.22em;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.btn--cream:hover {
  background-color: var(--color-paper);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-emerald);
  border-width: 1px;
  border-style: solid;
  border-color: var(--color-emerald);
}

.btn--outline:hover {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

/* --- Rótulos de sección ---
   Composición "línea corta + texto en mayúsculas" que encabeza cada bloque. */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow__rule {
  width: 1.5rem;
  height: 1px;
  background-color: var(--color-forest);
}

.eyebrow__label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-forest);
}

.eyebrow__rule--accent {
  background-color: var(--color-emerald);
}

.eyebrow__label--accent {
  color: var(--color-emerald);
}

.eyebrow__rule--lime {
  width: 2rem;
  background-color: var(--color-lime);
}

.eyebrow__label--lime {
  color: var(--color-lime);
}

.eyebrow__label--lime-bright {
  color: var(--color-lime-bright);
  font-weight: 400;
}

/* --- Encabezados de sección --- */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.section-heading__title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 400;
}

.section-intro {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  line-height: 1.625;
  font-weight: 300;
  max-width: 28rem;
}

.section-intro--dark {
  color: rgba(255, 255, 255, 0.6);
}

/* Cabecera de sección a dos columnas con línea inferior */
.section-heading__title--dark {
  color: var(--color-white);
}

.section-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom-width: 1px;
}

.section-header--light {
  border-color: rgba(18, 38, 57, 0.1);
}

.section-header--dark {
  border-color: rgba(255, 255, 255, 0.1);
}

/* --- Tarjeta numerada (áreas de práctica) --- */

.practice-card {
  background-color: var(--color-white);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-width: 1px;
  border-color: rgba(18, 38, 57, 0.1);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-card:hover {
  border-color: var(--color-emerald);
}

.practice-card__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.practice-card__number {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-forest);
}

.practice-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-card:hover .practice-card__icon {
  opacity: 1;
}

.practice-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.375;
  font-weight: 400;
  color: var(--color-ink);
}

.practice-card__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top-width: 1px;
  border-color: rgba(18, 38, 57, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-emerald);
}

.practice-card__link {
  font-weight: 400;
}

.practice-card__arrow {
  font-family: var(--font-icons);
  font-size: 16px;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-card:hover .practice-card__arrow {
  transform: translateX(0.25rem);
}

.cta__contact .cta__contact-icon {
  font-size: 18px;
}

/* Texto de tarjeta: mismo cuerpo de texto en áreas, valores y sectores */
.card-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.625;
  color: rgba(18, 38, 57, 0.7);
}

/* --- Tarjeta de valor diferencial --- */

.value-card {
  padding: 2.5rem;
  border-width: 1px;
  border-color: rgba(18, 38, 57, 0.1);
  background-color: var(--color-paper);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.value-card:hover {
  border-color: var(--color-emerald);
}

.value-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom-width: 1px;
  border-color: rgba(18, 38, 57, 0.1);
  padding-bottom: 1rem;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 500;
  color: var(--color-ink);
}

.value-card__number {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--color-forest);
}

/* --- Rejilla de secciones --- */

.grid {
  display: grid;
}

.grid--practice {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

.grid--sectors {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid--values {
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2.5rem;
}

/* --- Iconos Material Symbols ---
   La fuente se carga desde Google Fonts en el <head>. Cada icono se escribe
   por su nombre de ligadura (por ejemplo "public") dentro del elemento. */

.icon {
  font-family: var(--font-icons);
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   05. CABECERA
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--color-ink-soft);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-width: 1px;
  border-color: rgba(255, 255, 255, 0.1);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: height 400ms cubic-bezier(0.4, 0, 0.2, 1), padding-top 400ms;
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__brand-link {
  display: block;
}

.site-header__logo {
  height: 6rem;
  width: auto;
  object-fit: contain;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header--at-top .site-header__logo {
  height: 9rem;
}

.site-header--at-top .site-header__inner {
  height: 9rem;
  padding-top: 0;
}

.site-header--at-top {
  background-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-width: 0;
}

.site-header__brand-link:hover .site-header__logo {
  opacity: 0.9;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2.5rem;
}

.site-nav__link {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.site-nav__link:hover,
.site-nav__link--current {
  color: var(--color-white);
  font-weight: 500;
}

/* El subrayado del enlace activo se ancla a la caja del propio enlace */
.site-nav__link--current {
  position: relative;
}

.site-nav__link--current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-forest);
}

.site-header__action {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* --- Conmutador de idioma --- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 1rem;
  padding: 0.25rem;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.5rem;
  padding-left: 0.375rem;
  padding-right: 0.375rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

a.lang-switch__item:hover {
  color: var(--color-white);
}

.lang-switch__item--active {
  background-color: var(--color-emerald);
  color: var(--color-white);
  cursor: default;
}

.site-header__cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__cta:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Botón de hamburguesa (móvil) --- */

.hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger__line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 1px;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Panel de navegación móvil --- */

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-panel--open.mobile-panel {
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(18, 38, 57, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mobile-panel__nav {
  position: relative;
  width: 80%;
  max-width: 24rem;
  height: 100%;
  overflow-y: auto;
  background-color: var(--color-ink-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  transform: translateX(100%);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-panel--open .mobile-panel__nav {
  transform: translateX(0);
}

.mobile-panel__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.5rem;
}

.mobile-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  font-size: 24px;
}

.mobile-panel__link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border-bottom-width: 1px;
  border-color: rgba(255, 255, 255, 0.06);
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-panel__link:hover,
.mobile-panel__link--current {
  color: var(--color-white);
  font-weight: 500;
}

.mobile-panel__link--current {
  position: relative;
}

.mobile-panel__link--current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-forest);
}

.mobile-panel__action {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   06. PORTADA (HERO)
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-ink);
  margin-top: calc(-1 * var(--header-height));
  padding-top: 9rem;
  padding-bottom: 7rem;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__globe {
  position: absolute;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  max-width: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  filter: contrast(1.25);
  -webkit-mask-image: radial-gradient(circle at 65% 50%, black 20%, transparent 75%);
  mask-image: radial-gradient(circle at 65% 50%, black 20%, transparent 75%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 20% 40%,
    rgba(39, 94, 69, 0.22) 0%,
    transparent 65%
  );
}

.hero__container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 1em;
}

.hero__content {
  max-width: 840px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__eyebrow-rule {
  width: 2.5rem;
  height: 1px;
  background-color: var(--color-forest);
}

.hero__eyebrow-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-lime);
}

.hero__title {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.hero__lead {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.5rem;
  line-height: 1.625;
  font-weight: 300;
}

.hero__actions {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* ==========================================================================
   07. CREDENCIALES — Carrusel de logos
   ========================================================================== */

.credentials {
  border-bottom-width: 1px;
  border-color: rgba(18, 38, 57, 0.1);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.credentials__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.credentials__title {
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(18, 38, 57, 0.5);
}

.carousel {
  overflow: hidden;
  width: 100%;
  padding-top: 2rem;
  border-top-width: 1px;
  border-color: rgba(18, 38, 57, 0.05);
  user-select: none;
}

.credentials .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.carousel__track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  will-change: transform;
}

.carousel__track img {
  width: 150px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 200ms;
  -webkit-user-drag: none;
  user-select: none;
}

.carousel__track img:hover {
  opacity: 1;
}

/* ==========================================================================
   08. INTRODUCCIÓN INSTITUCIONAL
   ========================================================================== */

.profile {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
  align-items: flex-start;
}

.profile__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile__title {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 400;
}

.profile__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: rgba(18, 38, 57, 0.75);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

/* ==========================================================================
   09. ÁREAS DE PRÁCTICA
   ========================================================================== */

/* ==========================================================================
   10. SECTORES
   ========================================================================== */

.sectors {
  position: relative;
}

.sector {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sector:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sector__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--color-forest);
}

.sector__name {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* ==========================================================================
   11. VALORES DIFERENCIALES
   ========================================================================== */

.values__header {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.values__title {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 400;
}

.values__rule {
  width: 2rem;
  height: 1px;
  background-color: var(--color-emerald);
  margin-top: 0.5rem;
}

/* ==========================================================================
   11.5 PERFIL PERSONAL
   ========================================================================== */

.personal__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.personal__title {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 400;
}

.personal__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}

.personal__photo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  background-color: var(--color-mist);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(18, 38, 57, 0.2);
  overflow: hidden;
}

.personal__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.personal__publications {
  width: 100%;
  max-width: 26rem;
}

.personal__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal__photo-icon {
  font-size: 4rem;
  color: rgba(18, 38, 57, 0.25);
}

.personal__photo-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(18, 38, 57, 0.45);
}

.personal__text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: rgba(18, 38, 57, 0.75);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.personal__text p {
  margin: 0;
}

/* ==========================================================================
   12. LLAMADO A LA ACCIÓN
   ========================================================================== */

.cta {
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.cta__inner {
  position: relative;
  z-index: 10;
}

.cta__layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.cta__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
}

.cta__title {
  font-family: var(--font-display);
  color: var(--color-white);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 400;
}

.cta__lead {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5rem;
  line-height: 1.625;
  font-weight: 300;
}

.cta__contacts {
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta__contact {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.025em;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.cta__contact:hover {
  color: var(--color-lime-bright);
}

.cta__contact-icon {
  font-size: 18px;
  color: var(--color-lime-bright);
}

.cta__action {
  flex-shrink: 0;
  padding-top: 0.5rem;
}

/* ==========================================================================
   13. PIE DE PÁGINA
   ========================================================================== */

.site-footer {
  width: 100%;
  background-color: var(--color-ink);
  border-top-width: 1px;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 3rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-footer__logo-row {
  display: flex;
  align-items: center;
}

.site-footer__logo {
  height: 9rem;
  width: auto;
  object-fit: contain;
}

.site-footer__pitch {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 24rem;
}

.site-footer__forums {
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.site-footer__column-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-white);
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom-width: 1px;
  border-color: rgba(255, 255, 255, 0.1);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.site-footer__list--compact {
  gap: 0.75rem;
}

.site-footer__list-item {
  font-weight: 300;
}

.site-footer__list-item--link {
  cursor: pointer;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.site-footer__list-item--link:hover {
  color: var(--color-white);
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.site-footer__address {
  /*color: var(--color-white);*/
  font-weight: 400;
}

.site-footer__detail {
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

.site-footer__detail--spaced {
  padding-top: 0.5rem;
}

.site-footer__badge-row {
  padding-top: 0.5rem;
}

.site-footer__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__bottom {
  padding-top: 2rem;
  border-top-width: 1px;
  border-color: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.site-footer__offices {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 10px;
}

.site-footer__link {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition-property: color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.site-footer__link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   15. MODAL
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--layout-padding);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(18, 38, 57, 0.82);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 48rem;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-paper);
  border: 1px solid rgba(18, 38, 57, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.modal__scroll {
  overflow-y: auto;
  padding: 3rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(18, 38, 57, 0.15);
  background-color: transparent;
  color: var(--color-ink);
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal__close:hover {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.modal__close-icon {
  font-size: 1.25rem;
}

.modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--color-ink);
}

.modal__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(18, 38, 57, 0.85);
}

.modal__body p {
  margin: 0;
}

.modal__link {
  color: var(--color-emerald);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(39, 94, 69, 0.35);
}

.modal__link:hover {
  color: var(--color-emerald-deep);
  text-decoration-color: var(--color-emerald-deep);
}

.modal__section-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-emerald);
}

.modal__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 300;
}

.modal__list li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(18, 38, 57, 0.85);
}

.modal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.5rem;
  height: 1px;
  background-color: var(--color-emerald);
}

/* --- Formulario de contacto --- */

.modal__dialog--slim {
  max-width: 34rem;
}

.modal__intro {
  margin: 0 0 2rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  font-weight: 300;
  color: rgba(18, 38, 57, 0.75);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-emerald);
}

.contact-form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-ink);
  background-color: var(--color-white);
  border-width: 1px;
  border-color: rgba(18, 38, 57, 0.15);
  outline: none;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form__textarea {
  min-height: 6rem;
  resize: vertical;
}

.contact-form__input::placeholder {
  color: rgba(18, 38, 57, 0.35);
}

.contact-form__input:focus {
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(39, 94, 69, 0.15);
}

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.contact-form__note {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 300;
  color: rgba(18, 38, 57, 0.55);
}

@media (min-width: 640px) {
  .contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* La modal "slim" (formulario) compacta su ritmo para caber sin scroll
   en escritorio. */
.modal__dialog--slim .modal__scroll {
  padding: 2.5rem;
}

.modal__dialog--slim .modal__header {
  margin-bottom: 1.25rem;
}

.modal__dialog--slim .modal__intro {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   14. ADAPTACIÓN A PANTALLAS PEQUEÑAS
   Puntos de corte: 640px (móvil grande), 768px (tableta), 1024px (escritorio)
   ========================================================================== */

@media (min-width: 640px) {
  .site-header__cta {
    display: inline-flex;
  }

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

  .hero__title {
    font-size: 48px;
  }

  .section-heading__title,
  .values__title,
  .cta__title,
  .profile__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .hero__actions {
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  :root {
    --layout-padding: 3rem;
  }

  .container--stacked {
    gap: 5rem;
  }

  .section--spacious {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }

  .hero {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .hero__lead {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .hero__globe {
    right: 0;
    width: 860px;
  }

  .credentials {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-header {
    flex-direction: row;
    align-items: flex-end;
  }

  .section-intro {
    font-size: 1rem;
    line-height: 1.5rem;
    line-height: 1.5rem;
  }

  .profile__body {
    font-size: 17px;
  }

  .grid--practice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .grid--sectors {
    gap: 2rem;
  }

  .grid--values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .practice-card {
    padding: 3rem;
  }

  .cta {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .cta__contacts {
    gap: 2.5rem;
  }

  .cta__lead {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
  .site-footer {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__bottom {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .mobile-panel {
    display: none;
  }

  .section--spacious {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }

  .hero__globe {
    width: 100%;
  }

  .hero__title {
    font-size: 62px;
  }

  .site-nav {
    display: flex;
  }

  .section-heading__title,
  .values__title,
  .cta__title {
    font-size: 44px;
  }

  .personal__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3rem;
  }

  .personal__aside,
  .personal__text {
    grid-column: span 4 / span 4;
  }

  /* El título del perfil es algo menor que el resto de encabezados */
  .profile .profile__title {
    font-size: 42px;
  }

  .profile {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 5rem;
  }

  .profile__intro {
    grid-column: span 5 / span 5;
  }

  .profile__body {
    grid-column: span 7 / span 7;
  }

  .grid--practice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--sectors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta__layout {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .cta__action {
    padding-top: 0;
  }

  .site-footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4rem;
  }

  .site-footer__brand {
    grid-column: span 4 / span 4;
  }

  .site-footer__column--practice {
    grid-column: span 3 / span 3;
  }

  .site-footer__column--contact {
    grid-column: span 3 / span 3;
  }

  .site-footer__column--legal {
    grid-column: span 2 / span 2;
  }
}

@media (max-width: 640px) {
  .modal {
    padding: 1rem;
  }

  .modal__dialog {
    max-height: 92vh;
  }

  .modal__scroll {
    padding: 2rem 1.5rem;
  }

  .modal__title {
    font-size: 1.375rem;
  }

  .modal__body {
    font-size: 0.875rem;
  }
}
