/* ---------- Variables ---------- */
:root {
  --green-950: #061d15;
  --green-900: #0a2b1f;
  --green-850: #0d3526;
  --green-800: #10452f;
  --green-700: #17623f;
  --green-600: #218451;
  --green-500: #2cae67;
  --green-400: #5bc785;
  --green-200: #bfe8ce;
  --green-100: #e6f5ec;
  --green-50: #f3faf6;
  --white: #ffffff;
  --gray-50: #f8faf9;
  --gray-100: #eef2ef;
  --gray-200: #dfe6e2;
  --gray-400: #8d9b93;
  --gray-600: #59665f;
  --gray-700: #404b45;
  --gray-900: #18231d;
  --shadow-sm: 0 12px 35px rgba(10, 43, 31, 0.08);
  --shadow-lg: 0 24px 70px rgba(3, 27, 18, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1200px;
  --header-height: 88px;
  --transition: 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--gray-700);
  background: var(--white);
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

::selection {
  color: var(--white);
  background: var(--green-600);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 120px 0;
}

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

h1,
h2,
h3 {
  color: var(--gray-900);
  line-height: 1.15;
}

h1,
h2 {
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 26px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 24px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.45rem, 4.2vw, 4.5rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
}

p {
  margin-bottom: 20px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: -100px;
  left: 18px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--green-900);
  border-radius: 8px;
}

.skip-link:focus {
  top: 18px;
}

/* ---------- Reutilizables ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--green-600);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow.light {
  color: var(--green-200);
}

.eyebrow.light::before {
  display: none;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--green-400);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(91, 199, 133, 0.12);
}

.section-heading {
  margin-bottom: 55px;
}

.heading-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.6fr);
  gap: 80px;
  align-items: end;
}

.heading-split h2 {
  margin-bottom: 0;
}

.heading-split > p {
  margin: 0 0 8px;
  color: var(--gray-600);
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

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

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  color: var(--white);
  background: var(--green-500);
  box-shadow: 0 12px 30px rgba(44, 174, 103, 0.25);
}

.btn-primary:hover {
  background: var(--green-600);
  box-shadow: 0 16px 36px rgba(44, 174, 103, 0.32);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.btn-light {
  color: var(--green-900);
  background: var(--white);
}

.btn-light:hover {
  background: var(--green-100);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-700);
  font-weight: 800;
}

.text-link svg {
  width: 19px;
  height: 19px;
  transition: transform var(--transition);
}

.text-link:hover svg {
  transform: translateX(5px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    height var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.site-header.scrolled {
  height: 74px;
  border-color: rgba(10, 43, 31, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(7, 40, 27, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.scrolled .brand {
  color: var(--green-900);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green-400);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50% 50% 50% 14px;
  transform: rotate(-8deg);
}

.scrolled .brand-mark {
  color: var(--white);
  background: var(--green-600);
  border-color: var(--green-600);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  transform: rotate(8deg);
}

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

.brand-text strong {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.brand-text small {
  margin-top: 6px;
  opacity: 0.72;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.83rem;
  font-weight: 700;
}

.scrolled .nav-link {
  color: var(--gray-700);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.scrolled .nav-link:hover,
.scrolled .nav-link.active {
  color: var(--green-700);
}

.btn-header {
  min-height: 44px;
  padding-inline: 20px;
  color: var(--green-900);
  background: var(--white);
}

.scrolled .btn-header {
  color: var(--white);
  background: var(--green-700);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: var(--transition);
}

.scrolled .menu-toggle {
  border-color: var(--gray-200);
}

.scrolled .menu-toggle span {
  background: var(--green-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  align-items: center;
  color: var(--white);
  background: var(--green-950);
}

.hero-media,
.hero-overlay,
.hero-pattern {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=2200&q=90")
    center / cover no-repeat;
  transform: scale(1.07);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(4, 28, 19, 0.96) 0%,
      rgba(6, 40, 27, 0.84) 42%,
      rgba(4, 30, 20, 0.34) 75%,
      rgba(4, 30, 20, 0.52) 100%
    ),
    linear-gradient(0deg, rgba(3, 24, 16, 0.65), transparent 45%);
}

.hero-pattern {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 82%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 80px;
  align-items: end;
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 95px;
}

.hero-copy {
  max-width: 870px;
}

.hero h1 {
  color: var(--white);
}

.hero-copy > p {
  max-width: 690px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--green-400);
}

.hero-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 47, 32, 0.5);
  border-radius: var(--radius-md);
  backdrop-filter: blur(15px);
}

.hero-card-number {
  color: var(--green-400);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-card small {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.45;
}

.scroll-indicator {
  position: absolute;
  z-index: 3;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-indicator i {
  position: relative;
  display: block;
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.scroll-indicator i::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--green-400);
  animation: scrollLine 2.1s infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateX(-100%);
  }
  60%,
  100% {
    transform: translateX(100%);
  }
}

/* ---------- Franja de confianza ---------- */
.trust-strip {
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 20px 28px;
  border-right: 1px solid var(--gray-200);
}

