@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --green: #157d25;
  --green-2: #39b438;
  --green-light: #55cf47;
  --neon: #75ff59;
  --dark: #020d0a;
  --dark-2: #031b14;
  --text: #07130e;
  --muted: #56635c;
  --line: #e6ece8;
  --white: #fff;
  --shadow: 0 18px 45px rgba(0, 0, 0, .10);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55
}

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

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

button {
  font: inherit
}

.container {
  width: min(1138px, calc(100% - 70px));
  margin: 0 auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  transition: .25s
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08)
}

.nav {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px
}

.brand img {
  width: 270px
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 31px;
  font-size: 13px;
  font-weight: 800
}

.main-menu a {
  position: relative;
  padding: 25px 0 22px
}

.main-menu a.active::after,
.main-menu a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: 30px;
  background: var(--green)
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  flex-direction: column;
  gap: 6px
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--green);
  border-radius: 20px
}

.btn {
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: .25s
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #15942b, #38b438);
  box-shadow: 0 12px 28px rgba(33, 148, 42, .26)
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(33, 148, 42, .34)
}

.btn-outline,
.btn-video {
  color: #fff;
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .035)
}

.btn-ghost {
  color: var(--green);
  background: #fff;
  border-color: var(--green)
}

.play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .75);
  display: grid;
  place-items: center;
  font-size: 11px
}

.hero {
  min-height: 430px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 12, 9, .98) 0%, rgba(1, 12, 9, .94) 36%, rgba(1, 12, 9, .68) 58%, rgba(1, 12, 9, .38) 100%),
    url('../assets/hero-bg.jpg') center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 73% 50%, rgba(71, 255, 69, .18), transparent 25%);
  pointer-events: none;
}

.particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(77, 255, 77, .55) 1px, transparent 1px),
    linear-gradient(120deg, transparent 20%, rgba(59, 255, 61, .13), transparent 67%);
  background-size: 54px 54px, 100% 100%;
  opacity: .22;
  animation: particles 18s linear infinite;
}

@keyframes particles {
  to {
    background-position: 110px 80px, 0 0
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(560px, 1.08fr);
  gap: 72px;
  align-items: center;
  padding: 38px 0 34px;
}

.hero-copy {
  max-width: 560px;
  padding-left: 6px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green-light);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 5px;
  font-weight: 900;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.3vw, 58px);
  line-height: 1.08;
  letter-spacing: -1.8px;
  font-weight: 900;
}

.hero h1 span {
  display: inline-block;
  margin-top: 4px;
  color: var(--green-light);
}

.hero-text {
  max-width: 535px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, .90);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-height: 46px;
  padding: 0 24px;
}

.hero-visual {
  position: relative;
  min-height: 330px;
  width: 100%;
  isolation: isolate;
}

.hero-visual>img {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: min(100%, 620px);
  height: 286px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  filter: drop-shadow(0 24px 55px rgba(0, 0, 0, .48));
}

.metric {
  position: absolute;
  z-index: 3;
  width: 150px;
  min-height: 112px;
  padding: 16px 15px;
  border-radius: 10px;
  border: 1px solid rgba(119, 255, 93, .35);
  background: rgba(1, 20, 13, .82);
  backdrop-filter: blur(14px);
  color: #fff;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .30);
  animation: float 4.5s ease-in-out infinite;
}

.metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(32, 153, 42, .20);
  display: grid;
  place-items: center;
  color: var(--green-light);
  font-size: 18px;
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  font-size: 23px;
  line-height: 1;
}

.metric small {
  display: block;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  line-height: 1.45;
}

.metric-top {
  left: -18px;
  top: 26px;
}

.metric-bottom {
  left: 22px;
  bottom: 22px;
}

