/* Generado desde style/blog-extended.css — selectores encapsulados en #sq-app */
/* ── VARIABLES ── */
#sq-app *, #sq-app *::before, #sq-app *::after { box-sizing: border-box; margin: 0; padding: 0; }

#sq-app {
  --rosa:       #a87ca5;
  --rosa-light: #efe3ee;
  --rosa-mid:   #dcc2da;
  --texto:      #2a2a2a;
  --gris:       #6b6b6b;
  --gris-light: #f5eee0;
  --blanco:     #faf3e7;
  --borde:      #e2dbe6;
}

#sq-app {
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}

/* ── HERO BLOG ── */
#sq-app .blog-hero {
  background: var(--rosa-light);
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--rosa-mid);
}
#sq-app .blog-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
#sq-app .blog-hero span {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rosa);
}
#sq-app .blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--texto);
  margin-top: 8px;
  line-height: 1.2;
}
#sq-app .blog-hero p {
  margin-top: 12px;
  color: var(--gris);
  font-size: .95rem;
  max-width: 500px;
}

/* ── CATEGORÍAS FILTRO ── */
#sq-app .categorias-bar {
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
  padding: 0 48px;
}
#sq-app .categorias-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
#sq-app .categorias-bar-inner::-webkit-scrollbar { display: none; }
#sq-app .cat-btn {
  padding: 14px 20px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gris);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
#sq-app .cat-btn:hover { color: var(--rosa); }
#sq-app .cat-btn.active { color: var(--rosa); border-bottom-color: var(--rosa); }

/* ── LAYOUT PRINCIPAL ── */
#sq-app .blog-layout {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

/* ── ARTICULO DESTACADO ── */
#sq-app .articulo-destacado {
  grid-column: 1;
  background: var(--gris-light);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .25s;
}
#sq-app .articulo-destacado:hover { box-shadow: 0 8px 32px rgba(168,124,165,.18); }
#sq-app .destacado-img {
  background: linear-gradient(135deg, var(--rosa-mid) 0%, var(--rosa) 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
/* Destacado con foto real: la imagen rellena la columna sin deformarse */
#sq-app .destacado-img.destacado-img-foto {
  position: relative;
  overflow: hidden;
  background: none;
  min-height: 340px;
}
/* Con foto, la imagen gana protagonismo y el texto ocupa menos */
#sq-app .articulo-destacado:has(.destacado-img-foto) {
  grid-template-columns: 3fr 2fr;
}
#sq-app .articulo-destacado:has(.destacado-img-foto) .destacado-body {
  padding: 28px 26px;
}
#sq-app .destacado-img-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
#sq-app .destacado-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#sq-app .tag {
  display: inline-block;
  background: var(--rosa-light);
  color: var(--rosa);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}
#sq-app .destacado-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}
#sq-app .destacado-body p {
  font-size: .88rem;
  color: var(--gris);
  line-height: 1.65;
  margin-bottom: 20px;
}
#sq-app .meta {
  font-size: .75rem;
  color: var(--gris);
  display: flex;
  gap: 16px;
}
#sq-app .leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--rosa);
  text-decoration: none;
  margin-top: 16px;
}
#sq-app .leer-mas::after { content: '→'; transition: transform .2s; }
#sq-app .leer-mas:hover::after { transform: translateX(4px); }

/* ── GRID ARTÍCULOS ── */
#sq-app .articulos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
#sq-app .card {
  background: transparent;
  border: 1px solid var(--borde);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
#sq-app .card:hover {
  box-shadow: 0 6px 24px rgba(168,124,165,.14);
  transform: translateY(-3px);
}
#sq-app .card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}
#sq-app .card-img.c1 { background: linear-gradient(135deg, #efe3ee, #dcc2da); }
#sq-app .card-img.c2 { background: linear-gradient(135deg, #e8f0f5, #c4d8e8); }
#sq-app .card-img.c3 { background: linear-gradient(135deg, #f0f5e8, #d8e8c4); }
#sq-app .card-img.c4 { background: linear-gradient(135deg, #f5f0e8, #e8d8c4); }
#sq-app .card-img.c5 { background: linear-gradient(135deg, #f0e8f5, #d8c4e8); }
#sq-app .card-img.c6 { background: linear-gradient(135deg, #f5e8e8, #e8c4c4); }

/* Tarjeta con foto real: proporción 3:2 para que la imagen no se deforme */
#sq-app .card-img.card-img-foto {
  height: auto;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
#sq-app .card-img-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
#sq-app .card-body {
  padding: 24px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
#sq-app .card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  hyphens: auto;
}
#sq-app .card-body p {
  font-size: .82rem;
  color: var(--gris);
  line-height: 1.6;
  flex: 1;
  overflow-wrap: break-word;
}
#sq-app .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
}
#sq-app .card-fecha { font-size: .73rem; color: var(--gris); }
#sq-app .card-leer {
  font-size: .76rem;
  font-weight: 600;
  color: var(--rosa);
  text-decoration: none;
}

/* ── PAGINACIÓN ── */
#sq-app .paginacion {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  align-items: center;
}
#sq-app .pag-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--borde);
  background: var(--blanco);
  font-size: .82rem;
  font-weight: 500;
  color: var(--gris);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sq-app .pag-btn:hover { border-color: var(--rosa); color: var(--rosa); }
