/*
 * ============================================================
 * ESTILOS-GUIA-UNIFICADO.CSS — FitFinder
 * ============================================================
 * CÓMO USAR ESTE ARCHIVO:
 * Añade en el <head> de guias.php y seo.php:
 * <link rel="stylesheet" href="estilos-guia-unificado.css">
 *
 * Este CSS replica el estilo visual de guias-ejercicios.php
 * y añade los estilos de las tarjetas de ejercicio con GIF,
 * el bloque de seguridad/lesiones, los productos afiliados
 * y el diseño responsive para móvil (320px) y escritorio (1200px+).
 * ============================================================
 */

/* ─────────────────────────────────────────────
   VARIABLES GLOBALES DE COLOR Y TIPOGRAFÍA
   ───────────────────────────────────────────── */
:root {
  --color-naranja:       #FF4D00;
  --color-naranja-hover: #CC3A00;
  --color-naranja-claro: rgba(255, 77, 0, 0.1);
  --color-dorado:        #FF9F1C;
  --color-fondo:         #FAF8F5;
  --color-blanco:        #ffffff;
  --color-texto-oscuro:  #1A1512;
  --color-texto-medio:   #4A3828;
  --color-texto-suave:   #6B6056;
  --color-borde:         rgba(0, 0, 0, 0.07);
  --color-fondo-card:    #F0EDE8;
  --radio-card:          20px;
  --radio-boton:         999px;
  --sombra-suave:        0 5px 20px rgba(0, 0, 0, 0.05);
  --sombra-hover:        0 15px 30px rgba(255, 77, 0, 0.1);
  --transicion:          all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-titulo:         'Bebas Neue', sans-serif;
  --font-condensada:     'Barlow Condensed', sans-serif;
  --font-cuerpo:         'Barlow', sans-serif;
}

/* ─────────────────────────────────────────────
   RESET BASE
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-fondo);
  font-family: var(--font-cuerpo), system-ui, sans-serif;
  color: var(--color-texto-oscuro);
}

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: CABECERA DE PÁGINA
   (Igual en guias.php, seo.php y guias-ejercicios.php)
   ───────────────────────────────────────────── */
.blog-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: var(--color-blanco);
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 77, 0, 0.07) 0%, transparent 100%);
  pointer-events: none;
}

.blog-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-naranja), transparent);
}

.blog-header h1 {
  font-family: var(--font-titulo);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-texto-oscuro);
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 20px rgba(255, 77, 0, 0.12);
}

.blog-header p {
  font-family: var(--font-cuerpo);
  color: var(--color-texto-suave);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
/* FIN SECCIÓN: CABECERA */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: CONTENEDORES PRINCIPALES
   ───────────────────────────────────────────── */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.seo-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
/* FIN SECCIÓN: CONTENEDORES */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: ENLACE "VOLVER"
   ───────────────────────────────────────────── */
.volver {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-condensada);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-texto-suave);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.volver:hover { color: var(--color-naranja); }
/* FIN SECCIÓN: ENLACE VOLVER */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: ENCABEZADOS DE SECCIÓN
   ───────────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.2rem;
}

.section-heading h2 {
  font-family: var(--font-titulo);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-texto-oscuro);
  margin: 0;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 77, 0, 0.4), transparent);
}

.section-count {
  font-family: var(--font-condensada);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A09080;
  background: var(--color-fondo-card);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radio-boton);
  border: 1px solid var(--color-borde);
}
/* FIN SECCIÓN: ENCABEZADOS */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: BADGES / ETIQUETAS
   ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-condensada);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.8rem;
  border-radius: var(--radio-boton);
  border: 1px solid;
  margin-bottom: 0.5rem;
}

.badge-guia {
  background: var(--color-naranja-claro);
  color: var(--color-naranja-hover);
  border-color: rgba(255, 77, 0, 0.25);
}

