ç@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

/* ==========================================
   JMT GABINETE PERICIAL
   Premium contemporáneo
   Carbón · Marfil · Oliva · Taupe
   ========================================== */

:root {
  --charcoal: #1d1f1b;
  --charcoal-soft: #292c27;
  --ivory: #f4f1e9;
  --ivory-light: #faf8f3;
  --olive: #4d5947;
  --olive-dark: #394234;
  --taupe: #a89580;
  --stone: #726f68;
  --line: rgba(29, 31, 27, 0.15);
  --white-line: rgba(255, 255, 255, 0.16);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;

  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 12% 20%, rgba(168,149,128,.10), transparent 32%),
    radial-gradient(circle at 86% 70%, rgba(77,89,71,.08), transparent 28%);
}

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

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

.container {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}


/* ==========================================
   CABECERA
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  padding: 21px 0;
  background: rgba(244, 241, 233, .89);
  border-bottom: 1px solid rgba(29, 31, 27, .08);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .22em;
}

.logo-sub {
  margin-top: 7px;
  color: var(--stone);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}

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

.main-nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* ==========================================
   PORTADA
   ========================================== */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 145px 0 90px;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
  width: 31vw;
  height: 100%;
  content: "";
  background: var(--olive-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .86fr;
  gap: 88px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 27px;
  color: var(--olive);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 42px;
  height: 1px;
  content: "";
  background: var(--taupe);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 6.7vw, 99px);
  font-weight: 500;
  line-height: .93;
  letter-spacing: -.048em;
}

.hero h1 span {
  display: block;
  color: var(--olive);
  font-style: italic;
}

.hero-text {
  max-width: 600px;
  margin: 33px 0 0;
  color: var(--stone);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 35px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--charcoal);
  background: transparent;
  color: var(--charcoal);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s ease;
}

.button:hover {
  background: var(--charcoal);
  color: var(--ivory);
  transform: translateY(-3px);
}

.button-secondary {
  border-color: rgba(29,31,27,.22);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stat {
  padding: 19px 20px 19px 0;
  border-right: 1px solid var(--line);
}

.hero-stat + .hero-stat {
  padding-left: 20px;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--stone);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}


/* ==========================================
   FOTO DE PORTADA
   ========================================== */

.hero-image-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 15px 15px 82px;
  background: #ded7cd;
  box-shadow: 0 32px 80px rgba(20, 22, 19, .18);
  transform: translateY(16px);
}

.hero-image-wrap::before {
  position: absolute;
  top: -29px;
  left: -32px;
  z-index: -1;
  width: 125px;
  height: 125px;
  content: "";
  border-top: 1px solid rgba(168,149,128,.85);
  border-left: 1px solid rgba(168,149,128,.85);
}

.hero-image {
  overflow: hidden;
  min-height: 590px;
}

.hero-image img {
  width: 100%;
  height: 590px;
  object-fit: cover;
  object-position: center 18%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}

.hero-image-wrap:hover img {
  transform: scale(1.025);
}

.hero-image-caption {
  position: absolute;
  left: 33px;
  bottom: 25px;
}

.hero-image-caption span {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
}

.hero-image-caption small {
  display: block;
  margin-top: 3px;
  color: var(--stone);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}


/* ==========================================
   SECCIONES
   ========================================== */

.section {
  position: relative;
  padding: 125px 0;
}

.section-header {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 70px;
  margin-bottom: 72px;
}

.section-number {
  padding-top: 9px;
  color: var(--taupe);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(45px, 5vw, 73px);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 690px;
  margin: 25px 0 0;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.8;
}


/* ==========================================
   SERVICIOS
   ========================================== */

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

.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 48px;
  gap: 25px;
  align-items: center;
  min-height: 125px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition:
    padding .35s ease,
    color .35s ease;
}

.service::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--olive);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}

.service:hover {
  padding-left: 27px;
  padding-right: 27px;
  color: var(--ivory);
}

.service:hover::before {
  transform: scaleY(1);
}

.service-number {
  color: var(--taupe);
  font-size: 10px;
}

.service h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
}

.service p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--stone);
  font-size: 13px;
  transition: color .3s ease;
}

.service:hover p,
.service:hover .service-number {
  color: rgba(244,241,233,.76);
}

.service-arrow {
  font-size: 22px;
  transition: transform .3s ease;
}

.service:hover .service-arrow {
  transform: translate(5px,-5px);
}


/* ==========================================
   SECCIONES OSCURAS
   ========================================== */

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

.section-dark::before {
  position: absolute;
  top: 0;
  left: 7%;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(255,255,255,.04);
}

.section-dark .eyebrow {
  color: #aaa990;
}

.section-dark .section-title {
  color: var(--ivory);
}

.section-dark .section-intro {
  color: #a9a79f;
}

.section-dark .button {
  border-color: rgba(255,255,255,.45);
  color: var(--ivory);
}

