@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap");

/* ==========================================
   RAMÍREZ GONZÁLEZ - OFICINA DE ABOGADOS
   CSS COMPLETO V5.2
   ========================================== */

:root {
  --blue: #223b5e;
  --gold: #a77e49;
  --deep: #14263d;
  --paper: #f7f5f0;
  --cream: #efebe4;
  --white: #ffffff;
  --muted: #677480;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
}

h2 {
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

h2 em {
  color: var(--gold);
  font-weight: 400;
}

.container {
  width: min(1220px, 90%);
  margin: auto;
}

.section {
  padding: 105px 0;
}

.kicker {
  font:
    700 11px "Manrope",
    sans-serif;
  letter-spacing: 2px;
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================
   ENCABEZADO Y MARCA
   ========================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 94px;
  background: white;
  border-bottom: 1px solid #e9e5df;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 8px 24px #14263d12;
}

.nav-wrap {
  width: min(1400px, 94%);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex-shrink: 0;
}

/* Escudo con fondo blanco */

.brand-emblem {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.brand-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Separador dorado */

.brand::after {
  content: "";
  order: 1;
  width: 2px;
  height: 46px;
  flex-shrink: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    #a77e49 20%,
    #a77e49 80%,
    transparent
  );
}

/* Nombre de la firma */

.brand-name {
  order: 2;
  position: relative;
  display: block;
  padding: 2px 0 12px;
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.brand-name::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 43px;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.brand:hover .brand-name::after {
  width: 100%;
}

/* Navegación */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 25px);
}

.nav a {
  font-size: 12px;
  font-weight: 700;
  transition: color 0.25s;
}

.nav a:hover {
  color: var(--gold);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 19px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.25s;
}

.nav-cta:hover {
  background: var(--gold);
}

.nav-cta span {
  color: #e6ca9f;
  font-size: 17px;
}

.menu-button {
  display: none;
}

/* ==========================================
   PORTADA FOTOGRÁFICA V5.2
   ========================================== */

.hero.hero-signature {
  position: relative;
  display: block;
  min-height: 790px;
  width: 100%;
  background: var(--deep);
  color: white;
  overflow: hidden;
  isolation: isolate;
}

/* Fotografía principal */

.signature-image,
.signature-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.signature-image {
  z-index: -2;
  overflow: hidden;
}

.signature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 28%;
  filter: saturate(0.92);
}

/* Degradado para proteger la lectura */

.signature-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(15, 31, 51, 0.97) 0%,
      rgba(15, 31, 51, 0.89) 36%,
      rgba(15, 31, 51, 0.52) 68%,
      rgba(15, 31, 51, 0.16) 100%
    ),
    linear-gradient(0deg, rgba(15, 31, 51, 0.55), transparent 40%);
}

/* Contenido de portada */

.signature-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(1290px, 88%);
  min-height: 790px;
  margin: auto;
  padding: 90px 0 125px;
}

.signature-topline {
  display: flex;
  align-items: center;
  gap: 17px;
  color: #e3c39a;
  font:
    700 10px "Manrope",
    sans-serif;
  letter-spacing: 2.2px;
}

.signature-line {
  flex: 0 0 40px;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero.hero-signature h1 {
  max-width: 770px;
  margin: 35px 0 27px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(47px, 5.9vw, 88px);
  line-height: 1.11;
  letter-spacing: -2px;
  font-weight: 400;
}

.hero.hero-signature h1 em {
  color: #e7c898;
  font-weight: 400;
}

.signature-content > p {
  max-width: 515px;
  padding-left: 21px;
  border-left: 2px solid var(--gold);
  color: #e0e6ee;
  font-size: 15px;
  line-height: 1.85;
}

.signature-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 28px;
}

.signature-primary,
.signature-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 55px;
  padding: 16px 22px;
  font:
    700 12px "Manrope",
    sans-serif;
  transition:
    background 0.25s,
    transform 0.25s;
}

.signature-primary {
  background: var(--gold);
  color: white;
}

.signature-secondary {
  border: 1px solid #ffffff80;
  background: #ffffff12;
  color: white;
}

.signature-primary:hover {
  background: #c19a66;
  transform: translateY(-3px);
}

.signature-secondary:hover {
  background: #ffffff2b;
  transform: translateY(-3px);
}

/* Línea inferior */

