/* ============================================================
   EcoMetal Reciclaje — Hoja de estilos
   Paleta: azul petróleo oscuro + ámbar/cobre + verde WhatsApp
   ============================================================ */

:root {
  /* Paleta principal */
  --clr-dark: #10161f;        /* fondo profundo */
  --clr-navy: #1b2432;        /* azul petróleo */
  --clr-navy-soft: #232f42;   /* tarjetas sobre oscuro */
  --clr-amber: #f5a623;       /* ámbar principal */
  --clr-copper: #e07b39;      /* cobre / acento */
  --clr-cream: #faf6ef;       /* fondo claro cálido */
  --clr-white: #ffffff;
  --clr-text: #2b3446;        /* texto sobre claro */
  --clr-text-soft: #5b6577;
  --clr-text-inverse: #e8ecf3;
  --clr-whatsapp: #25d366;
  --clr-whatsapp-dark: #1eaf55;

  --grad-accent: linear-gradient(100deg, var(--clr-amber), var(--clr-copper));

  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --shadow: 0 12px 32px rgba(16, 22, 31, 0.12);
  --shadow-lg: 0 20px 50px rgba(16, 22, 31, 0.22);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

.btn--primary {
  background: var(--grad-accent);
  color: #201409;
  box-shadow: 0 10px 24px rgba(224, 123, 57, 0.35);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(224, 123, 57, 0.45); }

.btn--outline {
  border: 2px solid rgba(232, 236, 243, 0.35);
  color: var(--clr-text-inverse);
}
.btn--outline:hover { border-color: var(--clr-amber); color: var(--clr-amber); }

.btn--whatsapp {
  background: var(--clr-whatsapp);
  color: #0b2e19;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { background: var(--clr-whatsapp-dark); color: #ffffff; }

.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.14);
  color: var(--clr-copper);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 22, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 236, 243, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--clr-white);
}
.nav__logo em { font-style: normal; color: var(--clr-amber); }

.nav__logo-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad-accent);
  color: #201409;
  flex: none;
}
.nav__logo-icon svg { width: 24px; height: 24px; }

.nav__menu {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.nav__menu a {
  color: var(--clr-text-inverse);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav__menu a:hover { color: var(--clr-amber); }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav__toggle span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--clr-text-inverse);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(224, 123, 57, 0.22), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(245, 166, 35, 0.12), transparent 60%),
    linear-gradient(160deg, var(--clr-dark) 0%, var(--clr-navy) 100%);
  color: var(--clr-text-inverse);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 236, 243, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 243, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 6rem;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--clr-white);
  margin-bottom: 1.2rem;
}

.hero__content > p {
  font-size: 1.1rem;
  color: rgba(232, 236, 243, 0.82);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__content strong { color: var(--clr-amber); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.6rem;
}

.hero__stats {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
}
.hero__stats li { display: grid; gap: 0.15rem; }
.hero__stats strong {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--clr-amber);
}
.hero__stats span { font-size: 0.88rem; color: rgba(232, 236, 243, 0.65); }

/* Tarjetas visuales del hero */
.hero__visual {
  position: relative;
  display: grid;
  gap: 1.2rem;
  justify-items: end;
}

.hero__card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(35, 47, 66, 0.85);
  border: 1px solid rgba(232, 236, 243, 0.1);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  max-width: 330px;
}
.hero__card svg, .hero__card > span {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--clr-amber);
  font-size: 1.6rem;
  display: grid;
  place-items: center;
}
.hero__card p { font-size: 0.9rem; color: rgba(232, 236, 243, 0.75); }
.hero__card strong {
  display: block;
  font-family: var(--font-head);
  color: var(--clr-white);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.hero__card--float1 { margin-right: 3.5rem; animation: float 5s ease-in-out infinite; }
.hero__card--float2 { animation: float 5s ease-in-out 1.4s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ===== Secciones ===== */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--clr-white); }

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3.2rem;
}
.section__head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.section__head p { color: var(--clr-text-soft); font-size: 1.05rem; }

.section__cta {
  margin-top: 3rem;
  text-align: center;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}
.section__cta p { color: var(--clr-text-soft); }

/* ===== Grids ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== Tarjetas de servicio ===== */
.card {
  background: var(--clr-white);
  border: 1px solid rgba(43, 52, 70, 0.08);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(245, 166, 35, 0.14);
  color: var(--clr-copper);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 30px; height: 30px; }

.card h3 { font-size: 1.15rem; margin-bottom: 0.55rem; }
.card p { color: var(--clr-text-soft); font-size: 0.95rem; flex: 1; }

