/* =========================================================================
   Tico Services — página del terreno en Turrialba.
   Extiende /assets/css/styles.css (tokens, botones, tarjetas, footer).
   Sin dependencias externas.
   ========================================================================= */

.page-terreno {
  --verde: #2f7d5b;
  --verde-soft: #eaf4ef;
}

/* ---------------------------------------------------------------- hero -- */
.hero--terreno {
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(47, 125, 91, .18), transparent 62%),
    radial-gradient(700px 380px at 8% 4%, rgba(59, 157, 219, .12), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f2f8f5 100%);
}

.hero--terreno .hero__title { max-width: 18ch; }
.hero--terreno .hero__lead { max-width: 62ch; }

/* precio */
.precio {
  display: inline-block;
  margin: 0 0 30px;
  padding: 18px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--verde);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.precio__valor {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
  line-height: 1.1;
}
.precio__nota {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* --------------------------------------------------------- photo band -- */
.photo-band {
  position: relative;
  margin: 0;
  background: var(--navy-deep);
}
.photo-band img {
  width: 100%;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
  object-position: center 60%;
}
.photo-band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 24px 18px;
  font-size: 14px;
  color: rgba(255, 255, 255, .88);
  text-align: center;
  background: linear-gradient(180deg, rgba(12, 21, 38, 0), rgba(12, 21, 38, .78));
}

/* --------------------------------------------------------------- ficha -- */
.ficha {
  margin-top: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px 32px;
  box-shadow: var(--shadow-sm);
}
.section--soft .ficha { box-shadow: none; }
.ficha__title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ficha__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}
.ficha__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.ficha__row dt {
  flex: 0 0 190px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 2px;
}
.ficha__row dd {
  flex: 1 1 240px;
  margin: 0;
  font-size: 16px;
  color: var(--ink);
}

/* ------------------------------------------------------------ documentos -- */
.doc {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.doc:hover {
  transform: translateY(-4px);
  border-color: #cfe1f0;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.doc__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.doc__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  transition: transform .35s ease;
}
.doc:hover .doc__thumb img { transform: scale(1.03); }
.doc__thumb--file {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-deep);
  background: var(--sky-soft);
}
.doc__thumb--file svg { width: 46px; height: 46px; }
.doc__body { display: block; padding: 20px 22px 22px; }
.doc__title {
  display: block;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.doc__text { display: block; font-size: 14.5px; color: var(--muted); }

/* ------------------------------------------------------------- galeria -- */
.galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.galeria__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.galeria__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.galeria__item:hover img { transform: scale(1.05); }
.galeria__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, rgba(12, 21, 38, 0), rgba(12, 21, 38, .82));
}

/* ------------------------------------------------------------ ubicacion -- */
.ubicacion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}
.ubicacion__datos {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  font-size: 16px;
  color: var(--muted);
}
.ubicacion__datos li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.ubicacion__datos strong { color: var(--navy); }
.ubicacion__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ubicacion__mapa { margin: 0; }
.ubicacion__mapa img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}
.ubicacion__mapa figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------ lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(8, 13, 24, .93);
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.lightbox__stage figcaption {
  color: rgba(255, 255, 255, .78);
  font-size: 14.5px;
  text-align: center;
}
.lightbox__close,
.lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color .2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close {
  position: absolute;
  top: 18px; right: 20px;
  width: 42px; height: 42px;
  font-size: 26px;
  line-height: 1;
}
.lightbox__nav {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
}
.lightbox__nav--prev { position: absolute; left: 18px; }
.lightbox__nav--next { position: absolute; right: 18px; }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 980px) {
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ubicacion { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ficha__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .precio { padding: 16px 18px; width: 100%; }
  .ficha { padding: 24px 20px; }
  .ficha__row dt { flex-basis: 100%; }
  .lightbox { padding: 12px; }
  .lightbox__nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__close { top: 10px; right: 12px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .doc:hover, .galeria__item:hover img, .doc:hover .doc__thumb img { transform: none; }
}
