:root {
  color-scheme: light;
  --ink: #182022;
  --muted: #647376;
  --line: #D8E8EA;
  --paper: #F7FAFA;
  --surface: #FFFFFF;
  --brand: #1178A8;
  --brand-dark: #0B5F87;
  --accent: #F4C95D;
  --rose: #EF7A6C;
  --blue: #4B9BC1;
  --green: #58B8A7;
  --shadow: 0 18px 50px rgba(24, 32, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 250, 250, 0.92), rgba(229, 245, 250, 0.9)),
    url("data:image/svg+xml,%3Csvg width='1200' height='800' viewBox='0 0 1200 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D8E8EA' stroke-width='1'%3E%3Cpath d='M0 135h1200M0 285h1200M0 435h1200M0 585h1200M0 735h1200M170 0v800M340 0v800M510 0v800M680 0v800M850 0v800M1020 0v800'/%3E%3C/g%3E%3Cg fill='%23F4C95D' opacity='.18'%3E%3Ccircle cx='958' cy='142' r='74'/%3E%3Ccircle cx='224' cy='645' r='96'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

body.has-conservatorio-landing .wp-site-blocks,
body.has-conservatorio-landing .entry-content,
body.has-conservatorio-landing .wp-block-post-content,
body.has-conservatorio-landing main.wp-block-group {
  max-width: none;
}

body.has-conservatorio-landing .entry-title,
body.has-conservatorio-landing .wp-block-post-title {
  display: none;
}

.conservatorio-landing.shell {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  overflow-x: clip;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  align-items: end;
  min-height: 520px;
  margin-bottom: 24px;
  padding: 52px 0 66px;
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.intro::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 250, 250, 0.98) 0%, rgba(247, 250, 250, 0.86) 35%, rgba(247, 250, 250, 0.36) 72%, rgba(247, 250, 250, 0.58) 100%),
    linear-gradient(180deg, rgba(247, 250, 250, 0.1), rgba(247, 250, 250, 0.84));
  content: "";
}

.intro::after {
  position: absolute;
  inset: auto calc(50% - 50vw) 0;
  z-index: -1;
  height: 120px;
  background: linear-gradient(180deg, rgba(247, 250, 250, 0), rgba(247, 250, 250, 1));
  content: "";
}