.signature-index {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #ffffff40;
  color: #e0c49e;
  font:
    700 10px "Manrope",
    sans-serif;
  letter-spacing: 1.7px;
}

/* Fotografía secundaria */

.signature-inset {
  position: absolute;
  z-index: 3;
  right: 5%;
  bottom: 98px;
  width: 175px;
  padding: 6px;
  background: #f9f7f3;
  box-shadow: 0 16px 45px #00000038;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
}

.signature-inset img {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
  object-position: center 28%;
}

.signature-inset:hover {
  transform: rotate(0) translateY(-4px);
}

.inset-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 6px 6px;
  color: var(--blue);
  font:
    700 9px "Manrope",
    sans-serif;
  letter-spacing: 0.7px;
}

.inset-caption strong {
  color: var(--gold);
}

.signature-side {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 19px;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  color: #ffffffb8;
  font:
    600 9px "Manrope",
    sans-serif;
  letter-spacing: 2.4px;
}

/* ==========================================
   VALORES
   ========================================== */

.values {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 24px 5%;
  background: #172f4d;
  color: #dfc69e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.values b {
  color: var(--gold);
  font-size: 17px;
}

/* ==========================================
   NUESTRA FIRMA
   ========================================== */

.about {
  background: #faf9f6;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 75px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: center 27%;
}

.image-stamp {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 16px 23px;
  background: var(--blue);
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
}

.about-copy h2 {
  margin: 27px 0 30px;
}

.about-copy p {
  max-width: 485px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.under-link {
  display: inline-flex;
  align-items: center;
  gap: 27px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.under-link span {
  color: var(--gold);
}

/* ==========================================
   SERVICIOS JURÍDICOS
   ========================================== */

.practice {
  background: #ebe8e1;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin: 23px 0 0;
}

.section-heading > p {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.practice-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.practice-list {
  border-top: 1px solid #bbb6ab;
}

.practice-item {
  display: grid;
  grid-template-columns: 30px 1fr 25px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 25px 15px;
  border: none;
  border-bottom: 1px solid #bbb6ab;
  background: transparent;
  color: var(--deep);
  text-align: left;
  transition:
    background 0.25s,
    color 0.25s;
}

.practice-item > span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.practice-item strong {
  font:
    400 clamp(20px, 2vw, 28px) "Playfair Display",
    serif;
}

.practice-item b {
  color: var(--gold);
  font-size: 19px;
  font-weight: 400;
}

.practice-item:hover,
.practice-item.active {
  background: var(--blue);
  color: white;
}

.practice-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 455px;
  padding: 37px;
  background: var(--blue);
  color: white;
  overflow: hidden;
}

.detail-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #e0c18e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.detail-watermark {
  display: none;
}

.detail-kicker {
  color: #dec18f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.detail-bottom h3 {
  margin: 20px 0;
  font-size: clamp(32px, 3vw, 47px);
}

.detail-bottom p {
  max-width: 420px;
  color: #d5dfe9;
  font-size: 15px;
  line-height: 1.85;
}

.detail-action {
  display: inline-flex;
  gap: 25px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  color: #e1c394;
  font-size: 13px;
  font-weight: 700;
}

/* ==========================================
   EQUIPO PROFESIONAL
   ========================================== */

.team {
  background: var(--paper);
}

.team-heading {
  max-width: 830px;
  margin-bottom: 45px;
}

.team-heading h2 {
  margin: 23px 0;
}

.team-heading p {
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}

.team-photo {
  height: 490px;
  background: #dfdbd4;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s;
}

.team-card:hover img {
  transform: scale(1.025);
}

.team-card-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #d5cfc5;
}

.team-card-info div > span {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1.5px;
}

.team-card-info h3 {
  margin: 10px 0 0;
  font-size: 27px;
}

.team-arrow {
  color: var(--gold);
  font-size: 23px;
}

/* ==========================================
   EMPRESAS Y CONDOMINIOS
   ========================================== */

.business {
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 610px;
  background: var(--deep);
  color: white;
}

.business-photo {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.business-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-photo-tag {
  position: absolute;
  bottom: 25px;
  left: 25px;
  padding: 12px 17px;
  background: #14263dd9;
  color: white;
  font-size: 10px;
  letter-spacing: 2px;
}

.business-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 75px min(7vw, 100px);
}

.business-content .kicker {
  color: #e0c08e;
}

.business-content h2 {
  margin: 28px 0;
}

.business-content h2 em {
  color: #e2c18f;
}

