:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.97);
  --text: #0f172a;
  --muted: #334155;
  --muted-soft: #475569;
  --green: #178a3b;
  --green-dark: #0f6a2c;
  --accent-a: #22c55e;
  --accent-b: #16a34a;
  --accent-c: #38bdf8;
  --border-soft: rgba(15, 23, 42, 0.06);
  --border-input: rgba(2, 6, 23, 0.08);
  --shadow: 0 18px 40px rgba(2, 6, 23, 0.12);
  --shadow-soft: 0 10px 26px rgba(2, 6, 23, 0.10);
  --radius: 22px;
  --radius-md: 16px;
  --focus-ring: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(1080px, calc(100% - 34px));
  margin: 0 auto;
}

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

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: #ffffff;
  color: #000000;
  border-radius: 10px;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 560px;
  padding: 26px 0 138px;
  background: url("img/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.34) 42%,
      rgba(0, 0, 0, 0.18) 100%
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px);
  gap: 28px;
  align-items: start;
}

.hero-title {
  margin-top: 42px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-title h1 {
  margin: 12px 0 0;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 35px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.4px;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ===== FORM ===== */
.form-shell {
  display: flex;
  justify-content: flex-end;
}

.form-card {
  position: relative;
  width: min(372px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(10px);
}

.form-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.25),
    rgba(34, 197, 94, 0.22),
    rgba(255, 255, 255, 0)
  );
  filter: blur(16px);
  pointer-events: none;
}

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

.form-head {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px 8px;
  border-bottom: 1px solid rgba(2, 6, 23, 0.06);
}

.form-head h2 {
  margin: 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 950;
}

.form {
  padding: 8px 14px 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

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

.field label {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--border-input);
  border-radius: 14px;
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.input-box svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #64748b;
  stroke-width: 1.8;
}

.input-box input {
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
}

.input-box:hover {
  transform: translateY(-1px);
}

.input-box:focus-within {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: var(--focus-ring);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.35;
}

.check input {
  margin-top: 2px;
}

.check legend {
  padding: 0;
}

.check a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.check a:hover,
.check a:focus-visible {
  text-decoration: underline;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.3px;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.form-foot {
  margin: 10px 0 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

/* ===== ACCESSIBLE FOCUS ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
iframe:focus-visible,
video:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.6);
  outline-offset: 3px;
}


.advantages {
  position: relative;
  z-index: 10;
  margin-top: -125px;
  padding: 0 0 18px;
}

.adv-bar {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 10px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    rgba(23, 138, 59, 0.98),
    rgba(15, 106, 44, 0.98)
  );
  box-shadow: 0 18px 44px rgba(23, 138, 59, 0.18);
}

.adv-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 260px at 20% 0%,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      520px 240px at 80% 30%,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0) 62%
    );
  pointer-events: none;
}

.adv-title {
  margin-bottom: 12px;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.25px;
}

.viewport {
  overflow: hidden;
  border-radius: 18px;
}

.track {
  display: flex;
  gap: 12px;
  padding: 8px 6px;
  transition: none !important;
  will-change: transform;
}

.adv-card {
  display: flex;
  flex: 0 0 290px;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 114px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.adv-card:hover {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.14);
  filter: saturate(1.05);
}

.adv-card h3 {
  margin: 10px 0 6px;
  color: var(--green);
  font-size: 16px;
  font-weight: 950;
}

.adv-card p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 2px;
}

.dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.dot[aria-current="true"] {
  background: #ffffff;
}

/* ===== FLYER ===== */
.flyer {
  padding: 18px 0 20px;
}

.flyer img {
  display: block;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.20);
}

/* ===== LEARN / TEMARIO ===== */
.learn-section {
  padding: 24px 0 70px;
}

.section-main-title {
  margin: 6px 0 24px;
  color: #2f7d1f;
  text-align: center;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.section-main-title--temario {
  margin-top: 34px;
}

.section-main-title--balanced {
  margin: 0 0 24px;
}

.learn-box,
.topics-card {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.97),
    rgba(255, 255, 255, 0.94)
  );
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
}

.learn-box {
  margin-bottom: 10px;
  padding: 22px 22px 18px;
}

.learn-box p {
  margin: 0 0 16px;
  color: var(--muted);
  text-align: justify;
  font-size: 15px;
  line-height: 1.75;
}

.learn-box p:last-child {
  margin-bottom: 0;
}

.topics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.topics-card {
  padding: 18px 18px 16px;
}

.topics-group + .topics-group {
  margin-top: 20px;
}

.topics-group h3 {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 20px;
  font-weight: 800;
}

.topics-intro {
  margin: 0 0 12px;
  color: var(--muted);
}

.topics-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topics-list li {
  position: relative;
  padding-left: 28px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.topics-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(47, 125, 31, 0.10);
  box-shadow: inset 0 0 0 1px rgba(47, 125, 31, 0.18);
  color: #2f7d1f;
  font-size: 12px;
  font-weight: 900;
}

