/* =========================================================
   ERZBERG — Polímeros reciclados y servicios
   ========================================================= */

:root {
  --bg-dark: #1C2420;
  --bg-dark-2: #212B26;
  --bg-dark-3: #28362F;
  --cream: #F7F5EE;
  --cream-2: #ECE8DC;
  --accent: #EC6708;
  --accent-light: #F5924D;
  --accent-dark: #C24F00;
  --secondary: #057653;
  --secondary-light: #5FCBA0;
  --secondary-dark: #033F2C;
  --yellow: #FCD114;
  --text-muted: #6B7168;
  --border-light: #E1DED2;
  --border-dark: #2E3A34;
  --font-head: 'Raleway', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--bg-dark);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--bg-dark); color: var(--cream); }
.section--cream { background: var(--cream); color: var(--bg-dark); }
.section--cream-2 { background: var(--cream-2); color: var(--bg-dark); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--text-muted); }
.section--dark .section-head p { color: #B8BCC2; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 100px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--accent); color: var(--cream); }
.btn--primary:hover { background: var(--accent-light); box-shadow: 0 10px 26px rgba(236,103,8,0.35); }

.btn--outline { background: transparent; color: var(--cream); border: 1.5px solid rgba(246,245,241,0.35); }
.btn--outline:hover { border-color: var(--accent-light); color: var(--accent-light); }

.btn--outline-dark { background: transparent; color: var(--bg-dark); border: 1.5px solid rgba(28,36,32,0.25); }
.btn--outline-dark:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(28,36,32,0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--cream);
}
.logo span { color: var(--accent-light); }

.logo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  padding: 7px 14px;
  border-radius: 10px;
  line-height: 0;
}
.logo-badge img { height: 32px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links { display: flex; gap: 32px; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--cream);
  opacity: 0.85;
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { opacity: 1; color: var(--accent-light); }

.nav__cta { display: none; }
@media (min-width: 900px) { .nav__cta { display: inline-flex; } }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) { .burger { display: none; } }

.nav__links { display: none; }
@media (min-width: 900px) { .nav__links { display: flex; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--accent-dark), var(--accent) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.65,0,0.35,1);
  z-index: 1050;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  color: var(--cream);
}
.mobile-menu a:hover { color: var(--bg-dark); }
.mobile-menu .btn { margin-top: 12px; }

@media (min-width: 900px) { .mobile-menu { display: none; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background: var(--bg-dark);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,36,32,0.55) 0%, rgba(28,36,32,0.78) 55%, rgba(28,36,32,0.97) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 140px;
  max-width: 760px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5,118,83,0.22);
  border: 1px solid rgba(95,203,160,0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--secondary-light);
}
.hero__badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary-light);
}
.hero h1 {
  font-style: italic;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.02;
  color: var(--cream);
}
.hero h1 span { color: var(--accent-light); }
.hero__subtitle {
  margin-top: 20px;
  font-size: clamp(18px, 2.4vw, 22px);
  color: #D7D9D3;
  max-width: 480px;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ QUICK SERVICES ============ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
  margin-top: -60px;
}
.quick-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.quick-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.quick-card__img { height: 160px; overflow: hidden; }
.quick-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.quick-card:hover .quick-card__img img { transform: scale(1.08); }
.quick-card__body { padding: 24px; }
.quick-card__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--yellow);
  letter-spacing: 0.1em;
}
.quick-card__body h3 {
  font-size: 19px;
  margin: 10px 0 10px;
  color: var(--cream);
}
.quick-card__body p { font-size: 14.5px; color: #AEB2B8; }
.quick-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--accent-light);
}

/* ============ BANNER STRIP ============ */
.banner {
  background: var(--secondary-dark);
  color: var(--cream);
  padding: 56px 0;
  text-align: center;
}
.banner p:first-child {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(20px, 3vw, 30px);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.3;
}
.banner p:last-child {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-light);
  font-weight: 700;
}

