/* ============================================================
   HALLOUMI RECICLADORA — Paleta del logo corporativo
   ============================================================ */
:root {
  --green-dark: #0f4d2e;
  --green-mid: #1f7a3a;
  --green-bright: #2e9b47;
  --green-lime: #6fbf3a;
  --purple: #9b3db8;
  --purple-deep: #7a2a94;
  --bugambilia: #c2187a;
  --white: #ffffff;
  --off-white: #f5faf6;
  --text: #163528;
  --text-muted: #4a6356;
  --toolbar-bg: #6b1548;
  --shadow: 0 12px 40px rgba(15, 77, 46, 0.12);
  --radius: 4px;
  --header-h: 100px;
  --toolbar-h: 38px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container-90 {
  width: 90%;
  max-width: 1400px;
  margin-inline: auto;
}

.container-80 {
  width: 80%;
  max-width: 1200px;
  margin-inline: auto;
}

/* ---------- Toolbar ---------- */
.toolbar {
  background: var(--toolbar-bg);
  color: var(--white);
  font-size: 0.82rem;
  height: var(--toolbar-h);
  display: flex;
  align-items: center;
}

.toolbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.toolbar__left,
.toolbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.toolbar a {
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.25s var(--ease);
}

.toolbar a:hover {
  color: var(--green-lime);
}

.toolbar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(15, 77, 46, 0.08);
  border-bottom: 5px solid var(--bugambilia);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  text-transform: uppercase;
}

.brand__legal {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--green-bright);
  text-transform: uppercase;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-dark);
  position: relative;
  padding: 0.35rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-lime), var(--purple));
  transition: width 0.3s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.nav__cta {
  background: linear-gradient(135deg, var(--green-bright), var(--green-dark));
  color: var(--white) !important;
  padding: 0.7rem 1.35rem !important;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(46, 155, 71, 0.28);
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  filter: brightness(1.08);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  transition: 0.25s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--toolbar-h) - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(15, 77, 46, 0.9) 0%, rgba(15, 77, 46, 0.72) 42%, rgba(122, 42, 148, 0.45) 100%),
    url("../assets/web-hero.jpg") center / cover no-repeat;
  animation: heroShift 18s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, 1%); }
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.28;
  z-index: -1;
  animation: orbFloat 10s ease-in-out infinite;
  pointer-events: none;
}

.hero__orb--lime {
  width: 280px;
  height: 280px;
  background: var(--green-lime);
  top: 12%;
  right: 18%;
  animation-delay: -2s;
}

.hero__orb--purple {
  width: 220px;
  height: 220px;
  background: var(--purple);
  bottom: 18%;
  left: 12%;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(24px, -30px); }
}

.hero__content {
  width: 80%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 4.5rem 0 5rem;
  position: relative;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: fadeRise 1s var(--ease) both;
}

.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--green-lime), #c8f08a, #e0b3f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 1.15rem;
  max-width: 38ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  animation: fadeRise 1s 0.24s var(--ease) both;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: fadeRise 1s 0.36s var(--ease) both;
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--green-lime);
  color: var(--green-dark);
  box-shadow: 0 10px 28px rgba(111, 191, 58, 0.35);
}

.btn--primary:hover {
  background: #7fd145;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--solid {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(155, 61, 184, 0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  animation: bounceHint 2.2s ease-in-out infinite;
}

.hero__scroll span {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--green-lime), transparent);
}

