/* ============================================
   Good Earth Recycling Center — styles.css
   Paleta: verde bosque + lima + tonos tierra
   ============================================ */
:root {
  /* Paleta tomada del logotipo: verde esmeralda profundo + dorado */
  --green-900: #0a2417;
  --green-800: #0d2b1d;
  --green-700: #14402b;
  --green-500: #1f5c3d;
  --gold-500: #c9a24b;
  --gold-400: #d4af37;
  --gold-300: #e8cf8e;
  --earth-100: #f7f4ec;
  --earth-200: #eae3d2;
  --ink: #12211a;
  --ink-soft: #3f5348;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 36, 23, 0.14);
  --shadow-lg: 0 24px 60px rgba(10, 36, 23, 0.26);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--earth-100);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.8rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--gold-400); color: var(--green-900); }
.btn-primary:hover { background: var(--gold-300); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-dark { background: var(--green-800); color: var(--white); }
.btn-dark:hover { background: var(--green-700); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 61, 46, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .8rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--white); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green-500), var(--gold-400));
  display: grid; place-items: center; font-size: 1.4rem;
}
.brand-name { font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-weight: 500; font-size: .72rem; color: var(--gold-300); letter-spacing: .12em; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 1.6rem; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.88); font-weight: 600; font-size: .95rem;
  padding: .4rem 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-300); border-color: var(--gold-300); }
.nav-cta { background: var(--gold-400); color: var(--green-900) !important; padding: .55rem 1.2rem !important; border-radius: 999px; border: none !important; }
.nav-cta:hover { background: var(--gold-300); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--white); border-radius: 3px; transition: .3s; }

/* ---------- Hero / Slider panorámico ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: grid; align-items: center;
  overflow: hidden; color: var(--white);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease;
  background-size: cover; background-position: center;
  transform: scale(1.08);
}
.hero-slide.is-active { opacity: 1; animation: kenburns 7s ease forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,61,46,.92) 20%, rgba(11,61,46,.55) 55%, rgba(11,61,46,.25));
}
.hero-content { position: relative; z-index: 2; padding-block: 9rem 6rem; max-width: 680px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(212,175,55,.14); border: 1px solid rgba(212,175,55,.4);
  color: var(--gold-300); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p.lead { margin: 1.4rem 0 2.2rem; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 54ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-dots { position: absolute; z-index: 3; bottom: 2.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; }
.hero-dots button {
  width: 34px; height: 5px; border-radius: 3px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .3s;
}
.hero-dots button.is-active { background: var(--gold-400); }

.hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem;
}
.hero-stat strong { display: block; font-size: 1.9rem; color: var(--gold-400); font-weight: 800; }
.hero-stat span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ---------- Secciones genéricas ---------- */
section { padding-block: 5.5rem; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  color: var(--green-500); font-weight: 800; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 .8rem; color: var(--green-900); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Beneficios ---------- */
.benefits { background: var(--white); }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.benefit-card {
  background: var(--earth-100); border-radius: var(--radius);
  padding: 2rem 1.6rem; border: 1px solid var(--earth-200);
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.benefit-icon {
  width: 54px; height: 54px; border-radius: 14px; font-size: 1.5rem;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, var(--green-500), var(--gold-400));
}
.benefit-card h3 { font-size: 1.15rem; color: var(--green-900); margin-bottom: .5rem; }
.benefit-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Servicios / Materiales ---------- */
.services { background: var(--green-900); color: var(--white); }
.services .kicker { color: var(--gold-400); }
.services .section-head h2 { color: var(--white); }
.services .section-head p { color: rgba(255,255,255,.75); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
  border-radius: var(--radius); overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(212,175,55,.16);
  transition: transform .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(212,175,55,.5); }
.service-media { height: 160px; display: grid; place-items: center; font-size: 3.2rem; }
.service-body { padding: 1.5rem; }
.service-body h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--gold-300); }
.service-body p { color: rgba(255,255,255,.78); font-size: .95rem; margin-bottom: 1rem; }
.service-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  background: rgba(212,175,55,.15); color: var(--gold-300);
  padding: .25rem .8rem; border-radius: 999px; margin: 0 .3rem .3rem 0;
}

/* ---------- Banner CTA ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-800), var(--green-500));
  color: var(--white); text-align: center;
  border-radius: calc(var(--radius) * 1.4);
  padding: 3.5rem 2rem; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: .8rem; }
.cta-banner p { color: rgba(255,255,255,.85); margin-bottom: 1.8rem; font-size: 1.1rem; }

/* ---------- Galería ---------- */
.gallery-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  display: grid; place-items: center; color: var(--white);
  font-weight: 700; font-size: .95rem; text-align: center; padding: 1rem;
  transition: transform .25s ease;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item span { position: relative; z-index: 2; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(11,61,46,.25); }