/* ============ NOSOTROS ============ */
.nosotros-quote {
  font-family: var(--font-head);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  color: var(--bg-dark);
  max-width: 820px;
  margin-bottom: 28px;
}
.nosotros-quote span { color: var(--accent-dark); }
.nosotros-text { max-width: 760px; font-size: 17px; color: #3A3D40; margin-bottom: 20px; }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.mv-card {
  background: var(--cream-2);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 32px;
}
.mv-card h3 {
  font-size: 20px;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.mv-card p { font-size: 15.5px; color: #4A4D50; }

.pillars {
  margin-top: 20px;
  background: var(--bg-dark);
  color: var(--cream);
  border-radius: 20px;
  padding: 40px;
}
.pillars p { font-size: 15.5px; color: #C3C7CC; max-width: 820px; }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.valor-card {
  padding: 26px 22px;
  border-radius: 16px;
  background: var(--cream-2);
  border: 1px solid var(--border-light);
}
.valor-card__mark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}
.valor-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.valor-card p { font-size: 14px; color: var(--text-muted); }

/* ============ SERVICIOS (detail) ============ */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border-dark);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse .service-row__media { order: 2; }
.service-row__media img {
  border-radius: 18px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}

/* ---- Carousel ---- */
.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-dark-2);
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.65,0,0.35,1);
}
.carousel__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 100%;
  border-radius: 0;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(28,36,32,0.55);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 3;
}
.carousel__arrow:hover { background: var(--accent); }
.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }
.carousel__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(246,245,238,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
}
.carousel__dot.is-active { background: var(--accent-light); width: 20px; border-radius: 4px; }
.carousel__count {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(28,36,32,0.6);
  color: var(--cream);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  z-index: 3;
}
.carousel--single .carousel__arrow,
.carousel--single .carousel__dots,
.carousel--single .carousel__count { display: none; }
.service-row__num {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--accent-light);
  font-size: 14px;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.service-row h3 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--cream);
  margin-bottom: 16px;
}
.service-row p { color: #B8BCC2; font-size: 16px; }

@media (max-width: 780px) {
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-row.reverse .service-row__media { order: 0; }
}

/* ============ POLIMEROS ============ */
.polimeros-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.polimeros-media { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.polimeros-media img { border-radius: 16px; aspect-ratio: 3/4; object-fit: cover; }
.polimeros-media img:first-child { grid-row: span 2; aspect-ratio: 3/5.4; }

.resin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 32px 0 36px;
}
.resin-chip {
  background: var(--bg-dark);
  color: var(--cream);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.resin-chip::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--secondary-light);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .polimeros-wrap { grid-template-columns: 1fr; }
  .polimeros-media { order: -1; }
}

/* ============ CONTACTO ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}
.contact-info h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  color: var(--cream);
  margin-bottom: 20px;
}
.contact-info > p { color: #B8BCC2; font-size: 17px; max-width: 460px; margin-bottom: 36px; }

.contact-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-dark);
}
.contact-item:last-of-type { border-bottom: 1px solid var(--border-dark); }
.contact-item__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(236,103,8,0.14);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 6px; }
.contact-item p, .contact-item a { font-size: 16px; color: var(--cream); }

.contact-card {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  padding: 40px;
  align-self: start;
}
.contact-card h3 { font-size: 22px; color: var(--cream); margin-bottom: 10px; }
.contact-card p { font-size: 15px; color: #AEB2B8; margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #AEB2B8;
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14.5px;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 100px; }
.contact-card .btn { width: 100%; justify-content: center; margin-top: 4px; }

@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }

/* ============ MAP ============ */
.map-frame {
  margin-top: 64px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  filter: grayscale(0.3) invert(0.92) contrast(0.88);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-dark);
  color: #9BA0A6;
  padding: 56px 0 28px;
  border-top: 1px solid var(--border-dark);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-dark);
}
.footer__brand .logo-badge { margin-bottom: 14px; }
.footer__brand p { max-width: 300px; font-size: 14.5px; }
.footer__links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer__col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer__col a, .footer__col p { display: block; font-size: 14.5px; margin-bottom: 10px; }
.footer__col a:hover { color: var(--accent-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
}

/* ============ REVEAL ANIM ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero__content { padding-top: 100px; padding-bottom: 100px; }
  .quick-grid { margin-top: -40px; }
}