.type-label {
  display: inline-block;
  font-family: var(--font-condensada);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radio-boton);
  margin-bottom: 0.75rem;
  border: 1px solid;
}
.type-label.routine {
  background: var(--color-naranja-claro);
  color: var(--color-naranja-hover);
  border-color: rgba(255, 77, 0, 0.25);
}
.type-label.nutrition {
  background: rgba(34, 160, 80, 0.1);
  color: #1A8040;
  border-color: rgba(34, 160, 80, 0.25);
}
.type-label.guide {
  background: var(--color-naranja-claro);
  color: var(--color-naranja-hover);
  border-color: rgba(255, 77, 0, 0.25);
}
/* FIN SECCIÓN: BADGES */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: GRID DE TARJETAS (guias.php)
   ───────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}

.card {
  background: var(--color-blanco);
  border-radius: var(--radio-card);
  padding: 1.5rem;
  box-shadow: var(--sombra-suave);
  border: 1px solid var(--color-borde);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-naranja), var(--color-dorado));
  opacity: 0;
  transition: opacity 0.22s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(255, 77, 0, 0.2);
}

.card:hover::before { opacity: 1; }

.card h3 {
  font-family: var(--font-condensada);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0.5rem 0;
}

.card h3 a {
  color: var(--color-texto-oscuro);
  text-decoration: none;
  transition: color 0.2s;
}
.card h3 a:hover { color: var(--color-naranja); }

.card p {
  color: var(--color-texto-suave);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  font-family: var(--font-cuerpo);
}

.card-link {
  color: var(--color-naranja);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-cuerpo);
  font-size: 0.9rem;
}
.card-link:hover { text-decoration: underline; }
/* FIN SECCIÓN: GRID DE TARJETAS */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: TARJETAS DE EJERCICIO CON GIF
   (NUEVA — Para seo.php cuando pageType === 'guide')
   Formato: GIF izquierda | Detalles derecha (escritorio)
   Apilado vertical en móvil
   ───────────────────────────────────────────── */
.ejercicio-lista {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

/* UNA TARJETA DE EJERCICIO */
.ejercicio-card {
  background: var(--color-blanco);
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-card);
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  display: flex;            /* Horizontal en escritorio */
  align-items: center;
  gap: 0;
  transition: var(--transicion);
}

.ejercicio-card:hover {
  border-color: rgba(255, 77, 0, 0.2);
  box-shadow: 0 8px 24px rgba(255, 77, 0, 0.08);
}

/* COLUMNA IZQUIERDA: GIF — ancho fijo 100px en escritorio */
.ejercicio-gif {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: var(--color-fondo-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ejercicio-gif img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  display: block;
}

/* Placeholder cuando no hay GIF */
.ejercicio-gif-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--color-naranja-claro), rgba(255, 159, 28, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

/* COLUMNA DERECHA: Detalles */
.ejercicio-detalles {
  flex: 1;
  padding: 0.85rem 1.1rem;
  min-width: 0; /* Evita overflow en flex */
}

.ejercicio-nombre {
  font-family: var(--font-condensada);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-texto-oscuro);
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.ejercicio-series-reps {
  font-family: var(--font-cuerpo);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-naranja);
  margin: 0 0 0.25rem;
}

.ejercicio-nota {
  font-family: var(--font-cuerpo);
  font-size: 0.8rem;
  color: var(--color-texto-suave);
  margin: 0;
  line-height: 1.4;
}
/* FIN SECCIÓN: TARJETAS DE EJERCICIO CON GIF */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: BLOQUE "PUNTOS CLAVE PARA EVITAR LESIONES"
   (NUEVO — visible en todas las guías de ejercicio)
   ───────────────────────────────────────────── */
.tips-seguridad {
  background: linear-gradient(135deg, #fff8f0, #fff3e8);
  border: 1px solid rgba(255, 77, 0, 0.2);
  border-left: 4px solid var(--color-naranja);
  border-radius: 0 var(--radio-card) var(--radio-card) 0;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  position: relative;
}

.tips-seguridad::before {
  content: '🩺';
  position: absolute;
  top: -14px;
  left: 1.2rem;
  background: var(--color-blanco);
  padding: 0 0.4rem;
  font-size: 1.3rem;
  line-height: 1;
}

.tips-seguridad-titulo {
  font-family: var(--font-condensada);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-naranja-hover);
  margin: 0 0 0.9rem;
  padding-top: 0.2rem;
}