.metric-right {
  right: -26px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  animation-name: float-right;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes float-right {

  0%,
  100% {
    transform: translateY(-50%)
  }

  50% {
    transform: translateY(calc(-50% - 8px))
  }
}

.section {
  padding: 34px 0
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 54px;
  align-items: center
}

.history-media {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: var(--shadow)
}

.history-media img {
  width: 100%;
  height: 255px;
  object-fit: cover
}

.history-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 62px;
  height: 62px;
  border-radius: 18px 0 0 0;
  background: linear-gradient(135deg, #0b7925, #36b53b);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px
}

.history-copy h2 {
  margin: 0;
  font-size: 31px;
  line-height: 1.18;
  letter-spacing: -.7px
}

.history-copy h2 span {
  color: var(--green)
}

.heading-line,
.small-line {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 30px
}

.heading-line {
  margin: 14px 0 22px
}

.small-line {
  margin: 7px 0 14px
}

.history-copy p {
  color: #343f39;
  font-size: 13px;
  margin: 0 0 16px
}

.mission-vision {
  padding-top: 10px
}

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

.mv-card {
  min-height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbf8, #fff);
  border: 1px solid var(--line);
  box-shadow: 0 15px 38px rgba(0, 0, 0, .07);
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 20px;
  padding: 28px
}

.mv-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e4ece6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 58px
}

.mv-card h3 {
  margin: 0;
  color: var(--green);
  font-size: 18px
}

.mv-card p {
  color: #35403a;
  font-size: 12px;
  margin: 0
}

.values {
  padding-top: 5px
}

.center-heading {
  text-align: center
}

.center-heading h2 {
  margin: 0 0 24px;
  font-size: 19px
}

.center-heading h2::after {
  content: "";
  display: block;
  width: 31px;
  height: 3px;
  background: var(--green);
  border-radius: 40px;
  margin: 8px auto 0
}

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

.value-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 13px;
  border-right: 1px solid var(--line);
  min-height: 72px
}

.value-card:last-child {
  border-right: 0
}

.value-icon {
  color: var(--green);
  font-size: 34px;
  line-height: 1
}

.value-card h4 {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px
}

.value-card p {
  margin: 0;
  color: #303c35;
  font-size: 11px
}

.timeline-section {
  padding: 23px 0 18px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 12, 8, .92), rgba(0, 14, 10, .96)), url('../assets/timeline-bg.jpg') center/cover no-repeat
}

.timeline-heading {
  text-align: center
}

.timeline-heading h2 {
  margin: 0 0 32px;
  font-size: 19px
}

.timeline-heading h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--green-light);
  border-radius: 40px;
  margin: 8px auto 0
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  position: relative
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 35px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent)
}

.timeline-item {
  position: relative;
  z-index: 2
}

.timeline-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(29, 129, 38, .18);
  border: 1px solid rgba(94, 255, 85, .5);
  box-shadow: 0 0 22px rgba(68, 255, 65, .22);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 14px
}

.timeline-item h3 {
  margin: 0;
  font-size: 23px
}

.timeline-item h4 {
  margin: 0 0 8px;
  font-size: 13px
}

.timeline-item p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 11px
}

.stats-bar {
  margin-top: 32px;
  min-height: 72px;
  border: 1px solid rgba(84, 207, 70, .45);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: rgba(0, 0, 0, .18)
}

.stats-bar article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-right: 1px solid rgba(255, 255, 255, .12)
}

.stats-bar article:last-child {
  border-right: 0
}

.stats-bar article>span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(40, 163, 40, .20);
  display: grid;
  place-items: center;
  color: var(--green-light);
  font-size: 23px
}

.stats-bar strong {
  display: block;
  font-size: 24px
}

.stats-bar small {
  display: block;
  font-size: 11px
}

.cta {
  padding: 12px 0;
  background: #fff
}

.cta-box {
  min-height: 86px;
  padding: 20px 28px;
  border-radius: 9px;
  color: #fff;
  background: radial-gradient(circle at 100% 35%, rgba(71, 255, 69, .28), transparent 26%), linear-gradient(135deg, #021a13, #042f18);
  display: grid;
  grid-template-columns: 76px 1fr 1.1fr auto;
  gap: 20px;
  align-items: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18)
}

.cta-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c7a26, #2fb53a);
  display: grid;
  place-items: center;
  font-size: 30px
}

.cta h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: 12px
}

.cta-actions {
  display: flex;
  gap: 15px
}

.footer {
  background: linear-gradient(135deg, #021a13, #042f18);
  color: #fff;
  padding: 22px 0 12px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr .9fr 1.25fr;
  gap: 38px
}

.footer-logo {
  width: 160px;
  margin-bottom: 10px
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, .78);
  font-size: 12px
}

.footer h4 {
  margin: 0 0 10px;
  color: var(--green-light);
  font-size: 12px;
  letter-spacing: 1px
}

.footer a {
  display: block;
  margin: 3px 0
}

