/*
 * Mentalidad + IA
 * La paleta conserva el azul profundo, turquesa y dorado del material original.
 * Las fotografías se agregan desde public/content.js y el bloque .hero-placeholder.
 */
:root {
  color-scheme: dark;
  --bg: #040a13;
  --bg-soft: #07111f;
  --surface: #0a1728;
  --ink: #f6f2e9;
  --muted: #96a6bb;
  --cyan: #24dfca;
  --cyan-soft: #8bf7ea;
  --gold: #d8a83e;
  --gold-soft: #f0ca72;
  --line: rgba(151, 174, 202, 0.18);
  --line-bright: rgba(78, 219, 203, 0.34);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Aptos", "Segoe UI", Arial, sans-serif;
  font-family: var(--sans);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

html:has(dialog[open]),
body:has(dialog[open]) {
  overflow: hidden;
}

@media (min-width: 761px) {
  html {
    scrollbar-gutter: stable;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 0%, rgba(16, 71, 95, 0.24), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
  box-shadow: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 5px;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

h2,
.section-heading h1 {
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

h2 em,
.section-heading h1 em {
  color: var(--cyan);
  font-style: italic;
}

p {
  color: var(--muted);
}

.skip {
  position: fixed;
  top: -120px;
  left: 20px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  background: var(--cyan);
  color: #001a1b;
  font-weight: 800;
}

.skip:focus {
  top: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  min-height: 86px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 10, 19, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
}

.brand small {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.31em;
}

.brand > span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.045em;
}

.brand b {
  color: var(--cyan);
  font-family: var(--sans);
  font-size: 0.96em;
  font-weight: 800;
}

.header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  color: #bac5d4;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header nav a {
  position: relative;
  padding: 10px 0;
  transition: color 180ms ease;
}

.header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}

.header nav a:hover {
  color: var(--ink);
}

.header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: var(--cyan);
  color: #001b1b;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, var(--cyan) 0 42%, var(--ink) 50%, var(--cyan) 58% 100%);
  background-size: 240% 100%;
  background-position: 100% 0;
  transition: background-position 450ms ease;
}

.button i {
  font-size: 1.15rem;
  font-style: normal;
  line-height: 1;
  transition: transform 220ms ease;
}

.button:hover {
  color: #001817;
  border-color: rgba(139, 247, 234, 0.8);
  box-shadow: 0 16px 46px rgba(36, 223, 202, 0.25);
  transform: translateY(-4px);
}

.button:hover::before {
  background-position: 0 0;
}

.button:hover i {
  transform: translate(4px, -4px);
}

.button:active {
  transform: translateY(-1px) scale(0.985);
}

.button.small {
  min-height: 44px;
  gap: 18px;
  padding: 10px 17px;
  font-size: 0.69rem;
}

.hero {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: relative;
  width: min(100% - 48px, 1320px);
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  align-items: center;
  overflow: hidden;
  gap: clamp(32px, 6vw, 90px);
  padding: 70px 0 90px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 223, 202, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 202, 0.045) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at 77% 46%, #000 0, transparent 57%);
  animation: grid-drift 18s linear infinite;
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(12px);
}

.hero-glow-one {
  top: 17%;
  right: 11%;
  width: 310px;
  height: 310px;
  background: rgba(19, 134, 139, 0.14);
  animation: glow-pulse 5s ease-in-out infinite;
}

.hero-glow-two {
  right: 30%;
  bottom: 8%;
  width: 180px;
  height: 180px;
  background: rgba(216, 168, 62, 0.08);
  animation: glow-pulse 7s ease-in-out -2s infinite;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow > span {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(36, 223, 202, 0.42);
  border-radius: 50%;
  color: var(--cyan-soft);
  letter-spacing: 0;
}

.hero h1 {
  margin-bottom: 31px;
  font-size: clamp(4rem, 6.7vw, 7.15rem);
  line-height: 0.88;
}

.hero h1 em {
  color: var(--cyan);
  font-style: italic;
}

.hero h1 > span {
  color: transparent;
  font-size: 0.62em;
  letter-spacing: -0.03em;
  -webkit-text-stroke: 1px rgba(246, 242, 233, 0.72);
}

.hero-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 31px;
}

.hero-topics span {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8c3d1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  color: #c4ceda;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 220ms ease;
}

