:root {
  --blue: #123b75;
  --blue-deep: #09244a;
  --gold: #c9a24e;
  --gold-soft: #f4ead2;
  --ink: #101828;
  --muted: #667085;
  --line: #e6ebf2;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --shadow: 0 24px 70px rgba(18, 59, 117, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 10px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(230, 235, 242, 0.82);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.07);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--blue);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: white;
  font-weight: 800;
}

.brand-name {
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 7px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--blue);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
}

.hero {
  min-height: auto;
  display: grid;
  align-items: start;
  padding: 106px 0 18px;
  background:
    linear-gradient(90deg, rgba(247, 249, 252, 0.96) 0%, rgba(255, 255, 255, 0.76) 58%, rgba(244, 234, 210, 0.42) 100%),
    url("data:image/svg+xml,%3Csvg width='1600' height='1000' viewBox='0 0 1600 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1600' height='1000' fill='%23f7f9fc'/%3E%3Cpath d='M1015 0h585v1000H859c77-145 116-301 116-469C975 335 988 158 1015 0Z' fill='%23eef3f8'/%3E%3Cpath d='M1157 0h443v1000h-531c48-121 75-256 80-405 7-204 9-405 8-595Z' fill='%23e6edf5'/%3E%3Cpath d='M0 836c176-50 356-71 538-64 171 7 331 39 480 96v132H0Z' fill='%23ffffff'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-inner,
.section,
.contact-inner,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.58fr);
  gap: clamp(24px, 3.6vw, 52px);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 830px;
  margin-bottom: 22px;
  color: var(--blue-deep);
  font-size: clamp(44px, 5.45vw, 72px);
  line-height: 1.13;
  letter-spacing: 0;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
  text-wrap: nowrap;
}

h2 {
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy p,
.section-heading p,
.contact-inner p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.hero-signature {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-signature strong {
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
}

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

.hero-indicators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 720px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(230, 235, 242, 0.9);
}

.hero-indicator {
  position: relative;
  padding: 0 20px;
}

.hero-indicator:first-child {
  padding-left: 0;
}

.hero-indicator + .hero-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 2px;
  height: 32px;
  background: var(--gold);
}

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

.hero-indicator strong {
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-indicator span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 36px rgba(18, 59, 117, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue);
}

.button.light {
  background: white;
  color: var(--blue);
}

.hero-visual {
  display: flex;
  position: relative;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(620px, calc(100vh - 250px), 660px);
  align-self: stretch;
  overflow: visible;
  padding-top: 12px;
  background: transparent;
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: clamp(270px, 44%, 360px);
  width: 54%;
  height: 42%;
  background: radial-gradient(ellipse at center, rgba(9, 36, 74, 0.11), rgba(9, 36, 74, 0) 68%);
  filter: blur(30px);
  opacity: 0.42;
  transform: translateX(calc(-40% + 58px));
}

.portrait-placeholder {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  width: auto;
  height: clamp(560px, 66vh, 620px);
  margin-bottom: -54px;
  margin-left: 58px;
  object-fit: cover;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  background: #faf8f5;
  box-shadow: none;
  filter: none;
  transform: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 18%, black 36%, black 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, black 5%, black 94%, rgba(0, 0, 0, 0.84) 100%);
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 18%, black 36%, black 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, black 5%, black 94%, rgba(0, 0, 0, 0.84) 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.intro-band {
  border-top: 1px solid var(--line);
  padding-top: clamp(78px, 8vw, 112px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

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

.section-heading.centered .eyebrow {
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(42px, 6vw, 86px);
}

.timeline-item,
.faq-item,
.metric-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.feature-card {
  min-height: 0;
  padding: 0;
}

.card-index {
  display: inline-flex;
  margin-bottom: 34px;
  color: rgba(18, 59, 117, 0.16);
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 800;
  line-height: 0.9;
}

.feature-card h3 {
  max-width: 310px;
  margin-bottom: 18px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.12;
}

.feature-card p,
.timeline-item p,
.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-card p {
  max-width: 350px;
  font-size: 16px;
  line-height: 1.7;
}

.results-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  background: #f8fafc;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  margin-top: 10px;
}

.metric-tile {
  min-height: 0;
  padding: 0 0 0 22px;
  border: 0;
  border-left: 2px solid rgba(201, 162, 78, 0.62);
  border-radius: 0;
  background: transparent;
}

.metric-tile strong {
  display: block;
  color: var(--blue-deep);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.metric-tile span {
  display: block;
  margin-top: 16px;
  color: var(--blue-deep);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.metric-tile small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.highlight-block {
  margin-top: clamp(56px, 7vw, 86px);
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(18, 59, 117, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 246, 250, 0.92));
}

.highlight-label {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.highlight-block h3 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.12;
}

.highlight-block p {
  max-width: 880px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(201, 162, 78, 0), rgba(201, 162, 78, 0.58), rgba(201, 162, 78, 0));
}

.timeline-item {
  position: relative;
  padding: 4px 0 54px 82px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 7px;
  width: 18px;
  height: 18px;
  border: 4px solid white;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 78, 0.7);
}

