/* patinAlcala · página única
   Fuentes alojadas en /fonts (sin peticiones a terceros) */

@font-face { font-family: "Fredoka"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-style: normal; font-display: swap; src: url("fonts/nunito-latin-var.woff2") format("woff2"); }

:root {
  --orange: #ff6600;
  --orange-text: #e65c00;   /* naranja para títulos grandes sobre fondo claro */
  --orange-dark: #b84300;   /* naranja para enlaces/texto pequeño */
  --ink: #1a1a1a;
  --text: #4a4038;
  --muted: #6b6258;
  --cream: #fffaf4;
  --peach: #ffe6d1;
  --peach-ink: #7a2e00;
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ink); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }
.accent { color: var(--orange-text); }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.note .ico { vertical-align: -.2em; margin-right: .3em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--orange); color: var(--ink); text-decoration: none;
  border: 2px solid var(--orange); border-radius: 999px;
  padding: .95rem 1.8rem; font-weight: 700; font-size: 1.1rem;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: var(--ink); }
.btn--small { padding: .55rem 1.3rem; font-size: 1rem; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Cabecera ---------- */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.brand { display: block; line-height: 0; min-width: 0; flex: 0 1 auto; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-weight: 600; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; padding-block: 3rem 2.5rem; }
.hero__text { flex: 1 1 500px; min-width: 0; }
.hero__logo { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.hero__logo img { width: 100%; max-width: 480px; }
@media (prefers-reduced-motion: no-preference) {
  /* Entra rodando desde la izquierda y luego flota suavemente */
  .hero__logo img { animation: roll-in .9s cubic-bezier(.2, .8, .3, 1.15) both, bob 6s ease-in-out .9s 3; }
  @keyframes roll-in { from { transform: translateX(-70px) rotate(-10deg); } }
  @keyframes bob { 50% { transform: translateY(-10px) rotate(1.2deg); } }
}
.badge {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.4rem;
  background: var(--peach); color: var(--peach-ink);
  border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .9rem;
}
.lead { font-size: 1.3rem; max-width: 36ch; margin: 0 0 1.2rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0 0 1.8rem; }
.chips li { background: var(--peach); color: var(--peach-ink); border-radius: 999px; padding: .4rem 1rem; font-weight: 700; font-size: .95rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Galería en movimiento ---------- */
.gallery { overflow: hidden; padding-block: 1.5rem 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.gallery__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.g { margin: 0 1.2rem 0 0; flex: none; height: 15rem; border-radius: 26px; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.4rem; color: rgba(0, 0, 0, .35); }
.g img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.g--a { width: 20rem; background: var(--orange); transform: rotate(-1.5deg); }
.g--b { width: 13rem; height: 17rem; background: var(--peach); transform: rotate(1.5deg); }
.g--c { width: 18rem; background: #f3d3b6; transform: rotate(-1deg); }
.g--d { width: 15rem; height: 13rem; background: var(--ink); color: rgba(255, 255, 255, .45); transform: rotate(2deg); }
.g--e { width: 21rem; background: #ffb27a; transform: rotate(-2deg); }
.g--f { width: 13rem; height: 16rem; background: var(--peach); transform: rotate(1deg); }
@media (prefers-reduced-motion: no-preference) {
  .gallery__track { animation: marquee 45s linear infinite; }
  .gallery:hover .gallery__track, .gallery:focus-within .gallery__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .gallery { overflow-x: auto; }
}
@media (max-width: 480px) { .g { height: 11rem; } .g--b, .g--f { height: 12rem; } .g--a, .g--c, .g--e { width: 14rem; } }

/* ---------- Ruta de actividades ---------- */
.route { position: relative; padding-block: 6rem 4.5rem; }
.stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem; align-items: start; }
.stop {
  position: relative; background: #fff; border-radius: 28px;
  padding: 2.5rem 1.8rem 2rem; box-shadow: 0 10px 30px rgba(120, 60, 0, .12);
}
/* Camino de puntos: un conector entre cada par de tarjetas, anclado a la propia tarjeta.
   Altura del número ≈ 4.1rem; el desnivel coincide con los margin-top de .stop */
.stop:not(:last-child)::after {
  content: ""; position: absolute; left: 100%; width: 3.5rem; pointer-events: none;
  background: center / 100% 100% no-repeat;
}
.stop:nth-child(1)::after {
  top: 4.1rem; height: 6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0C70 0 30 100 100 100' fill='none' stroke='%23ff6600' stroke-width='5' stroke-dasharray='0.1 12' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.stop:nth-child(2)::after {
  top: -4.4rem; height: 8.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100C70 100 30 0 100 0' fill='none' stroke='%23ff6600' stroke-width='5' stroke-dasharray='0.1 12' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.stop:nth-child(1) { margin-top: 2.5rem; }
.stop:nth-child(2) { margin-top: 8.5rem; }
.stop__n {
  width: 52px; height: 52px; border-radius: 50%; margin-bottom: 1.1rem;
  background: var(--orange); color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.stop h3 { margin-bottom: .35em; }
.stop p { margin: 0; }
.note { position: relative; margin: 3rem auto 0; text-align: center; max-width: 60ch; }

/* ---------- Hockey ---------- */
.hockey-wrap { padding-block: 2.5rem 4.5rem; }
.hockey {
  background: var(--ink); border-radius: 36px; padding: 3.5rem 3.2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.hockey > div { flex: 1 1 440px; min-width: 0; }
.hockey h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .3em; }
.hockey p { margin: 0; font-size: 1.2rem; max-width: 46ch; color: #e6e6e6; }
.hockey strong { color: #fff; }
.hockey .eyebrow { margin: 0 0 .5rem; font-weight: 700; font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }

/* ---------- Contacto ---------- */
.contact-wrap { padding-bottom: 6rem; }
.contact { background: var(--orange); color: var(--ink); border-radius: 36px; padding: 3.5rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); margin-bottom: .3em; }
.contact p { margin: 0; font-size: 1.2rem; max-width: 38ch; }
.contact dl { margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.contact dt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .75; }
.contact dd { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; }
.contact a { color: inherit; }
.contact dd .ico { margin-right: .35em; vertical-align: -.15em; }

.form { position: relative; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 1.8rem; display: grid; gap: 1rem; align-content: start; }
.form label { display: grid; gap: .35rem; font-weight: 700; font-size: .95rem; }
.form input[type=text], .form input[type=email], .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: #fff; width: 100%;
  border: 2px solid #e6d8cb; border-radius: 12px; padding: .7rem .9rem;
}
.form textarea { min-height: 8.5rem; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(255, 102, 0, .35); }
.form .check a { color: var(--orange-dark); }
.form .check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.form .check input { margin-top: .2rem; accent-color: var(--orange); width: 1.15rem; height: 1.15rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.form .btn--dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.status { margin: 0; font-weight: 700; min-height: 1.4em; }
.status.ok { color: #1e7a34; }
.status.err { color: #b3261e; }

/* ---------- Pie ---------- */
.foot { background: var(--ink); color: #cfcfcf; padding: 1.8rem 0; font-size: .95rem; }
.foot__links { list-style: none; display: flex; gap: 1.3rem; margin: 0; padding: 0; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot a { color: #fff; }
.foot a:hover { color: var(--orange); }

/* ---------- Aparición suave ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.stops .reveal:nth-child(2) { transition-delay: .1s; }
.stops .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stop::after { display: none; }
  .stop:nth-child(1), .stop:nth-child(2) { margin-top: 0; }
  .stops { grid-template-columns: 1fr; gap: 1.8rem; max-width: 520px; margin-inline: auto; }
  .hero__logo { order: -1; }
  .hero__logo img { max-width: 360px; }
  .nav a:not(.btn) { display: none; }
  .hockey { padding: 2.5rem 1.8rem; border-radius: 28px; }
  .contact { grid-template-columns: 1fr; padding: 2.2rem 1.4rem; border-radius: 28px; }
}
@media (max-width: 480px) {
  .top { flex-wrap: nowrap; gap: .75rem; }
  .brand img { height: 36px; max-width: 100%; }
  .btn--small { padding: .5rem 1rem; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- Páginas legales ---------- */
.legal { width: min(760px, 100% - 2.5rem); margin: 2rem auto 5rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-top: 2.2rem; }
.legal p, .legal li { max-width: 68ch; }
.legal .upd { color: var(--muted); font-size: .95rem; }