.tips-seguridad ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.tips-seguridad li {
  font-family: var(--font-cuerpo);
  font-size: 0.92rem;
  color: var(--color-texto-medio);
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
}

.tips-seguridad li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: var(--color-naranja);
}

.tips-seguridad li strong {
  color: var(--color-texto-oscuro);
}
/* FIN SECCIÓN: BLOQUE LESIONES */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: BLOQUE DE AFILIADOS
   (Copiado y adaptado de guias-ejercicios.php)
   ───────────────────────────────────────────── */
.zona-afiliados {
  background: var(--color-fondo-card);
  border-radius: var(--radio-card);
  padding: 1.5rem;
  margin: 2.5rem 0;
  border-left: 4px solid var(--color-naranja);
}

.zona-afiliados-titulo {
  font-family: var(--font-titulo);
  font-size: 1.6rem;
  color: var(--color-texto-oscuro);
  margin: 0 0 0.4rem;
  letter-spacing: 0.03em;
}

.zona-afiliados-subtitulo {
  font-family: var(--font-cuerpo);
  color: var(--color-texto-suave);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
}

.producto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.producto-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-blanco);
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--color-borde);
  transition: var(--transicion);
}

.producto-item:hover {
  border-color: rgba(255, 77, 0, 0.2);
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.07);
}

.producto-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}

.producto-info {
  flex: 1;
  min-width: 0;
}

.producto-info h4 {
  font-family: var(--font-condensada);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-texto-oscuro);
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.producto-info p {
  font-family: var(--font-cuerpo);
  font-size: 0.8rem;
  color: var(--color-texto-suave);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.btn-afiliado {
  display: inline-block;
  background: var(--color-naranja);
  color: var(--color-blanco);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radio-boton);
  text-decoration: none;
  font-family: var(--font-condensada);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s;
}
.btn-afiliado:hover { background: var(--color-naranja-hover); }

.afiliado-aviso {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  color: #A09080;
  margin: 1rem 0 0;
  font-style: italic;
}
/* FIN SECCIÓN: AFILIADOS */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: CONTENIDO GUÍA (seo.php)
   ───────────────────────────────────────────── */
.guide-content {
  background: var(--color-blanco);
  border: 1px solid var(--color-borde);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  margin-bottom: 1.5rem;
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-texto-medio);
  position: relative;
  overflow: hidden;
}

.guide-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-naranja), var(--color-dorado));
}

.guide-content h2 {
  font-family: var(--font-condensada);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-texto-oscuro);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.guide-content h3 {
  font-family: var(--font-condensada);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-texto-oscuro);
  margin-top: 1.3em;
  margin-bottom: 0.6em;
}

.guide-content p { margin-bottom: 1em; }

.guide-content ul, .guide-content ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

.guide-content li { margin-bottom: 0.3em; }

/* Tablas dentro del contenido guía */
.guide-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1.2rem 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.guide-content table th {
  background: var(--color-texto-oscuro);
  color: var(--color-blanco);
  font-family: var(--font-condensada);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.8rem;
}

.guide-content table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #F0EDE8;
  color: var(--color-texto-medio);
  vertical-align: top;
  line-height: 1.45;
}

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

.guide-content table tr:nth-child(even) td {
  background: #FDFCFB;
}

.guide-content table tr:hover td {
  background: #FFF8F4;
}
/* FIN SECCIÓN: CONTENIDO GUÍA */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: DISCLAIMER / AVISO IMPORTANTE
   (Mantener sin cambios — regla de oro)
   ───────────────────────────────────────────── */