.hero-bg-image {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-copy {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.finder {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.finder,
.instrument-panel {
  display: none;
}

.controls,
.map-panel,
.planner,
.reassurance,
.instrument-panel,
.questions-panel,
.details {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 232, 234, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.planner {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.35fr) minmax(240px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 22px;
}

.planner > * {
  min-width: 0;
}

.planner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.planner-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.06;
}

.planner-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.steps-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.flow-step {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-heading span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #E5F5FA;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.step-heading h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.step-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: center;
}

.flow-spain-map {
  min-height: 330px;
  margin-top: 0;
}

.flow-spain-map .real-spain-map {
  width: min(100%, 520px);
  max-height: 330px;
  padding: 8px;
}

.province-picker {
  display: grid;
  gap: 8px;
}

.province-picker p {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.province-shape {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(17, 120, 168, 0.18);
  border-radius: 8px;
  background: #E5F5FA;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
}

.province-shape:hover,
.province-shape.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.wide-field {
  max-width: 520px;
}

.instrument-rail {
  display: grid;
  grid-auto-columns: 128px;
  grid-auto-flow: column;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 8px;
  scroll-snap-type: x proximity;
}

.flow-instrument {
  display: grid;
  min-height: 116px;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  scroll-snap-align: start;
  text-align: center;
}

.flow-instrument svg {
  width: 54px;
  height: 54px;
  fill: rgba(17, 120, 168, 0.1);
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.6;
}

.flow-instrument:hover,
.flow-instrument.active {
  border-color: var(--accent);
  background: #E5F5FA;
  color: var(--brand-dark);
}

.conservatory-results {
  display: grid;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.conservatory-choice {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.conservatory-choice:hover {
  border-color: var(--brand);
}

.conservatory-choice span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hidden-control {
  display: none;
}

.planner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.level-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.level-field legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.level-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.level-option {
  min-height: 46px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
}

.level-option:hover,
.level-option.active {
  border-color: var(--brand);
  background: #E5F5FA;
  color: var(--brand-dark);
}

.planner-submit {
  grid-column: 1 / -1;
}

.planner-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(17, 120, 168, 0.28);
  border-radius: 8px;
  background: #E5F5FA;
}

.planner-result h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.planner-result p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(17, 120, 168, 0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.reassurance {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 22px;
}

.reassurance-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 8px 8px 0;
}

.reassurance-copy h2 {
  max-width: 580px;
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3.5vw, 3rem);
  line-height: 1.04;
}

.reassurance-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.fear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fear-card {
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.fear-card span {
  display: inline-grid;
  width: 34px;
  height: 28px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #E5F5FA;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
}

.fear-card h3 {
  margin-bottom: 8px;
}

.fear-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

label,
.summary-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

select:disabled {
  color: var(--muted);
  background: var(--paper);
}

.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

select:focus,
button:focus-visible {
  outline: 3px solid rgba(17, 120, 168, 0.22);
  outline-offset: 2px;
}

.selection-summary {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.selection-summary strong {
  font-size: 1.08rem;
  line-height: 1.35;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  background: var(--brand);
  color: white;
}

.primary-action:hover {
  background: var(--brand-dark);
}

.secondary-action {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.secondary-action:hover {
  border-color: var(--brand);
}

.map-panel {
  min-height: 560px;
  padding: 18px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.spain-map {
  display: grid;
  place-items: center;
  min-height: 500px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(75, 155, 193, 0.14), transparent 22%),
    linear-gradient(145deg, #E5F5FA, #FFFFFF 62%, #F7FAFA);
}

.real-spain-map {
  width: min(100%, 760px);
  height: auto;
  max-height: 500px;
  padding: 18px;
}

.map-loading {
  color: var(--muted);
  font-weight: 800;
}

.map-source {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.city-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.city-action {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.city-action:hover,
.city-action.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.region {
  fill: #8FC7DA;
  stroke: #FFFFFF;
  stroke-width: 1.7;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition:
    fill 160ms ease,
    filter 160ms ease,
    transform 160ms ease;
  transform-box: fill-box;
  transform-origin: center;
}

.region:hover,
.region.active {
  fill: var(--brand);
  filter: drop-shadow(0 8px 9px rgba(17, 120, 168, 0.28));
  transform: translateY(-2px) scale(1.03);
}

.region.is-coming-soon {
  fill: #CFEAF2;
}

.region.is-coming-soon:hover {
  fill: #9DD4E2;
}

.region.active {
  fill: var(--brand);
  stroke: var(--accent);
  stroke-width: 3;
}

.instrument-panel {
  margin-top: 18px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
}

#selectedInstrument {
  margin-bottom: 4px;
  color: var(--muted);
  font-weight: 800;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.instrument-card {
  display: grid;
  min-height: 138px;
  place-items: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.instrument-card svg {
  width: min(86px, 100%);
  height: 74px;
  fill: rgba(17, 120, 168, 0.12);
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.instrument-card:hover,
.instrument-card.active {
  border-color: rgba(17, 120, 168, 0.36);
  background: #E5F5FA;
  box-shadow: 0 12px 28px rgba(24, 32, 34, 0.1);
  transform: translateY(-2px);
}

.instrument-card.active {
  border-color: var(--accent);
}

.instrument-card.active span {
  color: var(--brand-dark);
}

.questions-panel {
  margin-top: 18px;
  padding: 22px;
}

.question-list {
  display: grid;
  gap: 10px;
}

.question-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.question-list summary {
  min-height: 54px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 850;
}

.question-list summary::marker {
  color: var(--brand);
}

.question-list p {
  margin: 0;
  padding: 0 18px 18px 34px;
  color: var(--muted);
  line-height: 1.6;
}

.details {
  margin-top: 18px;
  padding: 22px;
}

.details h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 14px;
}

.guide-summary,
.guide-card,
.lead-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-summary {
  display: flex;
  flex-direction: column;
  grid-row: span 2;
  justify-content: space-between;
  min-height: 330px;
}

.guide-summary p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1.55;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.guide-card h3,
.lead-card h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.conservatory-list {
  display: grid;
  gap: 9px;
}

.conservatory-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.conservatory-item:hover {
  border-color: var(--brand);
}

.conservatory-item span,
.empty-state {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.lead-card {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  align-items: center;
  border-color: rgba(17, 120, 168, 0.28);
  background: #E5F5FA;
}

.lead-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
}

.lead-form input {
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

@media (max-width: 900px) {
  .intro,
  .planner,
  .reassurance,
  .finder,
  .section-heading,
  .guide-layout,
  .lead-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .instrument-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-summary {
    grid-row: auto;
    min-height: auto;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .planner-form {
    grid-template-columns: 1fr;
  }

  .reassurance-copy {
    padding-right: 0;
  }

  .controls {
    order: 2;
  }

  .map-panel {
    min-height: auto;
    order: 1;
  }

  .spain-map {
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 22px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .planner {
    padding: 18px;
  }

  .level-options {
    grid-template-columns: 1fr;
  }

  .instrument-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fear-grid {
    grid-template-columns: 1fr;
  }

  .question-list p {
    padding-left: 18px;
  }

  .instrument-card {
    min-height: 120px;
  }

  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .spain-map {
    min-height: 370px;
  }

  .real-spain-map {
    padding: 10px;
  }
}

/* Minimal guided flow */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.reassurance,
.finder,
.instrument-panel,
.questions-panel,
.details {
  display: none !important;
}

.shell,
.conservatorio-landing.shell {
  width: min(1360px, calc(100% - 32px));
  overflow-x: clip;
}

.planner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0 auto 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.planner-copy {
  max-width: 720px;
}

.planner-copy h2 {
  max-width: 700px;
  font-size: clamp(1.9rem, 4vw, 3.45rem);
  line-height: 1.04;
}

.steps-panel {
  display: grid;
  gap: 10px;
  max-width: 1080px;
}

.flow-step {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(216, 232, 234, 0.98);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.flow-step.is-open {
  border-color: rgba(17, 120, 168, 0.28);
  box-shadow: 0 14px 34px rgba(24, 32, 34, 0.08);
}

.flow-step.is-locked {
  opacity: 0.62;
}

.flow-step-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 13px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.flow-step.is-locked .flow-step-toggle {
  cursor: not-allowed;
}

.flow-check {
  position: relative;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.flow-step.is-complete .flow-check {
  border-color: var(--brand);
  background: var(--brand);
  color: transparent;
}

.flow-step.is-complete .flow-check::after {
  width: 7px;
  height: 12px;
  margin-top: -2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
  transform: rotate(45deg);
}

.flow-step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.flow-step-copy strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-step-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-chevron {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
}

.flow-chevron::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.flow-step.is-open .flow-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.flow-step-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(216, 232, 234, 0.82);
}

.flow-step.is-open .flow-step-body {
  display: block;
}

.step-heading {
  margin-bottom: 16px;
}

.minimal-map-shell {
  display: grid;
  gap: 18px;
}

.flow-spain-map {
  min-height: 300px;
  margin: 16px 0 0;
  background: #FFFFFF;
}

.flow-spain-map .real-spain-map {
  width: min(100%, 980px);
  max-height: 300px;
  padding: 12px;
}

.province-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.province-shape {
  min-height: 42px;
  min-width: 132px;
  padding: 0 18px;
  border-color: var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.province-shape:hover,
.province-shape.active {
  border-color: var(--brand);
  background: #E5F5FA;
  color: var(--brand-dark);
}

.province-shape.is-coming-soon {
  border-style: dashed;
  color: var(--muted);
}

.province-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.step-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.step-fields.step-fields-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.step-fields.step-fields-one {
  grid-template-columns: minmax(0, 480px);
}

.instrument-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  overflow: visible;
  padding: 0;
}

.instrument-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.instrument-pill:hover,
.instrument-pill.active {
  border-color: var(--brand);
  background: #E5F5FA;
  color: var(--brand-dark);
}

.course-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-option {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
}

.course-option:hover,
.course-option.active {
  border-color: var(--brand);
  background: #E5F5FA;
  color: var(--brand-dark);
}

.summary-step {
  display: grid;
  gap: 14px;
}

.final-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.final-summary div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.final-summary dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.final-summary dd {
  margin: 0;
  font-weight: 850;
  line-height: 1.3;
}

.planner-submit {
  width: min(100%, 280px);
}

.syllabus-lead {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.syllabus-lead.is-visible {
  display: grid;
}

.planner-result {
  display: none !important;
}

@media (max-width: 900px) {
  .intro {
    min-height: 430px;
  }

  .step-fields,
  .step-fields.step-fields-two,
  .step-fields.step-fields-one,
  .final-summary,
  .syllabus-lead {
    grid-template-columns: 1fr !important;
  }

  .step-fields.step-fields-two,
  .step-fields.step-fields-one {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .shell,
  .conservatorio-landing.shell {
    width: min(100% - 20px, 1360px);
  }

  .flow-step {
    padding: 0;
  }

  .flow-step-toggle {
    min-height: 58px;
    padding: 12px;
  }

  .flow-step-body {
    padding: 0 12px 12px;
  }

  .flow-spain-map {
    min-height: 260px;
  }
}

.planner-message {
  max-width: 560px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.5;
}

.planner-message.is-warning {
  color: var(--brand-dark);
}

.temario-page {
  padding: 42px 0 58px;
}

.temario-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.temario-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
  padding: 34px;
  border: 1px solid rgba(216, 232, 234, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(229, 245, 250, 0.86)),
    radial-gradient(circle at 86% 18%, rgba(242, 155, 118, 0.22), transparent 30%);
  box-shadow: var(--shadow);
}

.temario-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.temario-trust-row span,
.temario-trust-row a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(17, 120, 168, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.temario-status.is-confirmado {
  border-color: rgba(17, 120, 168, 0.28);
  background: #E5F5FA;
  color: var(--brand-dark);
}

.temario-status.is-pendiente {
  border-color: rgba(242, 155, 118, 0.5);
  background: #FFF7D8;
  color: #6A5608;
}

.temario-status.is-anterior {
  border-color: rgba(185, 74, 86, 0.28);
  background: #FFF2EF;
  color: #9A4B3E;
}

.temario-hero h1 {
  max-width: 800px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
}

.temario-kicker {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.35;
}

.temario-intro {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.temario-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.temario-source-link {
  display: inline-flex;
  min-width: 170px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
}

.temario-facts {
  display: grid;
  gap: 10px;
  align-self: stretch;
}

.temario-facts div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.temario-facts span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.temario-facts strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

.temario-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.temario-overview div,
.temario-side-card,
.temario-section-nav {
  border: 1px solid rgba(216, 232, 234, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(24, 32, 34, 0.07);
}

.temario-overview div {
  padding: 18px;
}

.temario-overview span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.temario-overview strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}

.temario-tool-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.temario-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
}

.temario-section-nav {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.temario-section-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.temario-section-nav a:hover {
  background: #E5F5FA;
  color: var(--brand-dark);
}

.temario-side-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.temario-side-card strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.3;
}

.temario-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.temario-side-card .primary-action {
  width: 100%;
}

.temario-content {
  padding: 34px;
  border: 1px solid rgba(216, 232, 234, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(24, 32, 34, 0.08);
}

.temario-content > * {
  max-width: 860px;
}

.temario-content h2 {
  margin: 34px 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.12;
}

.temario-content h2:first-child,
.temario-source-note + h2 {
  margin-top: 0;
}

.temario-content h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
}

.temario-content p,
.temario-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.temario-content ul {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}

.temario-source-note {
  padding: 14px 16px;
  border: 1px solid rgba(17, 120, 168, 0.2);
  border-radius: 8px;
  background: #E5F5FA;
  color: var(--brand-dark) !important;
  font-weight: 750;
}

.temario-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(17, 120, 168, 0.2);
  border-radius: 8px;
  background: #E5F5FA;
}

.temario-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.temario-footer p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.temario-back-link {
  display: inline-flex;
  min-width: 180px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}

.temario-download-trigger {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.temario-mobile-actions {
  display: none;
}

.has-temario-modal {
  overflow: hidden;
}

.temario-modal[hidden] {
  display: none;
}

.temario-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.temario-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 34, 0.42);
}

.temario-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid rgba(216, 232, 234, 0.98);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(24, 32, 34, 0.26);
}

.temario-modal-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.08;
}

.temario-modal-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.temario-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.kit-download-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.kit-download-form label {
  display: grid;
  gap: 7px;
}

.kit-download-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.kit-download-form input:focus {
  outline: 3px solid rgba(17, 120, 168, 0.22);
  outline-offset: 2px;
}

.kit-form-status {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark) !important;
  font-size: 0.92rem;
  font-weight: 750;
}

.kit-form-status.is-warning {
  color: #EF7A6C !important;
}

.kit-signup-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .temario-hero,
  .temario-footer,
  .temario-overview,
  .temario-tool-layout {
    grid-template-columns: 1fr;
  }

  .temario-hero {
    align-items: start;
    padding: 24px;
  }

  .temario-footer {
    display: grid;
  }

  .temario-footer-actions {
    justify-content: stretch;
  }

  .temario-footer-actions > * {
    width: 100%;
  }

  .temario-content {
    padding: 24px;
  }

  .temario-sidebar {
    position: static;
    order: 2;
  }

  .temario-section-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .temario-page {
    padding-bottom: 94px;
  }

  .temario-shell {
    width: min(100% - 20px, 1180px);
  }

  .temario-hero,
  .temario-content,
  .temario-footer,
  .temario-modal-panel {
    padding: 18px;
  }

  .temario-hero-actions {
    display: none;
  }

  .temario-mobile-actions {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(216, 232, 234, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(24, 32, 34, 0.16);
  }

  .temario-mobile-actions > * {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    text-align: center;
    text-decoration: none;
  }

  .temario-mobile-actions .secondary-action:only-child,
  .temario-mobile-actions .primary-action:only-child {
    grid-column: 1 / -1;
  }
}

@media print {
  body {
    background: #FFFFFF !important;
  }

  body > header,
  body > footer,
  .temario-download-trigger,
  .temario-footer,
  .temario-modal,
  .temario-sidebar,
  .temario-mobile-actions {
    display: none !important;
  }

  .temario-page {
    padding: 0;
  }

  .temario-shell {
    width: 100%;
  }

  .temario-hero,
  .temario-content,
  .temario-overview {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .temario-tool-layout,
  .temario-overview {
    display: block;
  }

  .temario-overview div {
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .temario-hero {
    display: block;
    margin-bottom: 24px;
  }

  .temario-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
  }

  .temario-content > * {
    max-width: none;
  }
}
