/* ============================================================
   Agenda 360 — sitio institucional
   Paleta propia (lima → verde → esmeralda), inspirada en el
   estilo de landing SaaS moderno, sin copiar ningún diseño.
   ============================================================ */

:root {
  --brand-1: #84cc16;
  --brand-2: #16a34a;
  --brand-3: #059669;
  --brand-gradient: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 55%, var(--brand-3) 100%);

  --ink:        #101512;
  --ink-soft:   #3f4a44;
  --ink-muted:  #6b756f;

  --bg:         #ffffff;
  --bg-tint:    #f6f8f3;
  --bg-card:    #ffffff;
  --border:     #e3e8de;

  --footer-bg:  #0c1210;
  --footer-ink: #cfd8d0;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 21, 18, 0.06), 0 1px 1px rgba(16, 21, 18, 0.04);
  --shadow-md: 0 12px 32px rgba(16, 21, 18, 0.10);
  --shadow-lg: 0 24px 60px rgba(16, 21, 18, 0.16);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ── Reveal-on-scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1.is-visible { transition-delay: 0.08s; }
.reveal--delay-2.is-visible { transition-delay: 0.16s; }
.reveal--delay-3.is-visible { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(22, 163, 74, 0.36); }

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--brand-2); color: var(--brand-3); }

.btn--light {
  background: #ffffff;
  color: var(--brand-3);
}
.btn--light:hover { box-shadow: var(--shadow-md); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }

.link-muted { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
.link-muted:hover { color: var(--ink); }

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.navbar__brand strong { color: var(--brand-3); font-weight: 800; }

.navbar__logo {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.navbar__nav a:hover { color: var(--ink); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Badge / eyebrow ── */
.badge {
  display: inline-block;
  background: color-mix(in srgb, var(--brand-2) 12%, white);
  color: var(--brand-3);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.eyebrow {
  display: block;
  color: var(--brand-3);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Hero ── */
.hero {
  padding: 84px 0 96px;
  background:
    radial-gradient(60% 50% at 82% 12%, color-mix(in srgb, var(--brand-1) 16%, transparent) 0%, transparent 100%),
    var(--bg);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-list li {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

/* ── Hero mock art ── */
.hero__art {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
  padding: 34px 20px;
}

.mock-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

.mock-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 700;
  margin-bottom: 18px;
}
.mock-card__month { font-weight: 500; font-size: 0.8rem; color: var(--ink-muted); }

.mock-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.mock-calendar__day {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 600;
}
.mock-calendar__date {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 0;
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--bg-tint);
}
.mock-calendar__date.is-active {
  background: var(--brand-gradient);
  color: #fff;
}

.mock-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock-slot {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-tint);
  color: var(--ink-soft);
}
.mock-slot.is-selected {
  background: var(--brand-gradient);
  color: #fff;
  border-color: transparent;
}

.mock-toast, .mock-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 0.82rem;
  white-space: nowrap;
}
.mock-toast strong, .mock-chip strong { display: block; font-size: 0.84rem; }
.mock-toast small, .mock-chip small { color: var(--ink-muted); }

.mock-toast { top: -14px; right: -14px; }
.mock-toast__icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-2) 16%, white);
  color: var(--brand-3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.mock-chip { bottom: -14px; left: -14px; }
.mock-chip__icon { font-size: 1.2rem; }

/* ── Sections ── */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }

.section__head {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 52px;
}
.section__head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.section__head p { color: var(--ink-soft); font-size: 1.02rem; }

/* ── Grids ── */
.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ── Rubro cards ── */
.rubro-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rubro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.rubro-card__icon { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.rubro-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.rubro-card p { font-size: 0.88rem; color: var(--ink-muted); }

/* ── Feature cards ── */
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.feature-card__icon--a { background: color-mix(in srgb, var(--brand-2) 14%, white); }
.feature-card__icon--b { background: #fde7ef; }
.feature-card__icon--c { background: #eaf1ff; }
.feature-card__icon--d { background: #fff3d6; }
.feature-card__icon--e { background: #f1e9ff; }
.feature-card__icon--f { background: #e1f7f0; }

.feature-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--ink-muted); }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--brand-2), var(--border));
  z-index: 0;
}
.steps__item {
  position: relative;
  z-index: 1;
  text-align: center;
}
.steps__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.steps__item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.steps__item p { font-size: 0.9rem; color: var(--ink-muted); max-width: 30ch; margin-inline: auto; }

/* ── CTA banner ── */
.cta-banner {
  background: var(--brand-gradient);
  padding: 88px 0;
}
.cta-banner__inner {
  text-align: center;
  max-width: 560px;
}
.cta-banner__inner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.cta-banner__inner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  margin-bottom: 30px;
}

/* ── Footer ── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.navbar__brand--footer { color: #fff; }
.navbar__brand--footer strong { color: var(--brand-1); }

.footer__links {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
}
.footer__links a:hover { color: #fff; }

.footer__copy { font-size: 0.82rem; color: #8a948d; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 420px; margin-inline: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
}

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

  /* El menú abierto empuja el contenido hacia abajo (flujo normal),
     en vez de superponerse — evita huecos y capturas de click erróneas. */
  .navbar__inner { flex-wrap: wrap; height: auto; min-height: 72px; }
  .navbar__brand  { order: 1; }
  .navbar__toggle { order: 2; }

  .navbar__nav,
  .navbar__actions {
    order: 3;
    flex-basis: 100%;
    display: none;
  }
  .navbar__actions { order: 4; }
  .navbar__actions .link-muted { display: none; }

  body.nav-open .navbar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
  }
  body.nav-open .navbar__nav a { padding: 10px 2px; }

  body.nav-open .navbar__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 8px 0 20px;
  }
  body.nav-open .navbar__actions .link-muted {
    display: block;
    text-align: center;
    padding: 8px 0;
  }
  .navbar__actions .btn { justify-content: center; width: 100%; }

  .grid--4 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .mock-toast, .mock-chip { position: static; box-shadow: none; margin-top: 14px; }
  .hero__art { display: flex; flex-direction: column; }
}

@media (max-width: 480px) {
  .grid--4 { grid-template-columns: 1fr; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}