.text-link span {
  color: var(--cyan);
  transition: transform 220ms ease;
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link:hover span {
  transform: translateY(4px);
}

.hero-note {
  margin: 22px 0 0;
  color: #6f8198;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: min(100%, 530px);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  transform: translate3d(var(--pointer-x), var(--pointer-y), 0);
  transition: transform 160ms ease-out;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-art::before {
  inset: 7%;
  border: 1px solid rgba(36, 223, 202, 0.15);
}

.hero-art::after {
  inset: 18%;
  background: radial-gradient(circle, rgba(27, 188, 180, 0.16), transparent 67%);
  filter: blur(20px);
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid transparent;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.orbit-one {
  inset: 2%;
  border-top-color: rgba(36, 223, 202, 0.52);
  border-right-color: rgba(36, 223, 202, 0.12);
  animation: orbit-spin 18s linear infinite;
}

.orbit-two {
  inset: 13%;
  border-right-color: rgba(216, 168, 62, 0.5);
  border-bottom-color: rgba(216, 168, 62, 0.12);
  animation: orbit-spin 13s linear reverse infinite;
}

.orbit-two::before {
  top: auto;
  right: 15%;
  bottom: -4px;
  left: auto;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
}

.hero-placeholder {
  position: relative;
  z-index: 3;
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 38px 45px rgba(0, 0, 0, 0.46));
  text-align: center;
}

.hero-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background:
    linear-gradient(115deg, transparent 43%, rgba(255, 255, 255, 0.08) 49%, transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(36, 223, 202, 0.04) 20px 21px);
  background-size: 230% 100%, auto;
  animation: placeholder-sheen 7s ease-in-out infinite;
}

.hero-placeholder img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


.floating-label {
  position: absolute;
  z-index: 4;
  padding: 7px 12px;
  border: 1px solid var(--line-bright);
  background: rgba(5, 17, 29, 0.82);
  color: var(--cyan-soft);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  backdrop-filter: blur(10px);
  animation: float-label 5s ease-in-out infinite;
}

.label-one {
  top: 23%;
  left: 1%;
}

.label-two {
  top: 17%;
  right: 2%;
  animation-delay: -1.7s;
}

.label-three {
  right: 0;
  bottom: 21%;
  color: var(--gold-soft);
  border-color: rgba(216, 168, 62, 0.3);
  animation-delay: -3.2s;
}

.spark {
  position: absolute;
  z-index: 4;
  color: var(--gold-soft);
  animation: spark-pulse 3s ease-in-out infinite;
}

.spark-one {
  right: 17%;
  bottom: 4%;
  font-size: 1.3rem;
}

.spark-two {
  top: 7%;
  left: 27%;
  color: var(--cyan-soft);
  font-size: 0.8rem;
  animation-delay: -1.4s;
}

.event-strip {
  border-block: 1px solid var(--line);
  background: rgba(9, 23, 39, 0.78);
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  align-items: center;
  gap: 32px;
  padding: 26px max(24px, calc((100% - 1240px) / 2));
}

.event-strip div + div {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.event-strip small {
  display: block;
  margin-bottom: 4px;
  color: #667b93;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.event-strip strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.event-strip > a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.event-strip > a span {
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.event-strip > a:hover span {
  transform: translate(4px, -4px);
}

.section {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: clamp(86px, 9vw, 140px) max(24px, calc((100% - 1240px) / 2));
}

.section-heading {
  max-width: 830px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading p:last-child {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading.left p:last-child {
  margin-left: 0;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.benefit-card {
  position: relative;
  min-height: 270px;
  padding: 30px 27px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(12, 29, 49, 0.52), rgba(4, 10, 19, 0.15));
  transition:
    background 260ms ease,
    transform 260ms ease,
    border-color 260ms ease;
}

.benefit-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(36, 223, 202, 0.1);
  border-radius: 50%;
  transition: transform 400ms ease, border-color 260ms ease;
}

.benefit-card:hover {
  z-index: 2;
  border-color: rgba(36, 223, 202, 0.38);
  background: linear-gradient(150deg, rgba(15, 45, 59, 0.86), rgba(5, 15, 27, 0.8));
  transform: translateY(-7px);
}

.benefit-card:hover::after {
  border-color: rgba(36, 223, 202, 0.36);
  transform: scale(1.18);
}

.benefit-number {
  display: block;
  margin-bottom: 50px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.benefit-card h3 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.benefit-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.75;
}

.speakers-section {
  position: relative;
  max-width: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(24, 126, 129, 0.11), transparent 32rem),
    var(--bg-soft);
}

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

.speaker {
  position: relative;
  display: grid;
  grid-template-columns: 205px 1fr;
  align-items: center;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 22, 38, 0.76);
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.speaker::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(36, 223, 202, 0.12);
  border-radius: 50%;
}

.speaker:hover {
  border-color: var(--line-bright);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform: translateY(-6px);
}

.speaker-portrait {
  position: relative;
  width: 170px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(36, 223, 202, 0.28);
  border-radius: 50% 50% 8px 8px;
  background:
    linear-gradient(150deg, rgba(17, 66, 73, 0.62), rgba(5, 15, 28, 0.92)),
    var(--surface);
  color: rgba(139, 247, 234, 0.28);
}

.speaker-portrait::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(139, 247, 234, 0.13);
  border-radius: inherit;
}

.speaker-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait-initials {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
}

.portrait-label {
  margin-top: 18px;
  color: #769099;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.speaker small:not(.portrait-label) {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.speaker h3 {
  margin: 13px 0 17px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
}

.speaker p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.75;
}

