:root {
  --primary: #00417F;
  --soft: #ffffff;
  --ink: #000000;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #000000;
  --muted: #666666;
  --line: #e9ecef;
  --font-main: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(28, 34, 39, 0.08);
  --container: 1120px;
}

/* Variables inyectadas por build.py en /dist/assets/css/styles.css */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.jphd-toolbar {
  background: #f3f3f3;
  border-bottom: 1px solid #e5e5e5;
}

.jphd-header .container-xl {
  padding-inline: 1.5rem;
}

.jphd-footer .container-xl {
  padding-inline: 1.5rem;
}

.jphd-toolbar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.jphd-toolbar-nav a {
  color: #666;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.jphd-toolbar-nav a:hover {
  color: #333;
}

.jphd-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.jphd-social-btn:hover {
  background: #00305f;
  color: #fff;
}

.jphd-navbar {
  background: #fff;
}

.jphd-brand {
  padding: 0;
  margin-right: 1.5rem;
}

.jphd-logo {
  height: 96px;
  width: auto;
  max-width: 100%;
}

.jphd-main-nav {
  gap: 0.25rem;
}

.jphd-main-nav .nav-link {
  color: #000;
  font-weight: 500;
  font-size: 1.25rem;
  padding: 0.5rem 0.85rem;
}

.jphd-main-nav .nav-link:hover,
.jphd-main-nav .nav-link:focus,
.jphd-main-nav .nav-link.active {
  color: var(--primary);
}

.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.15);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .25rem rgba(0, 65, 127, 0.25);
}

.jphd-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 4rem 0;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    var(--hero-bg-image, none) center/cover no-repeat;
}

.jphd-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 18ch;
  margin-inline: auto;
}

.jphd-hero-title sup {
  font-size: 0.55em;
}

