/* PANAMA CROSSROADS — DJ contest landings. Loads after main.css.
   /actividades/concurso-dj/ (PAL-21), per its design mock: a pink / orange / lilac gradient
   under black copy, kikuta titles, white pills with accent text for the CTAs, numbered steps
   (white tile + accent pill + date) and a white requirements card with a black header.
   The mock is mobile; on wider screens the same column is centered.
   A modifier on <main> (.dj--cacao) sets the theme: --dj-accent, --dj-bg, --dj-glow-1/2/3.
   Also skins the shared form components (.pcf-*, src/components/forms/forms.css). */

.dj {
  --dj-accent: #10B5B1;
  --dj-accent-ink: #0B8F8C;          /* accent for small text on white (contrast) */
  --dj-bg: #FF74DD;
  --dj-glow-1: #FF7A3D;
  --dj-glow-2: #B9A2F2;
  --dj-glow-3: #FFB48A;
  --dj-ink: #111;
  --dj-muted: #55515E;
  --dj-line: #E6E4EA;
  --dj-error: #C4113F;
  position: relative;
  overflow-x: clip;
  padding: 56px 16px 64px;
  color: var(--dj-ink);
  line-height: 1.4;
  /* soft blobs over the base colour; sizes in % so they repeat the mock's rhythm at any height */
  background:
    radial-gradient(60% 9% at 100% 3%, var(--dj-glow-1), transparent 70%),
    radial-gradient(55% 8% at 0% 12%, var(--dj-glow-3), transparent 70%),
    radial-gradient(70% 10% at 0% 30%, var(--dj-glow-2), transparent 70%),
    radial-gradient(60% 9% at 100% 44%, var(--dj-glow-1), transparent 70%),
    radial-gradient(65% 9% at 100% 62%, var(--dj-glow-2), transparent 70%),
    radial-gradient(60% 9% at 0% 76%, var(--dj-glow-1), transparent 70%),
    radial-gradient(60% 8% at 100% 92%, var(--dj-glow-3), transparent 70%),
    var(--dj-bg);
}

/* sections: one centered column */
.dj-sec { position: relative; max-width: 720px; margin: 0 auto; padding: 36px 0; text-align: center; }
.dj-sec > * + * { margin-top: 20px; }

.dj-display {
  font-family: kikuta, sans-serif;
  font-size: 3.2em;
  font-weight: 400;
  line-height: 1.04;
  text-transform: uppercase;
}
.dj-display span, .dj-sub span { display: block; }   /* the mock's line breaks */
.dj-title {
  font-family: config, sans-serif;
  font-size: 2.3em;
  font-weight: 600;
  line-height: 1.1;
}
.dj-sub { font-size: 1.6em; font-weight: 600; line-height: 1.2; }
.dj-text { font-size: 1.25em; font-weight: 600; line-height: 1.3; }
.dj-strong { font-size: 1.4em; font-weight: 600; line-height: 1.25; }
.dj-lead { font-size: 1.9em; font-weight: 600; line-height: 1.15; }

.dj-btn {
  display: inline-block;
  padding: 14px 44px 10px;          /* kikuta's caps sit high in their box */
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--dj-accent);
  font-family: kikuta, sans-serif;
  font-size: 2.4em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease;
}
.dj-btn--lg { font-size: 3em; padding: 18px 60px 13px; }
.dj-btn--solid { background: var(--dj-accent); color: #fff; }   /* on the white form card */
.dj-btn:hover, .dj-btn:focus-visible { transform: scale(1.04); }
.dj :focus-visible { outline: 3px solid var(--dj-ink); outline-offset: 3px; }

/* hero */
.dj-hero { padding-top: 12px; }
.dj-poster { max-width: 480px; margin: 0 auto 8px; }   /* the social-media artwork */
.dj-poster img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(120, 0, 90, .4); }
.dj-hero .dj-strong { margin-top: 28px; }
.dj-hero .dj-btn { margin-top: 20px; }

/* steps: white number tile; a white pill starts under the tile's right edge and holds the accent tag + the date */
.dj-pasos {
  display: grid;
  gap: 34px;
  max-width: 600px;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
  text-align: left;
}
.dj-pasos li {
  --tile: 62px;
  position: relative;
  min-height: var(--tile);
  padding-left: calc(var(--tile) + 14px);
  counter-increment: paso;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.25;
}
.dj-pasos li::before {
  content: counter(paso) ".";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  padding-top: .1em;                 /* kikuta's caps sit high */
  border-radius: 12px;
  background: #fff;
  color: var(--dj-accent);
  font: 400 2.6rem/1 kikuta, sans-serif;
}
.dj-pasos__head {
  display: inline-flex;
  flex-wrap: wrap;                   /* very narrow screens: the date drops under the tag */
  align-items: center;
  margin: 0 0 8px -26px;             /* tucks under the tile */
  border-radius: 0 20px 20px 0;
  background: #fff;
}
.dj-pasos__tag {
  padding: 9px 18px 5px 30px;
  border-radius: 0 999px 999px 0;
  background: var(--dj-accent);
  color: #fff;
  font-family: kikuta, sans-serif;
  font-size: 1.15em;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}
