:root {
  --hero-bg: #241839;
  --hero-bg-soft: #7e54a8;
  --cream: #f5f7fb;
  --cream-strong: #ffffff;
  --surface: #edf1f9;
  --surface-alt: #e4eaf6;
  --ink: #181523;
  --ink-soft: #3a3254;
  --line: rgba(24, 21, 35, 0.14);
  --accent: #d4af37;
  --accent-soft: #f0cb57;
  --shadow: 0 24px 70px rgba(24, 21, 35, 0.18);
  --z-nav: 1200;
  --z-floating: 1400;
  --z-modal: 3000;
}

@font-face {
  font-family: "XB Niloofar";
  src: local("XB Niloofar"), local("XB Niloofar Regular");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 101%;
  scroll-behavior: smooth;
}

body {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 14%, rgba(126, 84, 168, 0.32) 0%, transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(212, 175, 55, 0.3) 0%, transparent 35%),
    radial-gradient(circle at 50% 120%, rgba(36, 24, 57, 0.22) 0%, transparent 48%),
    linear-gradient(160deg, #fcfbff 0%, #f1ecfa 36%, #e8ddf3 100%);
  line-height: 1.62;
  overflow-x: hidden;
  position: relative;
  animation: ambient-shift 16s ease-in-out infinite alternate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 320px;
  height: 320px;
  background: rgba(212, 175, 55, 0.32);
  top: -90px;
  left: -80px;
}

body::after {
  width: 360px;
  height: 360px;
  background: rgba(126, 84, 168, 0.28);
  bottom: -130px;
  right: -90px;
}

.container {
  width: min(1200px, calc(100% - 44px));
  margin: 0 auto;
}

#inicio,
#servicios,
#abogados,
#porque,
#chatbot,
#contacto {
  scroll-margin-top: 94px;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  background: linear-gradient(135deg, rgba(36, 24, 57, 0.48) 0%, rgba(126, 84, 168, 0.26) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 26px rgba(12, 8, 19, 0.22);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.top-nav.is-scrolled {
  background: linear-gradient(135deg, rgba(24, 15, 39, 0.84) 0%, rgba(82, 52, 114, 0.5) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.24);
}

.top-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.top-nav__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.top-nav__brand {
  font-family: "XB Niloofar", "Quicksand", "Segoe UI", sans-serif;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav__links {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  margin-right: auto;
}

.top-nav__link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(126, 84, 168, 0.2) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, color 0.22s ease, background-color 0.22s ease;
}

.top-nav__link:hover,
.top-nav__link:focus-visible {
  background: var(--accent);
  color: #1d1825;
  transform: translateY(-1px);
  outline: none;
}

.hero-shell {
  color: var(--cream);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(118deg, rgba(10, 7, 20, 0.95) 0%, rgba(22, 15, 40, 0.88) 28%, rgba(58, 34, 86, 0.84) 56%, rgba(108, 69, 150, 0.74) 100%),
    url("img/fondo_inicio.png") center/cover no-repeat;
}

.hero-shell::before {
  content: "";
  position: absolute;
  width: min(52vw, 640px);
  height: min(52vw, 640px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.38) 0%, rgba(212, 175, 55, 0) 68%);
  top: -210px;
  right: -120px;
  pointer-events: none;
  animation: glow-drift 9s ease-in-out infinite alternate;
}

.hero-shell::after {
  content: "";
  position: absolute;
  width: min(62vw, 820px);
  height: min(62vw, 820px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(117, 78, 165, 0.34) 0%, rgba(117, 78, 165, 0) 70%);
  bottom: -360px;
  left: -250px;
  pointer-events: none;
  animation: glow-drift 11s ease-in-out infinite alternate-reverse;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 98px 0 62px;
}

.hero__layout {
  min-height: 84vh;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 42px;
  align-items: end;
}

.hero__content {
  max-width: 760px;
  opacity: 0;
  transform: translateY(38px);
  animation: rise-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  color: rgba(231, 199, 108, 0.96);
  font-weight: 700;
}

.hero__title {
  margin-top: 18px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.2vw, 5.4rem);
  line-height: 0.96;
  font-weight: 600;
  letter-spacing: 0.008em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.34);
}