.card__link {
  margin-top: 1.1rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--clr-copper);
  transition: color 0.2s ease;
}
.card__link:hover { color: var(--clr-amber); }

/* ===== Materiales ===== */
.material {
  background: var(--clr-cream);
  border: 1px solid rgba(43, 52, 70, 0.07);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.material:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(245, 166, 35, 0.5);
}
.material__emoji { font-size: 2.1rem; display: block; margin-bottom: 0.7rem; }
.material h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.material p { font-size: 0.88rem; color: var(--clr-text-soft); }

/* ===== Pasos ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--clr-white);
  border-radius: var(--radius);
  border: 1px solid rgba(43, 52, 70, 0.08);
  padding: 2.2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow);
}

.step__number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #201409;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 8px 18px rgba(224, 123, 57, 0.35);
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.93rem; color: var(--clr-text-soft); }

/* ===== Nosotros ===== */
.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.about__content h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}
.about__content > p { color: var(--clr-text-soft); margin-bottom: 1.6rem; }

.checklist { display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-weight: 500;
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  background: rgba(37, 211, 102, 0.16);
  color: var(--clr-whatsapp-dark);
}

.about__panel { display: grid; gap: 1.2rem; }
.about__stat {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(160deg, var(--clr-navy), var(--clr-navy-soft));
  color: rgba(232, 236, 243, 0.85);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.about__stat strong { font-size: 1.9rem; flex: none; }
.about__stat span { font-size: 0.95rem; }

/* ===== CTA banner ===== */
.cta-banner {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(245, 166, 35, 0.25), transparent 60%),
    linear-gradient(120deg, var(--clr-dark), var(--clr-navy));
  color: var(--clr-white);
  padding: 4rem 0;
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}
.cta-banner p { color: rgba(232, 236, 243, 0.75); font-size: 1.05rem; }

/* ===== Contacto ===== */
.contact__card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.4rem;
  background: var(--clr-white);
  border: 1px solid rgba(43, 52, 70, 0.08);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.contact__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(245, 166, 35, 0.14);
  color: var(--clr-copper);
  margin-bottom: 0.6rem;
}
.contact__icon svg { width: 30px; height: 30px; }
.contact__icon--wa { background: rgba(37, 211, 102, 0.15); color: var(--clr-whatsapp-dark); }

.contact__card h3 { font-size: 1.15rem; }
.contact__card p { color: var(--clr-text-soft); font-weight: 500; }
.contact__hint { font-size: 0.88rem; font-weight: 600; color: var(--clr-copper); }

/* ===== Footer ===== */
.footer {
  background: var(--clr-dark);
  color: rgba(232, 236, 243, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}

.nav__logo--footer { margin-bottom: 1rem; }

.footer__desc { font-size: 0.95rem; max-width: 22rem; }

.footer h4 {
  color: var(--clr-white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer ul { display: grid; gap: 0.55rem; }
.footer ul a { transition: color 0.2s ease; font-size: 0.95rem; }
.footer ul a:hover { color: var(--clr-amber); }
.footer ul li { font-size: 0.95rem; }

.footer__bottom {
  border-top: 1px solid rgba(232, 236, 243, 0.08);
  padding: 1.2rem 0;
  font-size: 0.88rem;
}

/* ===== Botón flotante WhatsApp ===== */
.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--clr-whatsapp);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse 2.4s ease-out infinite;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55); }
.whatsapp-fab svg { width: 32px; height: 32px; }

@keyframes pulse {
  0% { outline: 0 solid rgba(37, 211, 102, 0.45); outline-offset: 0; }
  70% { outline: 14px solid rgba(37, 211, 102, 0); outline-offset: 4px; }
  100% { outline: 0 solid rgba(37, 211, 102, 0); outline-offset: 0; }
}

/* ===== Animación de entrada ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__card--float1, .hero__card--float2, .whatsapp-fab { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { grid-template-columns: 1fr; padding: 4rem 0; }
  .hero__visual { justify-items: start; }
  .hero__card--float1 { margin-right: 0; margin-left: 3rem; }
}

@media (max-width: 820px) {
  .grid--3 { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav__cta { display: none; }

  .nav__toggle { display: flex; margin-left: auto; }

  .nav__menu {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--clr-dark);
    border-bottom: 1px solid rgba(232, 236, 243, 0.1);
    padding: 0.5rem 0 1rem;
    margin-left: 0;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 40;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .hero__stats { gap: 1.5rem; }
  .cta-banner__inner { justify-content: center; text-align: center; }
}