.business-content > p {
  max-width: 480px;
  color: #cedae6;
  font-size: 15px;
  line-height: 1.85;
}

.business-features {
  width: 100%;
  max-width: 480px;
  margin: 21px 0 32px;
}

.business-features div {
  padding: 14px 0;
  border-top: 1px solid #ffffff35;
  font-size: 13px;
}

.business-features div:last-child {
  border-bottom: 1px solid #ffffff35;
}

.business-features span {
  margin-right: 18px;
  color: #dfc08e;
  font-size: 11px;
}

/* ==========================================
   CONTACTO
   ========================================== */

.contact {
  background: #faf9f6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 65px;
  align-items: center;
}

.contact h2 {
  margin: 25px 0 0;
}

.contact-card {
  min-width: 0;
  padding: 37px;
  background: #ece8df;
}

.contact-overline {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}

.contact-card p {
  margin: 22px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.contact-email {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gold);
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-email span {
  color: var(--gold);
}

.contact-card small {
  display: block;
  margin-top: 24px;
  color: #777;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.8;
}

/* ==========================================
   PIE DE PÁGINA - LOGO REDUCIDO
   ========================================== */

.footer {
  padding: 65px 0 25px;
  background: #101f33;
  color: white;
  overflow: hidden;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 45px;
  padding-bottom: 55px;
}

.footer-brand {
  width: 240px;
  max-width: 100%;
  min-width: 0;
}

.footer-brand img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: 145px;
  object-fit: contain;
  object-position: left center;
  margin: 0;
  padding: 0;
}

.footer-brand p {
  max-width: 240px;
  margin: 8px 0 0;
  color: #b7c3d0;
  font-size: 12px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 25px;
}

.footer-links a {
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #e0c08e;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  border-top: 1px solid #ffffff30;
  color: #aab8c9;
  font-size: 11px;
}

/* ==========================================
   CONTACTO FLOTANTE
   ========================================== */

.floating-contact {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 99;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 22px;
  box-shadow: 0 8px 24px #00000030;
  transition: transform 0.25s;
}

.floating-contact:hover {
  transform: translateY(-3px);
}

/* ==========================================
   ANIMACIONES
   ========================================== */

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.65s,
    transform 0.65s;
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================
   PANTALLAS MEDIANAS
   ========================================== */

@media (max-width: 1200px) {
  .nav {
    gap: 12px;
  }

  .nav-wrap {
    width: 96%;
  }

  .brand-name {
    font-size: 11px;
  }

  .nav-cta {
    padding: 14px;
  }

  .about-grid {
    gap: 40px;
  }

  .business-content {
    padding: 60px 42px;
  }

  .signature-inset {
    right: 4%;
    width: 145px;
  }

  .signature-inset img {
    height: 118px;
  }

  .signature-side {
    display: none;
  }
}

/* ==========================================
   TABLETAS Y MENÚ MÓVIL
   ========================================== */

