/*
Theme Name: Solo quien lo vive
Theme URI: https://soloquienlovive.com
Author: Proxy 52, Inc.
Author URI: https://proxy52.com
Description: Tema de bloques (full site editing) para el medio digital Solo quien lo vive. Reproduce el rediseno editorial de 2026: banner rotativo "Al momento", color por seccion en cada nota y dos espacios publicitarios.
Version: 2.4.3
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solo-quien-lo-vive
Tags: blog, news, three-columns, block-patterns, full-site-editing, custom-colors, custom-menu, editor-style, featured-images, translation-ready
*/

/* =============================================================
   BASE
   ============================================================= */
:root {
  --sqlv-tinta: #2e2e2f;
  --sqlv-crema: #f8f2df;
  --sqlv-rosa: #f13468;
  --sqlv-azul: #48c5eb;
  --sqlv-lima: #f2f77c;
  --sqlv-gris: #8a8880;
  --sqlv-linea: #e6e0cd;
}

body {
  background: var(--sqlv-crema);
  color: var(--sqlv-tinta);
  overflow-x: hidden;
}

/* Las franjas de primer nivel (encabezado, banner, portada, pie) van pegadas:
   cualquier separacion entre ellas deja ver el crema del fondo como una linea. */
.wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.wp-site-blocks {
  padding: 0;
}

.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3 {
  text-wrap: pretty;
}

.sqlv-script,
.sqlv-signature {
  font-family: var(--wp--preset--font-family--slackside);
  font-weight: 400;
  line-height: 1;
}

.sqlv-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* =============================================================
   MARCA
   ============================================================= */
.sqlv-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  text-decoration: none;
}

.sqlv-brand img {
  height: 74px;
  width: auto;
  display: block;
}

.sqlv-brand__signature {
  font-family: var(--wp--preset--font-family--slackside);
  font-size: 38px;
  line-height: 1;
  color: var(--sqlv-lima);
  white-space: nowrap;
  transform: rotate(-3deg);
  display: block;
}

.sqlv-brand--footer img {
  height: 104px;
}

.sqlv-brand--footer .sqlv-brand__signature {
  font-size: 62px;
  color: var(--sqlv-crema);
  transform: none;
}

/* =============================================================
   ENCABEZADO
   ============================================================= */
.sqlv-header {
  position: relative;
  z-index: 30;
  background: var(--sqlv-rosa);
}

.sqlv-header .sqlv-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.sqlv-header .wp-block-navigation {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
}

/* El menu siempre visible en linea: nunca como panel superpuesto ni boton de hamburguesa. */
.sqlv-header .wp-block-navigation__responsive-container-open,
.sqlv-header .wp-block-navigation__responsive-container-close {
  display: none !important;
}

.sqlv-header .wp-block-navigation__responsive-container,
.sqlv-header .wp-block-navigation__responsive-container.is-menu-open {
  display: block !important;
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  z-index: auto !important;
}

.sqlv-header .wp-block-navigation__responsive-close,
.sqlv-header .wp-block-navigation__responsive-dialog,
.sqlv-header .wp-block-navigation__responsive-container-content {
  display: contents !important;
}

.sqlv-header .wp-block-navigation__container {
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
}

.sqlv-header .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--sqlv-crema);
  border-radius: 999px;
  padding: 9px 14px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.2, 0, 0.2, 1);
}

.sqlv-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.sqlv-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  background: var(--sqlv-tinta);
  color: var(--sqlv-crema);
}

.sqlv-header .wp-block-search {
  flex: none;
}

.sqlv-header .wp-block-search__inside-wrapper {
  gap: 8px;
  border: 0;
}

.sqlv-header .wp-block-search__input {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  min-width: 150px;
  font-family: inherit;
  font-size: 15px;
  background: var(--sqlv-crema);
  color: var(--sqlv-tinta);
}

.sqlv-header .wp-block-search__button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--sqlv-tinta);
  color: var(--sqlv-crema);
  font-weight: 800;
  font-size: 14px;
}

/* =============================================================
   BANNER "AL MOMENTO"
   ============================================================= */
.sqlv-momento {
  position: relative;
  z-index: 20;
}

.sqlv-momento__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 32px;
  display: flex;
  gap: 26px;
  align-items: stretch;
}

.sqlv-momento__stage {
  flex: 1 1 700px;
  min-width: 0;
  display: flex;
}