#sq-app .pag-btn.active { background: var(--rosa); border-color: var(--rosa); color: var(--blanco); }

/* ── SIDEBAR ── */
#sq-app .sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 90px;
}
#sq-app .sidebar-card {
  background: var(--gris-light);
  border-radius: 14px;
  padding: 24px;
}
#sq-app .sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--texto);
}

/* Buscador */
#sq-app .buscador { position: relative; }
#sq-app .buscador input {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1px solid var(--borde);
  border-radius: 30px;
  font-family: 'Inter', sans-serif;
  font-size: .85rem;
  color: var(--texto);
  background: var(--blanco);
  outline: none;
  transition: border-color .2s;
}
#sq-app .buscador input:focus { border-color: var(--rosa); }
#sq-app .buscador input::placeholder { color: #bbb; }
#sq-app .buscador button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--rosa);
  cursor: pointer;
  font-size: 1rem;
}

/* Posts más leídos */
#sq-app .posts-leidos { list-style: none; display: flex; flex-direction: column; gap: 14px; }
#sq-app .posts-leidos li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: .83rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color .2s;
}
#sq-app .posts-leidos li a:hover { color: var(--rosa); }
#sq-app .post-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rosa-mid);
  min-width: 28px;
  line-height: 1;
}

/* Categorías pills */
#sq-app .cats-list { display: flex; flex-wrap: wrap; gap: 8px; }
#sq-app .cat-pill {
  padding: 6px 14px;
  border: 1px solid var(--borde);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gris);
  text-decoration: none;
  background: var(--blanco);
  transition: all .2s;
}
#sq-app .cat-pill:hover { background: var(--rosa); border-color: var(--rosa); color: var(--blanco); }

/* Consulta online sidebar */
#sq-app .newsletter-sb {
  background: linear-gradient(145deg, var(--rosa) 0%, #8f5f8c 100%);
  border-radius: 14px;
  padding: 26px 24px;
  color: var(--blanco);
}
#sq-app .newsletter-sb h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blanco);
}
#sq-app .newsletter-sb p {
  font-size: .8rem;
  opacity: .88;
  margin-bottom: 18px;
  line-height: 1.55;
}
#sq-app .newsletter-sb input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .83rem;
  margin-bottom: 10px;
  outline: none;
}
#sq-app .newsletter-sb button {
  width: 100%;
  padding: 11px;
  background: var(--blanco);
  color: var(--rosa);
  border: none;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s;
}
#sq-app .newsletter-sb button:hover { opacity: .88; }

/* ── FOOTER ── */
#sq-app footer {
  background: #1e1a1a;
  color: #c8c0bc;
  padding: 56px 48px 32px;
  margin-top: 72px;
}
#sq-app .footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
#sq-app .footer-brand .logo { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--rosa); font-weight: 700; }
#sq-app .footer-brand p { font-size: .82rem; margin-top: 12px; line-height: 1.65; opacity: .7; }
#sq-app footer h5 { color: var(--blanco); font-size: .82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
#sq-app footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
#sq-app footer ul a { text-decoration: none; color: #c8c0bc; font-size: .82rem; transition: color .2s; }
#sq-app footer ul a:hover { color: var(--rosa); }
#sq-app .footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  opacity: .5;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  #sq-app .blog-hero { padding: 32px 20px 28px; }
  #sq-app .blog-hero h1 { font-size: 1.9rem; }
  #sq-app .blog-layout { padding: 0 20px; gap: 24px; }
  #sq-app .articulo-destacado { grid-template-columns: 1fr; }
  #sq-app .destacado-img { min-height: 160px; }
  #sq-app .articulo-destacado:has(.destacado-img-foto) { grid-template-columns: 1fr; }
  #sq-app .destacado-img.destacado-img-foto { min-height: 0; aspect-ratio: 16 / 10; }
  #sq-app .articulo-destacado:has(.destacado-img-foto) .destacado-body { padding: 20px 22px 22px; }
  #sq-app .articulos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  #sq-app .blog-hero { padding: 24px 16px 20px; }
  #sq-app .blog-hero span { font-size: .68rem; letter-spacing: 1.5px; }
  #sq-app .blog-hero h1 { font-size: 1.55rem; margin-top: 6px; }
  #sq-app .blog-hero p { font-size: .85rem; }
  #sq-app .blog-layout { padding: 0 16px; margin: 28px auto; }
  #sq-app .destacado-img { min-height: 120px; font-size: 2.2rem; }
  #sq-app .destacado-img.destacado-img-foto { min-height: 0; }
  #sq-app .destacado-body { padding: 20px 18px; }
  #sq-app .destacado-body h2 { font-size: 1.1rem; }
  #sq-app .destacado-body p { font-size: .82rem; margin-bottom: 12px; }
  #sq-app .articulos-grid { grid-template-columns: 1fr; gap: 16px; }
  #sq-app .card-img { height: 120px; font-size: 2rem; }
  #sq-app .card-img.card-img-foto { height: auto; }
  #sq-app .card-body { padding: 16px; }
  #sq-app .card-body h3 { font-size: .95rem; }
  #sq-app .card-body p { font-size: .8rem; }
}