.section-dark .button:hover {
  background: var(--ivory);
  color: var(--charcoal);
}


/* ==========================================
   DESPACHOS
   ========================================== */

.lawyers {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 105px;
  align-items: start;
}

.lawyers h2 {
  max-width: 510px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(47px, 5vw, 74px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.035em;
}

.lawyers-copy {
  color: #b7b5af;
  font-size: 15px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  margin-top: 55px;
  border-top: 1px solid var(--white-line);
}

.process-item {
  min-height: 135px;
  padding: 25px 17px 22px 0;
  border-right: 1px solid var(--white-line);
}

.process-item + .process-item {
  padding-left: 17px;
}

.process-item:last-child {
  border-right: 0;
}

.process-number {
  color: var(--taupe);
  font-size: 9px;
  letter-spacing: .14em;
}

.process h3 {
  margin: 23px 0 0;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  color: var(--ivory);
}


/* ==========================================
   SOBRE JMT
   ========================================== */

.about-grid {
  display: grid;
  grid-template-columns: .78fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.about-image {
  min-height: 570px;
  position: relative;
  background: var(--olive-dark);
}

.about-image::after {
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: 110px;
  height: 110px;
  content: "";
  border-right: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
}

.about-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(47px,5vw,70px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}

.about-copy p {
  max-width: 620px;
  color: var(--stone);
  font-size: 15px;
}


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

.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
}

.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(53px,6vw,83px);
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.04em;
}

.contact-details {
  margin-top: 30px;
  color: var(--stone);
}

.contact-details a {
  color: var(--olive);
  border-bottom: 1px solid rgba(77,89,71,.35);
}


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