/* ===== EXTRA ===== */
.event-extra {
  padding: 0 0 80px;
}

.includes-block {
  padding-top: 12px;
}

.includes-card {
  padding: 22px 24px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
}

.includes-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.includes-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.includes-list li::before {
  content: "✓";
  position: absolute;
  top: 2px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

/* ===== VIDEO ===== */
.video-section {
  padding-top: 34px;
}

.video-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  width: 1100px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: auto;
}

.video-container video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

/* ===== CONFERENCISTAS ===== */
.conferencistas {
  padding: 0 0 40px;
}

.cards-conferencistas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: auto;
}

.card-conf {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.08);
}

.card-conf img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #f1f5f9;
}

.card-conf-body {
  padding: 14px 18px 20px;
}

.card-conf h3 {
  margin: 0 0 6px;
  color: #000000;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
}

.card-conf-role {
  margin: 0 0 10px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.card-conf-body p:last-child {
  margin-bottom: 0;
  color: var(--muted-soft);
  text-align: justify;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== AFILIADOS ===== */
.afiliados-section {
  padding-top: 46px;
  padding-bottom: 22px;
}

.afiliados-container {
  max-width: 1100px;
  margin: auto;
}

.section-subtitle {
  margin: -6px 0 24px;
  color: #64748b;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.video-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.10);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FOOTER ===== */
#footerWorkshop {
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding: 26px 0 100px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-shell {
    justify-content: flex-start;
  }

  .form-card {
    width: min(430px, 100%);
  }

  .advantages {
    margin-top: -88px;
  }

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

  .cards-conferencistas {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

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

@media (max-width: 768px) {
  .wrap {
    width: min(100% - 22px, 1080px);
  }

  .hero {
    padding: 18px 0 84px;
    background-position: center;
  }

  .hero-title {
    margin-top: 10px;
  }

  .kicker {
    padding: 8px 12px;
    font-size: 11px;
  }

  .hero-title h1 {
    font-size: clamp(24px, 7vw, 36px);
  }

  .form-head {
    padding: 10px 14px 8px;
  }

  .form {
    padding: 10px 10px 12px;
  }

  .advantages {
    margin-top: -62px;
  }

  .adv-bar {
    padding: 14px 12px 8px;
    border-radius: 22px;
  }

  .adv-card {
    flex: 0 0 82%;
    min-height: auto;
  }

  .flyer {
    padding: 16px 0 18px;
  }

  .flyer img {
    border-radius: 16px;
  }

  .learn-section {
    padding: 12px 0 54px;
  }

  .section-main-title {
    margin: 2px 0 18px;
    font-size: clamp(24px, 7vw, 34px);
  }

  .learn-box {
    padding: 16px 14px;
  }

  .learn-box p {
    font-size: 14px;
    line-height: 1.7;
  }

  .topics-card {
    padding: 14px;
  }

  .topics-group h3 {
    font-size: 18px;
  }

  .topics-list li {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .includes-card {
    padding: 16px 14px;
  }

  .includes-list li {
    font-size: 14px;
  }

  .section-subtitle {
    margin: -2px 0 18px;
    font-size: 14px;
  }

  .video-container {
    overflow: hidden;
    border-radius: 14px;
  }

  .card-conf h3 {
    font-size: 16px;
  }

  .card-conf-role,
  .card-conf-body p:last-child {
    font-size: 13.5px;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 14px 0 74px;
  }

  .kicker {
    gap: 8px;
    font-size: 10px;
  }

  .hero-title h1 {
    line-height: 1.12;
  }

  .form-card {
    border-radius: 20px;
  }

  .btn {
    padding: 10px 12px;
    font-size: 13px;
  }

  .adv-title {
    font-size: 13px;
  }

  .adv-card {
    flex: 0 0 88%;
    padding: 12px;
  }

  .adv-card h3 {
    font-size: 15px;
  }

  .adv-card p {
    font-size: 12.5px;
  }

  .section-main-title {
    font-size: 26px;
  }

  .topics-list {
    gap: 10px;
  }

  .topics-list li {
    padding-left: 24px;
  }

  .includes-list {
    gap: 12px;
  }

  .videos-grid {
    gap: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== AJUSTE CUANDO SOLO HAY 2 VENTAJAS ===== */

/* Centrar el contenido */
.track:has(.adv-card:nth-child(2):last-child) {
  justify-content: center;
}

/* Reducir ancho de las cards */
.track:has(.adv-card:nth-child(2):last-child) .adv-card {
  flex: 0 0 240px; /* antes 290px */
  max-width: 240px;
}

/* Reducir el ancho total visual del contenedor */
.adv-bar:has(.adv-card:nth-child(2):last-child) {
  max-width: 620px;
  margin: 0 auto;
}

/* Más aire visual */
.track:has(.adv-card:nth-child(2):last-child) {
  gap: 18px;
}