.trust-grid > div:first-child {
  border-left: 1px solid var(--gray-200);
}

.trust-grid span {
  color: var(--green-500);
  font-size: 0.68rem;
  font-weight: 800;
}

.trust-grid p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.trust-grid strong {
  color: var(--green-900);
  font-size: 0.9rem;
}

/* ---------- Nosotros ---------- */
.about {
  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(44, 174, 103, 0.08),
      transparent 24%
    ),
    var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
  padding: 0 36px 36px 0;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 0 var(--radius-lg) var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.image-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(6, 36, 24, 0.26));
}

.image-frame img {
  aspect-ratio: 0.92;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 190px;
  padding: 24px;
  color: var(--white);
  background: var(--green-700);
  border: 8px solid var(--white);
  border-radius: var(--radius-md);
}

.experience-badge strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.7rem;
  line-height: 1;
}

.experience-badge span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.45;
}

.decor-line {
  position: absolute;
  top: 30px;
  right: 14px;
  width: 2px;
  height: 120px;
  background: linear-gradient(var(--green-500), transparent);
}

.about-content .lead {
  color: var(--gray-700);
  font-size: 1.07rem;
  font-weight: 600;
}

.about-content > p:not(.lead) {
  color: var(--gray-600);
}

.about-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin: 32px 0;
}

.about-checks span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-700);
  font-size: 0.83rem;
  font-weight: 700;
}

.about-checks svg {
  width: 20px;
  height: 20px;
  padding: 4px;
  color: var(--white);
  background: var(--green-500);
  border-radius: 50%;
  stroke-width: 2.4;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 95px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.purpose-card {
  position: relative;
  min-height: 260px;
  padding: 36px;
  background: var(--white);
}

.purpose-card + .purpose-card {
  border-left: 1px solid var(--gray-200);
}

.purpose-card.featured {
  color: rgba(255, 255, 255, 0.72);
  background: var(--green-900);
}

.purpose-card h3 {
  margin-top: 42px;
  font-size: 1.5rem;
}

.purpose-card.featured h3 {
  color: var(--white);
}

.purpose-card p {
  margin: 0;
  font-size: 0.88rem;
}

.purpose-index {
  color: var(--green-500);
  font-size: 0.68rem;
  font-weight: 800;
}

/* ---------- Servicios ---------- */
.services {
  background: var(--green-50);
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 390px;
  overflow: hidden;
  flex-direction: column;
  padding: 34px;
  border: 1px solid rgba(16, 69, 47, 0.1);
  background: var(--white);
  border-radius: var(--radius-md);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.service-card::before {
  position: absolute;
  right: -55px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(44, 174, 103, 0.13);
  border-radius: 50%;
  transition: transform var(--transition);
}

.service-card:hover {
  color: rgba(255, 255, 255, 0.72);
  background: var(--green-900);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.service-card:hover::before {
  border-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.4);
}

.service-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 54px;
  place-items: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 18px;
  transition:
    background var(--transition),
    color var(--transition);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-card:hover .service-icon {
  color: var(--white);
  background: var(--green-600);
}

.service-number {
  position: absolute;
  top: 35px;
  right: 35px;
  color: var(--gray-400);
  font-size: 0.68rem;
  font-weight: 800;
}

.service-card h3 {
  max-width: 300px;
  font-size: 1.35rem;
  transition: color var(--transition);
}

.service-card:hover h3 {
  color: var(--white);
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.86rem;
  transition: color var(--transition);
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.68);
}

.service-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--green-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-card:hover a {
  color: var(--green-400);
}

.service-card a svg {
  width: 17px;
  height: 17px;
  transition: transform var(--transition);
}

.service-card a:hover svg {
  transform: translateX(5px);
}

.service-card-wide {
  grid-column: span 2;
  display: grid;
  min-height: 280px;
  grid-template-columns: 80px 1fr auto;
  gap: 26px;
  align-items: center;
}

.service-card-wide .service-icon {
  margin: 0;
}

.service-card-wide h3 {
  max-width: 520px;
}

.service-card-wide a {
  align-self: end;
}

/* ---------- Estadísticas ---------- */
.stats {
  position: relative;
  overflow: hidden;
  padding: 95px 0;
  color: var(--white);
  background: var(--green-900);
}

.stats-bg {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background:
    linear-gradient(
      90deg,
      var(--green-900) 0%,
      transparent 55%,
      var(--green-950) 100%
    ),
    url("https://images.unsplash.com/photo-1569511166187-97eb6e387e19?auto=format&fit=crop&w=2000&q=75")
      center / cover;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  min-height: 150px;
  padding: 10px 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item strong {
  display: flex;
  align-items: flex-start;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  line-height: 1;
}

.stat-item sup {
  margin: 7px 0 0 5px;
  color: var(--green-400);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.stat-item p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ---------- Ventajas ---------- */
.advantages {
  background: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 100px;
}

.advantages-intro {
  position: sticky;
  top: 110px;
  align-self: start;
}

.advantages-intro > p {
  max-width: 520px;
  color: var(--gray-600);
}

.advantage-image {
  margin-top: 42px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.advantage-image img {
  height: 330px;
  object-fit: cover;
}

.advantage-list {
  border-top: 1px solid var(--gray-200);
}

.advantage-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  gap: 22px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--gray-200);
}

.advantage-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 16px;
}

.advantage-icon svg {
  width: 25px;
  height: 25px;
}

.advantage-item h3 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.advantage-item p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.84rem;
}

