/* ═══════════════════════════════════════════════════════════════════
   ESPACIO HARLEY-DAVIDSON BARCELONA — pages.css
   Estilos específicos para páginas internas
   ═══════════════════════════════════════════════════════════════════ */

/* ─── PAGE HERO ─────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--blanco);
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.5rem 0 1rem;
}

/* ─── BREADCRUMB ────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--naranja); }

.breadcrumb a::after {
  content: '›';
  margin-left: 0.5rem;
  color: rgba(255,255,255,0.3);
}

.breadcrumb span { color: var(--naranja); }

/* ─── FAMILIAS DE MODELOS ───────────────────────────────────────── */
.modelos-familias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.familia-card {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.familia-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.familia-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.familia-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.familia-card:hover .familia-card__img-wrap img { transform: scale(1.05); }

.familia-card__body {
  padding: 1.5rem;
}

.familia-card__title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--negro);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.familia-card__text {
  font-size: 0.9rem;
  color: var(--texto-medio);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ─── SERVICIOS DEL TALLER ──────────────────────────────────────── */
.servicios-taller-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servicio-taller-card {
  background: var(--blanco);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-taller-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.servicio-taller-card__icon {
  width: 52px;
  height: 52px;
  background: var(--naranja);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.servicio-taller-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--blanco);
}

.servicio-taller-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--negro);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.servicio-taller-card p {
  font-size: 0.88rem;
  color: var(--texto-medio);
  line-height: 1.7;
}

/* ─── SERVICIOS FULL GRID ───────────────────────────────────────── */
.servicios-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servicio-full-card {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-full-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.servicio-full-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.servicio-full-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.servicio-full-card:hover .servicio-full-card__img img { transform: scale(1.05); }

.servicio-full-card__body {
  padding: 1.5rem;
}

.servicio-full-card__body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--negro);
  text-transform: uppercase;
  margin: 0.5rem 0 0.75rem;
}

.servicio-full-card__body p {
  font-size: 0.88rem;
  color: var(--texto-medio);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ─── BLOG PAGE ─────────────────────────────────────────────────── */
.blog-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.blog-article-card {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.blog-article-card__img {
  position: relative;
  overflow: hidden;
}

.blog-article-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-article-card:hover .blog-article-card__img img { transform: scale(1.05); }

.blog-article-card__cat {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
}

.blog-article-card__body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-article-card__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--texto-claro);
  margin-bottom: 0.75rem;
}

.blog-article-card__title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--negro);
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-article-card__body p {
  font-size: 0.9rem;
  color: var(--texto-medio);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ─── BLOG SIDEBAR ──────────────────────────────────────────────── */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.blog-sidebar__widget {
  background: var(--blanco);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.blog-sidebar__title {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--negro);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--naranja);
}

.blog-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar__list li {
  border-bottom: 1px solid var(--gris-borde);
  padding: 0.5rem 0;
}

.blog-sidebar__list li:last-child { border-bottom: none; }

.blog-sidebar__list a {
  color: var(--texto-medio);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.blog-sidebar__list a:hover { color: var(--naranja); }

/* ─── LEGAL CONTENT ─────────────────────────────────────────────── */
.legal-content h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--negro);
  text-transform: uppercase;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--naranja);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p {
  color: var(--texto-medio);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.legal-content ul {
  color: var(--texto-medio);
  line-height: 1.8;
  margin: 0.75rem 0 1rem 1.5rem;
  font-size: 0.95rem;
}

.legal-content ul li { margin-bottom: 0.5rem; }

.legal-content a { color: var(--naranja); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.legal-table th {
  background: var(--negro);
  color: var(--blanco);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.legal-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gris-borde);
  color: var(--texto-medio);
}

.legal-table tr:last-child td { border-bottom: none; }

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .modelos-familias,
  .servicios-taller-grid,
  .servicios-full-grid { grid-template-columns: repeat(2, 1fr); }

  .blog-page-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 768px) {
  .page-hero { height: 280px; background-attachment: scroll; }
  .page-hero__title { font-size: 1.75rem; }

  .modelos-familias,
  .servicios-taller-grid,
  .servicios-full-grid { grid-template-columns: 1fr; }

  .blog-article-card { grid-template-columns: 1fr; }
  .blog-article-card__img { aspect-ratio: 16/9; height: 200px; }
}