.dj-pasos__fecha { padding: 0 20px 0 12px; font-weight: 700; }

/* requirements card */
.dj-req {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-align: left;
}
.dj-req__head {
  padding: 16px 16px 11px;
  background: #111;
  color: #fff;
  font-family: kikuta, sans-serif;
  font-size: 1.45em;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.dj-req ul { display: grid; gap: 18px; margin: 0; padding: 28px 36px 34px 52px; list-style: disc; font-size: 1.15em; font-weight: 600; line-height: 1.25; }

/* closing */
.dj-cierre { padding-top: 64px; }
.dj-cierre > * + * { margin-top: 28px; }

/* form */
.dj-form-sec { padding-top: 56px; scroll-margin-top: 80px; }
.dj-card {
  margin-top: 28px;
  padding: 36px 40px;
  border-radius: 24px;
  background: #fff;
  color: var(--dj-ink);
  text-align: left;
  box-shadow: 0 14px 34px -12px rgba(120, 0, 90, .4);
}
.dj-note { font-size: .95em; color: var(--dj-muted); }

.dj .pcf-fields { gap: 0; }
.dj .pcf-field { display: block; margin: 22px 0 0; }
.dj .pcf-field > label { display: block; margin-bottom: 8px; padding: 0; font-weight: 600; line-height: 1.35; }
.dj .pcf-field input:not([type=radio], [type=checkbox]) {
  padding: 13px 15px;
  border: 2px solid #D9D7E0;
  border-radius: 12px;
  color: var(--dj-ink);
  line-height: 1.35;
  transition: border-color .15s ease;
}
.dj .pcf-field input[type=date] { min-height: 52px; -webkit-appearance: none; appearance: none; }   /* iOS collapses empty date inputs */
.dj .pcf-field input:focus { border-color: var(--dj-accent); }
.dj .pcf-field.is-invalid input { border-color: var(--dj-error); }
.dj .pcf-req { color: var(--dj-error); }
.dj .pcf-hint { margin-top: 6px; font-size: .9em; line-height: 1.4; color: var(--dj-muted); opacity: 1; }
.dj .pcf-error { margin-top: 6px; font-size: .92em; font-weight: 600; line-height: 1.4; color: var(--dj-error); }
.dj .pcf-error:empty { display: none; }
.dj .pcf-banner {
  margin-bottom: 24px;
  padding: 16px 20px 12px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  font-family: kikuta, sans-serif;
  font-size: 1.3em;
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
}
.dj .pcf-banner[hidden] { display: none; }

.dj .pcf-consent > label { display: flex; gap: 12px; margin: 0; font-weight: 400; line-height: 1.4; }
.dj .pcf-consent input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--dj-accent); }
.dj .pcf-consent a { color: var(--dj-accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.dj .cf-turnstile { margin-top: 26px; }
.dj .pcf-status { margin-top: 18px; font-weight: 600; line-height: 1.4; }
.dj .pcf-submit { margin-top: 24px; text-align: center; }
.dj .pcf-submit .dj-btn { font-size: 1.7em; }
.dj .pcf-submit .dj-btn:disabled { opacity: .7; cursor: progress; transform: none; }

.dj-success { text-align: center; font-size: 1.2em; }
.dj-success:focus { outline: none; }
.dj-success[hidden] { display: none; }
.dj-success__title {
  margin-bottom: 14px;
  font-family: kikuta, sans-serif;
  font-size: 2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--dj-accent);
}

@media (max-width: 767px) {
  .dj { padding-top: 84px; }          /* the fixed mobile header */
  .dj-sec { padding: 28px 0; }
  .dj-display { font-size: 1.95em; }
  .dj-title { font-size: 1.75em; }
  .dj-sub { font-size: 1.2em; }
  .dj-text { font-size: 1.08em; }
  .dj-strong { font-size: 1.12em; }
  .dj-lead { font-size: 1.45em; }
  .dj-btn { padding: 12px 30px 8px; font-size: 2em; }
  .dj-btn--lg { padding: 14px 40px 10px; font-size: 2.4em; }
  .dj .pcf-submit .dj-btn { font-size: 1.5em; }

  .dj-pasos { gap: 26px; }
  .dj-pasos li { --tile: 46px; padding-left: calc(var(--tile) + 10px); font-size: 1.05em; }
  .dj-pasos li::before { font-size: 2rem; border-radius: 10px; }
  .dj-pasos__head { margin-left: -22px; }
  .dj-pasos__tag { padding: 7px 12px 4px 22px; font-size: .8em; }
  .dj-pasos__fecha { padding: 0 12px 0 8px; font-size: .8em; }

  .dj-req ul { gap: 14px; padding: 22px 22px 26px 38px; font-size: 1.05em; }

  /* 14px: leaves the 300px Turnstile needs at 375 */
  .dj-card { padding: 24px 14px; border-radius: 18px; }
}