.disclaimer-medical {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  background: #fef7e9;
  border-left: 4px solid var(--color-dorado);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-texto-medio);
  font-family: var(--font-cuerpo);
  line-height: 1.6;
}

.disclaimer-medical strong { color: var(--color-naranja-hover); }
/* FIN SECCIÓN: DISCLAIMER */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: CARD SEO (rutinas / nutrición)
   ───────────────────────────────────────────── */
.seo-card {
  background: var(--color-blanco);
  border: 1px solid var(--color-borde);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.seo-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-naranja), var(--color-dorado));
}

.seo-card h2 {
  font-family: var(--font-condensada);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-texto-oscuro);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.structure-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.structure-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-cuerpo);
  font-size: 0.92rem;
  color: var(--color-texto-medio);
  padding: 0.7rem 0.9rem;
  background: #FAF8F6;
  border-radius: 8px;
  border: 1px solid var(--color-borde);
  line-height: 1.45;
}

.structure-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--color-naranja);
  margin-top: 0.38rem;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-naranja), #FF6B00);
  color: var(--color-blanco);
  padding: 0.95rem 2rem;
  border-radius: var(--radio-boton);
  text-decoration: none;
  font-family: var(--font-titulo);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  transition: var(--transicion);
  box-shadow: 0 4px 18px rgba(255, 77, 0, 0.4);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 77, 0, 0.55);
}
/* FIN SECCIÓN: CARD SEO */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: HEADER DE PÁGINA SEO
   ───────────────────────────────────────────── */
.seo-page-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-borde);
  margin-bottom: 1.75rem;
  position: relative;
}

.seo-page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--color-naranja), var(--color-dorado));
  border-radius: 2px;
}

.seo-page-header h1 {
  font-family: var(--font-titulo);
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-texto-oscuro);
  margin: 0;
  line-height: 1.1;
}

/* Intro block */
.intro-block {
  background: linear-gradient(135deg, rgba(255, 77, 0, 0.07), rgba(255, 159, 28, 0.05));
  border: 1px solid rgba(255, 77, 0, 0.15);
  border-left: 4px solid var(--color-naranja);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-cuerpo);
  font-size: 0.97rem;
  color: var(--color-texto-medio);
  line-height: 1.6;
}
/* FIN SECCIÓN: HEADER SEO */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: FAQ (dentro de guide-content)
   ───────────────────────────────────────────── */
.faq {
  margin-top: 2em;
  border-top: 1px solid var(--color-borde);
  padding-top: 1.5em;
}

.faq h3 {
  font-size: 1.2rem;
  font-family: var(--font-condensada);
  color: var(--color-texto-oscuro);
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: 1.2rem;
  padding: 0.9rem 1rem;
  background: #FAFAF8;
  border-radius: 10px;
  border: 1px solid var(--color-borde);
}

.faq-item p { margin: 0; }
.faq-item p:first-child {
  font-weight: 700;
  color: var(--color-texto-oscuro);
  margin-bottom: 0.4rem;
}
/* FIN SECCIÓN: FAQ */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: BREADCRUMB
   ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-family: var(--font-condensada);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #A09080;
  padding: 1.2rem 0 0.5rem;
}

.breadcrumb a {
  color: #A09080;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-naranja); }
.breadcrumb .sep { color: rgba(0, 0, 0, 0.15); font-size: 1rem; }
.breadcrumb .current { color: var(--color-texto-suave); }
/* FIN SECCIÓN: BREADCRUMB */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: ENLACES RELACIONADOS
   ───────────────────────────────────────────── */
.related-section, .mas-guias {
  background: var(--color-blanco);
  border: 1px solid var(--color-borde);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin: 2rem 0;
}

.mas-guias {
  border-left: 4px solid var(--color-naranja);
}

.related-section h2, .mas-guias h3 {
  font-family: var(--font-titulo);
  font-size: 1.6rem;
  color: var(--color-texto-oscuro);
  margin: 0 0 0.4rem;
  letter-spacing: 0.03em;
}

.related-section h2 {
  font-family: var(--font-condensada);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A09080;
}

.mas-guias > p {
  font-family: var(--font-cuerpo);
  color: var(--color-texto-suave);
  font-size: 0.9rem;
  margin: 0 0 1.2rem;
}

.related-links {
  display: grid;
  gap: 0.5rem;
}

.related-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-cuerpo);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-texto-oscuro);
  text-decoration: none;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--color-borde);
  background: #FAF8F6;
  transition: var(--transicion);
}