/* ═══════════════════════════════════════════════════════════════════
   BLOG — Listado, Filtros, Cards y Artículo Individual
   ═══════════════════════════════════════════════════════════════════ */

/* ─── FILTROS DE CATEGORÍA ──────────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--naranja);
  background: transparent;
  color: var(--negro);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--naranja);
  color: var(--blanco);
}

/* ─── BLOG GRID ─────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ─── BLOG CARD ─────────────────────────────────────────────────── */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--blanco);
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.blog-card__img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img {
  transform: scale(1.05);
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-card__category {
  display: inline-block;
  background: var(--naranja);
  color: var(--blanco);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.blog-card__date {
  font-size: 0.8rem;
  color: #888;
}

.blog-card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-card__title a {
  color: var(--negro);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card__title a:hover {
  color: var(--naranja);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--naranja);
  text-decoration: none;
  transition: gap 0.2s;
}

.blog-card__readmore:hover {
  gap: 0.7rem;
}

/* ─── ARTÍCULO INDIVIDUAL ───────────────────────────────────────── */
.blog-article {
  max-width: 820px;
  margin: 0 auto;
}

.blog-article__content.content-formatted {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #333;
}

.content-formatted h2 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--negro);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--naranja);
}

.content-formatted h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--negro);
  margin: 2rem 0 0.75rem;
}

.content-formatted h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--naranja);
  margin: 1.5rem 0 0.5rem;
}

.content-formatted p {
  margin-bottom: 1.25rem;
}

.content-formatted ul,
.content-formatted ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.content-formatted li {
  margin-bottom: 0.5rem;
}

.content-formatted blockquote {
  border-left: 4px solid var(--naranja);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: #f8f8f8;
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
}

.content-formatted strong {
  color: var(--negro);
  font-weight: 700;
}

/* Imágenes dentro del artículo */
.article-image {
  margin: 2rem 0;
  text-align: center;
}

.article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-image figcaption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── CAJA DE AUTOR ─────────────────────────────────────────────── */
.blog-article__author {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e8e8e8;
}

.author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 4px;
  border-left: 4px solid var(--naranja);
}

.author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--negro);
  padding: 5px;
}

.author-box__info h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.author-box__info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.author-box__info a {
  color: var(--naranja);
}

/* ─── BOTONES DE COMPARTIR ──────────────────────────────────────── */
.blog-article__share {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}

.blog-article__share h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  color: #666;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-buttons .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ─── PAGE META EN HERO ─────────────────────────────────────────── */
.page-hero__meta {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

/* ─── BADGE ─────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.badge--primary {
  background: var(--naranja);
  color: var(--blanco);
}

/* ─── RESPONSIVE BLOG ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .author-box {
    flex-direction: column;
    text-align: center;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .content-formatted h2 {
    font-size: 1.3rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   CÓMO AÑADIR UN NUEVO ARTÍCULO AL BLOG
   ═══════════════════════════════════════════════════════════════════
   
   1. Copia el archivo blog/comunicado-oficial-de-espacio-harley-davidson-barcelona.html
   2. Renómbralo con el slug del nuevo artículo (ej: blog/mi-nuevo-articulo.html)
   3. Edita:
      - <title>: Título del artículo
      - <meta name="description">: Extracto SEO
      - .page-hero style="background-image: url('../img/blog/TU-IMAGEN.jpg');"
      - .page-hero__title: Título visible
      - .blog-card__category: Categoría (Espacio HD / Lifestyle / Modelos)
      - .blog-article__content: El contenido del artículo
   4. Añade la card en blog.html copiando un bloque <article class="blog-card">
      y ajustando: href, img src, categoría, fecha, título y extracto
   5. Actualiza sitemap.xml añadiendo la nueva URL
   
   CATEGORÍAS DISPONIBLES:
   - data-category="blog-espacio-harley-davidson" → Espacio HD
   - data-category="lifestyle"                    → Lifestyle
   - data-category="moto"                         → Modelos
   ═══════════════════════════════════════════════════════════════════ */