.advantage-number {
  color: var(--gray-400);
  font-size: 0.68rem;
  font-weight: 800;
}

/* ---------- Proyectos ---------- */
.projects {
  color: rgba(255, 255, 255, 0.68);
  background: var(--green-950);
}

.projects h2 {
  color: var(--white);
}

.projects .heading-split > p {
  color: rgba(255, 255, 255, 0.56);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 310px 310px;
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--green-900);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
}

.project-large {
  grid-row: span 2;
}

.project-wide {
  grid-column: 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 700ms;
}

.project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 34%, rgba(3, 27, 18, 0.86));
}

.project-card:hover img {
  filter: saturate(1.1);
  transform: scale(1.06);
}

.project-overlay {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 27px;
  left: 28px;
}

.project-overlay small {
  display: block;
  margin-bottom: 7px;
  color: var(--green-300, #8bd9a8);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-overlay strong {
  display: block;
  max-width: 440px;
  padding-right: 50px;
  color: var(--white);
  font-size: 1.12rem;
  line-height: 1.35;
}

.project-overlay i {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transition:
    background var(--transition),
    transform var(--transition);
}

.project-overlay i svg {
  width: 18px;
  height: 18px;
}

.project-card:hover .project-overlay i {
  background: var(--green-500);
  transform: rotate(-45deg);
}

/* ---------- Testimonios ---------- */
.testimonials {
  background: var(--gray-50);
}

.testimonial-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: center;
}

.testimonial-intro > p {
  color: var(--gray-600);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 35px;
}

.slider-btn {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
}

.slider-btn svg {
  width: 18px;
  height: 18px;
}

.slider-btn.prev svg {
  transform: rotate(180deg);
}

.slider-btn:hover {
  color: var(--white);
  background: var(--green-700);
  border-color: var(--green-700);
}

.slider-progress {
  width: 90px;
  height: 2px;
  overflow: hidden;
  background: var(--gray-200);
}

.slider-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--green-600);
  transition: transform var(--transition);
}

