/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:      #E6FF00;
  --black:       #11190C;
  --darker-gray: #444638;
  --dark-gray:   #787664;
  --mid-gray:    #CAC4B7;
  --light-gray:  #F3F1EE;
  --white:       #ffffff;
  --green-wa:    #25D366;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --max-w: 1100px;
  --section-gap: 120px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--light-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── WhatsApp float ── */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.wa-float::before {
  content: 'Escribinos';
  position: absolute;
  right: 62px;
  background: rgba(17, 25, 12, 0.92);
  color: var(--light-gray);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.wa-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── Skip link a11y ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--yellow);
  color: var(--black);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: var(--section-gap) 0; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(17, 25, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230, 255, 0, 0.07);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--yellow);
  text-decoration: none;
}
.logo span { color: var(--light-gray); font-weight: 300; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--mid-gray);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--yellow); }

.nav-links a.nav-cta {
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}
.nav-links a.nav-cta:hover { opacity: 0.85; color: var(--black); }

/* Hamburger mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--mid-gray);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Page header (inner pages) ── */
.page-header {
  padding-top: 148px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(230, 255, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 255, 0, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.page-header .container { position: relative; }

/* ── Section labels & headings ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  display: block;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}

h1 em { font-style: normal; color: var(--yellow); }

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.0625rem;
  color: var(--mid-gray);
  line-height: 1.75;
  max-width: 580px;
}

.section-sub {
  font-size: 0.9375rem;
  color: var(--mid-gray);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 60px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.87; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--light-gray);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--darker-gray);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: var(--mid-gray); color: var(--white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yellow);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--yellow); }

/* ── Divider ── */
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0; }

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.footer-logo span { color: var(--darker-gray); font-weight: 300; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--darker-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--mid-gray); }

footer p {
  font-size: 0.8125rem;
  color: var(--darker-gray);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  :root { --section-gap: 80px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(17, 25, 12, 0.97);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(230,255,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { justify-content: center; }
}