.related-links a::before {
  content: '→';
  color: var(--color-naranja);
  font-weight: 700;
  flex-shrink: 0;
}

.related-links a:hover {
  border-color: rgba(255, 77, 0, 0.25);
  background: rgba(255, 77, 0, 0.04);
  color: var(--color-naranja);
  transform: translateX(3px);
}

.mas-guias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.mas-guias-card {
  display: block;
  background: #FAF8F5;
  border: 1px solid #E4E4E7;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: #18181B;
  font-family: var(--font-cuerpo);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  transition: var(--transicion);
}

.mas-guias-card:hover {
  border-color: rgba(255, 77, 0, 0.35);
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.08);
  transform: translateY(-2px);
  color: var(--color-naranja);
}

.mas-guias-card .rel-arrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #A1A1AA;
  margin-top: 0.3rem;
}
/* FIN SECCIÓN: ENLACES RELACIONADOS */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: FOOTER Y NAVEGACIÓN
   ───────────────────────────────────────────── */
footer {
  text-align: center;
  color: #A09080;
  padding: 2rem;
  font-family: var(--font-cuerpo);
  font-size: 0.8rem;
}

footer a { color: #A09080; text-decoration: none; }
footer a:hover { color: var(--color-naranja); }

.volver-abajo {
  margin-top: 2.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-borde);
}
/* FIN SECCIÓN: FOOTER */

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: RESPONSIVE — MÓVIL (320px+)
   ───────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Cabecera más compacta */
  .blog-header { padding: 2rem 1rem 1.5rem; }
  .blog-header h1 { font-size: 2.5rem; }
  .blog-header p { font-size: 0.9rem; }

  /* Grid de una columna */
  .grid { grid-template-columns: 1fr; gap: 1rem; }
  .mas-guias-grid { grid-template-columns: 1fr 1fr; }

  /* Contenedores */
  .blog-container, .seo-container { padding: 0 1rem 2rem; }
  .seo-card, .guide-content { padding: 1.3rem; }
  .related-section, .mas-guias { padding: 1.2rem; }
  .zona-afiliados { padding: 1.2rem; }

  /* Tarjeta de ejercicio con GIF:
     En móvil apilamos: GIF arriba → Nombre → Series/Reps → Notas */
  .ejercicio-card {
    flex-direction: column;
    align-items: stretch;
  }

  .ejercicio-gif {
    width: 100%;
    height: 180px;
    flex: none;
  }

  .ejercicio-gif img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .ejercicio-gif-placeholder {
    width: 100%;
    height: 120px;
  }

  .ejercicio-detalles {
    padding: 0.9rem 1rem;
  }

  .ejercicio-nombre { font-size: 1rem; }

  /* Tabla de ejercicios: scroll horizontal en móvil */
  .guide-content { overflow-x: auto; }
  .guide-content table { min-width: 480px; }

  /* CTA full width en móvil */
  .cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
  }

  /* Productos en columna */
  .producto-grid { grid-template-columns: 1fr; }
  .producto-item { flex-direction: column; align-items: flex-start; }
  .producto-item img { width: 60px; height: 60px; }

  .seo-page-header h1 { font-size: 1.8rem; }
  .section-heading h2 { font-size: 1.5rem; }
}

/* ─────────────────────────────────────────────
   INICIO SECCIÓN: RESPONSIVE — TABLET (641–1024px)
   ───────────────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .producto-grid { grid-template-columns: repeat(2, 1fr); }
}
/* FIN SECCIÓN: RESPONSIVE */