.sqlv-momento__slide {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  width: 100%;
}

.sqlv-momento__slide[hidden] {
  display: none;
}

.sqlv-momento__figure {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 400px;
  position: relative;
  display: block;
}

.sqlv-momento__frame {
  display: block;
  border: 9px solid var(--sqlv-crema);
  background: var(--sqlv-crema);
  height: 300px;
  overflow: hidden;
}

.sqlv-momento__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sqlv-momento__cat {
  position: absolute;
  top: 20px;
  left: 20px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 16px;
}

.sqlv-momento__body {
  flex: 1 1 320px;
  min-width: 0;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.sqlv-momento__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sqlv-momento__label {
  flex: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.16em;
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--sqlv-m-chip-bg);
  color: var(--sqlv-m-chip-fg);
}

.sqlv-momento__dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.sqlv-momento__dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--sqlv-m-border);
  cursor: pointer;
  transition: width 220ms cubic-bezier(0.2, 0, 0.2, 1);
}

.sqlv-momento__dot[aria-current="true"] {
  width: 26px;
  background: currentColor;
}

.sqlv-momento__title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.sqlv-momento__title a {
  color: inherit;
  text-decoration: none;
}

.sqlv-momento__title a:hover {
  opacity: 0.75;
  color: inherit;
}

.sqlv-momento__meta {
  font-size: 16px;
  color: var(--sqlv-m-muted);
}

.sqlv-momento__cta {
  align-self: flex-start;
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  padding: 11px 24px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--sqlv-m-btn-bg);
  color: var(--sqlv-m-btn-fg);
}

.sqlv-momento__cta:hover {
  color: var(--sqlv-m-btn-fg);
  opacity: 0.85;
}

.sqlv-momento__aside {
  flex: 0 1 250px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.sqlv-momento__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--sqlv-m-border);
  padding-left: 22px;
}

.sqlv-momento__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  font-weight: 500;
  color: var(--sqlv-m-muted);
}

.sqlv-momento__item[aria-current="true"] {
  background: var(--sqlv-m-active);
  color: inherit;
  font-weight: 800;
}

.sqlv-momento__item img {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.sqlv-momento__item span {
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* El titular del banner no crece mas de tres lineas: el alto lo fija la foto. */
.sqlv-momento__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================================
   PORTADA
   ============================================================= */
.sqlv-home {
  position: relative;
  background: var(--sqlv-azul);
  overflow: hidden;
}

.sqlv-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(46, 46, 47, 0.1) 1px, transparent 1.4px);
  background-size: 7px 7px;
  pointer-events: none;
}

.sqlv-home::after {
  content: "VIVE";
  position: absolute;
  top: -40px;
  right: -20px;
  font-weight: 900;
  font-size: 280px;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(46, 46, 47, 0.1);
  pointer-events: none;
}

/* El layout "default" de WordPress no genera contenedor interno: el ancho y el
   relleno van en el propio elemento y los hijos se centran con su propio ancho. */
.sqlv-home,
.sqlv-archive {
  padding: 48px 32px 72px;
}

.sqlv-home > *,
.sqlv-archive > * {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero */
.sqlv-hero {
  display: flex;
  gap: 44px;
  align-items: center;
  margin-bottom: 60px;
}

.sqlv-hero__text {
  flex: 1;
  min-width: 0;
}

.sqlv-hero__kicker {
  display: inline-block;
  font-size: 38px;
  color: var(--sqlv-rosa);
  transform: rotate(-2deg);
}

.sqlv-hero__title {
  font-size: 62px;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 6px 0 18px;
  max-width: 560px;
}

.sqlv-hero__title a {
  color: var(--sqlv-tinta);
  text-decoration: none;
}

.sqlv-hero__title a:hover {
  color: var(--sqlv-tinta);
  opacity: 0.75;
}

.sqlv-hero__lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--sqlv-tinta);
  max-width: 520px;
  margin-bottom: 26px;
}

.sqlv-hero__cta {
  display: inline-block;
  font-weight: 800;
  font-size: 17px;
  border-radius: 999px;
  padding: 13px 30px;
  text-decoration: none;
  background: var(--sqlv-tinta);
  color: var(--sqlv-crema);
}

.sqlv-hero__cta:hover {
  background: var(--sqlv-rosa);
  color: var(--sqlv-crema);
}