.program-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.program-intro {
  position: sticky;
  top: 135px;
}

.program-intro > p:last-child {
  max-width: 420px;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) 1fr;
  gap: 35px;
  padding: 31px 16px 31px 0;
  border-bottom: 1px solid var(--line);
  transition:
    padding-left 240ms ease,
    background 240ms ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 240ms ease;
}

.timeline-item:hover {
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(36, 223, 202, 0.07), transparent 72%);
}

.timeline-item:hover::before {
  transform: scaleY(1);
}

.timeline time {
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: 1rem;
}

.timeline span {
  color: #72839a;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.timeline h3 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

#contexto {
  position: relative;
  max-width: none;
  background: var(--bg-soft);
}

#videos {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin-inline: auto;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(260px, 2fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #06101d;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.25);
}

.video-stage {
  aspect-ratio: 16 / 9;
  display: grid;
  place-content: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(26, 120, 126, 0.3), transparent 58%),
    #081527;
  text-align: center;
}

.play {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  color: var(--cyan);
}

.video-stage p {
  margin: 0;
  font-size: 0.8rem;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 9 / 16;
  background: #000;
  object-fit: contain;
}

.video-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 50%, rgba(36, 223, 202, 0.08), transparent 48%),
    #06101d;
}

.video-copy::before {
  content: "PLAY / 01";
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.video-copy h3 {
  max-width: 360px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.video-copy p {
  margin: 0;
  font-size: 0.78rem;
}

.sponsors-section {
  position: relative;
  max-width: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 223, 202, 0.08), transparent 32rem),
    #050c17;
}

.sponsors-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(36, 223, 202, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 223, 202, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.sponsors-section > * {
  position: relative;
  z-index: 1;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.sponsor-card {
  position: relative;
  min-width: 0;
  min-height: 225px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 46px 28px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 16, 29, 0.72);
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms ease,
    box-shadow 240ms ease;
}

.sponsor-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(36, 223, 202, 0.07);
  border-radius: 50%;
  transition: transform 350ms ease, border-color 240ms ease;
}

