/* =========================================================
   Agencia Frisbee — sitio institucional
   Paleta tomada del logo: azul eléctrico -> teal
   Tipografías: Space Grotesk (títulos) + Inter (texto)
   ========================================================= */

:root {
  --blue: #0057ff;
  --blue-ink: #1e4e9e;
  --teal: #2fb6a8;
  --grad: linear-gradient(115deg, #0057ff 0%, #2fb6a8 100%);
  --ink: #0e1a2b;
  --muted: #5b6b7f;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e4eaf2;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .04), 0 14px 34px -14px rgba(14, 26, 43, .14);
  --shadow-hover: 0 2px 4px rgba(14, 26, 43, .05), 0 22px 48px -16px rgba(14, 26, 43, .22);
  --container: 1120px;
  --header-h: 68px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }

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

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

.muted { color: var(--muted); }

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin: 0 0 .9rem;
}

.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; }

/* ---------- Botones ---------- */
.btn {
  --btn-py: 14px;
  --btn-px: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background-image: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 87, 255, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(0, 87, 255, .6); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-sm { --btn-py: 10px; --btn-px: 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.link-arrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  color: var(--blue);
}
.link-arrow::after { content: " →"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 20px -12px rgba(14, 26, 43, .2);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 50%; }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav > a {
  color: var(--ink);
  font-weight: 500;
  font-size: .96rem;
}
.nav > a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 520px at 70% -10%, #eaf1ff 0%, rgba(234, 241, 255, 0) 60%), var(--bg);
  padding: clamp(48px, 9vw, 104px) 0 clamp(80px, 12vw, 132px);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { margin-bottom: .35em; }
.hero-lead {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 20px;
}
.hero-note {
  font-size: .95rem;
  color: var(--muted);
  margin: 0;
}
.orbit {
  position: absolute;
  right: -140px;
  top: -80px;
  width: min(680px, 70vw);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
}
.orbit svg { width: 100%; height: 100%; }
.arc {
  position: absolute;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  width: min(560px, 82vw);
  height: 90px;
  z-index: 2;
  pointer-events: none;
}
.arc svg { width: 100%; height: 100%; }

/* ---------- Strip ---------- */
.strip {
  background: var(--ink);
  color: #eaf1ff;
}
.strip-text {
  margin: 0;
  padding: 22px 0;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 60px);
  text-align: center;
}
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-foot {
  text-align: center;
  margin: 40px 0 0;
  color: var(--muted);
}
.section-foot a { font-weight: 600; }

/* ---------- Grillas / Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.service { transition: transform .18s ease, box-shadow .18s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(115deg, rgba(0, 87, 255, .12), rgba(47, 182, 168, .12));
  color: var(--blue);
  margin-bottom: 16px;
}
.chip svg { width: 22px; height: 22px; }

.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  font-size: .96rem;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.ticks.light li { color: rgba(255, 255, 255, .82); }
.ticks.light li::before { border-color: #fff; }

/* ---------- Método / steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background-image: var(--grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-copy p { color: var(--muted); }
.about-copy > h2 { margin-bottom: .4em; }
.values {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}
.value {
  padding-left: 18px;
  border-left: 3px solid;
  border-image: var(--grad) 1;
}
.value h3 { margin-bottom: .2em; }
.value p { margin: 0; font-size: .96rem; }

.about-team { position: sticky; top: calc(var(--header-h) + 20px); }
.about-team h3 { margin-bottom: .3em; }
.roles { list-style: none; margin: 18px 0 0; padding: 0; }
.roles li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-weight: 500;
  font-size: .96rem;
}
.roles li span {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  color: var(--blue-ink);
  background: linear-gradient(115deg, rgba(0, 87, 255, .12), rgba(47, 182, 168, .14));
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, #06214f 0%, #0057ff 55%, #2fb6a8 130%);
  color: #fff;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-copy h2 { color: #fff; }
.cta-copy p { color: rgba(255, 255, 255, .88); }
.cta-form { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 87, 255, .12);
}
.field textarea { resize: vertical; }
.form-alt { margin: 14px 0 0; font-size: .9rem; text-align: center; color: var(--muted); }
.field-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.form-status {
  margin: 14px 0 0;
  font-size: .92rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}
.form-status.ok { color: var(--teal); }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  padding: 56px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 40px;
}
.footer-brand img { margin-bottom: 16px; width: 150px; height: auto; }
.footer-brand p { font-size: .95rem; max-width: 34ch; margin: 0; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-nav h4 {
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: .04em;
}
.footer-nav a {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: .93rem;
  padding: 5px 0;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-team { position: static; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    box-shadow: 0 20px 40px -20px rgba(14, 26, 43, .35);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav > a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav > a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; }
}

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