.hero__title span {
  display: inline-block;
  font-style: italic;
  color: #e4bb60;
}

.hero__subtitle {
  margin-top: 20px;
  font-size: 1.22rem;
  max-width: 660px;
  color: rgba(245, 247, 251, 0.92);
}

.hero__divider {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
}

.hero__divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 188, 90, 0.1) 0%, rgba(226, 188, 90, 0.9) 50%, rgba(226, 188, 90, 0.1) 100%);
}

.hero__divider i {
  font-style: normal;
  color: #e1b95f;
  font-size: 1.24rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #20172c;
  box-shadow: 0 18px 36px rgba(212, 175, 55, 0.45);
}

.hero__cta {
  animation: cta-pulse 2.6s ease-in-out infinite;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 590px;
  opacity: 0;
  transform: translateY(38px);
  animation: rise-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.14s forwards;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(100%, 740px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.34) 0%, rgba(212, 175, 55, 0) 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__visual-ring {
  position: absolute;
  width: min(90%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(227, 193, 102, 0.4);
  box-shadow: 0 0 0 18px rgba(227, 193, 102, 0.08), inset 0 0 32px rgba(227, 193, 102, 0.12);
}

.hero__visual-ring::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(227, 193, 102, 0.18);
}

.hero-image {
  position: relative;
  z-index: 1;
  width: min(100%, 660px);
  max-height: 560px;
  height: auto;
  border-radius: 0;
  display: block;
  object-fit: contain;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 22px 64px rgba(9, 6, 20, 0.68));
  animation: logo-float 6.8s ease-in-out infinite;
}

.hero__trustbar {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(130deg, rgba(14, 11, 26, 0.62) 0%, rgba(24, 18, 41, 0.62) 50%, rgba(50, 34, 78, 0.6) 100%);
  box-shadow: 0 24px 44px rgba(10, 7, 19, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__trustitem {
  padding: 18px 16px;
  text-align: center;
  position: relative;
}

.hero__trustitem + .hero__trustitem::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, rgba(226, 188, 90, 0) 0%, rgba(226, 188, 90, 0.46) 50%, rgba(226, 188, 90, 0) 100%);
}

.hero__trustitem strong {
  display: block;
  font-size: 0.95rem;
  color: #f2f4fa;
}

.hero__trustitem span {
  display: block;
  margin-top: 2px;
  color: #d7b56a;
  font-weight: 600;
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rise-up {
  from {
    opacity: 0;
    transform: translateY(38px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main section {
  padding: 90px 0;
}

.section-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  color: #41345d;
  margin-bottom: 14px;
  font-weight: 700;
}

.section-kicker--light {
  color: rgba(255, 255, 255, 0.8);
}

.section-title {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.1;
  color: var(--ink);
}

.section-title--left {
  max-width: 700px;
}

.intro-band {
  padding-top: 72px;
}

.intro-band__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: end;
}

.intro-band__text {
  font-size: 1.06rem;
  color: var(--ink-soft);
}

.servicios {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(239, 231, 249, 0.95) 100%);
}

.servicios--split {
  padding-top: 38px;
}

.servicios__header,
.abogados__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.servicios__subtitle,
.abogados__subtitle {
  margin-top: 12px;
  font-size: 1.05rem;
  color: rgba(24, 21, 35, 0.78);
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 26px;
  justify-content: center;
}

.servicios__grid--centered {
  justify-items: center;
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.servicio-card {
  appearance: none;
  -webkit-appearance: none;
  min-height: 184px;
  border-radius: 14px;
  border: 1px solid rgba(126, 84, 168, 0.24);
  border-bottom: 4px solid #7447b2;
  padding: 22px 20px 20px;
  width: min(100%, 320px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 246, 255, 0.92) 100%);
  box-shadow: 0 12px 28px rgba(43, 30, 67, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease;
}

.servicio-card__icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.7rem;
  line-height: 1;
  background: linear-gradient(180deg, #f8f2ff 0%, #f0e5ff 100%);
  color: #5d3889;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.servicio-card__accent {
  margin-top: 8px;
  width: 62px;
  height: 12px;
  position: relative;
}

.servicio-card__accent::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.9) 50%, rgba(212, 175, 55, 0.12) 100%);
}

