/* LabAncestral · actividad_detalle.css
   Ficha de UNA actividad: la página que se abre al elegirla en la agenda o en
   el mapa. Mantiene la paleta del listado (arena, verde y naranjo). */

.acd-page {
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  background: #f6efe1;
  color: #152514;
  font-family: 'IBM Plex Sans', sans-serif;
}

.acd-page *,
.acd-page *::before,
.acd-page *::after { min-width: 0; }

.acd-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ---------- cabecera ---------- */

.acd-hero {
  background: linear-gradient(180deg, #fbf6ea 0%, #f6efe1 100%);
  border-bottom: 1px solid #e9dec6;
  padding: 34px 0 52px;
}

.acd-crumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: #9a8f74;
  margin-bottom: 28px;
}

.acd-crumbs a {
  color: #9a8f74;
  text-decoration: none;
}

.acd-crumbs a:hover { color: #18713a; }

.acd-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 46px;
  align-items: center;
}

.acd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.acd-badge,
.acd-estado {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.acd-estado--proxima {
  color: #0e3d22;
  background: #d9ebe6;
  border: 1px solid #b9d8cd;
}

.acd-estado--pasada {
  color: #7a745f;
  background: #eee2cb;
  border: 1px solid #e0d1ae;
}

.acd-title {
  font-family: 'Spectral', serif;
  font-weight: 300;
  font-size: 44px;
  line-height: 1.08;
  margin: 0 0 26px;
  color: #152514;
}

.acd-meta {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
  max-width: 620px;
}

.acd-meta__label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a8f74;
  margin-bottom: 5px;
}

.acd-meta__value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  line-height: 1.4;
  color: #2c3a2a;
}

.acd-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.acd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.acd-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s, color .18s, border-color .18s;
}

.acd-btn--primary {
  background: #18713a;
  color: #fff;
}

.acd-btn--primary:hover { background: #0e3d22; }

.acd-btn--ghost {
  border: 1px solid #d8c9a8;
  color: #54503f;
  background: #fff;
}

.acd-btn--ghost:hover { border-color: #18713a; color: #18713a; }

.acd-hero-media {
  position: relative;
  height: 330px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e4d9c2;
  background: #e9e0cb;
}

.acd-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acd-hero-media__ph {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9e0cb, #dfd3b6);
}

/* ---------- cuerpo ---------- */

.acd-body { padding: 56px 0 20px; }

.acd-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

/* La columna principal no puede heredar el `width:100dvw` que main.css da a
   <main>: por eso es un div y por eso se fija su ancho al de su celda. */
.acd-main {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.acd-label {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9a8f74;
  margin-bottom: 16px;
}

.acd-label span {
  width: 26px;
  height: 1px;
  background: #c2b48f;
  display: block;
  flex: 0 0 auto;
}

.acd-block { margin-bottom: 46px; }

.acd-text {
  font-size: 16.5px;
  line-height: 1.75;
  color: #4a4739;
  margin: 0 0 16px;
  max-width: 64ch;
}

/* videos */

.acd-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.acd-video { margin: 0; }

.acd-video video,
.acd-video__link {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  border: 1px solid #e4d9c2;
  background: #0c3a22;
  object-fit: cover;
  display: block;
}

.acd-video__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.acd-video__link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}

.acd-video__play,
.acd-video__cta { position: relative; }

.acd-video__play { font-size: 30px; }

.acd-video__cta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.acd-video figcaption {
  font-size: 13px;
  color: #7a745f;
  margin-top: 8px;
}

.acd-video figcaption span { color: #9a8f74; }

/* galería */

.acd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.acd-gallery__item {
  margin: 0;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4d9c2;
  cursor: zoom-in;
  background: #e9e0cb;
}

.acd-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.acd-gallery__item:hover img { transform: scale(1.05); }

.acd-gallery__item:focus-visible {
  outline: 2px solid #18713a;
  outline-offset: 3px;
}

/* ---------- columna lateral ---------- */

/* Sin `sticky`: el bloque (mapa + localidades + llamado) suele ser más alto que
   la pantalla, y pegado arriba se le cortaba el final al hacer scroll. */
.acd-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-self: start;
}

.acd-card {
  background: #fff;
  border: 1px solid #e4d9c2;
  border-radius: 16px;
  padding: 22px 22px 24px;
}

.acd-map {
  height: 250px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd0b4;
  background: #e9e0cb;
  z-index: 0;
}

.acd-pin {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(14, 61, 34, .4);
}

.acd-lugares {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acd-lugares li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
  border-left: 3px solid #eadcbf;
}

.acd-lugares strong {
  font-family: 'Spectral', serif;
  font-size: 16px;
  font-weight: 500;
  color: #1a2417;
}

.acd-lugares span {
  font-size: 13px;
  color: #7a745f;
  line-height: 1.45;
}

.acd-card--cta {
  background: #0e3d22;
  border-color: #0e3d22;
}

.acd-card--cta p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #cfe0d2;
}

.acd-card--cta .acd-btn--primary {
  background: #ee9a1c;
  color: #0e3d22;
  font-weight: 600;
}

.acd-card--cta .acd-btn--primary:hover { background: #f7b048; }

/* ---------- otras actividades ---------- */

.acd-otras {
  padding: 30px 0 80px;
}

.acd-otras__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.acd-otra {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4d9c2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.acd-otra:hover {
  transform: translateY(-3px);
  border-color: #c9dccd;
  box-shadow: 0 10px 26px rgba(14, 61, 34, .1);
}

.acd-otra__media {
  position: relative;
  height: 140px;
  background: linear-gradient(135deg, #e9e0cb, #dfd3b6);
}

.acd-otra__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acd-otra__body { padding: 16px 18px 20px; }

.acd-otra__meta {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a8f74;
  margin-bottom: 8px;
}

.acd-otra__body h3 {
  font-family: 'Spectral', serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  color: #1a2417;
}

/* ---------- lightbox ---------- */

.acd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 28, 16, .93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.acd-lightbox[hidden] { display: none; }

.acd-lightbox__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

.acd-lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.acd-lightbox__figure figcaption {
  color: #cfe0d2;
  font-size: 14px;
  margin-top: 14px;
}

.acd-lightbox__close,
.acd-lightbox__nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.acd-lightbox__close {
  top: 24px;
  right: 26px;
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.acd-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 30px;
}

.acd-lightbox__prev { left: 26px; }
.acd-lightbox__next { right: 26px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .acd-hero-grid,
  .acd-body__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .acd-hero-media { height: 260px; }
  .acd-title { font-size: 34px; }
}

@media (max-width: 620px) {
  .acd-container { padding: 0 20px; }
  .acd-title { font-size: 28px; }
  .acd-meta { grid-template-columns: minmax(0, 1fr); }
  .acd-btn { width: 100%; justify-content: center; }
  .acd-lightbox { padding: 20px; }
}