.site-footer {
  position: relative;
  padding: 55px 0;
  background: #141512;
  color: #aaa89f;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - 64px), var(--max));
  height: 1px;
  content: "";
  background: rgba(255,255,255,.08);
  transform: translateX(-50%);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.footer-brand {
  color: var(--ivory);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .2em;
}

.footer-small {
  font-size: 9px;
  letter-spacing: .08em;
}


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

@media (max-width: 950px) {

  .main-nav {
    display: none;
  }

  .hero::after {
    width: 22%;
  }

  .hero-grid,
  .lawyers,
  .about-grid,
  .contact {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-image-wrap {
    max-width: 620px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .process-item:nth-child(2) {
    border-right: 0;
  }

}

@media (max-width: 620px) {

  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    padding: 18px 0;
  }

  .logo-main {
    font-size: 21px;
  }

  .hero {
    padding: 115px 0 60px;
  }

  .hero::after {
    display: none;
  }

  .hero h1 {
    font-size: clamp(50px,15vw,70px);
  }

  .hero-text {
    font-size: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stat,
  .hero-stat + .hero-stat {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-stat:last-child {
    border-bottom: 0;
  }

  .hero-image-wrap {
    padding-bottom: 76px;
  }

  .hero-image,
  .hero-image img {
    height: 470px;
    min-height: 470px;
  }

  .section {
    padding: 82px 0;
  }

  .service {
    grid-template-columns: 38px 1fr;
  }

  .service-arrow {
    display: none;
  }

  .service h3 {
    font-size: 26px;
  }

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

  .process-item,
  .process-item + .process-item {
    padding: 21px 0;
    border-right: 0;
    border-bottom: 1px solid var(--white-line);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ==========================================
   JMT — MOVIMIENTO Y PROFUNDIDAD
   ========================================== */

/* Entrada inicial de portada */

.hero-copy {
  animation: heroCopyIn 1s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-image-wrap {
  animation: heroImageIn 1.15s .12s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroImageIn {
  from {
    opacity: 0;
    transform: translateY(55px) scale(.975);
  }

  to {
    opacity: 1;
    transform: translateY(16px) scale(1);
  }
}


/* Línea vertical decorativa */

.hero-copy::after {
  position: absolute;
  top: -45px;
  right: -32px;
  width: 1px;
  height: 150px;
  content: "";
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(168,149,128,.65),
    transparent
  );
}


/* Foto con movimiento suave */

.hero-image img {
  will-change: transform;
}

.hero-image-wrap:hover img {
  transform: scale(1.04);
}


/* Números */

.hero-stat {
  transition:
    background .3s ease,
    transform .3s ease;
}

.hero-stat:hover {
  background: rgba(77,89,71,.06);
  transform: translateY(-4px);
}

.hero-stat strong {
  transition: color .3s ease;
}

.hero-stat:hover strong {
  color: var(--olive);
}


/* Botones más vivos */

.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--olive);
  transform: translateX(-102%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
}

.button:hover::before {
  transform: translateX(0);
}

.button:hover {
  border-color: var(--olive);
  background: transparent;
  color: var(--ivory);
}


/* Cabecera más elegante al hacer scroll */

.site-header {
  transition:
    padding .35s ease,
    background .35s ease,
    box-shadow .35s ease;
}

.site-header.scrolled {
  padding: 14px 0;
  background: rgba(244,241,233,.96);
  box-shadow: 0 8px 35px rgba(20,22,19,.06);
}


/* Elementos que aparecen al hacer scroll */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity .85s cubic-bezier(.16,1,.3,1),
    transform .85s cubic-bezier(.16,1,.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Diferentes retardos */

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .16s;
}

.reveal-delay-3 {
  transition-delay: .24s;
}


/* Movimiento editorial de titulares */

.section-title {
  transition:
    letter-spacing .5s ease,
    transform .5s ease;
}

.section-header:hover .section-title {
  transform: translateX(7px);
}


/* Servicios con más profundidad */

.service {
  cursor: default;
}

.service h3 {
  transition:
    transform .35s ease,
    letter-spacing .35s ease;
}

.service:hover h3 {
  transform: translateX(7px);
  letter-spacing: .005em;
}


/* Fondo ambiental */

.section:not(.section-dark)::after {
  position: absolute;
  right: 5%;
  bottom: 7%;
  z-index: -1;
  width: 280px;
  height: 280px;
  pointer-events: none;
  content: "";
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(77,89,71,.055),
    transparent 68%
  );
}


/* Barra fina decorativa en secciones oscuras */

.section-dark::after {
  position: absolute;
  right: 7%;
  top: 0;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(255,255,255,.035);
}


/* Accesibilidad: respeta usuarios que no quieren animaciones */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

}

/* ==========================================
   ESTUDIO DE VIABILIDAD
   ========================================== */

.viability-note {
  display: flex;
  gap: 22px;
  margin-top: 25px;
  color: var(--olive);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.viability-note span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.viability-note span::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--taupe);
  border-radius: 50%;
}


/* ==========================================
   VIABILIDAD PARA DESPACHOS
   ========================================== */

.viability-box {
  position: relative;
  margin-top: 48px;
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(
      135deg,
      rgba(77,89,71,.30),
      rgba(255,255,255,.02)
    );
  overflow: hidden;
}

.viability-box::after {
  position: absolute;
  right: -50px;
  bottom: -65px;
  width: 190px;
  height: 190px;
  content: "";
  border: 1px solid rgba(168,149,128,.17);
  border-radius: 50%;
}

.viability-label {
  color: var(--taupe);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.viability-box h3 {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 14px 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
}

.viability-box p {
  position: relative;
  z-index: 2;
  max-width: 620px;
  color: #b7b5af;
  font-size: 13px;
  line-height: 1.8;
}

.viability-link {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 14px;
  color: var(--ivory);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition:
    transform .25s ease,
    color .25s ease;
}

.viability-link:hover {
  color: var(--taupe);
  transform: translateX(6px);
}


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

.contact-section {
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(77,89,71,.13),
      transparent 33%
    ),
    var(--ivory);
}

.contact-intro {
  position: relative;
}

.contact-lead {
  max-width: 540px;
  margin-top: 28px;
  color: var(--stone);
  font-size: 15px;
  line-height: 1.85;
}

.free-study {
  max-width: 520px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.free-study-mark {
  display: inline-block;
  padding: 6px 11px;
  background: var(--olive);
  color: var(--ivory);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.free-study p {
  margin-top: 16px;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.8;
}

.contact-panel {
  position: relative;
  padding: 46px;
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: 0 30px 70px rgba(20,22,19,.14);
  overflow: hidden;
}

.contact-panel::before {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(168,149,128,.13);
  border-radius: 50%;
}

.contact-panel::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 66px;
  height: 66px;
  content: "";
  border-right: 1px solid rgba(168,149,128,.60);
  border-bottom: 1px solid rgba(168,149,128,.60);
}

.contact-panel-label {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 34px;
  color: var(--taupe);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-main-link {
  position: relative;
  z-index: 2;
  display: block;
  width: fit-content;
  margin-bottom: 13px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(24px,3vw,35px);
  line-height: 1.15;
  transition:
    color .25s ease,
    transform .25s ease;
}

.contact-main-link:hover {
  color: var(--taupe);
  transform: translateX(5px);
}

.contact-actions {
  position: relative;
  z-index: 2;
  margin-top: 38px;
}

.contact-panel .button {
  border-color: rgba(255,255,255,.36);
  color: var(--ivory);
}

.contact-small {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: #85847e;
  font-size: 9px;
  letter-spacing: .08em;
}


/* ==========================================
   FOTO — MARCO MÁS FINO
   ========================================== */

.hero-image-wrap {
  padding: 4px 4px 72px;
}

.hero-image {
  border: 0;
}


/* ==========================================
   MÓVIL
   ========================================== */

@media (max-width: 620px) {

  .viability-note {
    flex-direction: column;
    gap: 7px;
  }

  .viability-box {
    padding: 27px 23px;
  }

  .contact-panel {
    padding: 31px 24px;
  }

  .contact-main-link {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

}

/* ==========================================
   METODOLOGÍA JMT
   ========================================== */

.methodology-card {
  position: relative;
  min-height: 570px;
  padding: 55px 46px;
  background:
    linear-gradient(
      145deg,
      rgba(77,89,71,.96),
      rgba(57,66,52,.99)
    );
  color: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.methodology-card::before {
  position: absolute;
  top: -85px;
  right: -80px;
  width: 240px;
  height: 240px;
  content: "";
  border: 1px solid rgba(168,149,128,.16);
  border-radius: 50%;
}

.methodology-card::after {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 78px;
  height: 78px;
  content: "";
  border-right: 1px solid rgba(244,241,233,.38);
  border-bottom: 1px solid rgba(244,241,233,.38);
}

.method-step {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
}

.method-number {
  color: var(--taupe);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

.method-title {
  font-family: var(--serif);
  font-size: clamp(30px,4vw,43px);
  line-height: 1;
  letter-spacing: -.02em;
}

.method-line {
  position: relative;
  z-index: 2;
  width: 1px;
  height: 64px;
  margin: 10px 0 10px 25px;
  background: rgba(244,241,233,.30);
  transform-origin: top;
}

.method-caption {
  position: relative;
  z-index: 2;
  max-width: 310px;
  margin: 42px 0 0 70px;
  color: rgba(244,241,233,.68);
  font-size: 12px;
  line-height: 1.7;
}


/* Movimiento */

.methodology-card .method-step {
  opacity: .72;
  transform: translateX(0);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.methodology-card:hover .method-step {
  opacity: 1;
  transform: translateX(8px);
}

.methodology-card:hover .method-line {
  background: rgba(244,241,233,.55);
}

.methodology-card:hover {
  background:
    linear-gradient(
      145deg,
      rgba(69,80,64,.99),
      rgba(43,50,40,1)
    );
}


/* Entrada progresiva al cargar */

.methodology-card .method-step:nth-of-type(1) {
  animation: methodIn .7s .10s both;
}

.methodology-card .method-step:nth-of-type(3) {
  animation: methodIn .7s .28s both;
}

.methodology-card .method-step:nth-of-type(5) {
  animation: methodIn .7s .46s both;
}

@keyframes methodIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: .72;
    transform: translateY(0);
  }
}


@media (max-width: 620px) {

  .methodology-card {
    min-height: 500px;
    padding: 42px 28px;
  }

  .method-caption {
    margin-left: 0;
  }

}

/* ==========================================
   CORRECCIÓN DE CABECERAS DE SECCIÓN
   ========================================== */

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
  margin-bottom: 72px;
}

.section-header > div {
  display: block;
}

.section-header .section-title {
  max-width: 700px;
  margin: 0;
}

.section-header .section-intro {
  max-width: 540px;
  margin: 12px 0 0;
}

/* Tablet y móvil */
@media (max-width: 900px) {
  .section-header {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* ==========================================
   ÁREAS PERICIALES — DESPLEGABLES
   ========================================== */

.service-accordion {
  border-bottom: 1px solid rgba(29, 31, 27, .16);
}

.service-accordion:first-child {
  border-top: 1px solid rgba(29, 31, 27, .16);
}

.service-accordion summary {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 30px;
  align-items: center;
  padding: 28px 10px;
  cursor: pointer;
  list-style: none;

  transition:
    background .35s ease,
    color .35s ease,
    padding .35s ease;
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.service-accordion summary::marker {
  display: none;
  content: "";
}

.service-accordion h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.service-accordion summary p {
  max-width: 720px;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  opacity: .65;
}


/* + */

.accordion-icon {
  justify-self: end;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;

  transition:
    transform .4s cubic-bezier(.16, 1, .3, 1),
    opacity .3s ease;
}


/* Al pasar el ratón */

.service-accordion summary:hover {
  padding-left: 25px;
  padding-right: 25px;
  background: var(--olive);
  color: var(--ivory);
}

.service-accordion summary:hover .accordion-icon {
  transform: rotate(90deg);
}


/* Abierto */

.service-accordion[open] summary {
  padding-left: 25px;
  padding-right: 25px;
  background: var(--olive);
  color: var(--ivory);
}

.service-accordion[open] .accordion-icon {
  transform: rotate(45deg);
}


/* Contenido interior */

.service-content {
  padding: 12px 25px 32px;
  background: rgba(77, 89, 71, .06);

  animation: serviceOpen .45s cubic-bezier(.16, 1, .3, 1);
}

.service-content p {
  position: relative;
  max-width: 760px;
  margin: 0;
  padding: 11px 0 11px 24px;

  border-bottom: 1px solid rgba(29, 31, 27, .08);

  font-size: 13px;
  line-height: 1.6;
}

.service-content p:last-child {
  border-bottom: 0;
}

.service-content p::before {
  position: absolute;
  top: 20px;
  left: 1px;

  width: 10px;
  height: 1px;

  content: "";
  background: var(--taupe);
}


/* Animación de apertura */

@keyframes serviceOpen {

  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* Móvil */

@media (max-width: 700px) {

  .service-accordion summary {
    grid-template-columns: 1fr 30px;
    gap: 15px;
    padding: 23px 4px;
  }

  .service-accordion summary:hover,
  .service-accordion[open] summary {
    padding-left: 15px;
    padding-right: 15px;
  }

  .service-content {
    padding: 10px 15px 26px;
  }

}

/* ==========================================================
   JMT — RESTAURACIÓN DE IDENTIDAD VISUAL
   Mantiene los acordeones sin alterar el resto del diseño
   ========================================================== */


/* ---------- Paleta y tipografía originales ---------- */

:root {
  --charcoal: #1d1f1b;
  --charcoal-soft: #292c27;
  --ivory: #f4f1e9;
  --ivory-light: #faf8f3;
  --olive: #4d5947;
  --olive-dark: #394234;
  --taupe: #a89580;
  --stone: #726f68;
  --line: rgba(29, 31, 27, .15);
  --white-line: rgba(255, 255, 255, .16);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}


/* ---------- Recuperamos márgenes y proporciones ---------- */

.container {
  width: min(calc(100% - 110px), 1220px);
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 125px 0;
}


/* ---------- Cabeceras editoriales ---------- */

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  gap: 110px;
  align-items: start;
  margin-bottom: 75px;
}

.section-header > div {
  display: contents;
}

.section-header .section-title {
  grid-column: 1;
  max-width: 730px;
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 73px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.section-header .section-intro {
  grid-column: 2;
  max-width: 480px;
  margin: 10px 0 0;

  color: var(--stone);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
}


/* ---------- Las secciones oscuras vuelven a ser oscuras ---------- */

.section-dark {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
}

.section-dark .section-title,
.section-dark h2,
.section-dark h3 {
  color: var(--ivory);
}

.section-dark p {
  color: #b7b5af;
}


/* ---------- Despachos: recuperamos composición ---------- */

.lawyers {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 105px;
  align-items: start;
}

.lawyers h2 {
  max-width: 510px;
  margin: 0;

  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 74px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.04em;
}

.lawyers-copy {
  color: #b7b5af;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}


/* ---------- Proceso sin números ---------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--white-line);
}

.process-number {
  display: none;
}

.process-item,
.process-item + .process-item {
  min-height: 120px;
  padding: 26px 18px 20px 0;
  border-right: 1px solid var(--white-line);
}

.process-item + .process-item {
  padding-left: 18px;
}

.process-item:last-child {
  border-right: 0;
}

.process h3 {
  margin: 12px 0 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}


/* ==========================================================
   ÁREAS PERICIALES
   Mantiene el acordeón, pero integrado con la identidad JMT
   ========================================================== */

.services-list {
  width: 100%;
  margin-top: 0;
}

.service-accordion {
  border-bottom: 1px solid var(--line);
}

.service-accordion:first-child {
  border-top: 1px solid var(--line);
}

.service-accordion summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px;
  gap: 35px;
  align-items: center;

  min-height: 118px;
  padding: 27px 22px;

  color: var(--charcoal);
  background: transparent;

  cursor: pointer;
  list-style: none;

  transition:
    background .38s cubic-bezier(.16,1,.3,1),
    color .38s ease,
    padding .38s cubic-bezier(.16,1,.3,1);
}

.service-accordion summary::-webkit-details-marker {
  display: none;
}

.service-accordion summary::marker {
  content: "";
}

.service-accordion h3 {
  margin: 0;

  font-family: var(--serif);
  font-size: clamp(27px, 2.7vw, 38px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}

.service-accordion summary p {
  max-width: 690px;
  margin: 9px 0 0;

  color: var(--stone);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;

  transition: color .3s ease;
}

.accordion-icon {
  justify-self: end;

  color: var(--olive);
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 300;

  transition:
    transform .4s cubic-bezier(.16,1,.3,1),
    color .3s ease;
}


/* Hover elegante */

.service-accordion summary:hover {
  padding-left: 34px;
  padding-right: 30px;

  background: var(--olive);
  color: var(--ivory);
}

.service-accordion summary:hover p {
  color: rgba(244,241,233,.73);
}

.service-accordion summary:hover .accordion-icon {
  color: var(--ivory);
  transform: rotate(90deg);
}


/* Abierto */

.service-accordion[open] summary {
  padding-left: 34px;
  padding-right: 30px;

  background: var(--olive-dark);
  color: var(--ivory);
}

.service-accordion[open] summary p {
  color: rgba(244,241,233,.70);
}

.service-accordion[open] .accordion-icon {
  color: var(--taupe);
  transform: rotate(45deg);
}


/* Contenido desplegado */

.service-content {
  padding: 15px 34px 32px;

  background:
    linear-gradient(
      90deg,
      rgba(77,89,71,.07),
      rgba(77,89,71,.02)
    );

  animation: serviceOpen .42s cubic-bezier(.16,1,.3,1);
}

.service-content p {
  position: relative;

  max-width: 760px;
  margin: 0;
  padding: 11px 0 11px 25px;

  border-bottom: 1px solid rgba(29,31,27,.07);

  color: var(--stone);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
}

.service-content p:last-child {
  border-bottom: 0;
}

.service-content p::before {
  position: absolute;
  top: 20px;
  left: 1px;

  width: 10px;
  height: 1px;

  content: "";
  background: var(--taupe);
}


/* ---------- Responsive ---------- */

@media (max-width: 950px) {

  .container {
    width: min(calc(100% - 55px), 1220px);
  }

  .section-header,
  .lawyers {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-header > div {
    display: block;
  }

  .section-header .section-title,
  .section-header .section-intro {
    grid-column: auto;
  }

  .section-header .section-intro {
    margin-top: 0;
  }

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


@media (max-width: 620px) {

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 82px 0;
  }

  .service-accordion summary {
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 14px;
    min-height: auto;
    padding: 23px 5px;
  }

  .service-accordion summary:hover,
  .service-accordion[open] summary {
    padding-left: 15px;
    padding-right: 15px;
  }

  .service-content {
    padding: 10px 15px 26px;
  }

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

  .process-item,
  .process-item + .process-item {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--white-line);
  }
}

/* ==========================================
   JMT — NUEVA IDENTIDAD TIPOGRÁFICA
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

body {
  font-family: var(--sans);
}


/* Titulares principales */

.hero h1,
.section-title,
.lawyers h2,
.about-copy h2,
.contact h2,
.service-accordion h3,
.process h3,
.contact-main-link,
.hero-stat strong,
.hero-image-caption span {
  font-family: var(--serif);
  font-weight: 500;
}


/* Portada */

.hero h1 {
  font-size: clamp(54px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -.025em;
}

.hero h1 span {
  font-style: italic;
}


/* Títulos de secciones */

.section-title {
  font-size: clamp(44px, 4.5vw, 66px);
  line-height: 1;
  letter-spacing: -.02em;
}


/* Despachos */

.lawyers h2 {
  font-size: clamp(44px, 4.7vw, 66px);
  line-height: 1;
  letter-spacing: -.02em;
}


/* Servicios desplegables */

.service-accordion h3 {
  font-size: clamp(27px, 2.4vw, 35px);
  letter-spacing: -.01em;
}


/* Textos generales */

.hero-text,
.section-intro,
.lawyers-copy,
.service-accordion summary p,
.service-content p,
.about-copy p,
.contact-lead,
.free-study p {
  font-family: var(--sans);
}


/* Menú, etiquetas y botones */

.main-nav a,
.eyebrow,
.logo-sub,
.button,
.contact-panel-label,
.free-study-mark,
.viability-note,
.contact-small {
  font-family: var(--sans);
}


/* Menos aspecto "revista" en móvil */

@media (max-width: 620px) {

  .hero h1 {
    font-size: clamp(48px, 13vw, 66px);
  }

  .section-title,
  .lawyers h2 {
    font-size: clamp(39px, 11vw, 54px);
  }

}

/* ==========================================
   AJUSTES FINOS DE COMPOSICIÓN
   ========================================== */

.section-header .section-intro {
  max-width: 520px;
  margin-top: 14px;
  align-self: center;
  line-height: 1.8;
}

.section-title {
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.02;
}

.lawyers h2 {
  font-size: clamp(40px, 4.2vw, 60px);
}

.hero h1 {
  font-size: clamp(50px, 5.4vw, 78px);
}

.hero-grid {
  grid-template-columns: 1.15fr .72fr;
  gap: 72px;
}

.hero-image-wrap {
  max-width: 470px;
  justify-self: end;
  padding: 3px 3px 62px;
}

.hero-image {
  min-height: 520px;
}

.hero-image img {
  height: 520px;
  object-fit: cover;
  object-position: center 34%;
}

.hero-image img {
  transform: scale(1.12);
}

/* Ajuste del pie de foto */

.hero-image-wrap {
  padding-bottom: 78px;
}

.hero-image-caption {
  left: 28px;
  right: 28px;
  bottom: 20px;
}

.hero-image-caption span {
  display: block;
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
  white-space: nowrap;
}

.hero-image-caption small {
  display: block;
  margin-top: 7px;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* ==========================================
   FORMULARIO DE CONTACTO
   ========================================== */

.contact-form {
  position: relative;
  z-index: 2;
  margin-top: 36px;
}

.contact-form label {
  display: block;
  margin-bottom: 18px;

  color: var(--taupe);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 0;

  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.24);
  border-radius: 0;

  background: transparent;
  color: var(--ivory);

  font-family: var(--sans);
  font-size: 14px;

  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--taupe);
}

.contact-form select {
  appearance: none;
}

.contact-form option {
  color: var(--charcoal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.privacy-check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;

  margin-top: 8px;

  color: #8f8d87 !important;
  font-size: 9px !important;
  line-height: 1.5;
  letter-spacing: .04em !important;
  text-transform: none !important;
}

.privacy-check input {
  width: auto;
  margin: 3px 0 0;
}

.form-submit {
  margin-top: 12px;
  cursor: pointer;
}

@media (max-width: 620px) {

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

/* CONTACTO DIRECTO */

.direct-contact {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.direct-contact-label {
  margin-bottom: 15px;
  color: var(--taupe);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.direct-contact a {
  display: block;
  width: fit-content;
  margin-bottom: 8px;

  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;

  transition: opacity .25s ease,
              transform .25s ease;
}

.direct-contact a span {
  margin-left: 8px;
  color: var(--taupe);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.direct-contact a:hover {
  opacity: .7;
  transform: translateX(3px);
}

/* ==========================================
   ALINEACIÓN — OTRAS ÁREAS PROFESIONALES
   ========================================== */

.section-dark .section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: 90px;
  align-items: start;
}

.section-dark .section-header .section-title {
  margin: 0;
  align-self: start;
}

.section-dark .section-header .section-intro {
  margin: 0;
  align-self: start;
  padding-top: 6px;
}

/* ==========================================
   JMT — PROFUNDIDAD Y MOVIMIENTO AMBIENTAL
   ========================================== */

.section {
  overflow: hidden;
}

.section:not(.section-dark)::before {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -130px;
  top: 10%;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(77,89,71,.07) 0%,
      rgba(168,149,128,.045) 38%,
      transparent 72%
    );
  pointer-events: none;
  animation: ambientFloat 14s ease-in-out infinite alternate;
}

.section-dark::after {
  position: absolute;
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -130px;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(168,149,128,.10);
  box-shadow:
    0 0 0 55px rgba(255,255,255,.012),
    0 0 0 110px rgba(255,255,255,.008);
  pointer-events: none;
  animation: ambientFloatDark 18s ease-in-out infinite alternate;
}

@keyframes ambientFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-45px, 30px, 0) scale(1.08);
  }
}

@keyframes ambientFloatDark {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(55px, -25px, 0);
  }
}

/* Línea decorativa que aparece al entrar en sección */

.section-title::after {
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 28px;
  content: "";
  background: var(--taupe);
  transform-origin: left;
  animation: lineReveal 1s cubic-bezier(.16,1,.3,1) both;
}

@keyframes lineReveal {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section:not(.section-dark)::before,
  .section-dark::after,
  .section-title::after {
    animation: none;
  }
}

/* ==========================================
   PRESENCIA EN MEDIOS
   ========================================== */

.press-block {
  margin-top: 70px;
  border-top: 1px solid var(--line);
}

.press-kicker {
  padding: 22px 0;
  color: var(--taupe);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.press-item {
  position: relative;

  display: grid;
  grid-template-columns: 150px minmax(0,1fr) 140px;
  gap: 35px;
  align-items: center;

  min-height: 115px;
  padding: 24px 10px;

  border-top: 1px solid rgba(29,31,27,.09);

  transition:
    background .35s ease,
    color .35s ease,
    padding .35s ease,
    transform .35s ease;
}

.press-item:last-child {
  border-bottom: 1px solid rgba(29,31,27,.09);
}

.press-source {
  color: var(--taupe);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
}

.press-title {
  max-width: 700px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.15;
}

.press-meta {
  justify-self: end;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.press-item:hover {
  padding-left: 24px;
  padding-right: 24px;
  background: var(--olive);
  color: var(--ivory);
  transform: translateY(-2px);
}

.press-item:hover .press-source,
.press-item:hover .press-meta {
  color: rgba(244,241,233,.72);
}


/* ==========================================
   MÁS PROFUNDIDAD ENTRE SECCIONES
   ========================================== */

.section + .section {
  position: relative;
}

.section:nth-of-type(even):not(.section-dark) .container {
  transform: translateY(-18px);
}

.section-dark {
  box-shadow:
    0 -28px 55px rgba(20,22,19,.08),
    0 28px 55px rgba(20,22,19,.08);
}


/* Títulos y texto entran desde lados opuestos */

.section-header.reveal.visible .section-title {
  animation: titleFromLeft .85s cubic-bezier(.16,1,.3,1) both;
}

.section-header.reveal.visible .section-intro {
  animation: textFromRight .95s .08s cubic-bezier(.16,1,.3,1) both;
}

@keyframes titleFromLeft {
  from {
    opacity: 0;
    transform: translateX(-35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes textFromRight {
  from {
    opacity: 0;
    transform: translateX(35px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* Hover general de bloques principales */

.contact-panel,
.hero-image-wrap {
  transition:
    transform .45s cubic-bezier(.16,1,.3,1),
    box-shadow .45s ease;
}

.contact-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 85px rgba(20,22,19,.20);
}

.hero-image-wrap:hover {
  transform: translateY(8px);
}


/* Responsive */

@media (max-width: 800px) {

  .press-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .press-meta {
    justify-self: start;
  }

}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;

  color: var(--stone);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
}

.language-switcher a {
  opacity: .55;
}

.language-switcher a.active,
.language-switcher a:hover {
  opacity: 1;
  color: var(--olive);
}

/* ==========================================
   PRENSA — DOS ARTÍCULOS EN HORIZONTAL
   ========================================== */

.press-block {
  width: 100%;
  max-width: 1180px;
  margin: 70px auto 0;
  border-top: 1px solid var(--line);
}

.press-kicker {
  padding: 22px 0 28px;
  text-align: center;

  color: var(--taupe);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

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

.press-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  min-width: 0;
  min-height: 230px;
  padding: 36px 45px;

  border-top: 1px solid rgba(29,31,27,.09);

  transition:
    background .35s ease,
    color .35s ease,
    transform .35s ease;
}

.press-item:first-child {
  border-right: 1px solid rgba(29,31,27,.09);
}

.press-source {
  margin-bottom: 25px;

  color: var(--taupe);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.press-title {
  width: 100%;
  max-width: 430px;

  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.12;
}

.press-meta {
  margin-top: 30px;

  color: var(--stone);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.press-item:hover {
  background: var(--olive);
  color: var(--ivory);
  transform: translateY(-5px);
}

.press-item:hover .press-source,
.press-item:hover .press-meta {
  color: rgba(244,241,233,.72);
}

@media (max-width: 800px) {
  .press-list {
    grid-template-columns: 1fr;
  }

  .press-item:first-child {
    border-right: 0;
  }

  .press-item {
    min-height: auto;
    padding: 30px 20px;
  }
}

/* =========================================================
   JMT · CAPA VISUAL
   ========================================================= */

/* Fondo general con mayor profundidad */
body {
  background:
    radial-gradient(circle at 82% 12%, rgba(73, 82, 65, 0.07), transparent 28%),
    #f4f1e9;
}

/* HERO — geometría editorial de fondo */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(48, 58, 47, 0.13);
  border-radius: 50%;
  right: -230px;
  top: -180px;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 1px;
  background: rgba(48, 58, 47, 0.22);
  right: 8%;
  bottom: 13%;
  transform: rotate(-32deg);
  transform-origin: right center;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
}

/* Foto principal con algo más de presencia */
.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  width: 76%;
  height: 76%;
  right: -22px;
  top: -22px;
  border: 1px solid rgba(47, 58, 47, 0.28);
  z-index: -1;
}

/* Secciones claras */
.section:not(.section-dark) {
  position: relative;
}

/* Experiencia: detalle gráfico grande */
#experiencia {
  overflow: hidden;
}

#experiencia::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(48, 58, 47, 0.09);
  border-radius: 50%;
  left: -280px;
  top: 110px;
  pointer-events: none;
}

/* Líneas de prensa con más aspecto editorial */
.press-item {
  transition:
    transform 0.35s ease,
    background-color 0.35s ease;
}

.press-item:hover {
  transform: translateY(-6px);
}

/* Bloques oscuros: profundidad muy ligera */
.section-dark {
  position: relative;
  overflow: hidden;
}

.section-dark::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(244, 241, 233, 0.09);
  border-radius: 50%;
  right: -230px;
  bottom: -260px;
  pointer-events: none;
}

/* Animaciones más visibles pero elegantes */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(.2,.7,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

/* Botones con movimiento mínimo */
.button {
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

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

/* Cabecera más refinada al desplazarse */
.site-header {
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Móvil: reducimos la geometría */
@media (max-width: 768px) {
  .hero::before {
    width: 300px;
    height: 300px;
    right: -190px;
    top: -80px;
  }

  .hero::after {
    display: none;
  }

  .hero-image-wrap::before {
    right: -10px;
    top: -10px;
  }

  #experiencia::before {
    width: 260px;
    height: 260px;
    left: -190px;
  }
}

/* ==========================================
   FONDO VERDE FOTO — SIN TOCAR TEXTO NI FOTO
   ========================================== */

.hero-image-wrap::after {
  content: "";
  position: absolute;

  width: 112%;
  height: 98%;

  right: -72px;
  top: -52px;

  background: #394234;

  z-index: -2;
  pointer-events: none;
}