.servicio-card__accent::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #d4af37;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.servicio-card:hover,
.servicio-card:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(24, 21, 35, 0.2);
  border-color: rgba(116, 71, 178, 0.42);
  outline: none;
}

.servicio-card__icon {
  transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.servicio-card:hover .servicio-card__icon,
.servicio-card:focus-visible .servicio-card__icon {
  transform: scale(1.05);
}

.servicio-card__title {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #2f2748;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.servicios__grid .servicio-card.reveal-up {
  transform: translateY(38px);
}

.servicios__grid .servicio-card.reveal-up.is-visible {
  transform: translateY(0);
}

.servicios__grid .servicio-card:nth-child(1).reveal-up {
  transition-delay: 0.02s;
}

.servicios__grid .servicio-card:nth-child(2).reveal-up {
  transition-delay: 0.1s;
}

.servicios__grid .servicio-card:nth-child(3).reveal-up {
  transition-delay: 0.18s;
}

.servicios__grid .servicio-card:nth-child(4).reveal-up {
  transition-delay: 0.26s;
}

.servicios__grid .servicio-card:nth-child(5).reveal-up {
  transition-delay: 0.34s;
}

.servicios__grid .servicio-card:nth-child(6).reveal-up {
  transition-delay: 0.42s;
}

.abogados {
  background: linear-gradient(180deg, rgba(223, 210, 240, 0.28) 0%, rgba(232, 238, 249, 0.68) 62%, rgba(236, 242, 251, 0.78) 100%);
}

.abogados .container {
  width: min(1320px, calc(100% - 88px));
}

.abogados__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 30px;
}

.abogado-card {
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.64) 0%, rgba(230, 237, 250, 0.72) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 46px rgba(24, 21, 35, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.abogado-card:hover,
.abogado-card:focus-visible {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(24, 21, 35, 0.2);
  outline: none;
}

.abogado-card__image {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  transition: transform 0.44s cubic-bezier(0.16, 1, 0.3, 1);
}

.abogado-card:hover .abogado-card__image,
.abogado-card:focus-visible .abogado-card__image {
  transform: scale(1.05);
}

.abogado-card__name {
  margin: 20px 22px 0;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 700;
}

.abogado-card__specialty,
.abogado-card__experience,
.abogado-card__meta {
  margin: 10px 22px 22px;
  color: #3f3260;
  font-size: 1rem;
}

.trust-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(236, 242, 251, 0.78) 0%, rgba(243, 247, 253, 0.9) 48%, rgba(247, 249, 255, 0.96) 100%);
  padding-top: 128px;
  padding-bottom: 128px;
}

.trust-section::before {
  content: "";
  position: absolute;
  inset: -24% -18% -14% -12%;
  background: radial-gradient(circle at 14% 24%, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0) 44%),
    radial-gradient(circle at 84% 28%, rgba(98, 111, 185, 0.2) 0%, rgba(98, 111, 185, 0) 42%);
  pointer-events: none;
}

.trust-section .container {
  position: relative;
  z-index: 1;
}

