:root {
  --event-navy: #081f64;
  --event-blue: #115ef6;
  --event-blue-soft: #eaf2ff;
  --event-red: #df201b;
  --event-orange: #f28c18;
  --event-orange-soft: #fff1df;
  --event-green: #128c4a;
  --event-green-soft: #e8f7ef;
  --event-ink: #10203d;
  --event-muted: #5f6f86;
  --event-line: #d8e3f1;
}

* {
  box-sizing: border-box;
}

body.event-home {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--event-ink);
  background: #f2f7ff;
  font-family: "DM Sans", "Arial", sans-serif;
}

.event-home main {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
}

.event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.event-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #385071;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.event-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.event-brand strong {
  color: var(--event-navy);
}

.event-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 6px;
  color: #405573;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.event-nav a:hover,
.event-nav a:focus {
  background: #fff;
  color: var(--event-red);
}

.event-hero {
  overflow: hidden;
  border-radius: 8px;
  background: #081f64;
  box-shadow: 0 16px 34px rgba(8, 31, 100, 0.14);
}

.event-banner {
  display: block;
  width: 100%;
  height: auto;
}

.event-registration-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 7px;
  font-size: 0.94rem;
  font-weight: 900;
  text-decoration: none;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.event-registration-button:hover,
.event-registration-button:focus {
  transform: translateY(-1px);
}

.event-registration-options {
  position: relative;
  margin: -10px 0 24px;
  overflow: hidden;
  border: 1px solid #bfd0e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(8, 31, 100, 0.18);
}

