/* Landing — Gran Asamblea General de Afiliados
   Usa los tokens semánticos de tokens.css: se adapta a data-theme="light"
   y a data-theme="dark" sin duplicar reglas. */

.asam {
  background: var(--bg-muted);
  color: var(--text-page);
  padding-bottom: 96px;
}

.asam-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.asam-hero { position: relative; overflow: hidden; }
.asam-hero::after {
  content: '';
  position: absolute;
  top: -180px;
  right: -200px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-ghost), transparent 62%);
  pointer-events: none;
}
.asam-hero .asam-wrap {
  padding-top: 150px;
  padding-bottom: 104px;
  position: relative;
  padding-left: 100px;
  padding-right: 100px;
 }

.asam-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-outline);
  color: var(--accent-text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 9px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.asam-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }

.asam-h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 32px;
  max-width: 960px;
  color: var(--text-page);
  text-align: left;
}
.asam-h1 span { color: var(--accent-text); }

.asam-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.asam-pill {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--accent-outline);
  color: var(--text-page);
  font-size: 17px;
  font-weight: 600;
}

.asam-lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.6;
  color: var(--text-body);
  max-width: 640px;
  margin: 0 0 40px;
  text-align: left;
}

.asam-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.asam-actions--center { justify-content: center; }
.asam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.asam-btn--primary { background: var(--color-accent); color: var(--text-on-accent); }
.asam-btn--primary:hover { background: var(--color-accent-strong); color: var(--text-on-accent); }
.asam-btn--ghost { border: 1px solid var(--accent-outline); color: var(--text-page); font-weight: 600; }
.asam-btn--ghost:hover { border-color: var(--color-accent); color: var(--text-page); }

.asam-section { padding: 0 24px 96px; }
.asam-section--alt { padding-top: 96px; }
.asam-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 56px;
  align-items: start;
}
/* Sin esto, una imagen con ancho intrínseco grande empuja la columna y se
   monta sobre la vecina: los hijos de grid tienen min-width:auto por defecto. */
.asam-two-col > * { min-width: 0; }
.asam-sticky { position: sticky; top: 110px; }

.asam-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--text-muted-page);
  margin: 0 0 18px;
}
.asam h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  color: var(--text-page);
  text-align: left;
}
.asam-muted {
    text-align: left;
    font-size: 24px;
    color: var(--text-body);
    margin: 0 0 18px;
}
.asam-small { font-size: 15px; color: var(--text-muted-page); }
.asam-small a, .asam-contact a { color: var(--text-page); font-weight: 600; text-decoration: none; }
.asam-small a:hover, .asam-contact a:hover { color: var(--accent-text); }
.asam-strong { text-align: left; font-size: 18px; line-height: 1.6; font-weight: 600; margin: 0; color: var(--text-page); }
.asam-accent { color: var(--accent-text); font-weight: 600; }

/* Sorteo — tarjeta naranja de marca (colores fijos, no dependen del tema) */
.asam-sorteo {
  border-radius: 36px;
  background: linear-gradient(140deg, var(--color-accent) 0%, #E85D00 100%);
  color: var(--text-on-accent);
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
  color: var(--text-on-accent);
  font-weight: 800;
}
.asam-sorteo .asam-eyebrow { color: var(--text-on-accent); opacity: .8; }
.asam-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .1em;
  /* Tamaño y color van en la regla base. Antes la única declaración de ambos
     vivía dentro de un @media (1024–1360): fuera de esa franja el importe
     caía al tamaño heredado (~16px) y perdía el blanco de la tarjeta. */
  font-size: clamp(56px, 8.5vw, 168px);
  color: var(--text-on-accent);
  letter-spacing: -.045em;
}

.asam-amount span {
  font-size: .42em;
  letter-spacing: 0;
  margin-left: 0;
  white-space: nowrap;
}
.asam-sorteo-text { text-align: left; font-size: 19px; line-height: 1.55; font-weight: 500; margin: 0; max-width: 460px; }
.asam-sorteo-rules { display: flex; flex-direction: column; gap: 14px; }
.asam-rule {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(0, 26, 39, .12);
  border-radius: 22px;
  padding: 22px;
}
.asam-rule-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--accent-on-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex: none;
}
.asam-rule p { text-align: left; font-size: 17.5px; line-height: 1.5; font-weight: 600; margin: 7px 0 0; color: var(--text-on-accent); }
.asam-note { background: var(--color-dark); color: var(--text-on-brand); border-radius: 22px; padding: 22px 24px; }
.asam-note p { text-align: left; font-size: 15.5px; line-height: 1.6; margin: 0; color: var(--text-on-brand-soft); }
.asam-note strong { color: var(--accent-on-brand); }