.trust-section__header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.trust-item {
  position: relative;
  min-height: 220px;
  padding: 28px 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(31, 24, 48, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 246, 252, 0.92) 100%);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(20, 15, 31, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.trust-item[data-trust="quienes-somos"] {
  background: linear-gradient(155deg, rgba(60, 44, 92, 0.94) 0%, rgba(97, 111, 185, 0.92) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.trust-item[data-trust="objetivos"] {
  background: linear-gradient(150deg, rgba(245, 250, 255, 0.98) 0%, rgba(222, 238, 252, 0.96) 100%);
}

.trust-item[data-trust="mision"] {
  background: linear-gradient(150deg, rgba(255, 248, 232, 0.98) 0%, rgba(255, 237, 210, 0.96) 100%);
}

.trust-item[data-trust="vision"] {
  background: linear-gradient(150deg, rgba(236, 250, 245, 0.98) 0%, rgba(210, 238, 229, 0.96) 100%);
}

.trust-item:hover,
.trust-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 38px rgba(20, 15, 31, 0.16);
  border-color: rgba(31, 24, 48, 0.2);
  outline: none;
}

.trust-item strong {
  display: block;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: 1.38rem;
  color: #1f1830;
}

.trust-item[data-trust="quienes-somos"] strong,
.trust-item[data-trust="quienes-somos"] p,
.trust-item[data-trust="quienes-somos"] .trust-item__cta {
  color: #fff;
}

.trust-item p {
  color: rgba(31, 24, 48, 0.86);
  line-height: 1.6;
  margin: 0;
}

.trust-item__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.96rem;
  color: #322659;
}

.trust-item__cta::after {
  content: "→";
  font-size: 1.05rem;
}

.chat-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(238, 194, 102, 0.28) 0%, transparent 34%),
    radial-gradient(circle at 12% 86%, rgba(126, 84, 168, 0.42) 0%, transparent 36%),
    linear-gradient(118deg, #0f102a 0%, #1b1640 38%, #2a1f56 72%, #4a2d68 100%);
  padding-top: 106px;
  padding-bottom: 116px;
}

.chat-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}

.chat-section .container {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 64px));
}

.chat-section__grid {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 34px;
  align-items: stretch;
}

.chat-section__content {
  padding: 30px 28px;
  border-radius: 28px;
  background: linear-gradient(150deg, rgba(9, 12, 39, 0.72) 0%, rgba(22, 18, 58, 0.62) 100%);
  color: var(--cream-strong);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 34px 72px rgba(8, 8, 22, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.chat-section__logo {
  width: 210px;
  height: auto;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 28px rgba(4, 4, 16, 0.45));
}

.chat-section__content .section-kicker {
  color: rgba(233, 197, 108, 0.96);
}

.chat-section__content .section-title {
  color: #f5f7fc;
  line-height: 1.06;
}

.chat-section__text {
  margin-top: 14px;
  color: rgba(236, 241, 252, 0.9);
  max-width: 560px;
}

.chat-section__points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.chat-section .point-card {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-section .point-card strong {
  display: block;
  margin-bottom: 3px;
}

.chat-section .point-card span {
  color: rgba(245, 247, 251, 0.82);
  font-size: 0.95rem;
}

.chat-section__contact-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-chip {
  text-decoration: none;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.06) 100%);
  color: #fff;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, background-color 0.22s ease;
}

.contact-chip strong {
  display: block;
  font-size: 0.95rem;
}

.contact-chip span {
  display: block;
  margin-top: 2px;
  color: rgba(240, 245, 255, 0.86);
  font-size: 0.86rem;
}

.contact-chip:hover,
.contact-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(231, 194, 104, 0.62);
  background: linear-gradient(140deg, rgba(231, 194, 104, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%);
  outline: none;
}

.chat-embed {
  min-height: 700px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: 0 34px 80px rgba(11, 9, 27, 0.46);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 238, 250, 0.96) 100%);
  position: relative;
}

.chat-embed::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 94% 6%, rgba(212, 175, 55, 0.18) 0%, transparent 30%);
}

.chat-embed__frame {
  width: 100%;
  min-height: 700px;
  height: 100%;
  border: 0;
  position: relative;
  z-index: 1;
}

.partners {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.94) 0%, rgba(236, 241, 251, 0.9) 100%);
  padding-top: 84px;
  padding-bottom: 94px;
}

.partners__header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 34px;
}

.partners__marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-top: 1px solid rgba(126, 84, 168, 0.16);
  border-bottom: 1px solid rgba(126, 84, 168, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 238, 252, 0.9) 100%);
  box-shadow: 0 18px 40px rgba(24, 21, 35, 0.12);
  padding: 30px 0;
}

.partners__marquee::before,
.partners__marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 160px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners__marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(246, 249, 255, 0.98) 0%, rgba(246, 249, 255, 0) 100%);
}

.partners__marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(246, 249, 255, 0.98) 0%, rgba(246, 249, 255, 0) 100%);
}

.partners__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: partners-scroll 34s linear infinite;
}

