/* ================= VARIABLES ================= */
:root {
  --green: #1fd11f;
  --green-hover: #19b519;
  --black: #000;
  --white: #fff;
  --nav-bg: rgba(0, 0, 0, 0.88);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --green-dark: #0a7a0a;
  --gray-title: #555;
  --gray-text: #666;
  --text: #1a1a1a;
}

/* ================= RESET ================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  transition: background-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

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

.btn--white { background: var(--white); color: var(--black); }
.btn--white:hover { background: #e9e9e9; }

/* ================= HEADER / NAV ================= */
.header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  border-radius: 28px;
  padding: 18px 56px;
  max-width: calc(var(--container) - 48px);
  backdrop-filter: blur(6px);
}

.nav__logo { display: flex; align-items: center; gap: 4px; }
.nav__logo-icon { height: 30px; width: auto; }
.nav__logo-text { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.nav__logo-text em { font-weight: 700; }

.nav__menu { display: flex; align-items: center; gap: 48px; }
.nav__links { display: flex; gap: 48px; }
.nav__links a {
  font-size: 15px;
  font-weight: 600;
  transition: color .2s;
}
.nav__links a:hover { color: var(--green); }

/* Hamburger (solo móvil) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.25) 100%),
    rgba(10, 25, 50, .25);
}

.hero__content { padding-top: 120px; padding-bottom: 80px; }

.hero__title {
  max-width: 680px;
  font-size: clamp(28px, 2.9vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__text {
  max-width: 600px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.45;
  margin-bottom: 32px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .nav { padding: 16px 24px; margin-inline: 16px; width: auto; }
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 24px;
    background: var(--nav-bg);
    border-radius: 20px;
    padding: 28px 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__links { flex-direction: column; align-items: center; gap: 20px; }
}

@media (max-width: 600px) {
  .header { top: 12px; }
  .nav__logo-text { font-size: 20px; }
  .nav__logo-icon { height: 24px; }
  .hero__overlay { background: rgba(0,0,0,.55); }
}

/* ================= NOSOTROS ================= */
.about {
  background: var(--white);
  color: var(--text);
  padding: 96px 0 110px;
}

.about__header {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 56px;
}

.eyebrow {
  display: block;
  color: var(--green-dark);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  margin-bottom: 14px;
}

.about__title {
  color: var(--gray-title);
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
}

.about__text {
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

/* ---- Carrusel ---- */
.carousel {
  /* El track arranca alineado al container y se desborda hacia la derecha */
  --gutter: max(24px, calc((100vw - var(--container)) / 2 + 24px));
}

.carousel__track {
  display: flex;
  gap: 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 16px var(--gutter) 32px; /* espacio para la sombra */
  scrollbar-width: none;
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging * { pointer-events: none; user-select: none; }

.card {
  flex: 0 0 clamp(280px, 32vw, 460px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 28px;
  padding: 36px 36px 48px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
}

.card__img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  margin-bottom: 22px;
}

.card__title {
  color: var(--green-dark);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  margin-bottom: 18px;
}

.card__text {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .about { padding: 72px 0 80px; }
  .about__header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 36px; }
  .card { flex-basis: 78vw; padding: 24px 24px 32px; border-radius: 22px; }
  .carousel__track { gap: 20px; }
}

/* ================= QUÉ RECICLAMOS ================= */
.recycle {
  background: #effbe9;
  color: var(--text);
  padding: 96px 0 120px;
}

.recycle__header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.recycle__title {
  color: #4a4a4a;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 18px;
}

.recycle__subtitle {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.45;
  max-width: 680px;
  margin-inline: auto;
}

.recycle__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px clamp(32px, 8vw, 110px);
  max-width: 1000px;
  margin-inline: auto;
}

.item {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 22px 40px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

/* Ícono con cuadro verde claro detrás */
.item__icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}
.item__icon::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  left: 16px;
  top: 4px;
  background: #e3f5dc;
  border-radius: 0 14px 0 14px;
  z-index: 0;
}
.item__icon svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #1f5a2a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.item__title {
  color: #3d3d3d;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
}

.item__text {
  color: var(--gray-text);
  font-size: 13.5px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .recycle { padding: 72px 0 80px; }
  .recycle__header { margin-bottom: 48px; }
  .recycle__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

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

/* ================= POR QUÉ ELEGIRNOS ================= */
.why {
  background: var(--white);
  color: var(--text);
  padding: 96px 0 110px;
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.why__title {
  color: var(--gray-title);
  font-size: clamp(26px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 36px;
}

.why__img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 52px;
}

.why__text {
  font-size: 14px;
  line-height: 1.55;
  max-width: 480px;
}

/* ---- Lista de beneficios ---- */
.why__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 8px;
}

.benefit {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 30px;
  row-gap: 22px;
}

.benefit__icon {
  grid-row: span 2;
  width: 64px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #e3f5dc;
  border-radius: 0 18px 0 18px;
}
.benefit__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit__title {
  color: var(--green-dark);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
}

.benefit__text {
  font-size: 14px;
  line-height: 1.45;
  max-width: 440px;
}

@media (max-width: 960px) {
  .why { padding: 72px 0 80px; }
  .why__inner { grid-template-columns: 1fr; }
  .why__img { margin-bottom: 28px; }
  .why__list { gap: 32px; }
}

@media (max-width: 600px) {
  .benefit { grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 10px; }
  .benefit__icon { width: 48px; height: 46px; border-radius: 0 14px 0 14px; }
  .benefit__icon svg { width: 26px; height: 26px; }
}

/* ================= FOOTER ================= */
.footer {
  --footer-ink: #123d1e;
  background: var(--white);
  color: var(--footer-ink);
  padding: 72px 0 80px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 56px;
}

.footer__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.footer__logo { display: flex; align-items: center; gap: 10px; color: var(--footer-ink); }
.footer__logo-icon { height: 64px; width: auto; }
.footer__logo-text { font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -1px; }
.footer__logo-text em { font-weight: 700; }

.footer__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--footer-ink);
}

.footer__links { display: flex; gap: clamp(32px, 9vw, 150px); }
.footer__links a { font-size: 18px; transition: color .2s; }
.footer__links a:hover { color: var(--green-dark); }

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #efefef;
  border-radius: 999px;
  padding: 18px 30px;
  font-size: 18px;
  transition: background-color .2s;
}
.footer__cta:hover { background: #e2e2e2; }
.footer__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 64px;
}

.footer__legal { font-size: 18px; line-height: 1.5; }
.footer__privacy { font-weight: 700; text-decoration: underline; }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-dark);
  transition: background-color .2s, transform .2s;
}
.footer__social a:hover { background: var(--green); transform: translateY(-2px); }
.footer__social svg { width: 30px; height: 30px; fill: var(--white); }
.footer__social svg.is-stroke { fill: none; stroke: var(--white); stroke-width: 2; }
.footer__social svg.is-stroke circle:last-child { fill: var(--white); }

@media (max-width: 960px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__nav { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-top: 40px; }
}

@media (max-width: 600px) {
  .footer { padding: 56px 0 64px; }
  .footer__links { flex-direction: column; gap: 14px; }
  .footer__title br { display: none; }
  .footer__logo-icon { height: 48px; }
  .footer__social a { width: 48px; height: 48px; }
  .footer__social svg { width: 26px; height: 26px; }
}
