/*
Theme Name: Visrog Minimal
Theme URI: https://visrog.com/
Author: Visrog
Description: Tema editorial pintoresco, rapido y elegante para blogs de contenido, categorias y articulos largos.
Version: 1.5.7
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: visrog-minimal
*/

:root {
  --vr-bg: #f7f9ff;
  --vr-surface: #ffffff;
  --vr-ink: #061738;
  --vr-muted: #798795;
  --vr-line: #edf1f7;
  --vr-accent: #349cfc;
  --vr-accent-2: #fb6d62;
  --vr-accent-3: #ffab6b;
  --vr-accent-4: #18254a;
  --vr-soft: #eef6ff;
  --vr-sun: #fff3e8;
  --vr-sky: #edf7ff;
  --vr-rose: #fff0ef;
  --vr-dark: #16203b;
  --vr-shadow: 0 22px 55px rgba(6, 23, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--vr-bg);
  color: var(--vr-ink);
  font-family: Heebo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Josefin Sans", Heebo, sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--vr-accent);
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: linear-gradient(135deg, rgba(22, 32, 59, 0.88) 0%, rgba(6, 23, 56, 0.84) 100%);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(6, 23, 56, 0.12);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease, background 220ms ease, box-shadow 220ms ease;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 220ms ease, justify-content 220ms ease;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  transition: transform 180ms ease, background 220ms ease, box-shadow 220ms ease, padding 220ms ease, border-radius 220ms ease;
}

.site-branding:hover {
  transform: translateY(-2px);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--vr-accent-2), var(--vr-accent-3));
  color: #fff;
  box-shadow: 0 10px 24px rgba(251, 109, 98, 0.35);
}

.custom-logo-link img {
  display: block;
  max-height: 44px;
  width: auto;
}

.site-title {
  font-size: 1.32rem;
  line-height: 1;
  color: #fff;
}

