/* MOVIMIENTO NACIONAL MEXICANO — HOME
   Mobile-first. Paleta base: Verde institucional #013423
   TEMA CLARO — sin dark mode
*/

:root{
  --topbar-h: 56px;
  --g: #013423;
  --g-light: #e8f0ec;
  --g-mid: #c2d9cc;
  --bg: #f4f7f5;
  --bg2: #eaf0ec;
  --card: #ffffff;
  --card2: #f9fbfa;
  --line: rgba(1,52,35,.12);
  --text: #0d1f17;
  --muted: #4a6358;
  --muted2: #7a9a8a;
  --shadow: 0 4px 24px rgba(1,52,35,.10);
  --shadow-lg: 0 12px 40px rgba(1,52,35,.14);
}

*{ box-sizing: border-box }
html, body{ height: 100% }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
}

/* ── Background decorativo (claro) ── */
.bg{
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg__glow{
  position: absolute; inset: -20%;
  background:
    radial-gradient(closest-side at 15% 15%, rgba(1,52,35,.07), transparent 60%),
    radial-gradient(closest-side at 85% 20%, rgba(1,52,35,.05), transparent 60%),
    radial-gradient(closest-side at 30% 85%, rgba(1,52,35,.05), transparent 60%),
    radial-gradient(closest-side at 70% 80%, rgba(1,52,35,.04), transparent 62%);
  filter: blur(40px);
}
.bg__grid{
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(1,52,35,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(1,52,35,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .6;
  mask-image: radial-gradient(circle at 50% 30%, black 0 45%, transparent 70%);
}
.bg__noise{ display: none }

/* ── Layout ── */
.wrap{ width: min(1120px, calc(100% - 32px)); margin: 0 auto }

.card{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.card--pad{ padding: 20px }
.cardsec{ padding: 22px 0 }

/* ── Tipografía ── */
.kicker{
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--g);
  font-weight: 800;
}
.h2{
  margin: 8px 0 6px;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -.02em;
  color: var(--text);
}
.sub{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ── Botones ── */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  font-weight: 700;
  font-size: 14px;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover{
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(1,52,35,.10);
}
.btn--cta{
  background: var(--g);
  border-color: var(--g);
  color: #fff;
}
.btn--cta:hover{
  background: #024d34;
  border-color: #024d34;
  box-shadow: 0 0 0 3px rgba(1,52,35,.18);
}
.btn--pill{
  background: var(--g-light);
  border-color: var(--g-mid);
  color: var(--g);
}
.btn--pill:hover{
  background: var(--g-mid);
}

/* ── Hero ── */
.hero{ padding: 16px 0 }
.hero__shell{
  position: relative;
  overflow: hidden;
}
.hero__slides{
  position: relative;
  height: clamp(380px, 65svh, 520px);
}
.hero__dots{
  position: absolute;
  left: 16px; bottom: 14px;
  display: flex; gap: 8px;
  z-index: 10;
}
.dotbtn{
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.50);
  background: rgba(255,255,255,.20);
  cursor: pointer;
  transition: background .15s, width .15s;
}
.dotbtn.is-on{
  background: #fff;
  border-color: #fff;
  width: 22px;
}
.hero__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: background .15s, border-color .15s;
}
.hero__nav:hover{
  background: rgba(255,255,255,.30);
  border-color: rgba(255,255,255,.60);
}
.hero__nav--prev{ left: 12px }
.hero__nav--next{ right: 12px }

/* Slides */
.slide{
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .40s ease, transform .40s ease;
  pointer-events: none;
}
.slide.is-active{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.slide__bg{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.slide__ov{
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(1,52,35,.15) 0%, rgba(1,52,35,.65) 100%);
}
.slide__content{
  position: relative;
  padding: 20px 20px 28px;
  max-width: 680px;
}
.h1{
  margin: 0;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
}
.p1{
  margin: 10px 0 0;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Banda Guerrero ── */
.band{ padding: 0 0 10px }
.band__row{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--g-mid);
  background: var(--g-light);
  text-decoration: none;
  color: var(--text);
  min-height: 48px;
  transition: background .15s, border-color .15s;
}
.band__row:hover{ background: var(--g-mid); border-color: var(--g) }
.band__tag{
  font-weight: 900;
  color: var(--g);
  white-space: nowrap;
  font-size: 13px;
}
.band__txt{
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  font-size: 14px;
}
.band__go{ color: var(--g); font-weight: 900 }

/* ── Red Viva ── */
.nethead{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pills{ display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.pill{
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card2);
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}
.pill--off{
  border-color: rgba(200,50,50,.25);
  color: #b03030;
  background: rgba(200,50,50,.06);
}
.pill--on{
  background: rgba(1,52,35,.08);
  border-color: rgba(1,52,35,.35);
  color: var(--g);
}
.net{
  margin-top: 14px;
  position: relative;
}
.net__c{
  width: 100%;
  height: 380px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg2);
  display: block;
}
.net__hint{
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
  box-shadow: var(--shadow);
}

/* ── Split (Quiénes somos) ── */
.split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.vid__shell{
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg2);
}
.vid__shell iframe{ width: 100%; height: 100%; border: 0 }
.who__btns{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px }

/* ── Participa cards ── */
/* Móvil: carrusel horizontal táctil */
.cards{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  margin-top: 14px;
  /* ocultar scrollbar */
  scrollbar-width: none;
}
.cards::-webkit-scrollbar{ display: none }
.pcard{
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  max-width: 280px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.pcard:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.ptag{
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--g);
  font-weight: 900;
}
.ptitle{ font-size: 16px; font-weight: 900; margin: 0; color: var(--text) }
.ptext{ margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5 }
.pbtn{ margin-top: auto }

/* ── Feed ── */
.chips{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar{ display: none }
.chip{
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background .12s, border-color .12s, color .12s;
}
.chip.is-on{
  background: var(--g);
  border-color: var(--g);
  color: #fff;
}
.chip:hover:not(.is-on){
  background: var(--g-light);
  border-color: var(--g-mid);
  color: var(--g);
}
.feed{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}
.fcard{
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.fcard:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.fimg{
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg2);
  background-size: cover;
  background-position: center;
}
.fbody{ padding: 14px }
.fmeta{
  display: flex; gap: 10px; flex-wrap: wrap;
  color: var(--muted2);
  font-weight: 700;
  font-size: 12px;
}
.ftitle{ margin: 8px 0 0; font-weight: 900; font-size: 16px; color: var(--text) }
.fex{ margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5 }
.more{ display: flex; justify-content: center; margin-top: 16px }

/* ── Acordeón ── */
.acc{ margin-top: 14px; display: flex; flex-direction: column; gap: 10px }
.accitem{
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.accbtn{
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  font-size: 15px;
  text-align: left;
  min-height: 44px;
  gap: 12px;
  transition: background .12s;
}
.accbtn:hover{ background: var(--g-light) }
.accitem.is-open .accbtn{ color: var(--g); background: var(--g-light) }
.accpanel{
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}
.accitem.is-open .accpanel{ display: block }

/* ── RESPONSIVE — tablet ≥ 600px ── */
@media (min-width: 600px){
  .cards{
    /* tablet: 2 columnas grid, sin carrusel */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }
  .pcard{
    min-width: unset;
    max-width: unset;
  }
  .feed{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── RESPONSIVE — desktop ≥ 860px ── */
@media (min-width: 860px){
  /* Split: video izquierda, texto derecha */
  .split{
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
  }

  /* Cards: 5 en fila */
  .cards{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
  }
  .pcard{
    min-width: unset;
    max-width: unset;
  }

  /* Feed: 3 columnas */
  .feed{
    grid-template-columns: repeat(3, 1fr);
  }

  /* Secciones con más padding */
  .cardsec{ padding: 30px 0 }
  .card--pad{ padding: 28px }
}