@media (max-width: 950px) {
  html {
    scroll-padding-top: 74px;
  }

  .header {
    height: 74px;
  }

  .nav-wrap {
    width: 92%;
  }

  .brand {
    gap: 10px;
  }

  .brand-emblem {
    width: 53px;
    height: 53px;
    flex-basis: 53px;
  }

  .brand::after {
    height: 36px;
    width: 1px;
  }

  .brand-name {
    font-size: 10px;
    padding-bottom: 9px;
  }

  .brand-name small {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .brand-name::after {
    width: 30px;
  }

  .nav-cta {
    display: none;
  }

  .menu-button {
    display: flex;
    width: 43px;
    height: 43px;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
  }

  .menu-button span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--deep);
    transition: transform 0.25s;
  }

  .menu-button.active span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-button.active span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    padding: 30px 6%;
    background: white;
    box-shadow: 0 20px 30px #00000018;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 16px;
  }

  .section {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image img {
    height: 490px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 23px;
  }

  .practice-layout {
    grid-template-columns: 1fr;
  }

  .practice-detail {
    min-height: 360px;
  }

  .team-grid {
    gap: 18px;
  }

  .business {
    grid-template-columns: 1fr;
  }

  .business-photo {
    min-height: 400px;
  }

  .business-content {
    padding: 65px 6%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ==========================================
   PORTADA PARA CELULARES
   ========================================== */

@media (max-width: 780px) {
  .hero.hero-signature {
    min-height: 750px;
  }

  .signature-image img {
    object-position: 62% center;
  }

  .signature-overlay {
    background: linear-gradient(
      180deg,
      rgba(15, 31, 51, 0.93),
      rgba(15, 31, 51, 0.85) 51%,
      rgba(15, 31, 51, 0.52) 100%
    );
  }

  .signature-content {
    width: 88%;
    min-height: 750px;
    padding: 60px 0 195px;
  }

  .hero.hero-signature h1 {
    max-width: 100%;
    font-size: clamp(43px, 9vw, 64px);
    line-height: 1.14;
    letter-spacing: -1px;
  }

  .signature-content > p {
    max-width: 480px;
    font-size: 14px;
  }

  .signature-inset {
    width: 112px;
    right: 7%;
    bottom: 65px;
  }

  .signature-inset img {
    height: 89px;
  }

  .signature-index {
    bottom: 20px;
    font-size: 9px;
  }
}

/* ==========================================
   CELULARES PEQUEÑOS
   ========================================== */

@media (max-width: 600px) {
  h2 {
    font-size: clamp(35px, 8.5vw, 47px);
    letter-spacing: -1px;
  }

  .brand {
    gap: 9px;
  }

  .brand-emblem {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-name {
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .brand-name small {
    font-size: 7px;
  }

  .values {
    gap: 12px;
    justify-content: center;
  }

  .values span {
    font-size: 9px;
  }

  .about-image img {
    height: 410px;
  }

  .practice-item {
    grid-template-columns: 23px 1fr 24px;
    gap: 8px;
    padding: 22px 8px;
  }

  .practice-item strong {
    font-size: 20px;
  }

  .practice-detail {
    padding: 27px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-photo {
    height: 420px;
  }

  .business-photo {
    min-height: 340px;
  }

  .business-content h2 {
    font-size: 41px;
  }

  .contact-card {
    padding: 26px;
  }

  .footer {
    padding-top: 45px;
  }

  .footer-main {
    flex-direction: column;
    gap: 20px;
  }

  .footer-brand {
    max-width: 220px;
  }

  .footer-brand img {
    width: 180px;
    height: 125px;
  }

  .footer-links {
    padding-top: 15px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .floating-contact {
    width: 47px;
    height: 47px;
    right: 15px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  .hero.hero-signature {
    min-height: 790px;
  }

  .signature-content {
    min-height: 790px;
    padding: 50px 0 155px;
  }

  .hero.hero-signature h1 {
    font-size: clamp(37px, 9.3vw, 48px);
  }

  .signature-topline {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .signature-line {
    flex-basis: 22px;
    width: 22px;
  }

  .signature-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .signature-primary,
  .signature-secondary {
    width: 100%;
  }

  /* Evita que la foto secundaria tape el texto */

  .signature-inset {
    display: none;
  }

  .signature-index span:last-child {
    display: none;
  }

  .brand {
    gap: 7px;
  }

  .brand-emblem {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-name {
    font-size: 9px;
    letter-spacing: 0;
  }

  .brand-name small {
    font-size: 6px;
  }
}

/* ==========================================
   ACCESIBILIDAD
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Puente a la biblioteca jurídica desde Inicio */
.rg-blog-invite{padding:72px 0;background:#f7f5f1}
.rg-blog-invite-inner{display:flex;justify-content:space-between;align-items:center;gap:32px}
.rg-blog-invite h2{font:400 clamp(30px,4vw,50px)/1.2 Georgia,serif;color:#14263d;margin:16px 0}
.rg-blog-invite h2 em{color:#a77e49}
.rg-blog-invite p{line-height:1.75;color:#4a5360;max-width:510px}
.rg-blog-invite-link{padding:16px 24px;background:#223b5e;color:#fff;text-decoration:none;font-weight:650;white-space:nowrap}
.rg-blog-invite-link span{color:#e0bb8b;margin-left:20px}
@media(max-width:700px){.rg-blog-invite-inner{flex-direction:column;align-items:flex-start}.rg-blog-invite-link{white-space:normal}}

/* Enlaces legales compartidos del pie. */
.rg-legal-links{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 26px;padding:22px 0;font-size:12px;line-height:1.7}.rg-legal-links a{color:inherit;text-underline-offset:4px}.rg-legal-links a:hover{text-decoration:underline}.rg-legal-links a:focus-visible{outline:2px solid #a77e49;outline-offset:5px}