.sponsor-card > span {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  color: #64778e;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sponsor-card:hover {
  z-index: 2;
  border-color: rgba(36, 223, 202, 0.38);
  background: rgba(10, 31, 48, 0.92);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.sponsor-card:hover::after {
  border-color: rgba(36, 223, 202, 0.24);
  transform: scale(1.15);
}

.sponsor-logo {
  --logo-scale: 1;
  --logo-hover-scale: 1.035;
  position: relative;
  z-index: 1;
  display: block;
  width: min(88%, 280px);
  max-width: 100%;
  max-height: 145px;
  object-fit: contain;
  transform: scale(var(--logo-scale));
  transition: transform 260ms ease, filter 260ms ease;
}

svg.sponsor-logo {
  height: auto;
  overflow: hidden;
  mix-blend-mode: screen;
}

.sponsor-card:hover .sponsor-logo {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
  transform: scale(var(--logo-hover-scale));
}

.sponsor-logo--quiros {
  --logo-scale: 1.25;
  --logo-hover-scale: 1.3;
  width: min(70%, 225px);
  max-height: none;
}

.sponsor-logo--action {
  --logo-scale: 1.62;
  --logo-hover-scale: 1.68;
  width: min(76%, 250px);
  max-height: none;
}

.sponsor-logo--support {
  width: min(90%, 300px);
}

.sponsor-logo--fedecamaras {
  width: min(62%, 180px);
}

.sponsor-logo--betti {
  width: min(92%, 310px);
  filter:
    brightness(1.35)
    saturate(1.18)
    drop-shadow(0 8px 22px rgba(72, 91, 255, 0.2));
}

.sponsor-card:hover .sponsor-logo--betti {
  filter:
    brightness(1.48)
    saturate(1.22)
    drop-shadow(0 12px 28px rgba(92, 108, 255, 0.3));
}

.sponsor-logo--blend {
  width: min(96%, 330px);
}

.js .sponsor-card.reveal.is-visible:hover {
  transform: translateY(-6px);
}

.tickets-section {
  position: relative;
  max-width: none;
  background:
    radial-gradient(circle at 50% 15%, rgba(16, 92, 100, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--bg), #02070e);
}

.notice {
  max-width: 760px;
  margin: -30px auto 38px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  color: #8fa0b5;
  font-size: 0.78rem;
  text-align: center;
}

.ticket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: clamp(28px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(216, 168, 62, 0.38);
  background: linear-gradient(150deg, rgba(28, 28, 27, 0.56), rgba(7, 15, 27, 0.9));
  box-shadow: inset 0 0 80px rgba(216, 168, 62, 0.025);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.ticket-card::after {
  content: "01";
  position: absolute;
  right: -7px;
  bottom: -27px;
  color: rgba(216, 168, 62, 0.045);
  font-family: var(--serif);
  font-size: 12rem;
  line-height: 1;
  pointer-events: none;
}

.ticket-card:hover {
  border-color: rgba(216, 168, 62, 0.68);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.33);
  transform: translateY(-8px);
}

.ticket-card.premium {
  border-color: rgba(36, 223, 202, 0.45);
  background: linear-gradient(145deg, rgba(8, 51, 58, 0.56), rgba(7, 16, 29, 0.92));
  box-shadow: inset 0 0 90px rgba(36, 223, 202, 0.035);
}

.ticket-card.premium::after {
  content: "02";
  color: rgba(36, 223, 202, 0.045);
}

.ticket-card.premium:hover {
  border-color: rgba(36, 223, 202, 0.76);
}

.card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.card-top .eyebrow {
  margin: 0;
  color: #8798ab;
  font-size: 0.59rem;
}

.badge {
  padding: 6px 9px;
  border: 1px solid rgba(216, 168, 62, 0.38);
  color: var(--gold-soft);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.premium .badge {
  border-color: rgba(36, 223, 202, 0.42);
  color: var(--cyan-soft);
}

.ticket-card h3 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 41px 0 15px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.65rem);
  font-weight: 400;
}

.ticket-card h3 span {
  color: #4f5e72;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.ticket-card > p {
  position: relative;
  z-index: 1;
  font-size: 0.84rem;
}

.price {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--gold-soft);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.premium .price {
  color: var(--cyan-soft);
}

.price-detail {
  margin-top: 10px;
  font-size: 0.73rem !important;
}

.ticket-card ul {
  position: relative;
  z-index: 1;
  flex: 1;
  margin: 22px 0 32px;
  padding: 25px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.ticket-card li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  color: #bbc6d3;
  font-size: 0.82rem;
}

.ticket-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.63rem;
}

.premium li::before {
  color: var(--cyan);
}

.ticket-card .button {
  z-index: 2;
  width: 100%;
  background: var(--gold);
}

.ticket-card:not(.premium) .button::before {
  background: linear-gradient(105deg, var(--gold) 0 42%, var(--ink) 50%, var(--gold) 58% 100%);
  background-size: 240% 100%;
  background-position: 100% 0;
}

.ticket-card:not(.premium) .button:hover::before {
  background-position: 0 0;
}

.premium .button {
  background: var(--cyan);
}

.payment-methods {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
  color: #8292a6;
  font-size: 0.72rem;
}

.payment-methods span {
  color: #5e7189;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.payment-methods strong {
  font-weight: 500;
}

