/* ============ Tokens ============ */
:root {
  --green: #3a7a6e;
  --green-dark: #2d6b5e;
  --green-darker: #2a5548;
  --green-light: #46b69e;
  --teal-text: #4a6b65;
  --gray-text: #6b7b78;
  --text-dark: #1a1a1a;
  --near-black: #090909;
  --orange: #d4593a;
  --orange-light: #e8744a;
  --yellow: #f8a900;
  --bg-soft: #f6f6f6;
  --bg-softer: #f5f7f6;
  --border-soft: #e5e7eb;

  --font-heading: 'DM Sans', sans-serif;
  --font-ui: 'Inter', sans-serif;

  --container-width: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.5;
  background: #f6f6f6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.text-green { color: var(--green); }

.eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 24px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 10px;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--green-dark); }
.btn--sm { padding: 10px 20px; border-radius: 8px; font-size: 14.4px; }
.btn--outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  padding: 14px 27px;
}
.btn--block { width: 100%; justify-content: center; }
.btn__icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* ============ Navbar ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f6f6f6;
}
.navbar__inner {
  display: flex;
  align-items: center;
  padding: 20px 40px;
  max-width: var(--container-width);
  margin: 0 auto;
}
.navbar__logo img { height: 26px; width: auto; }
.navbar__right {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  font-weight: 500;
  font-size: 14.7px;
  color: var(--text-dark);
}
.navbar__links a:hover { color: var(--green); }

/* ============ Hero ============ */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 40px 80px;
  flex-wrap: wrap;
}
.hero__text {
  flex: 1 1 480px;
  min-width: 320px;
}
.hero__text h1 {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1px;
  max-width: 640px;
}
.hero__lead {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 400;
  color: var(--teal-text);
  max-width: 600px;
  line-height: 1.45;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  flex: 1 1 460px;
  min-width: 320px;
  max-width: 578px;
  aspect-ratio: 578 / 566;
  margin-left: auto;
}
.hero__visual-bg {
  position: absolute;
  left: 6.9%;
  top: 12.7%;
  width: 77.5%;
  height: 79.2%;
  object-fit: cover;
  border-radius: 16px;
}

.station-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 3;
}
.station-marker__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5efe5;
  border: 2px solid var(--green);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.station-marker__label {
  background: var(--green);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: .85;
}

.floating-card, .ndvi-card {
  position: absolute;
  background: rgba(221,233,221,.5);
  backdrop-filter: blur(6px);
  border-radius: 13px;
  padding: 13px;
  font-family: var(--font-ui);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  z-index: 2;
}
.floating-card--meteo { left: 1%; top: 0; width: 29.2%; }
.floating-card--aguasub { left: 61.9%; top: 64.5%; width: 35.1%; }
.floating-card--aguasup { left: -4%; top: 60%; width: 31.8%; }
.ndvi-card { left: 60.9%; top: .5%; width: 39.1%; border-radius: 25px; }

