/* =========================================================
   PLANES DE LA APP (/planes.php) — 2026-10-05
   Va encima de web.css. Precios en lib/planes.php.
   El interruptor pone body[data-modo] = lista | crew y se ven
   sólo los [data-v] de ese modo.
========================================================= */
body[data-modo="lista"] [data-v="crew"],
body[data-modo="crew"]  [data-v="lista"] { display: none !important; }

/* Hero + interruptor */
.pl-hero { padding-top: 80px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.pl-hero h1 { margin: 0; font-size: clamp(56px, 8vw, 112px); }
.pl-hero > p { margin: 0; font-size: 21px; line-height: 1.45; color: var(--gris); max-width: 560px; }
.pl-modo { margin-top: 12px; display: inline-flex; padding: 6px; border-radius: 999px; background: var(--panel); }
.pl-modo button {
  height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--gris); font: 600 17px 'Barlow', sans-serif;
  display: inline-flex; align-items: center; gap: 10px; transition: background .15s, color .15s;
}
.pl-modo button[aria-pressed="true"] { background: #fff; color: var(--bg); }
.pl-modo button[data-modo="crew"][aria-pressed="true"] { background: var(--teal); }
.pl-modo-chip { padding: 4px 10px; border-radius: 999px; background: var(--lima); color: var(--bg); font-size: 13px; font-weight: 700; }
.pl-modo-nota { margin: -8px 0 0 !important; font-size: 15px !important; color: var(--gris2) !important; }
.pl-modo-nota a { color: var(--teal) !important; font-weight: 600; }

/* Tarjetas */
.pl-planes { padding-bottom: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pl-plan { background: var(--panel); border-radius: 28px; padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 28px; }
.pl-destacado { background: #1b1f12; box-shadow: inset 0 0 0 1.5px rgba(200, 245, 53, .55); }
.pl-plan-top { display: flex; flex-direction: column; gap: 8px; min-height: 96px; justify-content: flex-end; }
.pl-plan h2 { margin: 0; font-size: 44px; }
.pl-para { font-size: 15px; color: var(--gris2); }
.pl-chip { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--lima); color: var(--bg); font-size: 13px; font-weight: 700; }
.pl-precio { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 132px; }
.pl-monto { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pl-monto small { font-size: 16px; font-weight: 500; color: var(--gris2); letter-spacing: 0; margin-left: 4px; }
body[data-modo="crew"] .pl-monto { color: var(--teal); }
.pl-sub { font-size: 14px; color: var(--gris2); }
/* Tope de Torneos: pastilla oscura con punto lima que late, como "En juego" en la app */
.pl-tope { display: inline-block; padding: 9px 16px 9px 14px; border-radius: 999px; background: var(--lima); font-size: 15px; color: var(--bg); white-space: nowrap; }
.pl-tope { font-weight: 600; }
.pl-tope b { font-weight: 800; }
.pl-tope i { display: inline-block; vertical-align: 1px; margin-right: 8px; width: 9px; height: 9px; border-radius: 999px; background: var(--bg); animation: pl-late 1.6s ease-in-out infinite; }
@keyframes pl-late { 0%, 100% { box-shadow: 0 0 0 0 rgba(11, 11, 11, .45); } 50% { box-shadow: 0 0 0 5px rgba(11, 11, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .pl-tope i { animation: none; } }
.pl-canchas { display: flex; gap: 6px; margin-top: 6px; }
.pl-canchas button {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #2c2c2c; background: transparent;
  color: var(--gris); font: 600 14px 'Barlow', sans-serif; cursor: pointer; white-space: nowrap;
}
.pl-canchas button[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--bg); }
.pl-trae { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; font-size: 16px; line-height: 1.35; color: #e6e6e6; }
.pl-trae li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.pl-trae li::before { content: '✓'; color: var(--teal); font-weight: 800; }
.pl-cta { width: 100%; height: 54px; font-size: 17px; }

/* Plan Arranque */
.pl-arranque-sec { padding-bottom: 120px; }
.pl-arranque { border-radius: 20px; background: var(--panel); padding: 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; }
.pl-arranque span { color: var(--gris); }

/* Tabla comparativa */
.pl-comp { padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.pl-tabla-wrap { border-radius: 28px; background: var(--panel); padding: 12px 32px 24px; }
.pl-tabla { width: 100%; border-collapse: collapse; font-size: 16px; }
.pl-tabla th, .pl-tabla td { padding: 14px 8px; text-align: center; border-bottom: 1px solid #222; }
.pl-tabla thead th { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; text-transform: uppercase; padding-top: 20px; padding-bottom: 18px; }
.pl-tabla tbody th[scope="row"] { text-align: left; font-weight: 500; color: #e6e6e6; }
.pl-tabla tr.pl-grupo th { text-align: left; padding-top: 32px; font-size: 18px; font-weight: 700; color: #fff; border-bottom: 0; }
.pl-tabla tr:last-child td, .pl-tabla tr:last-child th { border-bottom: 0; }
.pl-tabla th:first-child { width: 40%; }
.pl-tabla .pl-col-club { background: rgba(200, 245, 53, .06); }
.pl-tabla thead .pl-col-club { color: var(--lima); border-radius: 14px 14px 0 0; }
.pl-si { color: var(--teal); font-weight: 800; font-size: 18px; }
.pl-no { color: #4a4a4a; }
.pl-txt { font-size: 15px; font-weight: 600; }

/* Cliente CREW */
.pl-crew-sec { padding-bottom: 120px; }
.pl-crew {
  position: relative; overflow: hidden; border-radius: 36px; background: var(--lima); color: var(--bg);
  padding: 64px 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 72px; align-items: start;
}
.pl-crew-marca { display: none; position: absolute; left: 40%; bottom: -120px; width: 380px; height: 324px; opacity: 0.1; }
.pl-crew-head { position: relative; display: flex; flex-direction: column; gap: 20px; }
.pl-crew-chip { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--bg); color: var(--lima); font-size: 14px; font-weight: 700; }
.pl-crew h2 { margin: 0; font-size: 80px; }
.pl-crew-head p { margin: 0; font-size: 19px; line-height: 1.45; font-weight: 500; max-width: 440px; }
.pl-crew-pasos { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-crew-pasos li { background: rgba(11, 11, 11, .07); border-radius: 22px; padding: 22px 24px 22px 84px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.pl-crew-pasos li .disp { position: absolute; left: 24px; top: 20px; width: 42px; height: 42px; border-radius: 999px; background: var(--bg); color: var(--lima); display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.pl-crew-pasos b { font-size: 21px; font-weight: 700; }
.pl-crew-pasos li > span:last-child { font-size: 16px; line-height: 1.4; }
.pl-crew .btn { position: relative; grid-column: 1; align-self: start; justify-self: start; }

/* Cómo se cobra */
.pl-cobro { padding-bottom: 120px; display: flex; flex-direction: column; gap: 40px; }
.pl-reglas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: r; }
.pl-reglas li { counter-increment: r; background: var(--panel); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.pl-reglas li::before { content: counter(r); font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 40px; color: var(--teal); line-height: 1; margin-bottom: 8px; }
.pl-reglas b { font-size: 19px; }
.pl-reglas span { font-size: 15px; line-height: 1.45; color: var(--gris2); }

/* Preguntas */
.pl-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.pl-faq-lista { display: flex; flex-direction: column; }
.pl-faq details { border-top: 1px solid #222; }
.pl-faq details:last-child { border-bottom: 1px solid #222; }
.pl-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 19px; font-weight: 600; position: relative; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 28px; font-weight: 400; color: var(--teal); }
.pl-faq details[open] summary::after { content: '–'; }
.pl-faq details p { margin: 0; padding: 0 40px 24px 0; font-size: 17px; line-height: 1.5; color: var(--gris); }

@media (hover: hover) {
  .pl-modo button[aria-pressed="false"]:hover { color: #fff; }
  .pl-canchas button[aria-pressed="false"]:hover { border-color: #666; }
}

@media (max-width: 1240px) {
  .pl-planes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-plan-top { min-height: 0; }
  .pl-precio { min-height: 0; }
  .pl-crew { grid-template-columns: 1fr; }
  .pl-reglas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .pl-hero { padding-top: 36px; padding-bottom: 32px; gap: 18px; }
  .pl-hero h1 { font-size: 54px; }
  .pl-hero > p { font-size: 17px; }
  .pl-modo { width: 100%; margin-top: 4px; }
  .pl-modo button { flex: 1; justify-content: center; height: 48px; padding: 0 10px; font-size: 15px; gap: 6px; flex-wrap: wrap; }
  .pl-modo-chip { display: none; }
  .pl-modo-nota { margin-top: -4px !important; font-size: 14px !important; }

  .pl-planes { grid-template-columns: 1fr; gap: 12px; padding-bottom: 12px; }
  .pl-plan { border-radius: 24px; padding: 24px 22px 22px; gap: 20px; }
  .pl-plan h2 { font-size: 38px; }
  .pl-monto { font-size: 34px; }
  .pl-trae { font-size: 15px; gap: 10px; }

  .pl-arranque-sec { padding-bottom: 56px; }
  .pl-arranque { flex-direction: column; align-items: flex-start; padding: 18px 20px; font-size: 16px; gap: 10px; }

  .pl-comp { padding-bottom: 56px; gap: 20px; }
  .pl-tabla-wrap { margin: 0 calc(var(--pad) * -1); border-radius: 0; padding: 0 12px 12px; }
  .pl-tabla { font-size: 13.5px; table-layout: fixed; }
  .pl-tabla th:first-child { width: 36%; }
  .pl-tabla th, .pl-tabla td { padding: 11px 3px; }
  .pl-tabla thead th { font-size: 15px; padding-top: 16px; padding-bottom: 12px; }
  .pl-tabla tbody th[scope="row"] { padding-left: 4px; }
  .pl-tabla tr.pl-grupo th { font-size: 15px; padding-top: 22px; }
  .pl-txt { font-size: 12px; }

  .pl-crew-sec { padding-bottom: 56px; }
  .pl-crew { border-radius: 26px; padding: 32px 22px; gap: 24px; }
  .pl-crew h2 { font-size: 52px; }
  .pl-crew-head { gap: 14px; }
  .pl-crew-head p { font-size: 16px; }
  .pl-crew-marca { display: none; }
  .pl-crew-pasos li { padding: 18px 18px 18px 70px; border-radius: 18px; }
  .pl-crew-pasos li .disp { left: 16px; top: 16px; width: 38px; height: 38px; font-size: 21px; }
  .pl-crew-pasos b { font-size: 18px; }
  .pl-crew-pasos li > span:last-child { font-size: 15px; }
  .pl-crew .btn { width: 100%; height: 56px; font-size: 16px; padding: 0 16px; }

  .pl-cobro { padding-bottom: 56px; gap: 20px; }
  .pl-reglas { grid-template-columns: 1fr; gap: 10px; }
  .pl-reglas li { padding: 20px 22px; border-radius: 20px; }
  .pl-reglas li::before { font-size: 32px; margin-bottom: 2px; }

  .pl-faq { grid-template-columns: 1fr; gap: 12px; }
  .pl-faq summary { font-size: 17px; padding: 18px 36px 18px 0; }
  .pl-faq summary::after { top: 12px; }
  .pl-faq details p { font-size: 15px; }
}

/* Sección "Planes" dentro de /torneos-app.php: mismas tarjetas, otra cabecera. */
.pl-sec-head { padding-bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; scroll-margin-top: 90px; }
.pl-sec-head .h2 { margin: 0; }
.pl-sec-head > p { margin: 0; font-size: 19px; line-height: 1.45; color: var(--gris); }
.pl-sec-head + .pl-planes + .pl-arranque-sec { padding-bottom: 20px; }
.pl-sec-mas { padding-bottom: 120px; font-size: 17px; }
@media (max-width: 760px) {
  .pl-sec-head { padding-bottom: 24px; gap: 16px; }
  .pl-sec-mas { padding-bottom: 56px; }
}