.partners__logo {
  width: 230px;
  height: 130px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(36, 24, 57, 0.1);
  box-shadow: 0 10px 20px rgba(24, 21, 35, 0.1);
  padding: 12px 18px;
  flex: 0 0 auto;
}

@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.footer {
  padding: 44px 0 26px;
  background: #171325;
  color: rgba(245, 247, 251, 0.92);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.footer__section h4 {
  margin-bottom: 10px;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: 1.1rem;
}

.footer__section p,
.footer__section a {
  color: rgba(245, 247, 251, 0.72);
  text-decoration: none;
}

.footer__section a:hover,
.footer__section a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.footer__section ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-socials {
  gap: 10px;
}

.footer-socials__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-socials__link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.footer-socials__link:hover,
.footer-socials__link:focus-visible {
  transform: translateX(2px);
}

.footer__bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 247, 251, 0.2);
  color: rgba(245, 247, 251, 0.62);
}

.chat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-modal.active {
  display: flex;
}

.chat-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 16, 0.76);
  backdrop-filter: blur(5px);
}

.chat-modal__content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  height: min(88vh, 860px);
  background: #f7f9fd;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(126, 84, 168, 0.2);
  box-shadow: 0 30px 84px rgba(15, 10, 23, 0.42);
  animation: modal-enter 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(126, 84, 168, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #221938;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.chat-modal__close:hover,
.chat-modal__close:focus-visible {
  transform: scale(1.04);
  background: #fff;
  outline: none;
}

.chat-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.services-modal {
  align-items: flex-start;
  padding-top: 24px;
  padding-bottom: 24px;
}

.services-modal .chat-modal__content {
  width: min(100%, 760px);
  height: auto;
  max-height: calc(100vh - 48px);
}

.services-modal__content {
  height: auto;
  max-height: 88vh;
}

.services-modal__inner {
  padding: 54px 28px 26px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.services-modal__title {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--ink);
}

.services-modal__body {
  margin-top: 16px;
}

.services-modal__body p {
  color: rgba(24, 21, 35, 0.86);
}

.services-modal__intro {
  margin-bottom: 16px;
  color: rgba(24, 21, 35, 0.82);
}

.services-modal__list {
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.services-modal__section {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 243, 251, 0.96) 100%);
  border: 1px solid rgba(126, 84, 168, 0.14);
  box-shadow: 0 14px 26px rgba(24, 21, 35, 0.08);
}

.services-modal__section + .services-modal__section {
  margin-top: 14px;
}

.services-modal__section-title {
  display: block;
  margin-bottom: 8px;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  color: var(--ink);
}

.services-modal__section-note,
.services-modal__section-label {
  margin-top: 10px;
  font-weight: 700;
  color: #3b2f5a;
}

.services-modal__bullet-list {
  margin-top: 10px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: rgba(24, 21, 35, 0.88);
}

.services-modal__list li strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.services-modal__list li span {
  color: rgba(24, 21, 35, 0.88);
}

.trust-modal .chat-modal__content {
  height: auto;
}

.trust-modal__content {
  width: min(100%, 840px);
  max-height: min(92vh, 860px);
  padding: 0;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfdff 0%, #f3f7ff 100%);
  display: flex;
  flex-direction: column;
}

.trust-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  z-index: 2;
  font-size: 1.14rem;
}

