/* ============================================================
   Industrial Plastics and Recycling - Estilos del sitio público
   Paleta eco/verde inspirada en los visuales de referencia.
   ============================================================ */

:root {
  --green-900: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink: #0f1f17;
  --muted: #5b6b62;
  --line: #e3ebe6;
  --white: #ffffff;
  --bg: #f6faf7;
  --shadow: 0 10px 30px rgba(20, 83, 45, 0.08);
  --radius: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--green-700); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section--tint { background: var(--green-50); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__kicker {
  display: inline-block; color: var(--green-600); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700;
  border: 2px solid transparent; cursor: pointer; font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-700); }
.btn--ghost { background: #fff; color: var(--green-700); border-color: var(--green-100); }
.btn--white { background: #fff; color: var(--green-700); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ink); }
.brand__logo { width: 40px; height: 40px; }
.brand__name { font-size: 1.02rem; line-height: 1.1; }
.brand__name small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--green-700); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 12px; font-weight: 700; cursor: pointer; color: var(--green-700); font-size: .85rem;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
    radial-gradient(900px 500px at 90% -10%, var(--green-100), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg)); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 76px 0; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.hero h1 .accent { color: var(--green-600); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: 1.7rem; color: var(--green-700); }
.hero__stat span { color: var(--muted); font-size: .9rem; }
.hero__art { position: relative; }
.hero__art img { border-radius: 22px; box-shadow: var(--shadow); }
.hero__badge {
  position: absolute; left: -16px; bottom: 24px; background: #fff; border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
}
.hero__badge .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--green-100);
  display: grid; place-items: center; font-size: 1.2rem; }

/* ---------- Trust bar ---------- */
.trust { background: var(--green-900); color: #d9f5e3; }
.trust__inner { display: flex; flex-wrap: wrap; gap: 22px 48px; justify-content: center; padding: 22px 0; }
.trust__item { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.trust__item .ico { color: var(--green-500); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-100);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Product cards ---------- */
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product__media { aspect-ratio: 16/10; background: var(--green-50); display: grid; place-items: center; }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--green-600); }
.product h3 { font-size: 1.25rem; margin-top: 6px; }
.product p { color: var(--muted); font-size: .95rem; }
.specs { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 6px; }
.specs li { display: flex; justify-content: space-between; font-size: .87rem; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-weight: 600; }
.product__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stock { font-size: .82rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.stock--disponible { background: var(--green-100); color: var(--green-700); }
.stock--bajo { background: #fef9c3; color: #854d0e; }
.stock--agotado { background: #fee2e2; color: #991b1b; }

/* ---------- PET buy box (destacado) ---------- */
.buybox { background: linear-gradient(135deg, var(--green-700), var(--green-900)); color: #fff;
  border-radius: 24px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  align-items: center; box-shadow: var(--shadow); }
.buybox__tag { display: inline-block; background: rgba(255,255,255,.15); color: #d9f5e3;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .8rem; letter-spacing: .05em; }
.buybox h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: 14px; }
.buybox p { color: #d9f5e3; }
.buybox__list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.buybox__list li { display: flex; gap: 10px; align-items: center; }
.buybox__list .ico { color: var(--green-500); }
.buybox__panel { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; min-height: 96px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form__msg { font-size: .9rem; padding: 10px 14px; border-radius: 10px; display: none; }
.form__msg.show { display: block; }
.form__msg.ok { background: var(--green-100); color: var(--green-700); }
.form__msg.err { background: #fee2e2; color: #991b1b; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #fff; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery figcaption { padding: 12px 16px; font-weight: 600; font-size: .9rem; }

/* ---------- Mapa ---------- */
.map-wrap { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Markets / list ---------- */
.markets { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-weight: 600; box-shadow: var(--shadow); }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote p { font-size: 1.02rem; font-style: italic; }
.quote__author { font-weight: 700; }
.quote__role { color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--green-600); font-size: 1.3rem; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); padding-bottom: 10px; }

/* ---------- Contact ---------- */
.contact__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact__row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact__row:last-child { border-bottom: 0; }
.contact__row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-100); display: grid; place-items: center; font-size: 1.2rem; }
.contact__row a, .contact__row span { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-600), var(--green-700)); color: #fff; border-radius: 24px; padding: 48px; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6fbee; max-width: 620px; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-900); color: #cdeede; padding: 54px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; margin-bottom: 14px; }
.footer a { color: #cdeede; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; text-align: center; font-size: .85rem; color: #9ccdb3; }

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.22);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Tarjetas de material ---------- */
.matcard { padding: 18px 20px; }
.matcard h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--green-700); }
.matcard p { margin: 0; font-size: .9rem; color: var(--muted); }
.matcard--other { background: var(--green-50); }

/* ---------- Año de operación ---------- */
.about__since { display: inline-block; background: var(--green-100); color: var(--green-700);
  font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin: 0 auto 8px; }

/* ---------- Cotización estimada ---------- */
.estimate { background: var(--green-50); border: 1px dashed var(--green-500); border-radius: 12px; padding: 14px 16px; }
.estimate__title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); }
.estimate__big { font-size: 1.5rem; font-weight: 800; color: var(--green-700); margin: 4px 0; }
.estimate__sub { font-size: .82rem; color: var(--muted); }
.estimate__note { font-size: .76rem; color: var(--muted); margin-top: 6px; }

/* ---------- Botón ficha técnica ---------- */
.btn--spec { background: #fff; border: 1px solid var(--line); color: var(--green-700); padding: 8px 14px; font-size: .82rem; border-radius: 999px; }
.btn--spec:hover { background: var(--green-50); }
.product__links { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- Blog ---------- */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.post__media { aspect-ratio: 16/9; background: var(--green-50); }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: .76rem; color: var(--muted); }
.post h3 { font-size: 1.12rem; margin: 6px 0; }
.post p { color: var(--muted); font-size: .92rem; }
.post a.read { margin-top: auto; font-weight: 700; color: var(--green-700); }

/* ---------- Utilidades de idioma ---------- */
[data-lang-hide] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .buybox { grid-template-columns: 1fr; padding: 30px; }
  .grid--3, .grid--4, .gallery { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: #fff; flex-direction: column;
    padding: 16px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid--3, .grid--4, .gallery, .grid--2, .form__row { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