.purchase-recovery {
  display: flex;
  justify-content: center;
  margin: 42px 0 8px;
}

.purchase-recovery .button {
  min-width: min(280px, 100%);
  justify-content: center;
}

.closing {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 90px 24px;
  background:
    radial-gradient(circle at 50% 100%, rgba(22, 121, 126, 0.2), transparent 38rem),
    #050b14;
  text-align: center;
}

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  width: min(65vw, 780px);
  aspect-ratio: 1;
  border: 1px solid rgba(36, 223, 202, 0.09);
  border-radius: 50%;
}

.closing::after {
  width: min(42vw, 500px);
  border-color: rgba(216, 168, 62, 0.1);
}

.closing > * {
  position: relative;
  z-index: 1;
}

.closing .eyebrow {
  display: block;
}

.closing h2 {
  margin-bottom: 34px;
  font-size: clamp(3.4rem, 7vw, 7rem);
}

.closing h2 em {
  color: var(--cyan);
  font-style: italic;
}

.closing p:last-child {
  margin: 25px 0 0;
  font-size: 0.73rem;
}

footer {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 35px 0;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 0.72rem;
}

.link-button {
  padding: 7px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: underline;
  text-decoration-color: rgba(36, 223, 202, 0.34);
  text-underline-offset: 4px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.link-button:hover {
  color: var(--cyan-soft);
  text-decoration-color: var(--cyan);
}

/* Formularios, compra, administración y control de acceso. */
dialog {
  position: fixed;
  inset: 50% auto auto 50%;
  margin: 0;
  width: min(650px, calc(100% - 30px));
  max-height: 90dvh;
  padding: 38px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #31506a;
  border-radius: 3px;
  background: #0a1728;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%);
}

dialog::backdrop {
  background: rgba(1, 5, 12, 0.88);
  backdrop-filter: blur(10px);
}

dialog h2 {
  padding-right: 25px;
  font-size: 2.5rem;
}

.exit-warning {
  width: min(480px, calc(100% - 30px));
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.close {
  position: absolute;
  top: 11px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 2rem;
  transition: color 180ms ease, transform 180ms ease;
}

.close:hover {
  color: var(--cyan);
  transform: rotate(90deg);
}

form label {
  display: block;
  margin-bottom: 18px;
  color: #c5ced9;
  font-size: 0.8rem;
  font-weight: 600;
}

input:not([type="checkbox"], [type="radio"]),
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 14px;
  border: 1px solid #3c536d;
  border-radius: 2px;
  background: #04101e;
  color: white;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:not([type="checkbox"], [type="radio"]):focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(36, 223, 202, 0.1);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.phone-field {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(120px, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.phone-field > input,
.phone-field > select {
  min-width: 0;
  margin-top: 0;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.45;
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fine {
  margin: 15px 0 0;
  font-size: 0.77rem;
}

#form-error,
#manual-error {
  color: #ffbdab;
}

.form-notice {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: #1b2639;
  color: #ffe3ba;
}

#payment-state code {
  display: block;
  padding: 14px;
  overflow-wrap: anywhere;
  background: #04101e;
}

.receipt {
  padding: 25px;
  border-radius: 3px;
  background: #fff;
  color: #102033;
}

.receipt p {
  color: #36465d;
}

.receipt img {
  display: block;
  width: 190px;
  height: 190px;
  margin: auto;
}

.receipt dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  font-size: 0.85rem;
}

.receipt dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.receipt h3 {
  font-size: 1.6rem;
}

.receipt-actions,
.access-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.admin-section {
  max-width: 850px;
}

.admin-form,
#access-form {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.manual-recovery {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.manual-recovery summary {
  cursor: pointer;
  font-weight: 700;
}

.manual-recovery label {
  margin-top: 14px;
}

.qr-scanner {
  max-width: 560px;
  margin: 24px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: #04101e;
}

.qr-scanner video {
  display: block;
  width: 100%;
  max-height: 65vh;
  background: #000;
}

.qr-scanner p {
  margin-bottom: 8px;
}

.access-result-dialog {
  width: min(520px, calc(100% - 30px));
  text-align: center;
}

.access-result-icon {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
}

.access-result-dialog[data-tone="success"] .access-result-icon,
.access-result-dialog[data-tone="success"] .eyebrow {
  color: var(--cyan);
}

.access-result-dialog[data-tone="danger"] .access-result-icon,
.access-result-dialog[data-tone="danger"] .eyebrow {
  color: #ff806c;
}

.access-result-dialog[data-tone="warning"] .access-result-icon,
.access-result-dialog[data-tone="warning"] .eyebrow {
  color: var(--gold);
}

.access-result-details {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: #04101e;
  text-align: left;
}

.access-result-details > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.access-result-details > div + div {
  margin-top: 8px;
}

.access-result-details dt {
  color: var(--muted);
}

.access-result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.access-result-actions {
  justify-content: center;
}

[hidden] {
  display: none !important;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .benefit-card.reveal.is-visible:hover {
  transform: translateY(-7px);
}

.benefit-card:nth-child(2),
.benefit-card:nth-child(6) {
  transition-delay: 60ms;
}

.benefit-card:nth-child(3),
.benefit-card:nth-child(7) {
  transition-delay: 120ms;
}

.benefit-card:nth-child(4),
.benefit-card:nth-child(8) {
  transition-delay: 180ms;
}

@keyframes grid-drift {
  to { background-position: 66px 66px; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes placeholder-sheen {
  0%, 24% { background-position: 100% 0, 0 0; }
  64%, 100% { background-position: -120% 0, 0 0; }
}

@keyframes float-label {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@keyframes spark-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.75) rotate(0); }
  50% { opacity: 1; transform: scale(1.12) rotate(90deg); }
}

@media (max-width: 1040px) {
  .header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr minmax(350px, 0.8fr);
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 7vw, 5.6rem);
  }

  .event-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .event-strip > a {
    display: none;
  }

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

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

  .speaker {
    grid-template-columns: 145px 1fr;
  }

  .speaker-portrait {
    width: 125px;
  }

  .program-section {
    grid-template-columns: 1fr;
  }

  .program-intro {
    position: static;
    max-width: 650px;
  }
}