@keyframes bounceHint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Sections ---------- */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section__head {
  margin-bottom: 2.75rem;
  max-width: 42rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.65rem;
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  color: var(--green-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__head p {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-copy strong {
  color: var(--green-dark);
}

.about-visual {
  display: grid;
  gap: 1rem;
}

.about-visual__main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.about-visual__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-visual__row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-panel {
  position: relative;
  padding: 2.25rem;
  background:
    linear-gradient(160deg, rgba(111, 191, 58, 0.12), rgba(155, 61, 184, 0.1)),
    var(--white);
  border-left: 4px solid var(--green-bright);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.about-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.about-panel ul {
  display: grid;
  gap: 0.65rem;
}

.about-panel li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-panel li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-lime), var(--purple));
  flex-shrink: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  padding: 1.75rem 1.5rem 1.85rem;
  border-top: 3px solid var(--green-bright);
  background: transparent;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.service:hover {
  background: rgba(111, 191, 58, 0.06);
  transform: translateY(-4px);
}

.service:nth-child(2) { border-top-color: var(--green-lime); }
.service:nth-child(3) { border-top-color: var(--purple); }
.service:nth-child(4) { border-top-color: var(--green-mid); }
.service:nth-child(5) { border-top-color: var(--purple-deep); }
.service:nth-child(6) { border-top-color: var(--green-bright); }

.service__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

.service__icon svg {
  width: 100%;
  height: 100%;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 0.55rem;
}

.service p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Products strip */
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product {
  min-height: 280px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background: var(--green-dark) center / cover no-repeat;
}

.product::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(6, 31, 20, 0.88));
  z-index: 0;
  transition: background 0.35s var(--ease);
}

.product:hover::before {
  background: linear-gradient(180deg, transparent 10%, rgba(6, 31, 20, 0.92));
}

.product:hover {
  transform: none;
}

.product--plastics { background-image: url("../assets/web-001.jpg"); }
.product--pet { background-image: url("../assets/web-002.jpg"); }
.product--malla { background-image: url("../assets/web-003.jpg"); }
.product--embalaje { background-image: url("../assets/web-004.jpg"); }

.product h3,
.product p {
  position: relative;
  z-index: 1;
}

.product h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.product p {
  font-size: 0.88rem;
  opacity: 0.9;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(111, 191, 58, 0.15), rgba(155, 61, 184, 0.12));
  color: var(--green-dark);
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--purple);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--white);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--green-lime);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 77, 46, 0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(46, 155, 71, 0.15);
  background: var(--white);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-note strong {
  color: var(--green-mid);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 3.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.75rem;
}

.footer__col h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.footer__brand-logo {
  width: 72px;
  margin-bottom: 0.85rem;
  background: var(--white);
  padding: 0.5rem;
  border-radius: 2px;
}

.footer__col > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.footer-menu {
  display: grid;
  gap: 0.55rem;
}

.footer-menu li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.footer-menu li::before {
  content: "•";
  color: var(--green-lime);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.footer-menu a:hover {
  color: var(--green-lime);
}

.footer-contact {
  display: grid;
  gap: 0.85rem;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--green-lime);
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--green-lime);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer__bottom a {
  color: var(--green-lime);
}

.footer__bottom a:hover {
  text-decoration: underline;
}

/* ---------- Floating gadgets ---------- */
.float-gadgets {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.scroll-top,
.whatsapp-float {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), opacity 0.25s, visibility 0.25s;
}

.scroll-top {
  background: var(--bugambilia);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-top:hover,
.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float {
  background: #25d366;
  color: var(--white);
}

.scroll-top svg,
.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* ---------- Privacy page ---------- */
.page-hero {
  background:
    linear-gradient(120deg, rgba(15, 77, 46, 0.92), rgba(122, 42, 148, 0.65)),
    radial-gradient(circle at 80% 20%, var(--green-lime), transparent 50%);
  color: var(--white);
  padding: 3.5rem 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.page-hero p {
  margin-top: 0.5rem;
  opacity: 0.85;
}

.legal-content {
  padding: 3.5rem 0 5rem;
}

.legal-content article {
  background: var(--white);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-content ul li {
  list-style: disc;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .toolbar {
    height: auto;
    padding: 0.45rem 0;
  }

  .toolbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 5%;
    gap: 0;
    box-shadow: 0 16px 32px rgba(15, 77, 46, 0.12);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(15, 77, 46, 0.08);
  }

  .nav__cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .site-header__inner {
    position: relative;
  }

  .brand__text {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .products,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .product {
    min-height: 240px;
  }

  .hero {
    min-height: 78vh;
  }

  .float-gadgets {
    right: 16px;
    bottom: 16px;
  }
}