.trust-modal__close:hover,
.trust-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.trust-modal__header {
  position: relative;
  padding: 56px 52px 38px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.trust-modal__icon {
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.trust-modal__icon svg {
  width: 100%;
  height: 100%;
}

.trust-modal__title {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.4vw, 2.55rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin: 0;
}

.trust-modal__body {
  padding: 32px 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.trust-modal__body p {
  color: rgba(24, 21, 35, 0.88);
  font-size: clamp(1.06rem, 1.8vw, 1.2rem);
  line-height: 1.78;
  margin: 0;
}

.lawyer-modal .chat-modal__content {
  width: min(100%, 920px);
  height: auto;
  max-height: none;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.lawyer-modal__content {
  width: min(100%, 920px);
  height: auto;
  max-height: min(86vh, 700px);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.lawyer-modal__inner {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 84px rgba(15, 10, 23, 0.34);
}

.lawyer-modal__info {
  border-right: 1px solid rgba(126, 84, 168, 0.2);
  background: linear-gradient(150deg, #eef2fb 0%, #dde5f6 100%);
  padding: 48px 40px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.lawyer-modal__info::before,
.lawyer-modal__info::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

.lawyer-modal__info::before {
  top: 12px;
  left: 14px;
  border-top: 4px solid rgba(212, 175, 55, 0.86);
  border-left: 4px solid rgba(212, 175, 55, 0.86);
  border-top-left-radius: 24px;
  transform: rotate(-2deg);
}

.lawyer-modal__info::after {
  bottom: 12px;
  right: 14px;
  border-bottom: 4px solid rgba(58, 44, 77, 0.72);
  border-right: 4px solid rgba(58, 44, 77, 0.72);
  border-bottom-right-radius: 24px;
  transform: rotate(2deg);
}

.lawyer-modal__info > * {
  position: relative;
  z-index: 1;
}

.lawyer-modal__name {
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  color: var(--ink);
}

.lawyer-modal__specialty {
  margin-top: 12px;
  font-size: 1.06rem;
  color: #3b2f5a;
  font-weight: 700;
}

.lawyer-modal__credentials {
  margin-top: 12px;
  font-size: 1.02rem;
  color: #3d325d;
}

.lawyer-modal__media {
  overflow: hidden;
}

.lawyer-modal__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.floating-chat-btn,
.floating-accessibility-btn {
  position: fixed;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: var(--z-floating);
  isolation: isolate;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat-btn {
  right: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, #2f2148 0%, #7e54a8 100%);
  color: #f8f9fc;
  box-shadow: 0 20px 42px rgba(36, 24, 57, 0.38);
}

.floating-accessibility-btn {
  left: 24px;
  bottom: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
  color: #20172d;
  box-shadow: 0 20px 42px rgba(36, 24, 57, 0.34);
}

@keyframes ambient-shift {
  from {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0% 0%;
  }
  to {
    background-position: 6% 3%, 94% 2%, 48% 98%, 0% 0%;
  }
}

@keyframes glow-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-8px, 12px, 0) scale(1.08);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 18px 36px rgba(212, 175, 55, 0.38);
  }
  50% {
    box-shadow: 0 22px 46px rgba(212, 175, 55, 0.58);
  }
}

.floating-chat-btn::after,
.floating-accessibility-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px) scale(0.96);
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: #2f2248;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 22px rgba(24, 21, 35, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-chat-btn::before,
.floating-accessibility-btn::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, 8px) rotate(45deg);
  background: #2f2248;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-chat-btn:hover,
.floating-chat-btn:focus-visible,
.floating-accessibility-btn:hover,
.floating-accessibility-btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  outline: none;
}

.floating-chat-btn:hover::after,
.floating-chat-btn:focus-visible::after,
.floating-accessibility-btn:hover::after,
.floating-accessibility-btn:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.floating-chat-btn:hover::before,
.floating-chat-btn:focus-visible::before,
.floating-accessibility-btn:hover::before,
.floating-accessibility-btn:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.accessibility-panel {
  position: fixed;
  left: 24px;
  bottom: 96px;
  width: min(290px, calc(100vw - 36px));
  border-radius: 16px;
  border: 1px solid rgba(126, 84, 168, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 40px rgba(24, 21, 35, 0.24);
  padding: 14px;
  z-index: calc(var(--z-floating) + 1);
}

.accessibility-panel__title {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  font-family: "Quicksand", "Segoe UI", sans-serif;
}

.accessibility-panel__actions {
  margin-top: 11px;
  display: grid;
  gap: 8px;
}

.accessibility-option {
  border: 1px solid rgba(24, 21, 35, 0.16);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.accessibility-option:hover,
.accessibility-option:focus-visible {
  border-color: rgba(126, 84, 168, 0.46);
  outline: none;
}

.accessibility-option[aria-pressed="true"] {
  border-color: #7e54a8;
  background: rgba(126, 84, 168, 0.14);
  font-weight: 700;
}

.accessibility-option--reset {
  border-color: rgba(36, 24, 57, 0.34);
  background: rgba(36, 24, 57, 0.08);
}

html.a11y-large-text {
  font-size: 120%;
}

body.a11y-high-contrast {
  --hero-bg: #000;
  --hero-bg-soft: #000;
  --cream: #fff;
  --cream-strong: #fff;
  --surface: #fff;
  --surface-alt: #fff;
  --ink: #000;
  --ink-soft: #000;
  --line: rgba(0, 0, 0, 0.72);
  background: #fff;
}

body.a11y-high-contrast .top-nav,
body.a11y-high-contrast .chat-section__content,
body.a11y-high-contrast .hero-shell {
  background: #000;
}

body.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

@media (max-width: 1080px) {
  .hero__layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 26px;
  }

  .hero__visual {
    justify-content: center;
    min-height: 430px;
  }

  .hero-image {
    width: min(100%, 620px);
    max-height: 510px;
  }

  .hero__trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-section__grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .chat-section {
    padding-top: 88px;
    padding-bottom: 94px;
  }

  .chat-section__contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .servicios__grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .abogados__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .lawyer-modal__inner {
    grid-template-columns: 1fr;
  }

  .lawyer-modal__image {
    min-height: 320px;
  }

  .chat-embed,
  .chat-embed__frame {
    min-height: 580px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 26px, 1200px);
  }

  .abogados .container {
    width: min(100% - 30px, 1320px);
  }

  .top-nav__inner {
    padding: 12px 0;
    gap: 10px;
  }

  .top-nav__links {
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .top-nav__link {
    white-space: nowrap;
  }

  .hero {
    padding: 78px 0 44px;
  }

  .hero__kicker {
    letter-spacing: 0.1em;
    font-size: 0.82rem;
  }

  .hero__title {
    font-size: clamp(2.6rem, 13vw, 4.1rem);
  }

  .hero__subtitle {
    font-size: 1.02rem;
  }

  .hero__divider {
    max-width: 250px;
  }

  .hero__trustbar {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }

  .hero__trustitem {
    padding: 14px;
  }

  .hero__trustitem + .hero__trustitem::before {
    left: 12%;
    top: 0;
    width: 76%;
    height: 1px;
    background: linear-gradient(90deg, rgba(226, 188, 90, 0) 0%, rgba(226, 188, 90, 0.46) 50%, rgba(226, 188, 90, 0) 100%);
  }

  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    width: min(100%, 470px);
    max-height: 390px;
  }

  main section {
    padding: 72px 0;
  }

  .servicio-card {
    min-height: 168px;
    padding: 18px 16px 18px;
    width: 100%;
    max-width: 440px;
  }

  .servicio-card__icon {
    width: 72px;
    height: 72px;
    font-size: 2.3rem;
  }

  .servicio-card__title {
    font-size: 0.98rem;
  }

  .abogados__grid,
  .footer__content {
    grid-template-columns: 1fr;
  }

  .abogado-card__image {
    height: 380px;
  }

  .chat-section__content,
  .trust-item {
    padding: 22px;
  }

  .chat-section .container {
    width: min(100% - 26px, 1320px);
  }

  .chat-section__logo {
    width: 170px;
    margin-bottom: 14px;
  }

  .chat-section__contact-grid {
    grid-template-columns: 1fr;
  }

  .partners {
    padding-top: 66px;
    padding-bottom: 76px;
  }

  .partners__marquee::before,
  .partners__marquee::after {
    width: 64px;
  }

  .partners__logo {
    width: 170px;
    height: 98px;
    padding: 9px 12px;
  }

  .trust-section {
    padding-top: 98px;
    padding-bottom: 104px;
  }

  .services-modal__inner {
    padding: 52px 18px 18px;
  }

  .trust-modal__header {
    padding: 48px 22px 28px;
  }

  .trust-modal__body {
    padding: 22px 22px 30px;
  }

  .floating-chat-btn {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .floating-accessibility-btn {
    left: auto;
    right: 84px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .accessibility-panel {
    left: 14px;
    right: 14px;
    width: auto;
    bottom: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .partners__track {
    transform: none;
  }
}
