/* Critical — base (header, tokens, tipografía above-the-fold) */
:root {
  --pmi-violet-300: #b465ff;
  --pmi-violet-500: #4f17a8;
  --pmi-violet-800: #200f3b;
  --pmi-violet-950: #100522;
  --pmi-aqua-300: #05bfe0;
  --pmi-aqua-500: #00799e;
  --pmi-neutral-50: #f7f4ef;
  --pmi-font-primary: "Aeonik", "Aptos", "Helvetica Neue", Satoshi, Helvetica, Arial, sans-serif;
  --pmi-font-mono: "GT Pressura Mono", "Aptos Mono", "IBM Plex Mono", Consolas, monospace;
  --pmi-bg-violet-dark: linear-gradient(to bottom, var(--pmi-violet-950), var(--pmi-violet-800));
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--pmi-font-primary);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--pmi-violet-950);
  background-image: var(--pmi-bg-violet-dark);
  font-synthesis: none;
  color: rgba(239, 237, 243, 0.95);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.bg-grad-violet-dark {
  background-image: var(--pmi-bg-violet-dark);
}

.text-pmi-neutral-50 { color: var(--pmi-neutral-50); }
.text-pmi-violet-300 { color: var(--pmi-violet-300); }
.text-pmi-violet-50 { color: #efedf3; }
.text-pmi-violet-50\/95 { color: rgba(239, 237, 243, 0.95); }
.text-pmi-violet-800 { color: var(--pmi-violet-800); }
.text-pmi-violet-950 { color: var(--pmi-violet-950); }
.text-pmi-aqua-300 { color: var(--pmi-aqua-300); }

.bg-pmi-aqua-300 { background-color: var(--pmi-aqua-300); }

.border-pmi-aqua-500 { border-color: var(--pmi-aqua-500); }
.border-pmi-neutral-50 { border-color: var(--pmi-neutral-50); }

.selection\:bg-pmi-aqua-300::selection {
  background-color: var(--pmi-aqua-300);
}

.selection\:text-pmi-violet-950::selection {
  color: var(--pmi-violet-950);
}

body.overflow-hidden {
  overflow: hidden;
}

.home-hero .type-body,
.congress-poster .type-body {
  color: rgba(239, 237, 243, 0.95);
}

.type-caption {
  font-family: var(--pmi-font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.type-display {
  font-family: var(--pmi-font-primary);
  font-size: clamp(2.35rem, 8.4vw, 11vw);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .type-display {
    font-size: 11vw;
    line-height: 0.85;
  }
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.type-body {
  font-family: var(--pmi-font-primary);
  font-size: clamp(1.0625rem, 1.1vw, 1.1875rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.type-cta {
  font-family: var(--pmi-font-primary);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#site-header > header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--pmi-neutral-50);
  color: var(--pmi-violet-800);
  border-bottom: 1px solid rgba(32, 15, 59, 0.1);
}

@media (min-width: 768px) {
  #site-header > header {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

#site-header > header > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

#site-header > header img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
}

@media (min-width: 768px) {
  #site-header > header img {
    height: 3rem;
  }
}

#site-header > header > div {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  #site-header > header > div {
    gap: 1.5rem;
  }
}

#site-header > header > div > nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  #site-header > header > div > nav {
    display: flex;
  }
}

#site-header > header > div > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  #site-header > header > div > div {
    padding-left: 0.5rem;
    border-left: 1px solid rgba(32, 15, 59, 0.15);
  }
}

#site-header > header a {
  color: var(--pmi-violet-800);
  text-decoration: none;
}

#mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#mobile-menu-btn span {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background-color: var(--pmi-violet-800);
}

@media (min-width: 768px) {
  #mobile-menu-btn {
    display: none;
  }
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background-color: rgba(16, 5, 34, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#mobile-menu:not(.opacity-0) {
  opacity: 1;
}

#mobile-menu:not(.pointer-events-none) {
  pointer-events: auto;
}

#mobile-menu a {
  color: var(--pmi-neutral-50);
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--pmi-neutral-50);
  color: var(--pmi-violet-800);
  font-family: var(--pmi-font-primary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  border-radius: 0.35rem;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--pmi-violet-500);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--pmi-violet-500);
  outline-offset: 3px;
  border-radius: 4px;
}

#custom-cursor {
  display: none;
}

@media (pointer: fine) {
  #custom-cursor {
    display: block;
  }
}

/* Critical — portada interior (nosotros, eventos, membresía, etc.) */
.type-headline {
  font-family: var(--pmi-font-primary);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.text-pmi-aqua-300 {
  color: var(--pmi-aqua-300);
}

#main-content > section:first-child,
#evento-content > section:first-child {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 70vh;
  min-height: 70svh;
  padding: 8rem 1.5rem 6rem;
  background-image: var(--pmi-bg-violet-dark);
}

#evento-content > section:first-child {
  min-height: 40vh;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  #main-content > section:first-child,
  #evento-content > section:first-child {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

#main-content > section:first-child > .absolute,
#evento-content > section:first-child > .absolute {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#main-content > section:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.25;
}

#main-content > section:first-child > .relative,
#evento-content > section:first-child > .relative {
  position: relative;
  z-index: 1;
  width: 100%;
}

#evento-content > section:first-child > .relative {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

#main-content > section:first-child a.type-caption,
#evento-content > section:first-child a.type-caption {
  color: var(--pmi-violet-300);
  text-decoration: none;
}

#main-content > section:first-child h1,
#evento-content > section:first-child h1 {
  margin-top: 1.5rem;
  color: var(--pmi-neutral-50);
}

#evento-content > section:first-child p.type-caption {
  margin-top: 1.5rem;
}

#evento-content > section:first-child h1 {
  margin-top: 1rem;
  max-width: 48rem;
}
