/* actividades.css - versión limpia
   - Conserva la estética: fondo oscuro, borde naranja interior, botones, tarjetas.
   - Cambios: organización, eliminación de duplicados y reglas redundantes.
*/

/* ===== TOKENS (compatibles con index) ===== */
:root{
  --bg:#0b0b0b;
  --brand:#f07f19;
  --brand-2:#ff9433;
  --text:#f8fafc;
  --muted:#9ca3af;
  --glass:rgba(255,255,255,.05);
  --glass-2:rgba(255,255,255,.04);
  --border:rgba(255,255,255,.10);
  --radius:18px;
  --cg-max:1200px;

  /* extras para actividades */
  --card-glow: rgba(240,127,25,.22);
  --gap:20px;
  --maxw:1180px;
}

/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* ===== Contenedor ===== */
.act-container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 68px;
  width: 100%;
}

/* ===== HERO ===== */
.act-hero{
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
  background: #0f0f0f;
}
.act-hero__bg{ position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; filter: brightness(.33) saturate(.95); transform: scale(1.02); }
.act-hero__inner{ position: relative; z-index: 2; display: grid; place-items: center; text-align: center; padding: 46px 18px; }
.act-hero__title{ margin: 0; font-weight: 900; font-size: clamp(28px,5vw,56px); text-transform: uppercase; color: var(--brand); line-height: 1; letter-spacing: 1px; }
.act-hero__badges{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.badge{
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.03);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--text);
  font-size: .95rem;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.35);
}

/* ===== Grid principal ===== */
.act-grid{
  display: grid;
  gap: var(--gap);
  margin-top: 30px;
  grid-template-columns: 1fr;
}

/* Desktop layout: descripción + info (derecha) / horario abajo full */
@media (min-width: 980px) {
  .act-grid{ grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto; gap: 28px; align-items: start; }
  .desc-card{ grid-column:1 / 2; grid-row:1 / 2; align-self: stretch; }
  .info-card{ grid-column:2 / 3; grid-row:1 / 2; align-self: stretch; display:flex; flex-direction:column; }
  .schedule{ grid-column:1 / -1; grid-row:2 / 3; }
}

/* ===== Cards (estética similar a index) ===== */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, border-color .18s ease;
}
/* naranja interior sutil por defecto (1px) */
.card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--card-glow);
  opacity: 1;
}
/* hover: conservar profundidad sin transform */
.card:hover{
  transform: none;
  box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* cuerpo de la card */
.card-body{ padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 12px; }

/* descripción específica */
.desc-card .card-body{ gap: 14px; }
.desc-card .card-body .backbar{ margin-top: auto; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }

/* info-card: solo "¿Qué conseguirás?" */
.info-card{ display: flex; flex-direction: column; justify-content: flex-start; }
.info-card .card-body{ gap: 16px; }
.info-card .card-title{ margin: 0; font-size: 1.15rem; font-weight: 900; color: var(--brand); }

/* chips */
.chips{ display:flex; flex-wrap:wrap; gap:12px; margin-top:6px; }
.chip-alt{
  display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px;
  border:1px solid rgba(255,255,255,0.03); background:#121212; color:var(--text); font-weight:800;
  box-shadow: inset 0 -4px 10px rgba(0,0,0,.45);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.chip-alt:hover{ transform: none; border-color: var(--brand); box-shadow: 0 8px 20px rgba(240,127,25,.06); }

/* tipografía y listas */
.card-title{ margin: 0 0 6px; color: var(--brand); font-size: 1.02rem; font-weight: 800; }
.lead{ font-size: clamp(15px,2.1vw,18px); color: var(--text); line-height: 1.7; margin: 0; }
.list{ margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 10px 0; }

/* ===== BOTONES ===== */
.btn{
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--brand);
  color: #0b0b0b;
  letter-spacing: .2px;
  box-shadow: 0 4px 18px rgba(240,127,25,.35);
  transition: box-shadow .25s ease;
  position: relative;
  overflow: visible;
  gap: 10px;
}
.btn:hover{ transform: none; box-shadow: 0 10px 28px rgba(240,127,25,.45), 0 0 18px rgba(240,127,25,.14); }
.btn:active{ transform: none; box-shadow: 0 2px 10px rgba(240,127,25,.3); }
.btn:focus{ outline: 3px solid rgba(240,127,25,.18); outline-offset: 3px; }

/* icono WhatsApp dentro del botón */
.btn img.whatsapp-icon{ width: 22px; height: 22px; display: inline-block; vertical-align: middle; object-fit: contain; }

/* contenedor de botones */
.backbar{ display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }

/* ===== "Ver tarifas" oscuro y borde naranja interior =====
   Aplicado al primer botón dentro de .backbar (tanto a <a> como a <button>)
*/
.backbar a.btn:first-child,
.backbar button.btn:first-child{
  background: #1a1a1a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.08);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  width: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.45), inset 0 0 0 1px var(--card-glow);
  text-align: center;
  position: relative;
}
.backbar a.btn:first-child:hover,
.backbar button.btn:first-child:hover{
  background: #222;
  box-shadow: 0 10px 26px rgba(0,0,0,.55), inset 0 0 0 1px var(--card-glow);
}

/* ===== HORARIO (.schedule) y variantes con mayor grosor naranja ===== */
.schedule{
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(255,255,255,0.01));
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.65);
  position: relative;
  overflow: hidden;
  padding: 0;
}
/* schedule destaca con 2px inset */
.schedule::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--card-glow);
}
/* info-card y desc-card también con 2px inset para igualar el ligero aumento */
.info-card::after,
.desc-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--card-glow);
}
/* placeholder pseudo-elements (evitan solapamientos en ciertos navegadores) */
.schedule::before,
.info-card::before,
.desc-card::before{ content: ""; }