.sqlv-hero__media {
  flex: none;
  width: 420px;
  position: relative;
}

.sqlv-hero__stripes {
  position: absolute;
  inset: -16px 18px 18px -16px;
  transform: rotate(-3deg);
  background: repeating-linear-gradient(45deg, #8ac012 0 18px, #edc329 18px 36px);
}

.sqlv-hero__frame {
  position: relative;
  display: block;
  border: 12px solid var(--sqlv-crema);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
  transform: rotate(2deg);
  overflow: hidden;
  height: 360px;
  background: var(--sqlv-crema);
}

.sqlv-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
   FEED
   ============================================================= */
.sqlv-feed__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid rgba(46, 46, 47, 0.4);
  padding-bottom: 12px;
  margin-bottom: 26px;
}

.sqlv-feed__head h2 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

.sqlv-feed__head span {
  font-size: 16px;
  color: rgba(46, 46, 47, 0.75);
  white-space: nowrap;
}

.sqlv-feed__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.sqlv-feed__empty {
  font-size: 17px;
  color: rgba(46, 46, 47, 0.75);
}

.sqlv-feed__pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
  font-weight: 700;
}

.sqlv-feed__pagination .page-numbers {
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--sqlv-tinta);
  background: rgba(46, 46, 47, 0.08);
}

.sqlv-feed__pagination .page-numbers.current {
  background: var(--sqlv-tinta);
  color: var(--sqlv-crema);
}