.testimonial-slider {
  position: relative;
  min-height: 420px;
  padding: 52px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial-slide {
  position: absolute;
  inset: 52px;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  opacity: 0;
  transform: translateX(25px);
  transition:
    opacity 450ms,
    transform 450ms,
    visibility 450ms;
}

.testimonial-slide.active {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.quote-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
  color: var(--green-500);
  fill: currentColor;
  stroke: none;
}

.testimonial-slide blockquote {
  margin: 0 0 36px;
  color: var(--gray-900);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.5;
}

.testimonial-slide footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.testimonial-slide footer img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-slide footer strong,
.testimonial-slide footer span {
  display: block;
}

.testimonial-slide footer strong {
  color: var(--gray-900);
  font-size: 0.9rem;
}

.testimonial-slide footer span {
  margin-top: 4px;
  color: var(--gray-600);
  font-size: 0.72rem;
}

/* ---------- CTA ---------- */
.cta-band {
  padding: 70px 0;
  color: var(--white);
  background:
    radial-gradient(
      circle at 75% 0%,
      rgba(91, 199, 133, 0.28),
      transparent 28%
    ),
    var(--green-700);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-inner span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-200);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-inner h2 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.4vw, 3.3rem);
}

/* ---------- Contacto ---------- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(rgba(5, 39, 26, 0.88), rgba(5, 39, 26, 0.94)),
    url("https://images.unsplash.com/photo-1532601224476-15c79f2f7a51?auto=format&fit=crop&w=1200&q=85")
      center / cover;
}

.contact-panel::after {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035);
}

.contact-panel-content {
  position: relative;
  z-index: 2;
  padding: 52px;
}

.contact-label {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--green-300, #8bd9a8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-panel h3 {
  max-width: 390px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-panel p {
  max-width: 410px;
  font-size: 0.88rem;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin-top: 55px;
  font-style: normal;
}

.contact-details > a,
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-details > a > span,
.contact-details > div > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--green-300, #8bd9a8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
}

.contact-details svg {
  width: 19px;
  height: 19px;
}

.contact-details small,
.contact-details strong {
  display: block;
}

.contact-details small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details strong {
  margin-top: 3px;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form {
  padding: 52px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  outline: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  border-radius: 11px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.form-group input,
.form-group select {
  height: 52px;
  padding: 0 15px;
}

.form-group textarea {
  min-height: 135px;
  padding: 15px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(44, 174, 103, 0.1);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #c64d4d;
}

.error-message {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  color: #b23f3f;
  font-size: 0.66rem;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-600);
  font-size: 0.7rem;
  cursor: pointer;
}

.privacy-check input {
  margin-top: 4px;
  accent-color: var(--green-600);
}

.privacy-error {
  margin-bottom: 10px;
}

.submit-btn {
  width: 100%;
  margin-top: 5px;
  border: 0;
}

.form-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.map-wrap {
  position: relative;
  height: 390px;
  margin-top: 35px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.65) contrast(0.95);
}

.map-card {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  min-width: 230px;
  flex-direction: column;
  padding: 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}

.map-card small {
  color: var(--green-600);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-card strong {
  margin: 6px 0 3px;
  color: var(--gray-900);
  font-size: 0.9rem;
}

.map-card span {
  color: var(--gray-600);
  font-size: 0.7rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 80px;
  color: rgba(255, 255, 255, 0.58);
  background: var(--green-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.2fr 1.2fr;
  gap: 65px;
  padding-bottom: 65px;
}

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

.footer-brand > p {
  max-width: 360px;
  margin: 25px 0;
  font-size: 0.82rem;
}

.social-links {
  display: flex;
  gap: 9px;
}

.social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.social-links a:hover {
  background: var(--green-600);
  border-color: var(--green-600);
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-grid h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid span {
  font-size: 0.76rem;
  transition: color var(--transition);
}

.footer-grid a:hover {
  color: var(--green-400);
}

.footer-bottom {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.68rem;
}

.footer-bottom > div {
  display: flex;
  gap: 25px;
}

.footer-bottom a {
  font-size: 0.68rem;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  z-index: 2200;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding: 70px 30px 30px;
  place-items: center;
  opacity: 0;
  background: rgba(3, 20, 13, 0.94);
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.lightbox.open {
  visibility: visible;
  opacity: 1;
}

.lightbox figure {
  max-width: 1050px;
  margin: 0;
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox figcaption {
  margin-top: 16px;
  color: var(--white);
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

/* ---------- Volver arriba ---------- */
.back-to-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  display: grid;
  visibility: hidden;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  opacity: 0;
  color: var(--white);
  border: 0;
  background: var(--green-700);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform: translateY(15px);
  transition: var(--transition);
}