/* sched head */
.sched-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  background: linear-gradient(90deg, rgba(255,255,255,0.006), rgba(0,0,0,0.01));
}
.sched-head h2{ margin: 0; color: var(--brand); font-size: 1.12rem; font-weight: 900; letter-spacing: .6px; }
.sched-head .badge{ background: #222; border: 1px solid rgba(255,255,255,0.03); padding: 8px 14px; border-radius: 999px; font-weight: 800; }

/* tabla Día / Mañana / Tarde */
.table{ width: 100%; border-collapse: separate; border-spacing: 0; }
.table thead th{
  text-align: left;
  padding: 16px 28px;
  color: var(--muted);
  font-weight: 800;
  border-bottom: 1px dashed rgba(255,255,255,0.03);
  background: transparent;
}
.table tbody tr{ border-bottom: 1px dashed rgba(255,255,255,0.02); }
.table td{ padding: 18px 28px; color: var(--text); font-weight: 600; vertical-align: middle; }
.table td:first-child{ color: var(--muted); font-weight: 700; width: 30%; }

/* desktop spacing */
@media (min-width: 980px){
  .table thead th{ padding-left: 36px; padding-right: 36px; }
  .table td{ padding: 20px 36px; }
  .table td:first-child{ padding-left: 36px; }
}

/* Volver */
.volver-act{ margin-top: 42px; display: flex; justify-content: center; }
.volver-act .btn{ padding: 12px 22px; border-radius: 14px; }

/* ===== Mobile adjustments ===== */
@media (max-width: 520px) {
  .act-container{ padding: 18px 14px 48px; }

  /* Grid a una columna */
  .act-grid{ grid-template-columns: 1fr; gap: 18px; }
  .schedule{ order: 2; }

  /* Contenedor vertical de botones */
  .backbar{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    align-items: stretch;
  }

  /* Ver tarifas ocupa ancho completo en móvil */
  .backbar a.btn:first-child,
  .backbar button.btn:first-child{ width: 100%; }

  /* BOTÓN WHATSAPP: naranja, ancho completo en móvil */
  .backbar a.btn[href*="wa.me"]{
    background: var(--brand);
    color: #0b0b0b;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    box-shadow: 0 10px 24px rgba(240,127,25,.18);
  }
  .backbar a.btn[href*="wa.me"]:hover{ filter: brightness(1.07); }
  .backbar a.btn[href*="wa.me"] img.whatsapp-icon{ width: 20px; height: 20px; }

  /* Chips y compacidad */
  .chips{ gap: 8px; }
  .chip-alt{ padding: 8px 10px; font-size: .95rem; }

  /* Botón volver (móvil) */
  .volver-act .btn{ padding: 12px 20px; border-radius: 12px; box-shadow: 0 8px 20px rgba(240,127,25,.12); }

  /* tablas responsivas: filas en bloques legibles */
  .schedule .table,
  .schedule .table thead,
  .schedule .table tbody { width: 100%; display: block; }
  .schedule .table thead { display: none; }

  .schedule .table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.01);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
  }

  .schedule .table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: 0;
    color: var(--text);
  }

  .schedule .table td:first-child {
    font-weight: 700;
    color: var(--muted);
    flex: 0 0 auto;
    margin-right: 12px;
  }

  .schedule .table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    font-weight: 700;
    color: var(--muted);
    margin-right: 8px;
  }

  .schedule .table.levels tr { grid-template-columns: 1fr; }

  .schedule .table caption { display: block; padding: 8px 0; font-weight: 700; color: var(--brand); }
}

/* ===== Indicador "Actividad incluida en tu cuota" ===== */
.included-row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.02);
  box-shadow: inset 0 -6px 14px rgba(0,0,0,.35);
  margin-top: 4px;
  position: relative;
  overflow: visible;
}
.included-row::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--card-glow);
  opacity: 1;
}
.included-icon{ color: var(--brand); flex: 0 0 18px; margin-top: 4px; filter: drop-shadow(0 6px 14px rgba(240,127,25,.06)); }
.included-text{ display: flex; flex-direction: column; line-height: 1.15; color: var(--text); }
.included-text strong{ font-weight: 800; color: var(--brand); font-size: .98rem; }
.included-sub{ font-size: .86rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 720px){
  .included-row{ padding: 10px; border-radius: 10px; }
  .included-text strong{ font-size: .98rem; }
  .included-sub{ font-size: .84rem; }
}

/* ===== Reduce motion accesibilidad ===== */
@media (prefers-reduced-motion: reduce){
  .card, .btn, .chip-alt { transition: none !important; transform: none !important; }
}

/* small rendering optimization */
.card, .schedule{ -webkit-backface-visibility: hidden; backface-visibility: hidden; }