/*
 * «Visión deportiva y protección» (page vision-deportiva). Design by AGUS, rebuilt
 * with core blocks. Everything is scoped to .p-dep. The horizontal scenes only exist
 * under .p-dep-mundo.is-horizontal, a class deporte.js adds on wide screens; without
 * it (editor, phones, reduced motion, no script) the page is a vertical stack.
 * See inc/deporte.php and COORDINACION.md, «Visión deportiva».
 */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.p-dep {
  --dep-ink: #12232e;
  --dep-gris: #3a4a53;
  --dep-gris-2: #5e6b72;
  --dep-cian: #00708f;
  --dep-cian-2: #0098c3;
  --dep-cian-boton: #007a9e;
  --dep-cian-claro: #5ccbea;
  --dep-cian-hondo: #004f66;
  --dep-noche: #0a1a24;
  --dep-mar: #062a3b;
  --dep-mar-2: #0a3a50;
  --dep-espuma: #c9dfe8;
  --dep-suave: #f4f7f8;
  --dep-linea: #dde5e9;
  --dep-hielo: #e7f5fa;
  --dep-ambar: #f59e0b;
  --dep-alerta: #c2410c;
  --dep-display: "Barlow Condensed", "Red Hat Display", Arial, sans-serif;
  --dep-texto: "Red Hat Text", Arial, sans-serif;
  --dep-margen: max(var(--p-gutter, 24px), calc((100% - 1200px) / 2));
  --dep-top: 61px;
  font-family: var(--dep-texto);
  color: var(--dep-ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}
body .p-dep,
body .p-dep * { margin-block: 0; box-sizing: border-box; }
.p-dep a { color: var(--dep-cian); }
.p-dep a:hover { color: var(--dep-cian-hondo); }
.p-dep :focus-visible { outline: 3px solid var(--dep-cian-2); outline-offset: 3px; }
.p-dep img { display: block; max-width: 100%; height: auto; }
.p-dep figure { margin: 0; }
.p-dep ul, .p-dep ol { margin: 0; padding: 0; list-style: none; }

/* Type ----------------------------------------------------------------- */
.p-dep h1, .p-dep h2, .p-dep h3,
.p-dep .p-dep-num, .p-dep .p-dep-puerta-titulo, .p-dep .p-dep-marcas-lista {
  font-family: var(--dep-display);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.p-dep h1 { font-weight: 800; font-size: clamp(56px, 8vw, 112px); line-height: .95; color: inherit; }
.p-dep h2 { font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; color: inherit; }
.p-dep h3 { font-weight: 700; font-size: 28px; line-height: 1.05; color: inherit; }
.p-dep .p-dep-hero h2 { font-weight: 800; font-size: clamp(56px, 8vw, 112px); line-height: .95; }
.p-dep h3.p-dep-h3-grande { font-size: clamp(30px, 3vw, 40px); }
.p-dep .p-dep-antetitulo { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dep-cian); }
.p-dep .p-dep-entrada { font-size: 19px; line-height: 1.6; color: var(--dep-gris); max-width: 680px; }
.p-dep .p-dep-fuente { font-size: 12px; line-height: 1.5; color: var(--dep-gris-2); }
.p-dep strong { font-weight: 700; }

/* Sections -------------------------------------------------------------- */
.p-dep > .wp-block-group,
.p-dep-seccion {
  padding: clamp(64px, 8vw, 104px) var(--dep-margen);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.p-dep-seccion--suave { background: var(--dep-suave); }
.p-dep-cabeza { display: flex; flex-direction: column; gap: 16px; max-width: 700px; margin-bottom: 26px !important; }

/* Buttons --------------------------------------------------------------- */
.p-dep .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.p-dep .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--dep-texto); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; background: var(--dep-cian-boton); color: #fff; border: 0;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.p-dep .wp-block-button__link:hover { color: #fff; background: var(--dep-cian-hondo); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 80 102 / .25); }
.p-dep .p-dep-boton-claro .wp-block-button__link { background: #fff; color: var(--dep-noche); }
.p-dep .p-dep-boton-claro .wp-block-button__link:hover { background: var(--dep-hielo); color: var(--dep-noche); }
.p-dep .p-dep-boton-noche .wp-block-button__link { background: var(--dep-noche); color: #fff; }
.p-dep .p-dep-boton-noche .wp-block-button__link:hover { background: #000; }

/* Hero ------------------------------------------------------------------ */
.p-dep .p-dep-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--dep-noche); color: #fff;
  min-height: min(720px, 86vh); justify-content: center;
  padding-block: clamp(88px, 10vw, 120px);
}
.p-dep .p-dep-hero-foto { position: absolute; inset: 0; z-index: -2; }
.p-dep .p-dep-hero-foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .55;
  animation: p-dep-zoom 22s ease-in-out infinite alternate;
}
.p-dep .p-dep-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(10 26 36 / .95) 0%, rgb(10 26 36 / .7) 45%, rgb(10 26 36 / .1) 100%);
}
/* Water line at the foot of the hero: the first hint of the two worlds. */
.p-dep .p-dep-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 46' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C75 6 150 6 225 26 S375 46 450 26 525 6 600 26 V46 H0Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x 0 0 / 600px 46px;
  animation: p-dep-ola 9s linear infinite;
}
.p-dep .p-dep-hero .p-dep-antetitulo { color: var(--dep-cian-claro); }
.p-dep .p-dep-hero h1, .p-dep .p-dep-hero h2 { max-width: 760px; margin: 10px 0 8px !important; }
.p-dep .p-dep-hero .p-dep-entrada { color: #d6e4ea; max-width: 560px; }
.p-dep .p-dep-hero .wp-block-buttons { margin-top: 12px !important; }

/* Colour layers never catch clicks: in the editor the photos under them stay
   selectable, so they can be replaced from Media. */
.p-dep .p-dep-hero::before, .p-dep .p-dep-hero::after,
.p-dep .p-dep-puerta::before, .p-dep .p-dep-mundo::before { pointer-events: none; }

/* In-page shortcuts ----------------------------------------------------- */
.p-dep .p-dep-atajos {
  position: relative; z-index: 2;
  padding: 18px var(--dep-margen); gap: 8px; background: #fff;
  border-bottom: 1px solid #e6ecef;
}
.p-dep .p-dep-atajos .wp-block-button__link { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; background: var(--dep-suave); color: var(--dep-ink); }
.p-dep .p-dep-atajos .wp-block-button__link:hover { background: var(--dep-hielo); color: var(--dep-cian-hondo); box-shadow: none; }
.p-dep .p-dep-atajos .p-dep-atajo-cita { margin-left: auto; }
.p-dep .p-dep-atajos .p-dep-atajo-cita .wp-block-button__link { background: var(--dep-cian); color: #fff; }

/* Why it matters -------------------------------------------------------- */
.p-dep .p-dep-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.p-dep .p-dep-tarjeta {
  background: #fff; border: 1px solid var(--dep-linea); border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.p-dep .p-dep-num { font-weight: 800; font-size: 72px; line-height: .95; color: var(--dep-cian); }
.p-dep .p-dep-cifra { position: relative; overflow: hidden; }
.p-dep .p-dep-cifra .p-dep-num { display: inline-block; }
.p-dep .p-dep-cifras.is-visto .p-dep-num { animation: p-dep-impacto .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.p-dep .p-dep-cifras.is-visto .p-dep-cifra:nth-child(2) .p-dep-num { animation-delay: .12s; }
.p-dep .p-dep-cifras.is-visto .p-dep-cifra:nth-child(3) .p-dep-num { animation-delay: .24s; }
.p-dep .p-dep-avisos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px !important; }
.p-dep .p-dep-aviso {
  position: relative; overflow: hidden; background: #fff; border-radius: 16px;
  padding: 22px 22px 22px 66px; font-size: 15px; line-height: 1.55;
}
.p-dep .p-dep-aviso::before {
  content: ""; position: absolute; left: 22px; top: 22px; width: 28px; height: 28px;
  background: var(--dep-alerta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p-dep .p-dep-aviso--sol::before {
  background: var(--dep-cian);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  animation: p-dep-giro 18s linear infinite;
}

/* Choose your ground ---------------------------------------------------- */
.p-dep .p-dep-puertas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.p-dep .p-dep-puerta {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 380px; border-radius: 24px; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.p-dep .p-dep-puerta:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgb(10 26 36 / .18); }
.p-dep .p-dep-puerta--agua { background: var(--dep-mar-2); color: #fff; }
.p-dep .p-dep-puerta--tierra { background: #eef3f5; color: var(--dep-ink); }
.p-dep .p-dep-puerta figure { position: absolute; z-index: -2; }
.p-dep .p-dep-puerta--agua figure { inset: 0; }
.p-dep .p-dep-puerta--agua figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.p-dep .p-dep-puerta--agua:hover figure img { transform: scale(1.05); }
.p-dep .p-dep-puerta--agua::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(4 40 58 / 0) 30%, rgb(4 40 58 / .92) 100%);
}
.p-dep .p-dep-puerta--tierra { min-height: 420px; }
.p-dep .p-dep-puerta--tierra figure { top: 20px; left: 50%; width: 72%; max-width: 420px; transform: translateX(-50%); transition: transform .5s cubic-bezier(.2, 1.4, .4, 1); }
/* The product shots have a white background: blend it into the card. */
.p-dep .p-dep-puerta--tierra figure { background: #eef3f5; }
.p-dep .p-dep-puerta--tierra figure img { mix-blend-mode: multiply; }
.p-dep .p-dep-puerta--tierra:hover figure { transform: translateX(-50%) rotate(-3deg) scale(1.03); }
.p-dep .p-dep-puerta-titulo { font-weight: 800; font-size: 56px; line-height: .95; }
.p-dep .p-dep-puerta--agua p { color: #dceff6; }
.p-dep .p-dep-puerta--tierra p { color: var(--dep-gris); }
.p-dep .p-dep-puerta .p-dep-puerta-titulo { color: inherit; }
.p-dep .p-dep-puerta-enlace { font-weight: 700; font-size: 15px; }
.p-dep .p-dep-puerta-enlace a { color: inherit; text-decoration: none; }
.p-dep .p-dep-puerta--tierra .p-dep-puerta-enlace a { color: var(--dep-cian); }
/* The whole card is the link, on the front end only (body.prevision-blocks): in the
   editor the overlay would cover the card's own blocks. */
body.prevision-blocks .p-dep .p-dep-puerta-enlace a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 24px; }
.p-dep .p-dep-puerta-enlace a:focus-visible { outline: none; }
.p-dep .p-dep-puerta-enlace a:focus-visible::after { outline: 3px solid var(--dep-cian-2); outline-offset: -3px; }

/* The two worlds: shared ------------------------------------------------ */
.p-dep .p-dep-mundo {
  position: relative; isolation: isolate; overflow-x: clip;
  padding: 0; display: block;
  scroll-margin-top: var(--dep-top);
}
.p-dep .p-dep-escena { position: relative; padding: clamp(64px, 8vw, 104px) var(--dep-margen); }
.p-dep .p-dep-pista { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 56px; }
.p-dep .p-dep-panel { position: relative; display: flex; flex-direction: column; gap: 18px; }
.p-dep .p-dep-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.p-dep .p-dep-chips li {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.p-dep .p-dep-sello {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 16px;
  border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--dep-ink); color: #fff;
}
.p-dep .p-dep-fichas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.p-dep .p-dep-ficha { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.p-dep .p-dep-ficha-titulo { font-weight: 700; font-size: 16px; }
.p-dep .p-dep-ficha p:not(.p-dep-ficha-titulo) { font-size: 14px; line-height: 1.5; }
.p-dep .p-dep-checks { display: flex; flex-direction: column; gap: 10px; }
.p-dep .p-dep-checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; }
.p-dep .p-dep-checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--dep-cian);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.p-dep .p-dep-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.p-dep .p-dep-progreso { display: none; }

/* Water world ----------------------------------------------------------- */
.p-dep .p-dep-mundo--agua { background: var(--dep-mar); color: #fff; margin-top: 48px !important; }
.p-dep .p-dep-mundo--agua::before {
  /* Surface: a moving wave on top of the section. */
  content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 42px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 42' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C75 2 150 2 225 22 S375 42 450 22 525 2 600 22 V42 H0Z' fill='%23062a3b'/%3E%3C/svg%3E") repeat-x 0 0 / 600px 42px;
  animation: p-dep-ola 7s linear infinite;
}
.p-dep .p-dep-mundo--agua .p-dep-antetitulo { color: var(--dep-cian-claro); }
.p-dep .p-dep-mundo--agua .p-dep-entrada,
.p-dep .p-dep-mundo--agua p { color: var(--dep-espuma); }
.p-dep .p-dep-mundo--agua h2, .p-dep .p-dep-mundo--agua h3 { color: #fff; }
.p-dep .p-dep-mundo--agua .p-dep-chips li { background: rgb(255 255 255 / .1); color: #fff; }
.p-dep .p-dep-mundo--agua .p-dep-ficha { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); }
.p-dep .p-dep-mundo--agua .p-dep-ficha-titulo { color: #fff; }
.p-dep .p-dep-mundo--agua .p-dep-sello { background: var(--dep-cian-boton); }
.p-dep .p-dep-mundo--agua .p-dep-fuente { color: #9fb8c3; }

.p-dep .p-dep-panel--natacion { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; align-items: stretch; }
.p-dep .p-dep-panel--natacion > figure { border-radius: 24px; overflow: hidden; min-height: 360px; background: var(--dep-mar-2); }
.p-dep .p-dep-panel--natacion > figure img { width: 100%; height: 100%; object-fit: cover; }
.p-dep .p-dep-panel-texto { display: flex; flex-direction: column; gap: 18px; justify-content: center; }

.p-dep .p-dep-productos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.p-dep .p-dep-producto { background: #fff; color: var(--dep-ink); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s ease; }
.p-dep .p-dep-producto:hover { transform: translateY(-6px) rotate(-.6deg); }
.p-dep .p-dep-producto figure { height: 200px; display: flex; align-items: center; justify-content: center; background: #fff; }
.p-dep .p-dep-producto figure img { max-width: 88%; max-height: 170px; width: auto; object-fit: contain; }
.p-dep .p-dep-producto > p { padding: 0 22px; }
.p-dep .p-dep-mundo--agua .p-dep-producto .p-dep-ficha-titulo { color: var(--dep-ink); font-size: 18px; padding-top: 18px; border-top: 1px solid #e6ecef; }
.p-dep .p-dep-mundo--agua .p-dep-producto p:not(.p-dep-ficha-titulo) { color: var(--dep-gris); font-size: 14px; line-height: 1.5; padding-top: 6px; padding-bottom: 22px; }

.p-dep .p-dep-panel--claves { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; background: rgb(255 255 255 / .05); border-radius: 24px; padding: 36px; }
.p-dep .p-dep-clave { display: flex; flex-direction: column; gap: 10px; }
.p-dep .p-dep-mundo--agua .p-dep-clave h3 { color: var(--dep-cian-claro); }
.p-dep .p-dep-clave p { font-size: 15px; line-height: 1.6; }

/* Water effects: light rays, bubbles, lane rope. */
.p-dep .p-dep-fx--agua::before {
  /* Gets darker the deeper you go: --p is the scene progress (0 → 1). */
  content: ""; position: absolute; inset: 0; background: #021620; opacity: calc(var(--p, 0) * .55);
}
.p-dep .p-dep-rayos {
  position: absolute; inset: 0 -20% 30% -20%;
  background: repeating-linear-gradient(100deg, rgb(92 203 234 / 0) 0 60px, rgb(92 203 234 / .07) 60px 110px, rgb(92 203 234 / 0) 110px 200px);
  -webkit-mask: linear-gradient(180deg, #000, transparent);
          mask: linear-gradient(180deg, #000, transparent);
  opacity: calc(1 - var(--p, 0) * .8);
  animation: p-dep-rayos 12s ease-in-out infinite alternate;
}
.p-dep .p-dep-burbujas { position: absolute; inset: 0; transform: translateX(calc(var(--p, 0) * -220px)); }
.p-dep .p-dep-burbujas span {
  position: absolute; bottom: -30px; left: var(--x, 50%);
  width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%;
  border: 1.5px solid rgb(201 223 232 / .55);
  background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / .55), rgb(255 255 255 / .05) 60%);
  animation: p-dep-burbuja var(--d, 9s) linear var(--w, 0s) infinite;
}
.p-dep .p-dep-corchera { display: none; }

/* Land world ------------------------------------------------------------ */
.p-dep .p-dep-mundo--tierra { background: #fff; }
.p-dep .p-dep-mundo--tierra .p-dep-chips li { background: var(--dep-hielo); color: var(--dep-cian-hondo); }
.p-dep .p-dep-mundo--tierra .p-dep-panel:not(.p-dep-panel--intro) { border-radius: 28px; padding: clamp(28px, 4vw, 44px); overflow: hidden; isolation: isolate; }
.p-dep .p-dep-panel--proteccion { background: var(--dep-suave); }
.p-dep .p-dep-panel--padel { background: var(--dep-noche); color: #fff; }
.p-dep .p-dep-panel--prizm { border: 1px solid var(--dep-linea); background: #fff; }
.p-dep .p-dep-panel--sunrx { background: var(--dep-hielo); }
.p-dep .p-dep-panel--proteccion,
.p-dep .p-dep-panel--padel,
.p-dep .p-dep-panel--sunrx { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; align-items: center; }
/* :where() keeps this default weak, so each panel's own colour wins (the padel panel
   is dark and needs light text). */
.p-dep .p-dep-mundo--tierra p:where(:not(.p-dep-fuente, .p-dep-sello, .p-dep-ficha-titulo, .p-dep-antetitulo)) { color: var(--dep-gris); }
.p-dep .p-dep-mundo--tierra .p-dep-panel--sunrx p:not(.p-dep-sello):not(.p-dep-antetitulo) { color: #2a3b44; }
.p-dep .p-dep-mundo--tierra .p-dep-panel--padel p:not(.p-dep-sello):not(.p-dep-ficha-titulo),
.p-dep .p-dep-mundo--tierra .p-dep-panel--padel .p-dep-fuente { color: #c9d6dc; }
.p-dep .p-dep-panel--padel .p-dep-sello { background: var(--dep-ambar); color: var(--dep-ink); }
.p-dep .p-dep-panel--padel .p-dep-ficha { border: 1px solid rgb(255 255 255 / .16); }
.p-dep .p-dep-panel--padel .p-dep-ficha-titulo { color: #fff; }
.p-dep .p-dep-panel--sunrx .p-dep-sello { background: var(--dep-cian); }

/* Protection: two goggles and a ball that bounces off them. */
.p-dep .p-dep-gafas { position: relative; display: flex; flex-direction: column; gap: 16px; }
.p-dep .p-dep-gafa { background: #fff; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.p-dep .p-dep-gafa p { font-weight: 700; color: var(--dep-ink) !important; }
.p-dep .p-dep-balon {
  position: absolute; top: 18%; right: -60px; width: 46px; height: 46px; border-radius: 50%; z-index: 3;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 18%, transparent 19%),
    conic-gradient(#12232e 0 12%, #fff 12% 25%, #12232e 25% 37%, #fff 37% 50%, #12232e 50% 62%, #fff 62% 75%, #12232e 75% 87%, #fff 87%);
  box-shadow: inset -6px -6px 12px rgb(0 0 0 / .25), 0 10px 18px rgb(0 0 0 / .15);
  opacity: 0;
}
.p-dep .p-dep-panel--proteccion.is-activo .p-dep-balon { animation: p-dep-balonazo 1.5s cubic-bezier(.3, .1, .3, 1) .25s both; }
.p-dep .p-dep-panel--proteccion.is-activo .p-dep-gafa:first-child { animation: p-dep-golpe .5s ease .95s both; }

/* Padel: a court drawn in CSS, with the ball bouncing over the glass. */
.p-dep .p-dep-pista-padel {
  position: relative; isolation: isolate; min-height: 260px; border-radius: 20px; overflow: hidden;
  padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(255 255 255 / .7) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, transparent 30%, rgb(255 255 255 / .55) 30% calc(30% + 2px), transparent calc(30% + 2px)),
    linear-gradient(180deg, #1f5fa8, #174a86);
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / .35);
}
.p-dep .p-dep-pista-padel::before {
  /* The net. */
  content: ""; position: absolute; left: 0; right: 0; top: 30%; height: 16px; z-index: -1;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .35) 0 1px, transparent 1px 6px);
  border-top: 2px solid rgb(255 255 255 / .8);
}
.p-dep .p-dep-pista-padel .p-dep-chips li { background: rgb(255 255 255 / .12); color: #fff; backdrop-filter: blur(2px); }
.p-dep .p-dep-pelota {
  position: absolute; z-index: 2; left: 8%; top: 8%; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f4ffa0, #d8f03c 55%, #a8c21a);
  box-shadow: 0 0 12px rgb(216 240 60 / .6);
}
.p-dep .p-dep-panel--padel.is-activo .p-dep-pelota { animation: p-dep-pelota-x 2.4s ease-in-out infinite alternate, p-dep-pelota-y .6s cubic-bezier(.4, 0, .6, 1) infinite alternate; }

/* Prizm: each lens over its own ground. */
.p-dep .p-dep-prizms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 10px !important; }
.p-dep .p-dep-prizm {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--dep-linea); border-top: 6px solid var(--lente, #6b7280); border-radius: 20px;
  padding: 24px 24px 56px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.p-dep .p-dep-prizm:hover { transform: translateY(-5px); box-shadow: 0 18px 32px rgb(18 35 46 / .12); }
.p-dep .p-dep-prizm::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: var(--suelo); background-size: var(--suelo-tam, auto); }
.p-dep .p-dep-prizm--road { --lente: #6b7280; }
.p-dep .p-dep-prizm--road::after {
  background: linear-gradient(90deg, #f5f5f4 0 22px, transparent 22px 44px) 0 15px / 44px 3px repeat-x, #4b5563;
  animation: p-dep-carretera 1.2s linear infinite;
}
.p-dep .p-dep-prizm--trail { --lente: #9a5b2e; --suelo: radial-gradient(circle at 20% 70%, #6f3f1d 0 5px, transparent 6px) 0 0 / 46px 34px, radial-gradient(circle at 70% 40%, #8a5a33 0 3px, transparent 4px) 0 0 / 30px 34px, #b07a4a; }
.p-dep .p-dep-prizm--golf { --lente: #3f8f3a; --suelo: repeating-linear-gradient(90deg, #4c9a46 0 30px, #57a851 30px 60px); }
.p-dep .p-dep-prizm--golf::before {
  /* The flag on the green. */
  content: ""; position: absolute; right: 24px; bottom: 20px; width: 18px; height: 40px; z-index: 1;
  background: linear-gradient(#12232e, #12232e) 0 0 / 2px 100% no-repeat,
              conic-gradient(from 90deg at 2px 50%, #e11d48 0 63.4deg, transparent 63.4deg) 0 2px / 18px 14px no-repeat;
  transform-origin: 0 100%; animation: p-dep-bandera 2.4s ease-in-out infinite alternate;
}
.p-dep .p-dep-prizm--field { --lente: #0098c3; --suelo: repeating-linear-gradient(90deg, #2f7d32 0 26px, #378b3a 26px 52px); }
.p-dep .p-dep-prizm .p-dep-ficha-titulo { font-family: var(--dep-display); font-weight: 700; font-size: 28px; line-height: 1.05; text-transform: uppercase; color: var(--dep-ink); }
.p-dep .p-dep-prizm .p-dep-prizm-uso { font-size: 13px !important; font-weight: 600; color: var(--dep-cian) !important; }
.p-dep .p-dep-prizm p:last-child { font-size: 14px; line-height: 1.5; }
.p-dep .p-dep-nieve { position: absolute; inset: 0 0 auto auto; width: 46%; height: 70%; z-index: -1; pointer-events: none; overflow: hidden; }
.p-dep .p-dep-nieve span {
  position: absolute; top: -10px; left: var(--x, 50%); width: var(--s, 6px); height: var(--s, 6px);
  border-radius: 50%; background: #9ec3d3; opacity: .85;
  animation: p-dep-copo var(--d, 8s) linear var(--w, 0s) infinite;
}

/* SUN RX: a road with speed lines and a wheel that turns with the scroll. */
.p-dep .p-dep-velocidad {
  position: relative; min-height: 300px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #cfeaf4 0 62%, #4b5563 62%);
}
.p-dep .p-dep-velocidad::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(62% + 22px); height: 4px;
  background: repeating-linear-gradient(90deg, #f5f5f4 0 36px, transparent 36px 72px);
  animation: p-dep-carretera .6s linear infinite; background-size: 72px 4px;
}
.p-dep .p-dep-bici { position: absolute; left: 50%; bottom: calc(38% - 6px); width: 190px; translate: -50% 0; z-index: 1; animation: p-dep-pedalear .5s ease-in-out infinite; }
.p-dep .p-dep-bici svg { display: block; width: 100%; height: auto; overflow: visible; }
.p-dep .p-dep-bici .rueda { transform-box: fill-box; transform-origin: center; animation: p-dep-rodar .7s linear infinite; }
.p-dep .p-dep-velocidad::after {
  content: ""; position: absolute; inset: 14% 0 46% 0;
  background: repeating-linear-gradient(180deg, transparent 0 18px, rgb(0 112 143 / .18) 18px 20px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 40%, transparent);
          mask: linear-gradient(90deg, transparent, #000 40%, transparent);
  animation: p-dep-viento 1.1s linear infinite;
}

/* Hills behind the land scene and the wheel that tracks progress. */
.p-dep .p-dep-montes {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%; opacity: .5;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300 L0 210 L120 130 L210 190 L330 70 L400 120 L470 90 L560 170 L700 40 L760 80 L800 60 L900 160 L1010 100 L1100 150 L1200 110 L1200 300Z' fill='%23e7f5fa'/%3E%3Cpath d='M700 40 L760 80 L742 86 L724 70 L712 84 L690 66Z M330 70 L370 96 L352 100 L338 90 L322 98Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x 0 100% / 1200px 100%;
  background-position-x: calc(var(--p, 0) * -360px);
}
.p-dep .p-dep-camino { display: none; }

/* Fitting your prescription -------------------------------------------- */
.p-dep .p-dep-pasos, .p-dep .p-dep-proceso-lista { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.p-dep .p-dep-paso .p-dep-num { font-size: 44px; color: var(--dep-cian-2); }
.p-dep .p-dep-paso .p-dep-ficha-titulo { font-family: var(--dep-display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.05; }
.p-dep .p-dep-paso p:last-child, .p-dep .p-dep-habilidad p:last-child { font-size: 15px; line-height: 1.55; color: var(--dep-gris); }

/* Visual training ------------------------------------------------------- */
.p-dep .p-dep-entreno { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.p-dep .p-dep-entreno-texto { display: flex; flex-direction: column; gap: 18px; }
.p-dep .p-dep-habilidades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.p-dep .p-dep-habilidad { padding: 22px; gap: 8px; transition: border-color .25s ease, transform .25s ease; }
.p-dep .p-dep-habilidad:hover { border-color: var(--dep-cian-2); transform: translateY(-3px); }
.p-dep .p-dep-habilidad .p-dep-ficha-titulo { font-size: 17px; }
.p-dep .p-dep-habilidad p:last-child { font-size: 14px; line-height: 1.5; }

/* Process and families -------------------------------------------------- */
.p-dep .p-dep-proceso-lista { counter-reset: p-dep-paso; }
.p-dep .p-dep-proceso-lista li {
  counter-increment: p-dep-paso; position: relative; background: #fff; border: 1px solid var(--dep-linea); border-radius: 20px;
  padding: 86px 28px 28px; font-size: 14px; line-height: 1.5; color: var(--dep-gris);
}
.p-dep .p-dep-proceso-lista li::before {
  content: counter(p-dep-paso); position: absolute; left: 28px; top: 28px; width: 44px; height: 44px; border-radius: 999px;
  background: var(--dep-cian-boton); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.p-dep .p-dep-proceso-lista li strong { display: block; color: var(--dep-ink); font-size: 18px; margin-bottom: 6px; }
.p-dep .p-dep-familias {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px;
  background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); margin-top: 36px !important;
}
.p-dep .p-dep-familias-texto { display: flex; flex-direction: column; gap: 14px; }
.p-dep .p-dep-familias h3 { font-size: clamp(30px, 3vw, 36px); }
.p-dep .p-dep-familias .p-dep-checks { justify-content: center; }

/* Brands and appointment ------------------------------------------------ */
.p-dep .p-dep-marcas { align-items: center; padding-block: 64px; border-bottom: 1px solid #e6ecef; }
.p-dep .p-dep-marcas .p-dep-antetitulo { color: var(--dep-gris-2); }
.p-dep .p-dep-marcas-lista { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: center; font-weight: 700; font-size: 32px; letter-spacing: .04em; color: #8a979e; }
.p-dep .p-dep-cita { background: var(--dep-cian-boton); color: #fff; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; padding-block: 96px; }
.p-dep .p-dep-cita-texto { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.p-dep .p-dep-cita h2, .p-dep .p-dep-cita p { color: #fff; }
.p-dep .p-dep-cita .p-dep-boton-claro .wp-block-button__link { color: #00566e; }

/* Horizontal scenes (wide screens, set by deporte.js) ------------------- */
.p-dep .p-dep-mundo.is-horizontal { padding: 0; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-escena {
  position: sticky; top: var(--dep-top);
  height: calc(100vh - var(--dep-top)); padding: 0; overflow: hidden;
  display: flex; align-items: center;
}
.p-dep .p-dep-mundo.is-horizontal .p-dep-pista {
  flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 64px;
  width: max-content; height: 100%;
  padding: 32px var(--dep-margen-px, 120px) 76px;
  will-change: transform;
}
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel { flex: 0 0 auto; width: min(1080px, 80vw); }
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel--intro { width: min(560px, 46vw); }
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel--claves { width: min(1000px, 76vw); }
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel--natacion > figure { min-height: 0; height: 100%; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-producto figure { height: 160px; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-producto figure img { max-height: 140px; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel--proteccion { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.p-dep .p-dep-mundo.is-horizontal .p-dep-gafa { padding: 14px; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-gafa img { max-height: 190px; width: auto; margin-inline: auto; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel {
  opacity: .62; transform: scale(.97); transition: opacity .35s ease, transform .35s ease;
}
.p-dep .p-dep-mundo.is-horizontal .p-dep-panel.is-activo { opacity: 1; transform: none; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-fx { inset: 0; }
.p-dep .p-dep-mundo.is-horizontal .p-dep-progreso {
  display: block; position: absolute; left: var(--dep-margen-px, 120px); right: var(--dep-margen-px, 120px); bottom: 30px; height: 4px; z-index: 2;
  border-radius: 4px; background: rgb(127 127 127 / .2);
}
.p-dep .p-dep-mundo.is-horizontal .p-dep-progreso::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: left; transform: scaleX(var(--p, 0));
  background: var(--dep-cian-2);
}
/* Laptops (short screens): tighter panels so both scenes still fit. */
@media (max-height: 880px) {
  .p-dep .p-dep-mundo.is-horizontal .p-dep-pista { padding-top: 20px; padding-bottom: 60px; gap: 48px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-panel { gap: 12px; }
  .p-dep .p-dep-mundo--tierra.is-horizontal .p-dep-panel:not(.p-dep-panel--intro) { padding: 24px 30px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-panel-texto { gap: 12px; }
  .p-dep .p-dep-mundo.is-horizontal h2 { font-size: clamp(34px, 3.6vw, 48px); }
  .p-dep .p-dep-mundo.is-horizontal h3.p-dep-h3-grande { font-size: clamp(26px, 2.4vw, 32px); }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-entrada { font-size: 17px; line-height: 1.5; }
  .p-dep .p-dep-mundo.is-horizontal p,
  .p-dep .p-dep-mundo.is-horizontal .p-dep-checks li { font-size: 14.5px; line-height: 1.45; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-checks { gap: 6px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-fichas { gap: 10px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-ficha { padding: 12px 14px; gap: 2px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-ficha p:not(.p-dep-ficha-titulo) { font-size: 13px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-gafas { gap: 10px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-gafa { padding: 10px; gap: 4px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-gafa img { max-height: 130px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-producto figure { height: 120px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-producto figure img { max-height: 104px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-prizm { padding: 18px 18px 46px; gap: 4px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-prizm .p-dep-ficha-titulo { font-size: 24px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-pista-padel { min-height: 220px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-velocidad { min-height: 240px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-panel--claves { padding: 28px; }
  .p-dep .p-dep-mundo.is-horizontal .p-dep-progreso { bottom: 22px; }
}
/* Water: a lane rope with goggles that swim along with you. */
.p-dep .p-dep-mundo--agua.is-horizontal .p-dep-progreso { background: none; height: 12px; bottom: 26px; }
.p-dep .p-dep-mundo--agua.is-horizontal .p-dep-progreso::after { display: none; }
.p-dep .p-dep-mundo--agua.is-horizontal .p-dep-corchera {
  display: block; position: absolute; inset: 0; border-radius: 6px;
  background: radial-gradient(circle at 50% 50%, #e11d48 0 5px, transparent 6px) 0 0 / 22px 12px repeat-x,
              linear-gradient(transparent 5px, rgb(255 255 255 / .5) 5px 7px, transparent 7px);
  background-position-x: calc(var(--p, 0) * -900px), 0;
}
.p-dep .p-dep-mundo--agua.is-horizontal .p-dep-corchera:nth-child(odd) { filter: hue-rotate(0deg); }
.p-dep .p-dep-gafas-marca {
  position: absolute; top: 50%; left: calc(var(--p, 0) * 100%); width: 44px; height: 20px; translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 20'%3E%3Cpath d='M2 10h4M38 10h4' stroke='%2312232e' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='6' y='3' width='14' height='14' rx='7' fill='%235ccbea' stroke='%23ffffff' stroke-width='2'/%3E%3Crect x='24' y='3' width='14' height='14' rx='7' fill='%235ccbea' stroke='%23ffffff' stroke-width='2'/%3E%3Cpath d='M20 10h4' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / .35));
}
/* Land: the ground line and a bike wheel that rolls with the scroll. */
.p-dep .p-dep-mundo--tierra.is-horizontal .p-dep-progreso { background: linear-gradient(90deg, #9ca3af, #b07a4a 45%, #57a851 70%, #cfe3ec); height: 4px; }
.p-dep .p-dep-mundo--tierra.is-horizontal .p-dep-progreso::after { display: none; }
.p-dep .p-dep-mundo--tierra.is-horizontal .p-dep-camino { display: block; position: absolute; inset: 0; }
.p-dep .p-dep-rueda {
  position: absolute; bottom: 2px; left: calc(var(--p, 0) * 100%); width: 40px; height: 40px; translate: -50% 0;
  border-radius: 50%; border: 4px solid var(--dep-ink);
  background:
    radial-gradient(circle, var(--dep-ambar) 0 4px, transparent 5px),
    repeating-conic-gradient(from 0deg, rgb(18 35 46 / .75) 0 2deg, transparent 2deg 30deg);
  transform: rotate(var(--giro, 0deg));
}

/* Keyframes ------------------------------------------------------------- */
@keyframes p-dep-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes p-dep-ola { to { background-position-x: 600px; } }
@keyframes p-dep-giro { to { transform: rotate(360deg); } }
@keyframes p-dep-rayos { from { transform: translateX(-3%) skewX(-4deg); } to { transform: translateX(3%) skewX(4deg); } }
@keyframes p-dep-burbuja {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(12px, -55vh); }
  100% { transform: translate(-8px, -115vh); opacity: 0; }
}
@keyframes p-dep-copo {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, 420px); opacity: 0; }
}
@keyframes p-dep-impacto {
  0% { transform: translateX(60px) scale(.6); opacity: 0; }
  60% { transform: translateX(-6px) scale(1.08); opacity: 1; }
  100% { transform: none; }
}
@keyframes p-dep-balonazo {
  0% { opacity: 0; transform: translate(260px, -120px) rotate(0deg) scale(.7); }
  15% { opacity: 1; }
  45% { transform: translate(-150px, 40px) rotate(-260deg) scale(1.1); }
  100% { opacity: 0; transform: translate(80px, -260px) rotate(-520deg) scale(.6); }
}
@keyframes p-dep-golpe {
  0% { transform: none; }
  30% { transform: translateX(-8px) rotate(-1.5deg); }
  60% { transform: translateX(4px) rotate(.8deg); }
  100% { transform: none; }
}
@keyframes p-dep-pelota-x { from { left: 8%; } to { left: calc(92% - 18px); } }
@keyframes p-dep-pelota-y { from { top: 6%; } to { top: 54%; } }
@keyframes p-dep-carretera { to { background-position-x: -44px; } }
@keyframes p-dep-bandera { from { transform: skewY(0deg); } to { transform: skewY(-4deg); } }
@keyframes p-dep-rodar { to { transform: rotate(360deg); } }
@keyframes p-dep-pedalear { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes p-dep-viento { from { transform: translateX(30%); } to { transform: translateX(-30%); } }

/* Phones ---------------------------------------------------------------- */
@media (max-width: 700px) {
  .p-dep .p-dep-atajos .p-dep-atajo-cita { margin-left: 0; }
  .p-dep .p-dep-num { font-size: 60px; }
  .p-dep .p-dep-puerta { min-height: 320px; }
  .p-dep .p-dep-puerta-titulo { font-size: 48px; }
  .p-dep .p-dep-panel--natacion,
  .p-dep .p-dep-panel--proteccion,
  .p-dep .p-dep-panel--padel,
  .p-dep .p-dep-panel--sunrx,
  .p-dep .p-dep-entreno,
  .p-dep .p-dep-familias { grid-template-columns: minmax(0, 1fr); }
  .p-dep .p-dep-habilidades { grid-template-columns: minmax(0, 1fr); }
  .p-dep .p-dep-panel--claves { padding: 24px; }
  .p-dep .p-dep-marcas-lista { font-size: 26px; gap: 12px 28px; }
}

/* Reduced motion: no animation, no horizontal scenes (the script stays out too). */
@media (prefers-reduced-motion: reduce) {
  .p-dep *, .p-dep *::before, .p-dep *::after { animation: none !important; transition: none !important; }
  .p-dep .p-dep-burbujas, .p-dep .p-dep-nieve, .p-dep .p-dep-balon, .p-dep .p-dep-pelota { display: none; }
}