@media (max-width: 760px) {
  .hero,
  footer {
    width: min(100% - 34px, 1320px);
  }

  .header {
    width: 100%;
    min-height: 76px;
    padding-inline: 17px;
  }

  .header .button {
    min-height: 40px;
    padding: 9px 12px;
  }

  .header .button i {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 55px 0 70px;
  }

  .hero-inner {
    text-align: center;
  }

  .hero .eyebrow,
  .hero-topics,
  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 15vw, 6.2rem);
  }

  .hero-art {
    width: min(100%, 470px);
    justify-self: center;
    margin-top: 20px;
  }

  .event-strip {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 10px;
  }

  .event-strip div,
  .event-strip div + div {
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-strip div:last-of-type {
    border-bottom: 0;
  }

  .speakers,
  .tickets {
    grid-template-columns: 1fr;
  }

  .speaker {
    grid-template-columns: 135px 1fr;
  }

  .speaker-portrait {
    width: 115px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-card {
    grid-template-columns: 1fr;
  }

  #videos {
    max-width: 390px;
  }

  .video-card video {
    justify-self: center;
  }

  .video-copy {
    min-height: 220px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand small {
    font-size: 0.42rem;
  }

  .brand > span {
    font-size: 0.96rem;
  }

  .header .button span {
    max-width: 78px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 16vw, 5rem);
  }

  .hero h1 > span {
    font-size: 0.56em;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: min(100%, 310px);
  }

  .hero-placeholder {
    width: 59%;
  }

  .floating-label {
    font-size: 0.46rem;
  }

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

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

  .sponsor-card {
    min-height: 205px;
  }

  .benefit-card {
    min-height: 230px;
  }

  .benefit-number {
    margin-bottom: 36px;
  }

  .speaker {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .speaker-portrait {
    width: min(56%, 180px);
    margin: 0 auto;
  }

  .ticket-card {
    min-height: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .access-actions .button,
  .dialog-actions .button,
  .dialog-actions .link-button {
    width: 100%;
    justify-content: center;
  }

  dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    padding: 30px 20px;
  }

  dialog h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .payment-methods {
    gap: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body > * {
    display: none !important;
  }

  dialog[open] {
    position: static;
    inset: auto;
    display: block !important;
    width: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    background: #fff;
    transform: none;
  }

  dialog > *:not(#payment-state) {
    display: none !important;
  }

  .receipt-actions,
  #payment-state > p {
    display: none !important;
  }

  .receipt {
    color: #000;
  }
}