.timeline-item span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item h3 {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.timeline-item p {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.72;
}

.method-section {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  background: white;
  border-top: 1px solid var(--line);
}

.method-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
}

.method-list {
  display: grid;
  gap: 0;
}

.method-list div {
  padding: 0 0 34px;
  border-bottom: 1px solid var(--line);
}

.method-list div + div {
  padding-top: 34px;
}

.method-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.method-list h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
}

.method-list p {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.gallery-item {
  position: relative;
  height: clamp(190px, 18vw, 230px);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 117, 0.07);
  border-radius: 16px;
  background: #fafafa;
  box-shadow: 0 12px 28px rgba(9, 36, 74, 0.07);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(9, 36, 74, 0.1);
}

.gallery-item::before {
  display: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item.large {
  grid-column: auto;
  grid-row: auto;
}

.gallery-item-featured {
  grid-column: auto;
  grid-row: auto;
}

.gallery-item-featured img {
  object-fit: contain;
  background: #fafafa;
}

.gallery-item.tall {
  grid-row: auto;
}

.gallery-photo-directorio {
  object-position: center center;
}

.gallery-photo-laboratorio {
  object-position: 58% center;
}

.gallery-photo-puertas {
  object-position: 52% 34%;
}

.gallery-photo-sw50 {
  object-position: center 28%;
}

.gallery-photo-gobierno {
  object-position: 56% 42%;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  padding: 0 24px;
  border: 1px solid rgba(18, 59, 117, 0.08);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 12px 28px rgba(9, 36, 74, 0.05);
}

.faq-item summary {
  cursor: pointer;
  padding: 22px 0;
  color: var(--blue-deep);
  font-weight: 800;
}

.faq-item summary::marker {
  color: var(--gold);
}

.faq-item p {
  padding-bottom: 22px;
}

.faq-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-left: 6px;
  padding: 0 12px;
  border: 1px solid rgba(18, 59, 117, 0.12);
  border-radius: 7px;
  color: var(--blue);
  font-weight: 800;
  background: #f8fafc;
}

.contact-section {
  padding: clamp(78px, 10vw, 130px) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.contact-inner {
  max-width: 870px;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(18, 59, 117, 0.08);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 46px rgba(9, 36, 74, 0.08);
}

.contact-inner h2,
.contact-inner p {
  color: var(--blue-deep);
}

.contact-inner p {
  color: var(--muted);
}

.contact-inner .button {
  margin-top: 24px;
}

.contact-email {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(100vw - 28px, 720px);
  }

  .site-header {
    margin-top: 8px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero {
    min-height: auto;
    padding: 84px 0 16px;
  }

  .hero-inner,
  .split-layout,
  .method-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    align-self: auto;
    min-height: 520px;
    padding-top: 22px;
  }

  .portrait-placeholder {
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: 520px;
    margin-bottom: -52px;
    margin-left: 40px;
    transform: none;
  }

  .hero-indicators {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-indicator,
  .hero-indicator:first-child {
    padding: 0 0 0 16px;
  }

  .hero-indicator::before,
  .hero-indicator + .hero-indicator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 2px;
    height: calc(100% - 4px);
    background: var(--gold);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .feature-card {
    min-height: 0;
  }

  .card-index {
    margin-bottom: 18px;
  }

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

  .gallery-item,
  .gallery-item-featured {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: clamp(220px, 62vw, 320px);
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100vw - 24px);
  }

  .brand-name {
    display: none;
  }

  h1 {
    font-size: clamp(38px, 10.6vw, 52px);
    line-height: 1.14;
  }

  .hero-title-line {
    white-space: normal;
  }

  h2 {
    font-size: clamp(31px, 11vw, 42px);
  }

  .hero-copy p,
  .section-heading p,
  .contact-inner p {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 440px;
    padding-top: 28px;
  }

  .portrait-placeholder {
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: 430px;
    margin-bottom: -42px;
    margin-left: 28px;
    transform: none;
  }

  .metric-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.large,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