/* Tarjeta de nota */
.sqlv-card {
  background: var(--sqlv-crema);
  border: 3px solid var(--sqlv-tinta);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(46, 46, 47, 0.2);
  transition: transform 180ms cubic-bezier(0.2, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.sqlv-card:hover {
  transform: translateY(-4px);
}

.sqlv-card__media {
  display: block;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.sqlv-card__media img,
.sqlv-card__blank {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #d8d2bd;
}

.sqlv-card__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 999px;
  padding: 6px 14px;
}

.sqlv-card__body {
  padding: 18px 20px 22px;
}

.sqlv-card__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.sqlv-card__title a {
  color: var(--sqlv-tinta);
  text-decoration: none;
}

.sqlv-card__title a:hover {
  color: var(--sqlv-rosa);
}

.sqlv-card__meta {
  font-size: 15px;
  color: var(--sqlv-gris);
}

/* =============================================================
   ARCHIVO DE SECCION
   ============================================================= */
.sqlv-archive {
  position: relative;
  background: var(--sqlv-crema);
}

.sqlv-archive__kicker {
  display: inline-block;
  font-family: var(--wp--preset--font-family--slackside);
  font-size: 38px;
  line-height: 1;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}

.sqlv-archive .sqlv-feed__head {
  border-bottom-color: rgba(46, 46, 47, 0.15);
}

/* =============================================================
   NOTA
   ============================================================= */
.sqlv-article {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 32px 64px;
}

.sqlv-article > * {
  max-width: 100%;
}

.sqlv-article .sqlv-cat-chip {
  display: block;
  width: fit-content;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  border-radius: 999px;
  padding: 8px 18px;
  text-decoration: none;
  margin-bottom: 14px;
  background: var(--sqlv-cat-color, var(--sqlv-tinta));
  color: var(--sqlv-cat-text, var(--sqlv-crema));
}

.sqlv-article .wp-block-post-title {
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.sqlv-article .wp-block-post-excerpt {
  font-size: 23px;
  line-height: 1.5;
  color: #4a4a49;
  margin-bottom: 24px;
}

.sqlv-article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 2px solid var(--sqlv-linea);
  margin-bottom: 28px;
  font-size: 18px;
  color: #4a4a49;
}

.sqlv-article .wp-block-post-featured-image {
  margin: 0 0 34px;
}

.sqlv-article .wp-block-post-featured-image img {
  border: 12px solid #fff;
  box-shadow: 0 20px 40px rgba(46, 46, 47, 0.24);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.sqlv-article .wp-block-post-content {
  font-size: 21px;
  line-height: 1.65;
  color: #3a3a39;
}

.sqlv-article .wp-block-post-content > p {
  margin-bottom: 22px;
}

.sqlv-article blockquote {
  background: var(--sqlv-tinta);
  border: 0;
  border-radius: 20px;
  padding: 34px 38px;
  margin: 10px 0 30px;
}

.sqlv-article blockquote p {
  font-family: var(--wp--preset--font-family--slackside);
  font-size: 42px;
  line-height: 1.15;
  color: var(--sqlv-lima);
  margin: 0;
}

.sqlv-article__related {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px solid var(--sqlv-linea);
}

.sqlv-article__related .sqlv-feed__head {
  border: 0;
  padding: 0;
  margin-bottom: 18px;
}

.sqlv-article__related .sqlv-feed__head h2 {
  font-size: 26px;
}

/* =============================================================
   PUBLICIDAD
   ============================================================= */
.sqlv-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: 2px dashed rgba(46, 46, 47, 0.3);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 44px;
  min-height: 150px;
}

.sqlv-ad__tag {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(46, 46, 47, 0.55);
}

.sqlv-ad img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sqlv-ad--filled {
  border: 0;
  padding: 0;
  min-height: 0;
}

.sqlv-ad__size {
  font-size: 14px;
  color: rgba(46, 46, 47, 0.55);
}

.sqlv-article .sqlv-ad {
  min-height: 130px;
  margin: 6px 0 30px;
}

/* =============================================================
   PIE
   ============================================================= */
.sqlv-footer {
  position: relative;
  background: var(--sqlv-tinta);
  color: var(--sqlv-crema);
  overflow: hidden;
}

.sqlv-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 7px 7px;
  pointer-events: none;
}

.sqlv-footer > * {
  position: relative;
}

.sqlv-footer a {
  color: var(--sqlv-crema);
  text-decoration: none;
}

.sqlv-footer a:hover {
  color: var(--sqlv-lima);
}

.sqlv-footer .sqlv-script {
  display: block;
  font-size: 30px;
  margin-bottom: 12px;
}

.sqlv-footer .sqlv-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.sqlv-footer .sqlv-social .wp-block-button__link {
  background: transparent !important;
  color: var(--sqlv-crema) !important;
  border: 1.5px solid rgba(248, 242, 223, 0.45);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms cubic-bezier(0.2, 0, 0.2, 1), color 160ms cubic-bezier(0.2, 0, 0.2, 1), border-color 160ms;
}

.sqlv-footer .sqlv-social .wp-block-button__link:hover {
  background: var(--sqlv-crema) !important;
  color: var(--sqlv-tinta) !important;
  border-color: var(--sqlv-crema);
}

.sqlv-footer .sqlv-social__note {
  font-size: 17px;
  line-height: 1.6;
  color: #aca9a0;
  max-width: 320px;
  margin: 0;
}

/* Tarjeta de una nota sin categoria: borde crema invisible sobre crema, se marca en tinta suave */
.sqlv-card[style*="#f8f2df"] {
  border-color: rgba(46, 46, 47, 0.18) !important;
}

.sqlv-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.sqlv-section-list a {
  font-size: 17px;
  font-weight: 500;
}

.sqlv-footer__legal {
  font-size: 14px;
  color: #aca9a0;
}

.sqlv-footer__legal a {
  color: #aca9a0;
}

/* =============================================================
   ACCESIBILIDAD Y RESPONSIVE
   ============================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link.screen-reader-text:focus {
  position: fixed !important;
  left: 6px;
  top: 7px;
  z-index: 100000;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--sqlv-crema);
  color: var(--sqlv-tinta);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .sqlv-hero {
    flex-wrap: wrap;
  }
  .sqlv-hero__media {
    width: 100%;
  }
  .sqlv-home::after {
    display: none;
  }
}

@media (max-width: 960px) {
  .sqlv-momento__inner,
  .sqlv-momento__slide {
    flex-wrap: wrap;
  }
  .sqlv-momento__list {
    border-left: 0;
    padding-left: 0;
  }
  .sqlv-momento__title {
    font-size: 30px;
  }
  .sqlv-feed__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sqlv-hero__title {
    font-size: 44px;
  }
  .sqlv-article .wp-block-post-title {
    font-size: 40px;
  }
}

@media (max-width: 640px) {
  .sqlv-feed__grid {
    grid-template-columns: 1fr;
  }
  .sqlv-header > .wp-block-group__inner-container {
    flex-wrap: wrap;
  }
  .sqlv-brand--footer .sqlv-brand__signature {
    font-size: 40px;
  }
  .sqlv-article blockquote p {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