/* Listas */
.asam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--accent-outline);
}
.asam-list li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--accent-outline);
}
.asam-list li span, .asam-steps li span {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-text);
  min-width: 26px;
  padding-top: 3px;
}
.asam-list li p { text-align: left; font-size: 19px; line-height: 1.5; margin: 0; color: var(--text-page); }
.asam-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.asam-steps li { display: flex; gap: 16px; align-items: flex-start; }
.asam-steps li p { text-align: left; font-size: 16.5px; line-height: 1.55; margin: 0; color: var(--text-body); }
.asam-steps-title { font-size: 16px; font-weight: 700; margin: 0 0 22px; color: var(--text-page); }

/* Reforma */
.asam-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-outline);
  max-width: 520px;
  margin-top: 20px;
}
.asam-callout p { text-align: left; font-size: 16px; line-height: 1.5; margin: 0; color: var(--text-page); }
.asam-reforma {
  background: var(--bg-card);
  border: 1px solid var(--accent-outline);
  border-radius: 32px;
  padding: 40px 36px;
}
.asam-reforma-nums { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.asam-reforma-nums b {
  display: block;
  font-size: clamp(72px, 9vw, 112px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--accent-text);
}
.asam-reforma-nums div:last-child b { color: var(--text-page); }
.asam-reforma-nums span { display: block; font-size: 15px; color: var(--text-muted-page); margin-top: 10px; }
.asam-arrow { font-size: 32px; color: var(--text-muted-page); }

/* Cards */
.asam-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.asam-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-outline);
  border-radius: 28px;
  padding: 30px 28px;
}
.asam-card p { text-align: left; font-size: 17.5px; line-height: 1.55; margin: 0; color: var(--text-body); }
.asam-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 100px;
  align-items: center;
  padding: 36px 34px;
}
.asam-card--wide h3 {
  text-align: left;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--text-page);
  text-transform: none;
}

/* Plancha */
.asam-plancha {
  background: var(--bg-card);
  border: 1px solid var(--accent-outline);
  border-radius: 36px;
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 56px;
}
.asam-plancha .asam-btn { margin: 20px 0 14px; }

/* Poderes */
.asam-bignum { display: flex; align-items: flex-end; gap: 24px; padding: 30px 0; }
.asam-bignum b {
  font-size: clamp(110px, 14vw, 180px);
  line-height: .8;
  font-weight: 800;
  letter-spacing: -.05em;
  color: var(--accent-text);
}
.asam-bignum strong { display: block; font-size: 22px; line-height: 1.2; color: var(--text-page); }
.asam-bignum span { display: block; font-size: 16px; color: var(--text-muted-page); margin-top: 6px; }

/* CTA final */
.asam-cta {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: var(--bg-band);
  border: 1px solid var(--accent-outline);
  padding: clamp(48px, 8vw, 104px) clamp(28px, 5vw, 64px);
  text-align: center;
}
.asam-cta::after {
  content: '';
  position: absolute;
  bottom: -260px;
  left: 50%;
  margin-left: -320px;
  width: 640px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-ghost), transparent 62%);
  pointer-events: none;
}
.asam-cta h2 { text-align: center; position: relative; font-size: clamp(40px, 6.4vw, 76px); line-height: 1; letter-spacing: -.035em; margin: 0 0 22px; }
.asam-cta h2 span { color: var(--accent-text); }
.asam-cta-date { text-align: center; position: relative; font-size: clamp(18px, 2vw, 21px); font-weight: 600; margin: 0 0 36px; color: var(--text-page); }
.asam-cta .asam-actions { position: relative; margin-bottom: 40px; }
.asam-contact {
  span {
    color: var(--text-body)
  }
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  font-size: 15.5px;
  color: var(--text-body);
}

/* Ajustes base (progresivos, sin media query) */
.asam-h1, .asam h2 { text-wrap: balance; }
.asam-h1 { overflow-wrap: break-word; }
#registro { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------------------
   Responsivo
   La base usa clamp() para tipografía; los breakpoints solo ajustan
   espaciado, apilado y densidad. Sin anchos fijos en píxeles.
   --------------------------------------------------------------------------- */

/* Laptops pequeñas y tablet horizontal */
@media (max-width: 1024px) {
  .asam-section { padding-bottom: 80px; }
  .asam-two-col { gap: 40px; }
  .asam-sticky { position: static; }
}

