/*
  Blog detalle — Terrazas San Cristóbal
  Página de entrada individual. Banner reciclado de blog. Sin header ni footer.
*/

:root {
  --detalle-fondo: #ebe6df;
  --detalle-titulo: #450E15;
  --detalle-texto: #333;
  --detalle-autor: #a85c4a;
  --detalle-cita-borde: #a85c4a;
}

#zona-central.blog-detalle {
  padding: 0;
  padding-bottom: 4rem;
  min-height: 0;
  background-color: #F5E9CE;
}

.blog-detalle .contenedor {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

.detalle-contenido {
  padding: 1.5rem 1.5rem 3rem;
}

/* --- Hero (mismo banner que blog) --- */
.detalle-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.detalle-hero img {
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  display: block;
}

/* --- Breadcrumb --- */
.detalle-breadcrumb {
  margin: 1.5rem 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: #101828;
}

.detalle-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: #101828;
  text-decoration: none;
}

.detalle-breadcrumb-link:hover {
  text-decoration: underline;
}

.detalle-breadcrumb-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.detalle-breadcrumb-sep {
  margin: 0 0.35rem;
  color: #101828;
}

.detalle-breadcrumb-current {
  color: #101828;
}

/* --- Artículo --- */
.detalle-articulo {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.detalle-titulo {
  margin: 0 0 0.75rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--detalle-titulo);
  text-align: center;
}

.detalle-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.detalle-autor {
  margin: 40px 0 20px;
  font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700  ;
  color: #FFA105;
}

.detalle-fecha {
  display: block;
  margin: 0 0 0.5rem;
  font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--detalle-titulo);
  text-align: right;
}

.detalle-cuerpo {
  font-family: 'Gotham', 'Gotham Book', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--detalle-texto);
}

.detalle-cuerpo p {
  margin: 0 0 1rem;
}

.detalle-cuerpo p span {
  color: #BC2D29;
  font-weight: 700;
  display: block;
}

.detalle-subtitulo {
  margin: 1.5rem 0 0.75rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--detalle-titulo);
}

/* Grid: imagen + cita --- */
.detalle-cuerpo-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.detalle-figure {
  margin: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #eee;
}

.detalle-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.detalle-cita {
  margin: 0;
  padding: 1.25rem 1.5rem;
}

.detalle-cita p {
  margin: 0 0 0.5rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #BC2D29;
}

.detalle-cita cite {
  float: left;
  width: 100%;
  font-family: 'Lora', Georgia, serif;
  font-style: normal;
  font-size: 18px;
  font-weight: 700;
  color: #FFA105;
  text-align: right;
}

/* --- TE PODRÍA INTERESAR --- */
.detalle-relacionados {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.detalle-relacionados-titulo {
  margin: 0 0 3.5rem;
  font-family: 'Lora', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: #450E15;
  text-align: left;
}

/* Tarjetas recicladas desde blog.css (clases .entrada-blog, .entrada-enlace, etc.) */

.detalle-carrusel-bullets {
  display: none;
}

/* --- Breakpoints --- */
@media (min-width: 40rem) {
  .detalle-contenido {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .detalle-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .detalle-breadcrumb-icon {
    display: block;
  }

  .detalle-cuerpo-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 64rem) {
  .detalle-hero img {
    max-height: 26rem;
  }
}

@media (min-width: 90rem) {
  .detalle-contenido {
    padding-bottom: 4rem;
  }
}

/* --- Solo mobile (no afecta desktop) --- */
@media (max-width: 39.9375rem) {
  .detalle-hero {
    height: 400px;
  }

  .detalle-hero img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .detalle-contenido {
    padding-top: 0;
  }

  .detalle-fecha {
    text-align: left;
  }

  .detalle-titulo {
    font-size: 20px;
    padding-top: 40px;
  }

  .detalle-autor {
    margin-bottom: 40px;
  }

  .detalle-breadcrumb {
    padding-top: 0;
    padding-bottom: 40px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    text-align: left;
  }

  .detalle-cuerpo {
    text-align: justify;
  }

  .detalle-cita cite {
    text-align: left;
  }

  /* Carrusel: entradas con scroll horizontal y bullets (sin flechas) */
  .detalle-relacionados .detalle-carrusel {
    width: 100%;
    overflow: hidden;
  }

  .detalle-relacionados .detalle-carrusel-listado {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 40px;
    scrollbar-width: none;
  }

  .detalle-relacionados .detalle-carrusel-listado::-webkit-scrollbar {
    display: none;
  }

  .detalle-relacionados .detalle-carrusel-listado .entrada-blog {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
  }

  .detalle-carrusel-bullets {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }

  .detalle-bullet {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .detalle-bullet:hover {
    background: #999;
  }

  .detalle-bullet.activo {
    background: #450E15;
  }

}
