/* ==========================================================================
   RECICLEM — réplica estática de www.reciclem.es
   ========================================================================== */

/* --- Fuente Dosis (variable, pesos 400–700) --------------------------------- */
@font-face {
  font-family: 'Dosis';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/dosis-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Dosis';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/dosis-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Dosis';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/dosis-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}

/* --- Variables -------------------------------------------------------------- */
:root {
  --verde: #23a455;
  --verde-hover: #1c8746;
  --verde-claro: #61ce70;
  --texto: #4a4a4a;
  --gris-footer-bg: #f5f5f5;
  --gris-footer-txt: #777;
  --blanco: #fff;
  --header-h: 92px;
}

/* --- Reset ligero ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Dosis', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--blanco);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

.icon { width: 1em; height: 1em; fill: currentColor; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--verde);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* --- Top bar ---------------------------------------------------------------- */
.top-bar {
  background: var(--verde);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.top-bar__inner {
  display: flex;
  gap: 28px;
  align-items: center;
  min-height: 40px;
}
.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.top-bar__item .icon { font-size: 14px; opacity: .9; }

/* --- Header ----------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
.site-logo img { width: 150px; height: auto; }

/* Header fijo al hacer scroll */
.site-header.is-stuck {
  position: fixed;
  top: 0;
  background: rgba(20, 20, 20, .96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.site-header.is-stuck .site-header__inner { min-height: 70px; }

.main-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--verde-claro); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle .icon { font-size: 20px; }

/* --- Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, transform .15s ease;
}
.btn--pill {
  background: var(--verde);
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 15px 34px;
  border-radius: 50px;
}
.btn--pill:hover { background: var(--verde-hover); }
.btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-style: italic;
  font-size: 13px;
  line-height: 1;
}

/* --- Secciones (base) ------------------------------------------------------- */
.section {
  position: relative;
  padding: 90px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section__overlay--dark06 { background: rgba(0, 0, 0, .6); }
.section__overlay--dark05 { background: rgba(0, 0, 0, .5); }
.section__overlay--light  { background: rgba(255, 255, 255, .15); }

.section__content { position: relative; z-index: 1; }
.section__content--center { text-align: center; max-width: 900px; margin: 0 auto; }

.section__title {
  font-size: 34px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--verde-claro);
  letter-spacing: 1px;
  margin: 0 0 28px;
}
.section__title--light { color: #fff; }
.section__title--center { text-align: center; }
.section__lead { margin-bottom: 40px; }

/* --- Hero ------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../assets/img/fondo_papel.jpg');
  background-attachment: fixed;
}
.hero__content { position: relative; z-index: 1; text-align: center; }
.hero__eyebrow {
  color: var(--verde-claro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 18px;
  margin-bottom: 10px;
}
.hero__title {
  color: #fff;
  font-size: 90px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 6px;
}
.hero__subtitle {
  color: rgba(255, 255, 255, .85);
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero__text {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  margin-bottom: 34px;
}

/* --- Sobre nosotros / El porqué (fondo oscuro, texto claro) ----------------- */
.section--about {
  background-image: url('../assets/img/cubo_basura.jpg');
  background-attachment: fixed;
}
.section--why {
  background-image: url('../assets/img/despacho.jpg');
  background-attachment: fixed;
}
.section--about .section__content,
.section--why .section__content { color: #fff; }
.section--about p, .section--why p { font-size: 16px; }
.section--about .btn { margin-top: 20px; }

/* --- Procedimiento (goal) --------------------------------------------------- */
.section--goal { background: var(--verde); color: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
  text-align: center;
}
.step__num {
  display: block;
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  margin-bottom: 24px;
}
.step p { font-weight: 600; font-size: 15px; margin: 0; }

/* --- Qué hacemos ------------------------------------------------------------ */
.section--services {
  background-image: url('../assets/img/papel_arrugado.jpg');
  background-attachment: fixed;
}
.section--services .section__content { color: var(--texto); }
.section--services p { font-size: 16px; }
.services__img {
  margin: 40px auto 0;
  width: 360px;
  max-width: 100%;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .25));
}
/* Animación zoomIn al entrar en viewport */
.js-zoom { opacity: 0; transform: scale(.6); }
.js-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity .9s ease, transform .9s ease;
}

/* Animación fadeIn (entrada suave hacia arriba) */
.js-fade { opacity: 0; transform: translateY(20px); }
.js-fade.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .8s ease;
}
/* Aparición escalonada de los pasos del procedimiento */
.steps .js-fade:nth-child(2).is-visible { transition-delay: .15s; }
.steps .js-fade:nth-child(3).is-visible { transition-delay: .30s; }
.steps .js-fade:nth-child(4).is-visible { transition-delay: .45s; }

/* --- Contacto --------------------------------------------------------------- */
.section--contact { background: #fff; }
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  margin-top: 20px;
}

.field { margin-bottom: 18px; }
.field label,
.field__legend {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.req { color: var(--verde); }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-family: inherit;
  font-size: 15px;
  color: var(--texto);
  background: #f7f7f7;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--verde);
  background: #fff;
}
.field textarea { resize: vertical; }

.field--check .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  color: var(--texto);
}
.field--check .check input { margin-top: 5px; flex: 0 0 auto; }
.gdpr-legal {
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #888;
}
.gdpr-legal p { margin: 0 0 8px; }

/* Honeypot: fuera de pantalla, no visible para humanos */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn--submit {
  background: var(--verde);
  color: #fff;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 30px;
  border-radius: 0;
}
.btn--submit:hover { background: var(--verde-hover); }
.btn--submit:disabled { opacity: .6; cursor: default; }

.form-message {
  margin-bottom: 16px;
  font-weight: 600;
  display: none;
}
.form-message.is-error   { display: block; color: #c0392b; }
.form-message.is-success { display: block; color: var(--verde); }
.field.has-error input,
.field.has-error textarea { border-color: #c0392b; background: #fff4f3; }

/* Info de contacto (columna derecha) */
.contact__info { padding-top: 10px; }
.contact__item {
  text-align: center;
  margin-bottom: 34px;
}
.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  font-size: 30px;
  margin-bottom: 6px;
}
.contact__item p { margin: 0; }

/* --- Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--gris-footer-bg);
  color: var(--gris-footer-txt);
  font-size: 12px;
  text-align: center;
  padding: 22px 0;
}
.site-footer p { margin: 0; }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, .98);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 380px; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-top: 1px solid rgba(255, 255, 255, .08); }
  .main-nav a { display: block; padding: 15px 20px; }

  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; gap: 40px; }

  .hero__title { font-size: 62px; }
  .hero__subtitle { font-size: 34px; }
  .section__title { font-size: 28px; }

  /* background-attachment: fixed da problemas en móvil */
  .hero, .section--about, .section--why, .section--services {
    background-attachment: scroll;
  }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .steps { grid-template-columns: 1fr; }
  .top-bar__inner { gap: 16px; font-size: 11px; }
  .hero__title { font-size: 46px; }
  .hero__subtitle { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-zoom, .js-fade { opacity: 1; transform: none; }
}
