/* ==========================================================================
   Recicredit — Landing
   ========================================================================== */

:root {
  --green: #5fd306;
  --green-dark: #4bb000;
  --green-deep: #0e2e12;
  --bg-dark-1: #06170a;
  --bg-dark-2: #0f2b13;
  --ink: #0c1c0f;
  --ink-soft: #4a564c;
  --grey-bg: #f6f8f5;
  --white: #ffffff;
  --border-soft: #e4e9e1;
  --radius: 14px;
  --max-width: 1220px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(12, 28, 15, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-reci { color: var(--ink); }
.logo-credit { color: var(--green-dark); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
.nav-link:hover { background: rgba(12, 28, 15, 0.05); }
.nav-link svg { color: var(--ink-soft); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f3fbe4 0%, #d8f29a 55%, #c3ec6e 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 28, 15, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 28, 15, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-dark);
}

.hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 760px;
  color: var(--ink);
}

.hero-title .accent {
  color: var(--green-dark);
}

.hero-copy {
  font-size: 1.08rem;
  color: #2a352c;
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border-radius: 9px;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: #0b1c0d;
  box-shadow: 0 10px 24px -8px rgba(79, 176, 0, 0.55);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: rgba(12, 28, 15, 0.35);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(12, 28, 15, 0.04); }

/* ==========================================================================
   About / Qué es Recicredit
   ========================================================================== */

.about {
  background: var(--grey-bg);
  padding: 104px 0;
}

.eyebrow-dark { color: var(--green-dark); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 780px;
}

.section-copy {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 56px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e9f8d6;
  color: var(--green-dark);
  margin-bottom: 22px;
}

.card h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.3;
}

.card p {
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: linear-gradient(160deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%);
  color: var(--white);
  padding: 110px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.eyebrow-light { color: var(--green); }

.contact-title {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

.contact-lead {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 460px;
  margin: 0 0 32px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Form card */

.form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(95, 211, 6, 0.35);
  border-radius: 18px;
  padding: 36px 36px 30px;
}

.form-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 24px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 13px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field textarea { resize: vertical; min-height: 92px; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.38); }

.field select {
  appearance: none;
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.field select option { color: #0c1c0f; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.field input:invalid[data-touched="true"],
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #ff6b6b;
}

.field-error {
  display: block;
  min-height: 16px;
  font-size: 0.78rem;
  color: #ff8f8f;
  margin-top: 6px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  width: 100%;
  background: var(--green);
  color: #0b1c0d;
  padding: 16px;
  margin-top: 4px;
  border-radius: 9px;
  font-size: 1rem;
}
.btn-submit:hover { background: var(--green-dark); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  min-height: 20px;
  font-size: 0.9rem;
  margin: 0 0 8px;
}
.form-status.success { color: var(--green); }
.form-status.error { color: #ff8f8f; }

.form-disclaimer {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 18px 0 0;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 16px; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; }

  .wrap { padding: 0 20px; }
  .hero-inner { padding: 64px 20px 80px; }
  .about, .contact { padding: 72px 0; }
  .form-row.two { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px 24px; }
}
