:root {
  --green: #0f3f36;
  --green-soft: #e8f2ef;
  --gold: #e4b04a;
  --ink: #17201d;
  --muted: #65706c;
  --line: #e5e9e7;
  --surface: #ffffff;
  --soft: #f6f8f7;
  --shadow: 0 20px 50px rgba(18, 32, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-top: 7px solid var(--green);
  box-shadow: 0 8px 28px rgba(15, 63, 54, 0.1);
  backdrop-filter: blur(14px);
  transition: min-height 220ms ease, padding 220ms ease, box-shadow 220ms ease;
}

.site-header.is-compact {
  min-height: 64px;
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 0 10px 26px rgba(15, 63, 54, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: clamp(94px, 8vw, 126px);
  height: auto;
  transition: width 220ms ease;
}

.site-header.is-compact .brand img {
  width: clamp(72px, 6vw, 92px);
}

.main-nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
}

.main-nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  padding: 10px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green);
  border-bottom-color: var(--gold);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #0a1713;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 17, 0.86), rgba(8, 20, 17, 0.58)),
    url("../img/hero-fondo.png") center / cover;
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  width: min(1100px, calc(100% - 32px));
  padding-top: 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.identity-grid h2,
.alliances-section h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 82px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: clamp(20px, 2.3vw, 32px);
  line-height: 1.35;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  color: #10251f;
  background: var(--gold);
  box-shadow: var(--shadow);
}

.button.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.strengths-section,
.gallery-section {
  padding: 92px 0;
  background: var(--soft);
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.identity-grid p,
.alliances-section p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

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

.strengths-grid article {
  min-height: 300px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 32, 28, 0.08);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(15, 63, 54, 0.16);
  border-radius: 50%;
}

.icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.strengths-grid h3 {
  margin: 24px 0 12px;
  font-size: 23px;
  line-height: 1.1;
}

.strengths-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.identity-section {
  padding: 96px 0;
  background: #ffffff;
}

.identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.identity-grid h2 {
  color: var(--green);
}

.identity-grid p {
  margin-top: 22px;
}

.identity-grid .button {
  margin-top: 28px;
}

.identity-card {
  margin: 0;
  overflow: hidden;
  background: var(--green);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.identity-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.identity-card figcaption {
  padding: 18px;
  color: #ffffff;
  font-weight: 800;
}

.gallery-shell {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.gallery-slider {
  position: relative;
  min-height: 680px;
  background: #101816;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateX(28px) scale(1.01);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.gallery-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.gallery-slide figcaption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 18px 20px;
  color: #ffffff;
  background: rgba(15, 63, 54, 0.86);
  border-radius: 8px;
  font-size: 20px;
  font-weight: 800;
}

.gallery-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: rgba(15, 63, 54, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-size: 48px;
  line-height: 0;
  cursor: pointer;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--gold);
  color: #10251f;
}

.gallery-arrow.prev {
  left: 16px;
}

.gallery-arrow.next {
  right: 16px;
}

.alliances-section {
  padding: 88px 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(15, 63, 54, 0.94), rgba(15, 63, 54, 0.78)),
    url("../img/fondo-valores.png") center / cover;
}

.alliances-section h2 {
  max-width: 820px;
}

.alliances-section p {
  max-width: 860px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.documents-section {
  padding: 92px 0;
  background:
    linear-gradient(rgba(246, 248, 247, 0.94), rgba(246, 248, 247, 0.96)),
    url("../img/documentos-bg.jpg") center / cover;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.documents-grid a {
  display: grid;
  gap: 14px;
  min-height: 148px;
  padding: 22px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(18, 32, 28, 0.08);
}

.documents-grid a:hover,
.documents-grid a:focus-visible {
  border-color: var(--green);
  transform: translateY(-2px);
}

.documents-grid strong {
  font-size: 18px;
  line-height: 1.2;
}

.documents-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  padding: 86px 0;
  color: #ffffff;
  background: #08110f;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-grid p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.75);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-cards a {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 16px;
  align-items: center;
  min-height: 102px;
  padding: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-decoration: none;
}

.contact-cards a:hover,
.contact-cards a:focus-visible {
  border-color: var(--gold);
  background: rgba(228, 176, 74, 0.12);
}

.contact-cards span {
  grid-row: span 2;
  color: var(--gold);
  font-size: 30px;
}

.contact-cards strong {
  font-size: 17px;
  text-transform: uppercase;
}

.contact-cards em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 16px;
  color: #ffffff;
  background: #050806;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .strengths-grid,
  .documents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .identity-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    min-height: 70px;
    padding: 7px 18px;
  }

  .brand img {
    width: 78px;
  }

  .site-header.is-compact .brand img {
    width: 64px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding-top: 52px;
  }

  .hero h1,
  .section-heading h2,
  .identity-grid h2,
  .alliances-section h2,
  .contact-grid h2 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.04;
  }

  .hero p:not(.eyebrow) {
    max-width: 100%;
    font-size: clamp(16px, 5vw, 19px);
    overflow-wrap: anywhere;
  }

  .section-heading p:not(.eyebrow),
  .identity-grid p,
  .alliances-section p,
  .contact-grid p,
  .strengths-grid p {
    font-size: 16px;
    line-height: 1.62;
    overflow-wrap: anywhere;
  }

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

  .strengths-section,
  .identity-section,
  .gallery-section,
  .alliances-section,
  .documents-section,
  .contact-section {
    padding: 64px 0;
  }

  .strengths-grid,
  .documents-grid {
    grid-template-columns: 1fr;
  }

  .gallery-slider,
  .gallery-slide img {
    min-height: 520px;
  }

  .gallery-arrow {
    width: 48px;
    height: 48px;
    font-size: 42px;
  }

  .gallery-slide figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    font-size: 17px;
  }

  .contact-cards a {
    grid-template-columns: 38px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
