:root {
  --navy: #07123a;
  --navy-2: #0c1c53;
  --ink: #0d1639;
  --silver: #c6c9d1;
  --silver-2: #eceef4;
  --white: #ffffff;
  --soft: #f7f8fb;
  --line: rgba(198, 201, 209, 0.34);
  --shadow: 0 24px 80px rgba(7, 18, 58, 0.18);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

.section-pad {
  width: min(var(--max), calc(100% - 38px));
  margin: 0 auto;
  padding: 90px 0;
}

.site-header {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 84% 18%, rgba(198, 201, 209, 0.22), transparent 24%),
    radial-gradient(circle at 13% 72%, rgba(255, 255, 255, 0.10), transparent 28%),
    linear-gradient(135deg, #050b25 0%, var(--navy) 45%, var(--navy-2) 100%);
  color: var(--white);
  overflow: hidden;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  pointer-events: none;
}

.site-header::before {
  width: 680px;
  height: 680px;
  right: -220px;
  top: 120px;
}

.site-header::after {
  width: 420px;
  height: 420px;
  left: -130px;
  bottom: -100px;
}

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  width: min(var(--max), calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  background: rgba(7, 18, 58, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  border-color: rgba(7, 18, 58, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: var(--navy);
}

.navbar.scrolled .brand-logo {
  border-color: rgba(7, 18, 58, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.brand-text strong {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--silver);
  font-size: 0.74rem;
}

.navbar.scrolled .brand-text small {
  color: #596070;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 11px 14px;
  border-radius: 999px;
  color: inherit;
  font-size: 0.92rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.13);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  background: rgba(7, 18, 58, 0.08);
}

.nav-links .nav-cta {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.navbar.scrolled .nav-links .nav-cta {
  background: var(--navy);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
  transition: 0.25s ease;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 60px;
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 80px;
}

.hero-bg-mark {
  position: absolute;
  left: 0;
  bottom: 26px;
  font-size: clamp(5rem, 19vw, 17rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -0.08em;
  pointer-events: none;
}

.eyebrow {
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 8vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin-bottom: 28px;
}

.hero-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.38rem);
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero-tags span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.hero-actions,
.pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(255, 255, 255, 0.16);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.logo-orbit {
  position: absolute;
  width: min(92vw, 455px);
  height: min(92vw, 455px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulseGlow 4.5s ease-in-out infinite;
}

.logo-orbit::before,
.logo-orbit::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.logo-orbit::after {
  inset: 54px;
  border-style: solid;
  opacity: 0.4;
}

.hero-logo {
  position: relative;
  z-index: 2;
  width: min(82vw, 360px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 95px rgba(0, 0, 0, 0.42);
}

.hero-card {
  position: absolute;
  right: 0;
  bottom: 20px;
  z-index: 3;
  width: min(92%, 355px);
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.hero-card img {
  height: 92px;
  width: 90px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -50px;
  padding-top: 0;
  padding-bottom: 50px;
  position: relative;
  z-index: 5;
}

.info-tile {
  padding: 30px;
  min-height: 170px;
  border: 1px solid rgba(7, 18, 58, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.tile-number {
  display: block;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin-bottom: 12px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.coverage h2,
.contact h2 {
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: var(--navy);
}

.section-intro {
  margin-top: 15px;
  color: #596070;
  font-size: 1.05rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.profile-card {
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)),
    var(--navy);
  box-shadow: var(--shadow);
}

.profile-card p + p {
  margin-top: 20px;
}

.image-panel,
.matter-card,
.trajectory-card,
.pdf-viewer article {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7, 18, 58, 0.1);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 370px;
  object-fit: cover;
}

.credentials {
  background:
    radial-gradient(circle at 18% 0%, rgba(7, 18, 58, 0.08), transparent 28%),
    linear-gradient(180deg, var(--soft), #fff);
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.credential-card {
  position: relative;
  min-height: 305px;
  padding: 28px;
  border: 1px solid rgba(7, 18, 58, 0.08);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(7, 18, 58, 0.08);
  overflow: hidden;
}

.credential-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(7, 18, 58, 0.08);
}

.credential-label {
  display: inline-flex;
  padding: 8px 12px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
}

.credential-card h3 {
  font-size: 1.2rem;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 18px;
}

.credential-card p {
  color: #596070;
}

.services {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(145deg, #050b25 0%, var(--navy) 100%);
  width: 100%;
  max-width: none;
  padding-left: max(19px, calc((100vw - var(--max)) / 2));
  padding-right: max(19px, calc((100vw - var(--max)) / 2));
}

.services .section-heading h2 {
  color: var(--white);
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 24px;
}

.services-list {
  display: grid;
  gap: 12px;
}

.services-list article {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.services-list article:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.1);
}

.services-list span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  font-weight: 900;
}

.services-list h3 {
  font-size: clamp(1.2rem, 3vw, 2.3rem);
  line-height: 1;
}

.matter-card {
  padding: 30px;
  color: var(--navy);
}

.matter-card h3 {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.matter-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin-bottom: 24px;
}

.matter-card li {
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--silver-2);
  font-weight: 800;
}

.matter-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border: 1px solid rgba(7, 18, 58, 0.12);
  border-radius: 22px;
}

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

.trajectory-card {
  display: grid;
  grid-template-rows: 245px auto;
}

.trajectory-card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-bottom: 1px solid rgba(7, 18, 58, 0.08);
}

.trajectory-card div {
  padding: 26px;
}

.trajectory-card h3 {
  color: var(--navy);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.coverage {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
}

.coverage-content {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.coverage-points {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.coverage-points div {
  padding: 18px;
  border: 1px solid rgba(7, 18, 58, 0.08);
  border-radius: 20px;
  background: var(--soft);
}

.coverage-points strong,
.coverage-points span {
  display: block;
}

.coverage-points strong {
  color: var(--navy);
}

.coverage-points span {
  color: #596070;
}

.coverage-images {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: 230px 230px;
  gap: 16px;
}

.coverage-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(7, 18, 58, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(7, 18, 58, 0.12);
}

.coverage-images img:first-child {
  grid-row: span 2;
}

.gallery {
  width: 100%;
  max-width: none;
  padding-left: max(19px, calc((100vw - var(--max)) / 2));
  padding-right: max(19px, calc((100vw - var(--max)) / 2));
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  border: 1px solid rgba(7, 18, 58, 0.1);
  border-radius: var(--radius-xl);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: brightness(1.04);
}

.constancy {
  color: var(--white);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(145deg, var(--navy) 0%, #050b25 100%);
  width: 100%;
  max-width: none;
  padding-left: max(19px, calc((100vw - var(--max)) / 2));
  padding-right: max(19px, calc((100vw - var(--max)) / 2));
}

.constancy .section-heading h2 {
  color: var(--white);
}

.constancy .section-intro {
  color: rgba(255, 255, 255, 0.72);
}

.constancy .btn-primary {
  background: var(--white);
}

.pdf-actions {
  margin-bottom: 26px;
}

.pdf-viewer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pdf-viewer article {
  background: #fff;
  padding: 12px;
}

.pdf-viewer img {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 6vw, 58px);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent),
    var(--navy);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.contact-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.contact-links {
  display: grid;
  gap: 12px;
  min-width: min(100%, 330px);
}

.contact-links a {
  display: block;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  padding: 42px 19px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  background: #04091e;
}

.site-footer img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer strong {
  color: var(--white);
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 22, 0.86);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.image-modal.open {
  opacity: 1;
  visibility: visible;
}

.image-modal img {
  max-width: min(100%, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* El contenido queda visible aun si el navegador bloquea JavaScript.
   La animación solo se activa cuando main.js agrega la clase .js al documento. */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 1040px) {
  .hero,
  .profile-grid,
  .services-layout,
  .coverage,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  .hero-visual {
    min-height: 475px;
  }

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

  .contact-card {
    text-align: center;
  }
}

@media (max-width: 860px) {
  .navbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand-text strong {
    font-size: 0.86rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .nav-toggle {
    display: block;
    color: var(--white);
  }

  .navbar.scrolled .nav-toggle {
    color: var(--navy);
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .quick-info,
  .credential-grid,
  .trajectory-grid,
  .gallery-grid,
  .pdf-viewer {
    grid-template-columns: 1fr;
  }

  .quick-info {
    margin-top: 0;
    padding-top: 50px;
  }

  .coverage-images {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .coverage-images img:first-child {
    grid-row: auto;
  }

  .coverage-images img,
  .gallery-item img {
    height: auto;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .section-pad {
    width: min(100% - 26px, var(--max));
    padding: 66px 0;
  }

  .hero {
    padding-top: 132px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 16vw, 4.4rem);
  }

  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: -20px;
  }

  .matter-card ul {
    grid-template-columns: 1fr;
  }

  .info-tile,
  .profile-card,
  .coverage-content,
  .contact-card {
    padding: 24px;
    border-radius: 24px;
  }

  .credential-card {
    min-height: auto;
  }
}