.brand-logo {
  display: block;
  width: 160px;
  height: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.main-navigation a,
.header-search {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.header-search {
  color: #fff;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, color 180ms ease;
}

.site-header.is-logo-only {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

.site-header.is-logo-only .topbar {
  min-height: 66px;
  justify-content: flex-start;
}

.site-header.is-logo-only .site-branding {
  position: fixed;
  top: 14px;
  left: max(16px, calc((100vw - 1120px) / 2));
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: #16203b;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
  animation: logoFloatIn 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.site-header.is-logo-only .brand-mark {
  box-shadow: none;
}

.site-header.is-logo-only .main-navigation,
.site-header.is-logo-only .header-search {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  pointer-events: none;
}

.site-header.is-logo-only .brand-logo,
.site-header.is-logo-only .custom-logo-link img {
  width: 136px;
  max-height: none;
}

.category-menu {
  position: relative;
}

.category-menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 13px;
  font-weight: 800;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.category-menu summary:hover {
  background: linear-gradient(180deg, var(--vr-accent-2), var(--vr-accent-3));
  box-shadow: 0 12px 28px rgba(251, 109, 98, 0.3);
  transform: translateY(-2px);
}

.category-menu summary::-webkit-details-marker {
  display: none;
}

.category-menu summary::after {
  content: " v";
  font-size: 0.78rem;
}

.category-menu[open] summary::after {
  content: " ^";
}

.category-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  min-width: 250px;
  padding: 10px;
  background: var(--vr-surface);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(6, 23, 56, 0.18);
  z-index: 30;
  animation: menuDrop 160ms ease both;
}

.category-panel ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.category-panel li {
  list-style: none;
}

.category-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--vr-ink);
  font-weight: 800;
}

.category-panel a:hover {
  background: var(--vr-soft);
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  padding: 70px 52px;
  margin-top: 34px;
  position: relative;
  background:
    radial-gradient(circle at 8% 20%, rgba(52, 156, 252, 0.26), transparent 20rem),
    radial-gradient(circle at 94% 14%, rgba(251, 109, 98, 0.24), transparent 18rem),
    linear-gradient(135deg, #16203b 0%, #061738 100%);
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 210px;
  height: 210px;
  right: -80px;
  top: -70px;
  background: rgba(255, 171, 107, 0.32);
}

.hero::after {
  width: 150px;
  height: 150px;
  left: 44%;
  bottom: -80px;
  background: rgba(52, 156, 252, 0.18);
}

.hero > div:first-child {
  border-left: 0;
  padding-left: 0;
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  color: #fff;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.1rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  color: #fff;
  background: linear-gradient(180deg, var(--vr-accent-2), var(--vr-accent-3));
  box-shadow: 0 15px 32px rgba(251, 109, 98, 0.32);
}

.ghost-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-action:hover,
.ghost-action:hover {
  color: #fff;
  transform: translateY(-3px);
}

.eyebrow,
.post-category {
  color: var(--vr-accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(251, 109, 98, 0.15);
  color: #ffab6b;
}

.featured-card,
.post-card,
.sidebar-widget,
.row-post,
.article-shell,
.search-form {
  background: var(--vr-surface);
  border: 0;
  border-radius: 20px;
  box-shadow: var(--vr-shadow);
  animation: riseIn 520ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.featured-card:hover,
.post-card:hover,
.row-post:hover {
  transform: translateY(-4px);
}

.featured-card {
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.25);
}

.featured-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.featured-body,
.post-body {
  padding: 24px;
}

.featured-body {
  background: #fff;
}

.featured-body h2,
.section-heading h2,
.archive-title {
  margin: 8px 0 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.featured-body p,
.post-body p,
.row-post p,
.site-footer p,
.archive-description {
  color: var(--vr-muted);
}

.featured-body p,
.post-body p,
.row-post p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}

.section-block,
.content-layout {
  padding: 44px 0;
}

.section-block:first-child {
  padding-top: 54px;
}

.section-heading {
  margin-bottom: 22px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  overflow: hidden;
}

.post-card:nth-child(3n+1) {
  box-shadow: 0 18px 44px rgba(6, 23, 56, 0.1);
  animation-delay: 70ms;
}

.post-card:nth-child(3n+2) {
  box-shadow: 0 18px 44px rgba(6, 23, 56, 0.1);
  animation-delay: 140ms;
}

.post-card:nth-child(3n+3) {
  box-shadow: 0 18px 44px rgba(6, 23, 56, 0.1);
  animation-delay: 210ms;
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-body h2,
.post-body h3,
.row-post h2,
.row-post h3 {
  margin: 8px 0 0;
  font-size: 1.24rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.article-list {
  display: grid;
  gap: 18px;
}

.row-post {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px;
  box-shadow: var(--vr-shadow);
}

.row-post img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.sidebar {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  padding: 22px;
  background: linear-gradient(180deg, #fff, var(--vr-sky));
  box-shadow: var(--vr-shadow);
}

.sidebar-widget h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget li {
  border-top: 1px solid var(--vr-line);
  padding: 12px 0;
}

.article-shell {
  max-width: 840px;
  margin: 44px auto;
  padding: clamp(24px, 5vw, 54px);
}

.breadcrumb {
  color: var(--vr-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.single-title {
  margin: 12px 0 18px;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.post-meta {
  color: var(--vr-muted);
  font-size: 0.94rem;
}

.single-featured img {
  width: 100%;
  margin: 30px 0;
  border-radius: 8px;
}

.entry-content {
  font-size: 1.08rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.25em;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.6em;
  line-height: 1.15;
}

.entry-content a {
  color: var(--vr-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-navigation,
.pagination {
  margin: 32px 0 0;
}

.nav-links,
.pagination .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.nav-links a,
.page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--vr-line);
  border-radius: 8px;
  background: var(--vr-surface);
  color: var(--vr-accent);
  font-weight: 800;
}

.search-form {
  display: flex;
  overflow: hidden;
}

.search-field {
  width: 100%;
  min-height: 46px;
  border: 0;
  padding: 0 14px;
  font: inherit;
}

.search-submit {
  border: 0;
  background: var(--vr-accent);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0 56px;
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
  background: var(--vr-dark);
  border-radius: 24px 24px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoFloatIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  .topbar {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .main-navigation {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-bottom: 4px;
  }

  .main-navigation ul,
  .footer-nav ul {
    flex-wrap: nowrap;
  }

  .category-menu {
    margin-left: auto;
  }

  .category-panel {
    right: 0;
    left: auto;
    min-width: min(280px, calc(100vw - 32px));
  }

  .hero,
  .content-layout,
  .post-grid,
  .row-post {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 20px 24px;
    gap: 22px;
  }

  .hero > div:first-child {
    padding-left: 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.15rem);
    line-height: 1;
  }

  .hero p {
    margin-top: 14px;
    font-size: 1rem;
  }

  .featured-body,
  .post-body {
    padding: 18px;
  }

  .featured-body h2,
  .section-heading h2,
  .archive-title {
    font-size: 1.7rem;
  }

  .post-body h2,
  .post-body h3,
  .row-post h2,
  .row-post h3 {
    font-size: 1.08rem;
  }

  .section-block,
  .content-layout {
    padding: 28px 0;
  }

  .section-heading {
    display: block;
    margin-bottom: 16px;
  }

  .post-grid,
  .article-list {
    gap: 16px;
  }

  .row-post {
    padding: 12px;
    gap: 14px;
  }

  .sidebar {
    position: static;
  }

  .article-shell {
    margin-top: 24px;
  }

  .footer-inner {
    display: block;
  }

  .footer-nav {
    margin-top: 18px;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  .topbar {
    gap: 14px;
    min-height: 64px;
  }

  .site-header.is-logo-only .topbar {
    min-height: 58px;
  }


  .brand-mark {
    width: 34px;
    height: 34px;
    box-shadow: 4px 4px 0 var(--vr-accent-3);
  }

  .site-title {
    font-size: 1.05rem;
  }

  .header-search {
    font-size: 0.92rem;
  }

  .main-navigation {
    gap: 12px;
  }

  .category-menu summary {
    padding: 7px 10px;
  }

  .featured-card {
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
  }

  .post-card:nth-child(n),
  .row-post,
  .sidebar-widget {
    box-shadow: var(--vr-shadow);
  }

  .article-shell {
    padding: 22px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
