/* ========== FYS360 · Landing ========== */

:root {
  --navy: #0d2440;
  --navy-deep: #081729;
  --green: #6bb42a;
  --green-bright: #8fd13f;
  --cyan: #14c4d8;
  --ink: #0f1d2e;
  --muted: #5b6b7f;
  --line: #e4eaf1;
  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(13, 36, 64, 0.25);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 92%); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
}

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav__toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #0a1f10;
  box-shadow: 0 12px 30px -10px rgba(107, 180, 42, .7);
}
.btn--primary:hover { box-shadow: 0 16px 36px -10px rgba(107, 180, 42, .85); }

.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }

.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }

.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(13, 36, 64, .35); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.nav__logo { height: 48px; width: auto; }

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--green);
  transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: .65rem 1.2rem; font-size: .9rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s 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;
  padding: 150px 0 110px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(20, 196, 216, .16), transparent 60%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .5;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__glow--a { width: 420px; height: 420px; background: var(--green-bright); top: -120px; left: -120px; }
.hero__glow--b { width: 380px; height: 380px; background: var(--cyan); bottom: -150px; right: -80px; animation-delay: -6s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 4rem;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.hero__badges li {
  font-size: .9rem;
  color: var(--navy);
  font-weight: 500;
  padding-left: 1.4rem;
  position: relative;
}
.hero__badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 10px; height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(107, 180, 42, .2);
}

.hero__visual { position: relative; padding: 2rem; }
.hero__card {
  position: relative;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 2.5rem 2.25rem;
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--green-bright));
}
.hero__card-logo { display: flex; justify-content: center; margin-bottom: 2rem; }
.hero__card-logo img { width: 100%; max-width: 280px; height: auto; }
.hero__card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.hero__card-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
}
.hero__card-list span {
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--green);
  font-weight: 700;
}

.stat {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: float 6s ease-in-out infinite;
}
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--navy); line-height: 1; }
.stat__unit { font-family: var(--font-display); font-weight: 800; color: var(--green); }
.stat small { color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.stat--top { top: 3rem; left: 0; }
.stat--bottom { bottom: 4rem; right: 0; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Strip ---------- */
.strip {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding: 1.2rem 0;
}
.strip__track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip__track i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-soft); }

.section__head { max-width: 640px; margin-bottom: 3.5rem; }
.section__head h2,
.contact__info h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.section__head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(20, 196, 216, .15), rgba(107, 180, 42, .2));
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; color: var(--navy); }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