.event-registration-options::before {
  display: block;
  height: 7px;
  content: "";
  background: linear-gradient(90deg, #0a3fc2 0 50%, var(--event-blue) 50% 76%, var(--event-green) 76% 100%);
}

.event-registration-options > h2,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.event-registration-options-grid {
  display: grid;
  grid-template-columns: 2fr minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
}

.event-in-person {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-height: 112px;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.event-in-person::before {
  display: none;
}

.event-in-person + .event-in-person {
  box-shadow: none;
}

.event-online-info::before {
  display: none;
}

.event-presential-info {
  grid-column: 1;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 164px;
  padding: 18px 22px;
  background:
    radial-gradient(circle at 110% -10%, rgba(91, 161, 255, 0.58), transparent 42%),
    linear-gradient(135deg, #071f63, #0b48cb);
}

.event-presential-info::before {
  display: none;
}

.event-whatsapp-info::before {
  display: none;
}

.event-presential-eyebrow {
  display: inline-flex !important;
  width: fit-content;
  margin: 0 0 4px !important;
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff;
  color: #09338f !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em;
  line-height: 1.1 !important;
  text-transform: uppercase;
}

.event-in-person-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--event-blue-soft);
  color: var(--event-blue);
}

.event-online-info .event-in-person-icon {
  background: var(--event-blue-soft);
  color: var(--event-blue);
}

.event-online-info {
  background:
    radial-gradient(circle at 100% 0, rgba(80, 148, 255, 0.22), transparent 46%),
    var(--event-blue-soft);
}

.event-whatsapp-info .event-in-person-icon {
  background: var(--event-green-soft);
  color: var(--event-green);
}

.event-in-person-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.event-in-person h3 {
  margin: 0;
  color: var(--event-navy);
  font-size: 1.04rem;
  font-weight: 900;
}

.event-presential-info h3 {
  font-family: "Bricolage Grotesque", "DM Sans", sans-serif;
  color: #fff;
  font-size: 1.35rem;
}

.event-presential-info div > span:not(.event-presential-eyebrow) {
  color: #e6efff;
  font-size: 0.96rem;
}

.event-in-person > div {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.event-in-person div > span {
  display: block;
  margin-top: 4px;
  margin-bottom: 9px;
  color: #354866;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.36;
}

.event-registration-button {
  min-height: 32px;
  margin-top: auto;
  padding: 7px 13px;
  background: var(--event-blue);
  color: #fff;
  font-size: 0.82rem;
  box-shadow: 0 8px 18px rgba(17, 94, 246, 0.2);
}

.event-registration-button:hover,
.event-registration-button:focus {
  background: #0d4dd0;
  color: #fff;
}

.event-presential-button {
  min-height: 38px;
  border: 0;
  background: #fff;
  color: #092e83;
  box-shadow: 0 8px 18px rgba(0, 18, 74, 0.28);
  cursor: pointer;
  font-family: inherit;
}

.event-presential-button:hover,
.event-presential-button:focus {
  background: #dceaff;
  color: #071f63;
}

.event-whatsapp-button {
  background: var(--event-green);
  box-shadow: 0 8px 18px rgba(18, 140, 74, 0.2);
}

.event-whatsapp-info {
  grid-column: auto;
  grid-row: auto;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 88px;
  padding: 14px 16px;
  background: #fbfefd;
  box-shadow: none !important;
}

.event-whatsapp-info::before {
  top: 14px;
  bottom: 14px;
}

.event-whatsapp-info .event-in-person-icon {
  width: 34px;
  height: 34px;
}

.event-whatsapp-info .event-in-person-icon svg {
  width: 18px;
  height: 18px;
}

.event-whatsapp-info div > span {
  margin: 2px 0 4px;
  font-size: 0.82rem;
}

.event-whatsapp-link {
  color: var(--event-green);
  font-size: 0.83rem;
  font-weight: 900;
  text-decoration: none;
}

.event-whatsapp-link:hover,
.event-whatsapp-link:focus {
  color: #0f783f;
  text-decoration: underline;
}

.event-presential-photo {
  width: 48px;
  height: 48px;
  border: 3px solid #fff;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 18, 74, 0.34);
}

.event-whatsapp-button:hover,
.event-whatsapp-button:focus {
  background: #0f783f;
}

.event-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.event-modal.is-open {
  display: flex;
}

.event-modal-open {
  overflow: hidden;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 38, 0.68);
  backdrop-filter: blur(3px);
}

.event-modal-panel {
  position: relative;
  width: min(720px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.event-modal-panel img {
  display: block;
  width: 100%;
  max-height: min(66vh, 520px);
  object-fit: cover;
}

.event-modal-panel div {
  padding: 16px 18px 18px;
}

.event-modal-panel h2 {
  margin: 0;
  color: var(--event-navy);
  font-size: 1.24rem;
}

.event-modal-panel p {
  margin: 5px 0 0;
  color: var(--event-muted);
  font-size: 0.96rem;
}

.event-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--event-navy);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.event-modal-close:hover,
.event-modal-close:focus {
  color: var(--event-red);
}

.event-modal-close svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}

@media (max-width: 920px) {
  .event-registration-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-whatsapp-info {
    grid-column: 1 / -1;
    grid-row: auto;
    box-shadow: none;
  }

  .event-presential-info {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 136px;
  }
}

@media (max-width: 640px) {
  .event-home main {
    width: 100%;
    padding-inline: 9px;
  }

  .event-header {
    gap: 10px;
    min-height: 64px;
  }

  .event-brand {
    gap: 7px;
    font-size: 0.7rem;
  }

  .event-brand img {
    width: 34px;
    height: 34px;
  }

  .event-nav {
    gap: 3px;
  }

  .event-nav a[href="consulta.php"] {
    display: none;
  }

  .event-nav a {
    min-height: 34px;
    padding: 7px;
    font-size: 0.76rem;
  }

  .event-registration-options-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .event-whatsapp-info {
    grid-column: auto;
    grid-row: auto;
  }

  .event-registration-options {
    margin-top: 10px;
  }

  .event-in-person {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 15px 14px;
  }

  .event-presential-info {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 0;
    padding: 16px 14px;
  }

  .event-in-person + .event-in-person {
    box-shadow: none;
  }

  .event-in-person::before {
    display: none;
  }

  .event-in-person-icon {
    width: 42px;
    height: 42px;
  }

  .event-in-person h3 {
    font-size: 1.04rem;
  }

  .event-presential-info h3 {
    font-size: 1.22rem;
  }

  .event-in-person div > span {
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .event-registration-button {
    width: auto;
    min-height: 34px;
    font-size: 0.84rem;
  }

  .event-presential-photo {
    width: 54px;
    height: 54px;
  }

  .event-modal {
    padding: 14px;
  }

  .event-modal-panel img {
    max-height: 58vh;
  }
}