.floating-card__head, .ndvi-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.floating-card__head span:last-child, .ndvi-card__head span:last-child {
  font-size: 11px;
  font-weight: 600;
  color: #1a2e1a;
  letter-spacing: .25px;
}
.floating-card__badge, .ndvi-card__badge {
  width: 19.5px;
  height: 19.5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.floating-card__badge img, .ndvi-card__badge img { width: 13px; height: 13px; }
.floating-card__badge--green { background: var(--green); }
.floating-card__badge--teal { background: var(--green-light); }
.floating-card__badge--yellow { background: var(--yellow); }
.ndvi-card__badge { background: var(--green-light); }

.floating-card__label, .ndvi-card__label { font-size: 9px; color: #6b8c6b; margin-bottom: 2px; }
.floating-card__value, .ndvi-card__value {
  font-size: 22px;
  font-weight: 600;
  color: #1a2e1a;
  margin-bottom: 8px;
}
.floating-card__value--sm { font-size: 20px; margin-bottom: 0; }

.floating-card__chart--week {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(153,153,153,.4);
  padding-top: 8px;
  margin-top: 8px;
}
.floating-card__chart--week .chart-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #6b8c6b;
}
.chart-day__dash {
  width: 6px;
  height: 2px;
  border-radius: 1px;
  background: transparent;
}
.chart-day__dash--on { background: #8cc7e5; }
.chart-day__dash--big { width: 8px; height: 3px; border-radius: 1.5px; background: #8cc7e5; }
.floating-card__meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #999;
  margin-top: 10px;
  padding-top: 8px;
}
.floating-card__meta div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.meta-label { font-size: 8px; color: #6b8c6b; }
.meta-value { font-size: 11px; font-weight: 600; color: #1a2e1a; }

.floating-card__chart-line img { width: 100%; height: auto; }
.floating-card__months { display: flex; justify-content: space-between; font-size: 8px; color: #6b8c6b; margin-top: 4px; }
.status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 500;
  color: #2d6a4f;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #52b788; }
.floating-card__row { display: flex; justify-content: space-between; align-items: flex-start; }
.floating-card__minichart { width: 67px; }
.stat-row { display: flex; justify-content: space-between; font-size: 10px; color: #6b8c6b; margin-top: 10px; }
.stat-row span:last-child { color: #1a2e1a; font-weight: 500; }

.ndvi-card__scale { display: flex; justify-content: space-between; font-size: 8px; color: #6b8c6b; margin-top: 8px; }
.ndvi-card__bar {
  height: 9px;
  border-radius: 20px;
  background: #e8f0e8;
  margin-top: 4px;
  overflow: hidden;
}
.ndvi-card__bar span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: 20px;
  background: linear-gradient(90deg, #b7e4c7, #2d6a4f);
}
.ndvi-card__photo {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  height: 60px;
}
.ndvi-card__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Cómo lo hacemos ============ */
.como-lo-hacemos {
  position: relative;
  padding: 0 0 90px;
  background: #f6f6f6;
}
.como-lo-hacemos__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1926 / 737.594;
}
.como-lo-hacemos__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Guards against "square-ish" viewports (e.g. 1100-1300px wide) where the
   aspect-ratio-derived height becomes too short for the circles-row content
   (top:70% + circle + label) to fit, causing it to spill into the next section. */
@media (min-width: 1081px) {
  .como-lo-hacemos__visual { min-height: 900px; }
}
.como-lo-hacemos__text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 2;
  padding-top: 40px;
}
.como-lo-hacemos__box {
  max-width: 1180px;
  margin: 24px auto 0;
  text-align: center;
}
.como-lo-hacemos__box h2 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.07;
  letter-spacing: -.95px;
  color: var(--text-dark);
}
.como-lo-hacemos__box h2 em { font-style: italic; font-weight: 700; }
.como-lo-hacemos__box h2 strong { font-weight: 700; }

.como-lo-hacemos-features {
  padding: 140px 0 90px;
  background: #f6f6f6;
}

.circles-row {
  position: absolute;
  top: 70%;
  left: 0;
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.circle-item { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.circle-item__photo {
  position: relative;
  width: 200px;
  height: 200px;
}
.circle-item__mask {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.circle-item__mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.circle-item__mask:hover img { transform: scale(1.12); }
.circle-item__badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,.15);
}
.circle-item__badge img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.circle-item__label {
  position: relative;
  z-index: 1;
  background: #f6f6f6;
  border: .5px solid #2d2d2d;
  border-radius: 999px;
  padding: 4px 20px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #2d2d2d;
}
.circle-item__label--filled { background: #f6f6f6; }

.features-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.feature-item {
  flex: 1 1 300px;
  max-width: 380px;
  text-align: center;
  padding: 36px 32px 40px;
}
.feature-item__icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item__icon img { width: 240px; height: auto; max-width: none; cursor: pointer; }
.feature-item p {
  font-size: 20px;
  font-weight: 500;
  color: rgba(0,0,0,.7);
  line-height: 1.3;
}

/* ============ Conoce TERO ============ */
.conoce-tero { background: #f0f0f0; padding: 64px 0; }
.conoce-tero__layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.conoce-tero__buttons { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { display: flex; flex-direction: column; }
.feature-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 21px;
  font-family: inherit;
  font-size: 16px;
  color: var(--green);
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.feature-btn__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .3s ease;
  transform: rotate(0deg);
}
.accordion-item.is-open .feature-btn {
  background: linear-gradient(168deg, #e8744a 0%, #d4593a 100%);
  border-color: #e5e7eb;
  color: #fff;
}
.accordion-item.is-open .feature-btn__chevron { transform: rotate(180deg); filter: brightness(0) invert(1); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel__inner { overflow: hidden; }
.conoce-tero__desc {
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 20px 21px;
  color: var(--green);
  font-size: 14px;
  line-height: 1.625;
  margin-top: 12px;
}
.conoce-tero__screen {
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1024 / 576;
  box-shadow: 0 4px 21.7px rgba(0,0,0,.15), 0 1px 2px -1px rgba(0,0,0,.1);
}
.conoce-tero__screen img,
.conoce-tero__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .2s ease;
}
.conoce-tero__screen img.is-hidden,
.conoce-tero__screen video.is-hidden { opacity: 0; pointer-events: none; }
.conoce-tero__screen img.is-fading,
.conoce-tero__screen video.is-fading { opacity: 0; }

/* ============ Beneficios ============ */
.beneficios { padding: 20px 0 80px; }
.rule { border: none; border-bottom: 1px solid var(--near-black); margin: 0 0 64px; }
.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.beneficio-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
}
.beneficio-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .4s ease; flex-shrink: 0; }
.beneficio-card:hover img { transform: scale(1.12); }
.beneficio-card p {
  flex: 1;
  padding: 32px 36px 40px 12px;
  font-size: 24px;
  line-height: 1.4;
  color: var(--near-black);
  background: linear-gradient(113deg, rgba(221,233,221,.15) 24.7%, rgba(212,89,58,.06) 95.6%);
  box-sizing: border-box;
}
.beneficio-card p strong { color: var(--orange); font-weight: 800; }

/* ============ Un proyecto de ============ */
.proyecto-de {
  position: relative;
  padding: 48px 0 160px;
  overflow: hidden;
  background: #f6f6f6;
}
.proyecto-de__bg {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 0;
  opacity: .9;
}
.proyecto-de .section-inner { z-index: 1; }
.proyecto-de__layout {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.statement {
  background: #f6f6f6;
  padding: 84px 0 100px;
}
.statement__text {
  max-width: 1269px;
  margin: 0 auto;
  text-align: center;
  font-size: 45px;
  font-weight: 500;
  line-height: 1.07;
  color: var(--text-dark);
}
.statement__text em { font-style: italic; font-weight: 700; }
.partner-card {
  flex: 1 1 280px;
  max-width: 301px;
  height: 434px;
  background: #f6f6f6;
  border-radius: 8px;
  padding: 34px 34px 30px;
  position: relative;
  box-sizing: border-box;
}
.partner-card__tag {
  display: inline-block;
  margin-top: 10px;
  background: rgba(58,122,110,.08);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.partner-card__logo { height: 36px; width: auto; max-width: 140px; object-fit: contain; margin-bottom: 24px; }
.partner-card__country { font-size: 12.5px; color: var(--gray-text); margin-bottom: 8px; }
.partner-card h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.partner-card__desc { font-size: 14.4px; color: var(--teal-text); line-height: 1.7; margin-bottom: 8px; }
.partner-card__url { display: block; text-decoration: none; font-size: 14.4px; font-weight: 600; color: var(--green); margin-bottom: 24px; }
.partner-card__url:hover { text-decoration: underline; }
.partner-card__foot {
  border-top: 1px solid rgba(58,122,110,.08);
  padding-top: 20px;
  font-size: 13px;
  color: var(--gray-text);
}

/* ============ Equipo ============ */
.equipo {
  padding: 70px 24px 119px;
  text-align: center;
  background: linear-gradient(183deg, #e2e2e2 26%, rgba(70,182,158,.25) 153%);
}
.equipo h2 { font-size: 40px; font-weight: 700; margin-bottom: 48px; }
.equipo__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.team-member { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 220px; }
.team-member__photo { position: relative; width: 144px; height: 144px; border-radius: 50%; overflow: hidden; }
.team-member__photo img { position: absolute; max-width: none; }
.team-photo--antonio { width: 178px; height: 267px; left: -17px; top: -30px; }
.team-photo--stephanie { width: 204px; height: 306px; left: -30px; top: -55px; }
.team-photo--natalia { width: 210px; height: 315px; left: -33px; top: -31px; }
.team-photo--antonia { width: 253px; height: 379px; left: -54px; top: -21px; }
.team-photo--carolina { width: 222px; height: 333px; left: -62px; top: 0; }
.team-member__name {
  background: linear-gradient(168deg, var(--orange-light), var(--orange));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 4px 18px;
  border-radius: 999px;
  white-space: nowrap;
}
.team-member__role { font-size: 13px; font-weight: 700; color: var(--near-black); margin: 0; }
.team-member__bio { font-size: 12px; line-height: 1.49; color: var(--near-black); max-width: 208px; margin: 0; }

/* ============ Certs ============ */
.certs {
  background: #d8d8da;
  padding: 32px 0 40px;
  overflow: hidden;
}
.certs__title { color: var(--gray-text); font-size: 16px; font-weight: 500; text-align: center; margin: 0 0 28px; }
.certs__marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.certs__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: certs-scroll 22s linear infinite;
}
.certs__marquee:hover .certs__track { animation-play-state: paused; }
@keyframes certs-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.certs__logo--corfo { height: 34px; width: auto; object-fit: contain; flex-shrink: 0; }
.certs__logo--eureka { height: 41px; width: auto; object-fit: contain; flex-shrink: 0; }
.certs__logo--sqm { height: 59px; width: 59px; object-fit: contain; flex-shrink: 0; }
.certs__ffg { position: relative; width: 130px; height: 46px; flex-shrink: 0; }
.certs__ffg-mark { position: absolute; left: 0; top: 0; width: 112px; height: 46px; }
.certs__ffg-tagline { position: absolute; left: 58px; top: 26px; width: 72px; height: 7px; }
@media (prefers-reduced-motion: reduce) {
  .certs__track { animation: none; }
}

/* ============ Contacto ============ */
.contacto { position: relative; padding: 80px 0; overflow: hidden; }
.contacto__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; z-index: 0; }
.contacto__layout {
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contacto__info h2 { font-size: 38px; font-weight: 700; letter-spacing: -1px; margin: 12px 0 0; }
.contacto__lead { color: var(--teal-text); font-size: 16px; margin: 20px 0 40px; max-width: 448px; line-height: 1.75; }
.contact-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; text-decoration: none; color: inherit; }
.contact-row__icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row__icon img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
a.contact-row:hover .contact-row__icon { background: var(--green-dark); }
.contact-row div { display: flex; flex-direction: column; }
.contact-row__label { font-size: 12.5px; font-weight: 500; color: var(--gray-text); }
.contact-row__value { font-size: 15.2px; font-weight: 500; color: var(--text-dark); }

.contacto__form {
  background: var(--bg-softer);
  border: 1.5px solid rgba(58,122,110,.1);
  border-radius: 16px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; gap: 20px; flex-wrap: wrap; }
.form-row label { flex: 1 1 180px; }
.contacto__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-text);
}
.contacto__form input, .contacto__form textarea {
  font-family: var(--font-heading);
  border: 1.5px solid rgba(58,122,110,.15);
  border-radius: 12px;
  padding: 13.5px 17.5px;
  font-size: 14.7px;
  color: var(--text-dark);
  background: #fff;
  resize: vertical;
}
.contacto__form input::placeholder, .contacto__form textarea::placeholder { color: rgba(26,26,26,.5); }

/* ============ Footer ============ */
.site-footer { position: relative; background: #1a3d35; color: #dde9dd; overflow: hidden; }
.site-footer__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.site-footer__row {
  position: relative;
  z-index: 1;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 41px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__logo { height: 24px; filter: brightness(0) invert(1); }
.site-footer__copy { font-size: 13px; }
.site-footer__contact { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.site-footer__social { display: flex; }
.site-footer__social img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.site-footer__social:hover img { filter: brightness(0) invert(85%); }

.newsletter {
  position: relative;
  z-index: 1;
  background: linear-gradient(177deg, #2d6b5e 0%, #2d6b5e 40%, var(--green) 70%, var(--green-darker) 100%);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.newsletter__label { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #dde9dd; }
.newsletter__divider { width: 1px; height: 20px; background: rgba(255,255,255,.2); }
.newsletter__text { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9); }
.newsletter__form { display: flex; }
.newsletter__form input {
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  border-radius: 999px 0 0 999px;
  padding: 0 16px;
  height: 38px;
  color: #fff;
  font-family: var(--font-heading);
  width: 240px;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__form button {
  border: none;
  border-radius: 0 999px 999px 0;
  padding: 0 20px;
  background: linear-gradient(163deg, var(--orange-light), var(--orange));
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .3px;
}
.newsletter__form button:hover { filter: brightness(.85); }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .conoce-tero__layout { grid-template-columns: 1fr; }
  .contacto__layout { grid-template-columns: 1fr; }
}

/* Below this width, 4 circle-items no longer fit in a single row (confirmed
   wrap starts at 1032px) which breaks the aspect-ratio+absolute layout tuned
   for the wide desktop look, so switch "Cómo lo hacemos" to a static stacked
   layout with generous margin above the measured wrap point. */
@media (max-width: 1080px) {
  .como-lo-hacemos__box h2 { font-size: 28px; }
  .como-lo-hacemos__box { padding: 28px; }
  .como-lo-hacemos__visual { aspect-ratio: unset; }
  .como-lo-hacemos__bg { object-fit: cover; }
  .como-lo-hacemos__text { position: relative; top: auto; left: auto; transform: none; padding-top: 32px; }
  .circles-row { position: static; top: auto; transform: none; padding: 40px 20px; }
}

@media (max-width: 900px) {
  .navbar__inner { flex-wrap: wrap; gap: 16px; padding: 20px; }
  .navbar__right { width: 100%; flex-wrap: wrap; justify-content: center; margin-left: 0; }
  .navbar__links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 16px 24px; }
  .hero { padding: 32px 20px 60px; }
  .hero__text h1 { font-size: 38px; }
  .beneficios__grid { grid-template-columns: 1fr; }
  .statement { padding: 48px 0 32px; }
  .statement__text { font-size: 28px; }
}

@media (max-width: 560px) {
  .hero__visual { max-width: 100%; }
  .section-inner { padding: 0 20px; }
  .circles-row { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 32px 16px; }
  .circle-item__photo { width: 150px; height: 150px; }
  .equipo__grid { gap: 24px; }
  .form-row { flex-direction: column; }
  .newsletter { flex-direction: column; align-items: flex-start; }
  .newsletter__form input { width: 100%; }
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Login page ============ */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  overflow: hidden;
}
.login-page__bg {
  position: absolute;
  top: 25%;
  left: 0;
  width: 100%;
  height: 75%;
  object-fit: cover;
  object-position: 30% 50%;
  opacity: .8;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 24px;
  background:
    linear-gradient(to left, rgba(212,89,58,.06) 4.4%, rgba(221,233,221,.15) 75.3%),
    linear-gradient(165deg, rgba(255,255,255,.1), rgba(240,243,242,.05));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  padding: 40px 36px 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,.12), 0 4px 16px rgba(0,0,0,.05);
}
.login-card__logo { height: 26px; width: auto; margin: 0 auto 28px; display: block; }
.login-card__title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: var(--text-dark);
  margin: 0 0 28px;
}
.login-card__form { display: flex; flex-direction: column; }
.login-card__label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.login-card__input {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-dark);
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(9,9,9,.25);
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 20px;
  width: 100%;
}
.login-card__input::placeholder { color: #8a8f8d; }
.login-card__input:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(255,255,255,.8);
}
.login-card__submit {
  margin: 4px 0 20px;
  border-radius: 14px;
  padding: 16px;
  font-size: 15.5px;
  justify-content: center;
}
.login-card__forgot {
  display: block;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green);
}
.login-card__forgot:hover { color: var(--green-dark); }