.card.featured { background: var(--navy); border-color: var(--navy); color: #fff; }
.card.featured h3 { color: #fff; }
.card.featured p { color: #c7d5e4; }
.card.featured .card__icon { background: rgba(255, 255, 255, .08); color: var(--green-bright); }
.card__tag {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--green-bright);
  color: #0a1f10;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.card--cta {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.card--cta h3 { color: #fff; font-size: 1.4rem; }
.card--cta p { color: rgba(255, 255, 255, .92); }
.card--cta::before { display: none; }
.card--cta:hover { box-shadow: 0 24px 50px -20px rgba(20, 196, 216, .6); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
.step {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  position: relative;
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--green-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.step h3 { color: var(--navy); font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Sport ---------- */
.sport {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.sport__glow {
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 196, 216, .3), transparent 70%);
  top: -220px; left: -160px;
  pointer-events: none;
}
.sport__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.sport__content h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 1.25rem;
}
.sport__content p { color: #c7d5e4; font-size: 1.1rem; margin-bottom: 2.2rem; }
.eyebrow--light { color: var(--green-bright); }

.sport__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.sport__list li {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s ease, transform .3s ease;
}
.sport__list li:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.sport__list h3 { font-size: 1.05rem; color: #fff; margin-bottom: .5rem; }
.sport__list p { font-size: .92rem; color: #aebfd1; margin: 0; }

/* ---------- Card link ---------- */
.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  text-decoration: none;
}
.card__link:hover { color: var(--green); }

/* ---------- Nosotros ---------- */
.section__head--center { margin-inline: auto; text-align: center; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.pillar {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar__num {
  display: inline-grid;
  place-items: center;
  min-width: 64px; height: 64px;
  padding: 0 .8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}
.pillar h3 { font-size: 1.2rem; color: var(--navy); }
.pillar p { color: var(--muted); font-size: .97rem; margin: 0; }

.team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.team h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: .35rem; }
.team p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.section--contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--contact::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 180, 42, .35), transparent 70%);
  bottom: -200px; right: -150px;
  pointer-events: none;
}
.section--contact .eyebrow { color: var(--green-bright); }
.section--contact .contact__info h2 { color: #fff; }
.contact__info p { color: #c7d5e4; font-size: 1.1rem; margin-bottom: 2.2rem; }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; color: #e6eef7; }
.contact__list a { text-decoration: none; font-weight: 500; }
.contact__list small { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-bright); margin-bottom: .1rem; }
.contact__list a:hover { color: var(--green-bright); }
.contact__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  color: var(--green-bright);
  flex-shrink: 0;
}

.form {
  background: #fff;
  color: var(--ink);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .97rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--cyan); background: #fff; }
.field textarea { resize: vertical; }
.field.is-invalid input,
.field.is-invalid select { border-color: #e5484d; }
.field__error { display: block; min-height: 1em; color: #e5484d; font-size: .8rem; margin-top: .35rem; }

.form__status { margin: 1rem 0 0; font-size: .95rem; text-align: center; min-height: 1.4em; }
.form__status.is-ok { color: #2e8b2e; font-weight: 600; }
.form__status.is-error { color: #e5484d; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #8fa3b8; padding: 2.5rem 0; font-size: .9rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__logo { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer p { margin: 0; }
.footer__meta { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer__social { display: inline-flex; align-items: center; gap: .5rem; color: #8fa3b8; text-decoration: none; transition: color .2s ease; }
.footer__social:hover, .footer__social:focus-visible { color: #fff; }
.footer__social svg { flex-shrink: 0; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.cards .reveal:nth-child(2) { --d: 80ms; }
.cards .reveal:nth-child(3) { --d: 160ms; }
.cards .reveal:nth-child(4) { --d: 240ms; }
.cards .reveal:nth-child(5) { --d: 320ms; }
.cards .reveal:nth-child(6) { --d: 400ms; }
.steps .reveal:nth-child(2) { --d: 100ms; }
.steps .reveal:nth-child(3) { --d: 200ms; }
.steps .reveal:nth-child(4) { --d: 300ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid,
  .sport__grid,
  .contact { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .pillars { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    padding: 1.5rem 4%;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -25px rgba(13, 36, 64, .3);
  }
  .hero { padding: 120px 0 80px; }
  .hero__visual { padding: 1rem 0 2rem; }
  .stat--top { left: -4px; top: 0; }
  .stat--bottom { right: -4px; bottom: 1rem; }
  .cards,
  .steps { grid-template-columns: 1fr; }
  .hero__card { padding: 1.75rem; }
  .section { padding: 80px 0; }
  .form { padding: 1.75rem; }
  .sport__list { grid-template-columns: 1fr; }
  .team { flex-direction: column; align-items: flex-start; padding: 1.75rem; }
  .nav__inner { height: 68px; }
  .nav__logo { height: 40px; }
  .nav__links.is-open { top: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .runner { display: none; }
}

/* Corredor del logo: recorre la parte inferior de la pantalla al hacer scroll */
.runner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}
.runner img {
  display: block;
  height: 64px;
  width: auto;
  filter: drop-shadow(0 6px 8px rgba(13, 36, 64, .25));
}
.runner.is-running img { animation: runner-bob .36s ease-in-out infinite; }
.runner.is-reversed img { scale: -1 1; }

@keyframes runner-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