/* ---------- Testimonios ---------- */
.testimonials { background: var(--white); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card {
  background: var(--earth-100); border: 1px solid var(--earth-200);
  border-radius: var(--radius); padding: 2rem;
}
.stars { color: #f59e0b; letter-spacing: .15em; margin-bottom: .8rem; }
.testimonial-card blockquote { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: .8rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; font-weight: 800; color: var(--white);
  display: grid; place-items: center; background: var(--green-700);
}
.testimonial-author strong { display: block; font-size: .95rem; color: var(--green-900); }
.testimonial-author span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.contact { background: var(--earth-100); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--green-900); font-weight: 800; margin: .5rem 0 1rem; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-ic {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.1rem;
  background: var(--white); border: 1px solid var(--earth-200); box-shadow: var(--shadow);
}
.contact-list strong { display: block; color: var(--green-900); font-size: .95rem; }
.contact-list span, .contact-list a { color: var(--ink-soft); font-size: .92rem; }
.contact-list a:hover { color: var(--green-500); }

.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-lg); border: 1px solid var(--earth-200);
}
.contact-form h3 { color: var(--green-900); font-size: 1.3rem; margin-bottom: .4rem; }
.contact-form > p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .85rem; color: var(--green-900); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--ink);
  border: 1.5px solid var(--earth-200); border-radius: 12px; background: var(--earth-100);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(34,163,91,.15);
}
.form-submit { width: 100%; justify-content: center; }
.form-note { font-size: .78rem; color: var(--ink-soft); text-align: center; margin-top: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.8); padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .55rem; }
.footer-grid a { font-size: .92rem; transition: color .2s; }
.footer-grid a:hover { color: var(--gold-300); }
.footer-brand p { font-size: .9rem; margin-top: 1rem; max-width: 34ch; }
.social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); font-size: 1.1rem; transition: background .2s;
}
.social-row a:hover { background: var(--green-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.2rem 0; font-size: .82rem; text-align: center;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center; font-size: 1.9rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,.12); }
}

/* ---------- Animación on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Página interior (hero corto) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 9rem 0 4rem; color: var(--white); text-align: center;
  background: linear-gradient(115deg, var(--green-900) 30%, var(--green-700));
  background-size: cover; background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10,36,23,.93) 25%, rgba(13,43,29,.72));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 60ch; margin: 1rem auto 0; }

/* ---------- Nosotros ---------- */
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.mvv-card { background: var(--white); border: 1px solid var(--earth-200); border-radius: var(--radius); padding: 2.2rem; }
.mvv-card h3 { color: var(--green-800); font-size: 1.25rem; margin: .8rem 0 .6rem; }
.mvv-card p, .mvv-card li { color: var(--ink-soft); font-size: .96rem; }
.mvv-card ul { display: grid; gap: .7rem; list-style: none; }
.mvv-card li strong { color: var(--green-900); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--earth-200); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-media { height: 180px; display: grid; place-items: center; font-size: 3rem; color: var(--white); }
.blog-body { padding: 1.5rem; }
.blog-meta { font-size: .78rem; color: var(--green-500); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.blog-body h3 { color: var(--green-900); font-size: 1.15rem; margin: .5rem 0 .6rem; }
.blog-body p { color: var(--ink-soft); font-size: .93rem; }
.blog-link { display: inline-block; margin-top: 1rem; font-weight: 700; color: var(--green-700); }
.blog-link:hover { color: var(--green-500); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 64px 0 auto 0;
    background: var(--green-900); padding: 1rem 4%;
    transform: translateY(-130%); transition: transform .3s ease;
    border-bottom: 1px solid rgba(212,175,55,.2);
  }
  .main-nav.open { transform: none; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding-block: 8rem 5rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Marca estilo logotipo (icono izq + texto der) ---------- */
.brand-mark { background: none; padding: 0; }
.brand-mark img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-serif); font-weight: 700; letter-spacing: .04em; }

/* ---------- Selector de idioma ES/EN ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.45);
  color: var(--gold-300); font-weight: 800; font-size: .8rem;
  padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-switch:hover { background: var(--gold-400); color: var(--green-900); }

/* ---------- Medias con fotografía ---------- */
.service-media, .blog-media { position: relative; overflow: hidden; }
.service-media img, .blog-media img, .gallery-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.gallery-item { min-height: 100%; }
.gallery-item::after { background: linear-gradient(180deg, rgba(10,36,23,0) 40%, rgba(10,36,23,.72)); }
.gallery-item span { align-self: end; padding-bottom: .4rem; }

/* ---------- Separador dorado decorativo ---------- */
.gold-divider {
  width: 90px; height: 3px; margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
.section-head:not(.center) .gold-divider { margin-inline: 0; }