.socials {
  display: flex;
  gap: 9px;
  margin-top: 10px
}

.socials a {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(69, 197, 63, .6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green-light)
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 18px;
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .7);
  font-size: 11px
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .75s
}

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

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px
}

.modal.open {
  display: flex
}

.modal-dialog {
  position: relative;
  width: min(760px, 100%);
  background: #06140d;
  border: 1px solid rgba(89, 255, 75, .25);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45)
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  cursor: pointer
}

.video-placeholder {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at center, rgba(56, 190, 52, .17), transparent 42%)
}

.video-placeholder>span {
  font-size: 74px;
  color: var(--green-light)
}

.video-placeholder h3 {
  font-size: 28px;
  margin: 12px 0 4px
}

.video-placeholder p {
  color: rgba(255, 255, 255, .72)
}

@media(max-width:980px) {
  .container {
    width: min(100% - 34px, 1138px)
  }

  .menu-toggle {
    display: flex
  }

  .main-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line)
  }

  .main-menu.open {
    display: flex
  }

  .nav-cta {
    display: none
  }

  .brand img {
    width: 235px
  }

  .hero-grid,
  .history-grid,
  .mv-grid {
    grid-template-columns: 1fr
  }

  .hero {
    min-height: auto
  }

  .hero-grid {
    padding: 50px 0
  }

  .hero-visual {
    min-height: 330px
  }

  .hero-visual>img {
    position: relative;
    width: 100%
  }

  .metric {
    display: none
  }

  .values-grid,
  .timeline,
  .stats-bar {
    grid-template-columns: 1fr 1fr
  }

  .timeline::before {
    display: none
  }

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center
  }

  .cta-icon {
    margin: auto
  }

  .cta-actions {
    justify-content: center
  }

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

@media(max-width:640px) {
  .brand img {
    width: 200px
  }

  .hero h1 {
    font-size: 38px
  }

  .history-copy h2 {
    font-size: 26px
  }

  .mv-card {
    grid-template-columns: 1fr;
    text-align: center
  }

  .mv-icon {
    margin: auto
  }

  .small-line {
    margin: 7px auto 14px
  }

  .values-grid,
  .timeline,
  .stats-bar,
  .footer-grid {
    grid-template-columns: 1fr
  }

  .value-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px
  }

  .stats-bar article {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 14px
  }

  .cta-actions,
  .hero-actions {
    flex-direction: column
  }

  .footer-bottom {
    flex-direction: column
  }
}

/* Ajustes específicos del hero Nosotros */
@media (max-width:1180px) {
  .hero-grid {
    grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr);
    gap: 44px;
  }

  .hero-visual>img {
    width: 560px;
  }

  .metric-top {
    left: -8px
  }

  .metric-right {
    right: -10px
  }
}

@media (max-width:980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 52px 0;
  }

  .hero-copy {
    max-width: 680px;
    padding-left: 0;
  }

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

  .hero-visual>img {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 340px;
  }

  .metric {
    display: grid;
  }

  .metric-top {
    left: 18px;
    top: 18px;
  }

  .metric-bottom {
    left: 48px;
    bottom: 18px;
  }

  .metric-right {
    right: 18px;
    top: 50%;
  }
}

@media (max-width:700px) {
  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding: 44px 0 36px;
  }

  .hero h1 {
    font-size: clamp(37px, 11vw, 48px);
  }

  .hero-text {
    margin: 21px 0 26px;
    font-size: 14px;
  }

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

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

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

  .hero-visual>img {
    height: 290px;
  }

  .metric {
    width: 132px;
    min-height: 96px;
    padding: 12px;
    grid-template-columns: 32px 1fr;
  }

  .metric-icon {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  .metric strong {
    font-size: 19px;
  }

  .metric small {
    font-size: 9px;
  }

  .metric-top {
    left: 10px;
    top: 10px;
  }

  .metric-bottom {
    left: 18px;
    bottom: 10px;
  }

  .metric-right {
    right: 10px;
  }
}

@media (max-width:480px) {
  .hero-visual {
    min-height: 270px;
  }

  .hero-visual>img {
    height: 270px;
  }

  .metric {
    width: 118px;
    min-height: 88px;
    padding: 10px;
  }

  .metric-top {
    left: 6px
  }

  .metric-bottom {
    left: 10px
  }

  .metric-right {
    right: 6px
  }
}