.back-to-top.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 750ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 750ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.delay-1 {
  transition-delay: 100ms;
}
.delay-2 {
  transition-delay: 200ms;
}
.delay-3 {
  transition-delay: 300ms;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root {
    --header-height: 78px;
  }

  .main-nav {
    gap: 20px;
  }

  .hero-content {
    grid-template-columns: 1fr 230px;
    gap: 40px;
  }

  .about-grid,
  .advantages-grid {
    gap: 60px;
  }

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

  .service-card-wide {
    grid-column: span 2;
  }

  .testimonial-layout {
    gap: 55px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 90px 0;
  }

  .menu-toggle {
    position: relative;
    z-index: 1002;
    display: block;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 1001;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 100px 10vw;
    opacity: 0;
    background: var(--green-950);
    transform: translateX(100%);
    transition:
      visibility var(--transition),
      opacity var(--transition),
      transform var(--transition);
  }

  .main-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
  }

  .main-nav .nav-link {
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.2rem;
  }

  .main-nav .btn-header {
    margin-top: 15px;
  }

  .site-header.menu-active .brand {
    position: relative;
    z-index: 1002;
    color: var(--white);
  }

  .site-header.menu-active .brand-mark {
    color: var(--green-400);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .site-header.menu-active .menu-toggle {
    border-color: rgba(255, 255, 255, 0.25);
  }

  .site-header.menu-active .menu-toggle span {
    background: var(--white);
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 150px;
    padding-bottom: 110px;
  }

  .hero-card {
    display: none;
  }

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

  .trust-grid > div:nth-child(3) {
    border-left: 1px solid var(--gray-200);
  }

  .trust-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--gray-200);
  }

  .about-grid,
  .advantages-grid,
  .testimonial-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 620px;
  }

  .purpose-grid {
    grid-template-columns: 1fr;
  }

  .purpose-card + .purpose-card {
    border-top: 1px solid var(--gray-200);
    border-left: 0;
  }

  .heading-split {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 0;
  }

  .stat-item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  .advantages-intro {
    position: static;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 420px 300px;
  }

  .project-large {
    grid-column: span 2;
    grid-row: auto;
  }

  .project-wide {
    grid-column: auto;
  }

  .testimonial-intro {
    max-width: 650px;
  }

  .contact-panel {
    min-height: auto;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 75px 0;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 920px;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 140px;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(3, 28, 18, 0.94),
      rgba(4, 33, 22, 0.65)
    );
  }

  .hero-copy > p {
    font-size: 0.95rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .scroll-indicator {
    bottom: 35px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div,
  .trust-grid > div:nth-child(3) {
    min-height: 95px;
    border-right: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    border-left: 1px solid var(--gray-200);
  }

  .about-visual {
    padding: 0 18px 24px 0;
  }

  .experience-badge {
    width: 160px;
    padding: 19px;
  }

  .about-checks {
    grid-template-columns: 1fr;
  }

  .purpose-card {
    min-height: 220px;
    padding: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: 350px;
    display: flex;
    align-items: flex-start;
  }

  .service-card-wide .service-icon {
    margin-bottom: 54px;
  }

  .service-card-wide a {
    align-self: auto;
  }

  .stats {
    padding: 75px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat-item {
    min-height: 170px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .stat-item strong {
    font-size: 3.15rem;
  }

  .advantage-item {
    grid-template-columns: 48px 1fr;
  }

  .advantage-icon {
    width: 44px;
    height: 44px;
  }

  .advantage-number {
    display: none;
  }

  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .project-card,
  .project-large,
  .project-wide {
    grid-column: auto;
    height: 330px;
  }

  .project-overlay {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .testimonial-slider {
    min-height: 510px;
    padding: 32px 28px;
  }

  .testimonial-slide {
    inset: 32px 28px;
  }

  .testimonial-slide blockquote {
    font-size: 1.38rem;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .contact-panel-content,
  .contact-form {
    padding: 34px 24px;
  }

  .contact-panel h3 {
    font-size: 2.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .map-card {
    right: 18px;
    left: 18px;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-grid > div:last-child {
    grid-column: span 2;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }

  .footer-bottom > div {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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