/* Tablet vertical */
/* Tabletas horizontales: se apila antes de que las columnas se aprieten */
@media (max-width: 920px) {
  .asam-two-col { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .asam-hero .asam-wrap { padding-top: 72px; padding-bottom: 80px; }
  .asam-section { padding-bottom: 72px; }
  .asam-section--alt { padding-top: 72px; }
  .asam-sorteo { border-radius: 28px; gap: 32px; }
  .asam-plancha { border-radius: 28px; gap: 36px; }
  .asam-cta { border-radius: 28px; }
  .asam-bignum { flex-direction: column; align-items: flex-start; gap: 6px; }
  .asam-bignum b { font-size: clamp(84px, 24vw, 130px); }
  .asam-reforma { padding: 32px 28px; }
  .asam-dots { gap: 7px; }
}

/* Móvil */
@media (max-width: 640px) {
  .asam { padding-bottom: 72px; }
  .asam-wrap { padding: 0 20px; }
  .asam-hero .asam-wrap {
    padding-top: 105px;
    padding-bottom: 60px;
    padding-left: 40px;
    padding-right: 40px;
    h1{
      text-align: left;
    }
   }
  .asam-section { padding: 0 20px 64px; }
  .asam-section--alt { padding-top: 64px; }

  .asam-h1 { font-size: clamp(32px, 10vw, 46px); }
  .asam h2 { font-size: clamp(26px, 7.5vw, 34px); }
  .asam-lead, .asam-muted { font-size: 17px; }

  .asam-pill { height: 46px; padding: 0 18px; font-size: 15.5px; }
  .asam-actions { flex-direction: column; align-items: stretch; }
  .asam-btn { width: 100%; min-height: 56px; }

  .asam-list li { padding: 20px 0; gap: 16px; }
  .asam-list li p { font-size: 17px; }
  .asam-steps li p { font-size: 16px; }

  .asam-card { padding: 24px 22px; }
  .asam-card--wide { padding: 26px 22px; }
  .asam-amount { font-size: clamp(56px, 18vw, 84px); }
  .asam-note { padding: 18px 20px; }
  .asam-rule { padding: 18px; }

  .asam-figure { margin-top: 24px; }
  .asam-sticky .asam-figure img { max-height: 300px; }

  #registro { scroll-margin-top: 80px; }

  .asam-card--wide {
    gap: 20px;
  }
}

/* Móviles pequeños */
@media (max-width: 400px) {
  .asam-wrap { padding: 0 16px; }
  .asam-section { padding: 0 16px 56px; }
  .asam-pills { gap: 8px; }
  .asam-pill { height: 42px; font-size: 14.5px; }
  .asam-dots { gap: 5px; }
  .asam-reforma-nums { gap: 12px; }
  .asam-reforma-nums b { font-size: clamp(56px, 18vw, 76px); }
  .asam-bignum b { font-size: clamp(72px, 26vw, 100px); }
  .asam-card--wide {
    gap: 20px;
  }
}

.asam-dots {
  display: grid;
  /* minmax(0, 1fr): con 1fr a secas el track no puede encogerse por debajo
     del contenido y el bloque genera scroll horizontal en pantallas angostas. */
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  max-width: 100%;
}
.asam-dots__item {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-outline);
  background: color-mix(in srgb, var(--color-accent) 40%, transparent);
}

/* Móvil angosto: 8 columnas (24 puntos = 3 filas) para que sigan legibles */
@media (max-width: 480px) {
  .asam-dots { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .asam-card--wide {
    gap: 20px;
  }
}

/* Imágenes (placeholders hasta tener las oficiales) */
.asam img { max-width: 100%; height: auto; }
.asam-figure { margin: 32px 0 0; max-width: 100%; }
.asam-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  border: 1px solid var(--accent-outline);
  object-fit: cover;
}
.asam-figure--wide img { aspect-ratio: 16 / 9; }
.asam-sticky .asam-figure img { aspect-ratio: 4 / 5; }
.asam-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted-page);
}
.asam-figure--wide { margin-top: 56px; }
.asam-figure--wide img { border-radius: 32px; }
.asam-sticky .asam-figure img { max-height: 380px; object-fit: cover; }
@media (max-width: 640px) {
  .asam-figure--wide { margin-top: 32px; }
  .asam-figure--wide img { border-radius: 20px; }
  .asam-sticky .asam-figure img { max-height: 260px; }
}

.asam .asam-btn.luma-checkout--button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  height: 60px !important;
  padding: 0 32px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--color-accent) !important;
  color: var(--text-on-accent) !important;
  font-family: inherit !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  transition: background-color .2s, color .2s;
}
.asam .asam-btn.luma-checkout--button:hover,
.asam .asam-btn.luma-checkout--button:focus-visible {
  background: var(--color-accent-strong) !important;
  color: var(--text-on-accent) !important;
}
.asam .asam-btn.luma-checkout--button:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .asam .asam-btn.luma-checkout--button {
    width: 100% !important;
  }
  .asam-card--wide {
    gap: 20px;
  }
}

@media (max-width: 920px) {
  .asam-two-col .asam-figure img { max-height: 420px; object-fit: cover; }
  .asam-card--wide {
    gap: 20px;
  }
}


/* Poderes: imagen de fondo espejada al 18%.
   La figura se invierte con scaleX(-1) para que la persona quede lejos del
   bloque de texto. Va en ::before para no ensuciar el HTML y no ser leída
   por lectores de pantalla (es decorativa). */
.asam-section--poderes {
  position: relative;
  overflow: hidden;
}
.asam-section--poderes::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../../img/pages/asamblea/Landing_6.webp');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
  opacity: .18;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.asam-section--poderes > .asam-wrap {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .asam-section--poderes::before { opacity: .1; }
}