.jphd-hero-subtitle {
  margin: 1rem auto 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.jphd-page-hero {
  padding: 3rem 0 2.5rem;
  background: #f8f8f8;
  border-bottom: 1px solid var(--line);
}

.jphd-page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.jphd-intro-eyebrow {
  color: var(--primary);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  margin-bottom: 0.75rem;
}

.jphd-intro-lead {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.jphd-intro-body {
  position: relative;
  padding-left: 1.25rem;
  border-left: 3px solid #000;
  font-size: 1rem;
}

.jphd-campus-photo {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

.jphd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.jphd-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.jphd-btn:disabled,
.jphd-btn[aria-disabled="true"] {
  background: #9aa0a6;
  color: #f1f1f1;
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
  transform: none;
}

.jphd-reg-note {
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
}

.jphd-btn-primary {
  background: var(--primary);
  color: #fff;
}

.jphd-btn-primary:hover {
  background: #d08f43;
  color: #fff;
}

.jphd-btn-secondary {
  background: transparent;
  color: var(--primary);
  box-shadow: inset 0 0 0 2px var(--primary);
}

.jphd-btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

.jphd-nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.jphd-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.jphd-date-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 2.5rem 1.5rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jphd-date-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 65, 127, 0.35);
  color: #fff;
  text-decoration: none;
}

.jphd-date-card-icon {
  margin-bottom: 1rem;
  opacity: 0.95;
}

.jphd-date-card-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.jphd-date-card-title sup {
  font-size: 0.55em;
}

.jphd-date-card-text {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jphd-date-card-text span {
  text-transform: none;
  font-weight: 500;
}

.jphd-footer {
  background: var(--primary);
  color: #fff;
}

.jphd-footer-logo {
  max-height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.jphd-contact-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}

.jphd-title-divider {
  width: 3rem;
  height: 2px;
  margin: 0 auto;
  border: 0;
  background: var(--primary);
  opacity: 1;
}

.jphd-contact-heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

.jphd-heading-divider {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--primary);
}

.jphd-contact-lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

.jphd-contact-details {
  font-size: 1.125rem;
  line-height: 1.7;
}

.jphd-contact-details a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.jphd-contact-details a:hover {
  color: var(--primary);
}

.jphd-contact-photo {
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.jphd-map-section {
  width: 100%;
}

.jphd-map {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

.jphd-map-caption {
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  background: #f8f8f8;
}

/* Venue */
.jphd-venue-section {
  width: 100%;
}

.jphd-venue-map {
  display: block;
  width: 100%;
  height: 750px;
  border: 0;
}

.jphd-venue-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  height: 100%;
  padding: 2.5rem 2rem;
  background: var(--primary);
  color: #fff;
}

.jphd-venue-label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.jphd-venue-address {
  margin: 0 0 1.75rem;
  font-style: normal;
  line-height: 1.55;
}

.jphd-venue-info {
  margin: 0 0 1.75rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
}

.jphd-venue-markers li+li {
  margin-top: 0.5rem;
}

@media (max-width: 991.98px) {
  .jphd-venue-map {
    height: 420px;
  }

  .jphd-venue-sidebar {
    min-height: auto;
    padding: 2rem 1.5rem;
  }
}

.jphd-placeholder {
  color: var(--muted);
  font-size: 1.05rem;
}

.jphd-topics-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 640px;
}

.jphd-topics-list li {
  position: relative;
  padding: 0.9rem 1.1rem 0.9rem 2.6rem;
  background: #f8f8f8;
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.jphd-topics-list li::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background: var(--primary);
  border-radius: 50%;
}

.jphd-org-logo {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Speakers */
.jphd-speaker-category {
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.jphd-speaker-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: #f0f4f8;
  color: var(--ink);
}

/* Alternating cards invert the palette and flip the photo to the right */
.jphd-speaker-card--invert {
  flex-direction: row-reverse;
  background: var(--primary);
  color: #fff;
}

.jphd-speaker-photo {
  flex: 0 0 200px;
}

.jphd-speaker-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.jphd-speaker-body {
  flex: 1 1 auto;
}

.jphd-speaker-name {
  margin: 0 0 1rem;
  color: inherit;
}

.jphd-speaker-body p {
  color: inherit;
}

.jphd-speaker-body p:last-child {
  margin-bottom: 0;
}

.jphd-speaker-tba {
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: #f0f4f8;
  color: var(--ink);
  text-align: center;
}

.jphd-speaker-tba p {
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 575.98px) {

  .jphd-speaker-card,
  .jphd-speaker-card--invert {
    flex-direction: column;
    align-items: flex-start;
  }

  .jphd-speaker-photo {
    flex-basis: auto;
    max-width: 200px;
  }
}

/* Programme schedule */
.jphd-schedule {
  max-width: 960px;
  margin: 0 auto;
}

.schedule-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.schedule-day {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.schedule-date {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
  padding: 0.75rem 1rem;
}

.schedule-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.schedule-row:first-of-type {
  border-top: 0;
}

.schedule-time {
  flex: 0 0 80px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--primary);
  background: #f8f9fb;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
}

.schedule-event {
  flex: 1 1 auto;
  padding: 0.85rem 1rem;
  line-height: 1.45;
}

.schedule-event em {
  color: var(--muted);
}

.schedule-event.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 0;
}

.schedule-event.two-columns>div {
  padding: 0.85rem 1rem;
}

.schedule-event.two-columns>div:first-child {
  border-right: 1px solid var(--line);
}

.track-header {
  display: flex;
  border-top: 1px solid var(--line);
  background: #eef2f7;
}

.track-header .track-column {
  flex: 1 1 0;
  padding: 0.6rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  margin-left: 80px;
}

.track-header .track-column:first-child {
  border-right: 1px solid var(--line);
}

.track-header .track-column:not(:first-child) {
  margin-left: 0;
}

.schedule-row.highlight .schedule-event {
  background: #eaf2fb;
}

.schedule-row.workshop .schedule-event {
  background: #fff6e6;
}

.schedule-row.roundtable .schedule-event {
  background: #f0ecfa;
}

.schedule-row.break {
  background: #f3f4f6;
  font-style: italic;
}

.schedule-row.break .schedule-event {
  color: var(--muted);
}

.schedule-row.section {
  background: var(--text);
}

.schedule-row.section .schedule-time {
  background: var(--text);
  border-right: 0;
}

.schedule-row.section .schedule-event {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 575.98px) {
  .schedule-row {
    flex-direction: column;
  }

  .schedule-time {
    flex-basis: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .schedule-event.two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .schedule-event.two-columns>div:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .track-header {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .jphd-main-nav {
    padding-top: 0.5rem;
  }

  .jphd-mobile-extra .jphd-toolbar-nav a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
  }

  .jphd-nav-cta {
    margin-top: 0.75rem;
    align-self: flex-start;
  }
}

@media (max-width: 767.98px) {
  .jphd-logo {
    height: 72px;
  }

  .jphd-hero {
    min-height: 320px;
    padding: 3rem 0;
  }

  .jphd-intro-body {
    margin-top: 1.5rem;
  }
}
/* Registration */
.jphd-registration {
  background: #f8f8f8;
  border-top: 1px solid var(--line);
}

.jphd-reg-steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: reg-step;
}

.jphd-reg-steps > li {
  position: relative;
  counter-increment: reg-step;
  padding-left: 3.25rem;
}

.jphd-reg-steps > li + li {
  margin-top: 1.25rem;
}

.jphd-reg-steps > li::before {
  content: counter(reg-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.jphd-reg-step-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.jphd-reg-steps p {
  margin-bottom: 0;
}

.jphd-reg-steps a,
.jphd-registration > .container-xl a:not(.jphd-btn) {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.jphd-reg-steps a:hover,
.jphd-registration > .container-xl a:not(.jphd-btn):hover {
  color: var(--primary);
}

.jphd-reg-card {
  padding: 2.5rem 2rem;
  background: var(--primary);
  color: #fff;
}

.jphd-reg-card-title {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

.jphd-reg-facts {
  margin: 0 0 1.75rem;
}

.jphd-reg-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.jphd-reg-facts > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.jphd-reg-facts dt {
  font-weight: 500;
}

.jphd-reg-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

/* Full-screen cover heroes with a scroll-down arrow (Google Sites style) */
:root {
  --header-h: 81px;
}

.jphd-hero,
.jphd-page-hero.jphd-cover {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}

.jphd-page-hero.jphd-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  background: linear-gradient(165deg, #00325f 0%, var(--primary) 55%, #1263ad 100%);
  color: #fff;
  text-align: center;
  border-bottom: 0;
}

.jphd-page-hero.jphd-cover h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.jphd-scroll-down {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: jphd-arrow-bounce 2.2s ease-in-out infinite;
}

.jphd-scroll-down:hover,
.jphd-scroll-down:focus-visible {
  background: #eaf2fb;
  color: var(--primary);
}

@keyframes jphd-arrow-bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 9px);
  }
}

/* Land scrolled sections just below the sticky header */
main > section[id] {
  scroll-margin-top: var(--header-h);
}

/* Page entrance: the whole page rolls down into view on every load */
@keyframes jphd-page-enter {
  from {
    opacity: 0;
    transform: translateY(-48px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

main,
.site-footer {
  animation: jphd-page-enter 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {

  main,
  .site-footer,
  .jphd-scroll-down {
    animation: none;
  }
}
