/*
Theme Name: Knew Child
Author: Knew
Template: knew
Text Domain: knew-child
Description: Tema hijo oficial de Knew, basado fielmente en la experiencia visual del tema hijo original: diseño contenido, fondo animado, listado horizontal de entradas, cabecera propia, colores coral, tipografía y pie de página diferenciados. Hereda el motor y las funciones de Knew y mantiene sus propias personalizaciones visuales.
Version: 3.3.0
Requires at least: 5.4
Tested up to: 7.1
Requires PHP: 5.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, right-sidebar, left-sidebar, footer-widgets, blog, news, entertainment, custom-background, custom-menu, custom-logo, post-formats, sticky-post, editor-style, threaded-comments, translation-ready, custom-colors, featured-images, full-width-template, theme-options, flexible-header, wide-blocks

Knew Child se distribuye bajo GNU General Public License v2 o posterior.
Consulta LEGAL-NOTICES.txt para las atribuciones del código original y componentes de terceros.
*/

html body {
  background-color: #fff;
}

.knew-blog-horizontal .knew-article.post.sticky {
  outline: none;
}

.knew-blog-horizontal .knew-article.post.sticky .entry-media {
  outline: 5px solid var(--knew-primary_15);
}

.widget.knew-entry .wp-block-image+p {
  margin-top: 0;
}

.widget.knew-entry .wp-block-image figure,
#page .widget.knew-entry .wp-block-image figure {
  margin: 0 1rem 0 0;
}

#page .widget.knew-entry .wp-block-social-links {
  margin-bottom: 0;
}

body.knew-menu-animation-squarebox:not(.knew-is-mobile) #knew-header-inner .knew-nav>ul>li>a {
  padding: 0.4rem 1.4rem 0.4rem;
}

body.knew-blog-horizontal .knew-article:not(.format-quote) .entry-meta {
  margin-top: 1.6rem;
}

body .navigation .nav-links .knew-animate-arrow,
body .navigation .nav-links .page-numbers,
body .page-links>span {
  background-color: transparent;
}

.knew-btn.btn-small {
  font-size: 95% !important;
}

.entry-footer .knew-btn.btn-text-1 {
  letter-spacing: 0.02rem;
  padding: 0.8rem 2.4rem !important;
  color: #fff;
  background-color: var(--knew-primary) !important;
}

.entry-footer .knew-btn.btn-text-1>span::before {
  display: none;
}

.entry-footer .knew-btn.btn-text-1,
.wp-block-search .wp-block-search__button,
body .knew-btn:not(.btn-text-1) {
  line-height: 1.8;
  border-radius: 7px !important;
  transform: translate(0px, 0px) !important;
  box-shadow: 0 10px 18px 0 var(--knew-primary_27) !important;
  -webkit-transition: var(--knew-transition-primary);
  transition: var(--knew-transition-primary);
}

.entry-footer .knew-btn.btn-text-1:active,
.wp-block-search .wp-block-search__button:active,
body .knew-btn:not(.btn-text-1):active,
.entry-footer .knew-btn.btn-text-1:hover,
.wp-block-search .wp-block-search__button:hover,
body .knew-btn:not(.btn-text-1):hover {
  color: #fff;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 18px 0 var(--knew-primary_09) !important;
}

body .navigation .nav-links .page-numbers:not(.prev, .next).current,
body .navigation .nav-links .page-numbers:hover button,
body.using-keyboard .navigation .nav-links .page-numbers:focus button,
body .navigation .nav-links .page-numbers:not(.prev, .next):hover,
body.using-keyboard .navigation .nav-links .page-numbers:not(.prev, .next):focus,
body .page-links a:hover span,
body.using-keyboard .page-links a:focus span,
body.knew-menu-animation-squarebox:not(.knew-is-mobile) #knew-header-inner .knew-nav>ul>li.current-menu-item>a,
body.knew-menu-animation-squarebox:not(.knew-is-mobile) #knew-header-inner .knew-nav>ul>li.current_page_item>a,
body.knew-menu-animation-squarebox:not(.knew-is-mobile) #knew-header-inner .knew-nav>ul>li>a:hover,
body.knew-menu-animation-squarebox:not(.knew-is-mobile).using-keyboard #knew-header-inner .knew-nav>ul>li>a:focus {
  color: #fff !important;
  box-shadow: 0 10px 18px 0 var(--knew-primary_27);
}

.entry-footer .knew-btn.btn-text-1:active,
.wp-block-search .wp-block-search__button:active,
body .knew-btn:not(.btn-text-1):active {
  transform: translateY(0px) !important;
}

/* Post content bg color */
.ticker-slider-items,
.pyml-slider-items,
.author .author-box,
.knew-sidebar-style-3 #secondary .knew-widget,
.knew-sidebar-style-3 .elementor-widget-sidebar .knew-widget {
  border-radius: 1.5rem !important;
  box-shadow: none !important;
  border: 0.1rem solid rgba(190, 190, 190, 0.2);
}

html:not([data-theme=dark]) .ticker-slider-items,
html:not([data-theme=dark]) .pyml-slider-items,
html:not([data-theme=dark]) .author .author-box,
html:not([data-theme=dark]) .knew-sidebar-style-3 #secondary .knew-widget,
html:not([data-theme=dark]) .knew-sidebar-style-3 .elementor-widget-sidebar .knew-widget {
  background: #fff9f3;
  border: 0.1rem solid #ffe7d2 !important;
}

.ticker-slider-items .ticker-title {
  border-radius: 0.8rem;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.ticker-slider-controls .ticker-slider-pause {
  border-radius: 0.8rem;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.knew-sidebar-style-3.is-section-heading-init-s2 #secondary .knew-widget {
  position: relative;
  margin-bottom: 4.5rem;
}

.is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title,
.knew-sidebar-style-3.is-section-heading-init-s2 #secondary .knew-widget .widget-title,
.knew-sidebar-style-3.is-section-heading-init-s2 #secondary .knew-widget .wp-block-search .wp-block-search__label,
.knew-sidebar-style-3.is-section-heading-init-s2 #secondary .knew-widget .wp-block-heading {
  position: absolute;
  left: 2.5rem;
  top: -1.8rem;
  z-index: 2;
}

.is-section-heading-init-s2 #featured_links .widget-title,
.is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title,
.is-footer-heading-init-s2 #knew-footer .wp-block-heading,
.is-footer-heading-init-s2 #knew-footer .widget-title,
.is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .widget-title,
.is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .wp-block-search .wp-block-search__label,
.is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .wp-block-heading {
  letter-spacing: 0.25px;
  width: auto;
  line-height: 1.2;
  display: inline-block;
  padding: 8px 25px 7px;
  background-color: #fff;
  border-radius: 10rem;
  margin-bottom: 0;
  border: 1px solid rgba(39, 39, 39, 0.75);
}

html[data-theme="dark"] .is-section-heading-init-s2 #featured_links .widget-title,
html[data-theme="dark"] .is-footer-heading-init-s2 #knew-footer .wp-block-heading,
html[data-theme="dark"] .is-footer-heading-init-s2 #knew-footer .widget-title,
html[data-theme="dark"] .is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title,
html[data-theme="dark"] .is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .widget-title,
html[data-theme="dark"] .is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .wp-block-search .wp-block-search__label,
html[data-theme="dark"] .is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .wp-block-heading {
  background-color: rgba(0, 0, 0, 0.75);
  border: 0.1rem solid rgba(190, 190, 190, 0.3);
}

.is-section-heading-init-s2:not(.knew-sidebar-style-1) #secondary .knew-widget .wp-block-search .wp-block-search__inside-wrapper {
  padding-top: 2.2rem;
}

.is-section-heading-init-s2 #pyml .pyml-slider-items {
  position: relative;
}

.is-section-heading-init-s2 #pyml .pyml-slider-items .widget-title+.knew-flex-row.gy-4 {
  margin-top: 0;
}

/* Custom CSS */

.knew-blog-horizontal .knew-flex-row.g-4 {
  --knew-gutter-y: 4.8rem;
  --knew-gutter-x: 4.8rem;
}

.knew-blog-horizontal .knew-article:not(.format-quote) .knew-blog-entry-wrapper.knew-thumb-left .entry-media {
  border-radius: 0.8rem;
}

body .pyml-slide-item .pyml-slider-backgrounds .pyml-slide-bg,
body .wp-block-latest-posts__featured-image {
  border: 0.1rem solid rgba(39, 39, 39, 0.75);
  border-radius: 0.8rem;
  box-shadow: 2px 2px 3px 0px rgba(93, 112, 234, 0.1);
}

.pyml-slider-items {
  padding: 2.2rem;
}

.knew-waves-wrapper {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
  z-index: -1;
}

.knew-bg-animation--shapes .circle,
.knew-bg-animation--shapes .triangle,
.knew-bg-animation--shapes .square {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: var(--knew-primary_15);
  border-radius: 5px;
  opacity: 0.1;
  animation: rise 10s infinite ease-in;
}

.knew-bg-animation--shapes .square:nth-child(1) {
  width: 40px;
  height: 40px;
  left: 10%;
  animation-duration: 8s;
}

.knew-bg-animation--shapes .square:nth-child(2) {
  width: 20px;
  height: 20px;
  left: 20%;
  animation-duration: 5s;
  animation-delay: 1s;
}

.knew-bg-animation--shapes .square:nth-child(3) {
  width: 50px;
  height: 50px;
  left: 35%;
  animation-duration: 7s;
  animation-delay: 2s;
}

.knew-bg-animation--shapes .square:nth-child(4) {
  width: 80px;
  height: 80px;
  left: 50%;
  animation-duration: 11s;
  animation-delay: 0s;
}

.knew-bg-animation--shapes .square:nth-child(5) {
  width: 35px;
  height: 35px;
  left: 55%;
  animation-duration: 6s;
  animation-delay: 1s;
}

.knew-bg-animation--shapes .square:nth-child(6) {
  width: 45px;
  height: 45px;
  left: 65%;
  animation-duration: 8s;
  animation-delay: 3s;
}

.knew-bg-animation--shapes .square:nth-child(7) {
  width: 90px;
  height: 90px;
  left: 70%;
  animation-duration: 12s;
  animation-delay: 2s;
}

.knew-bg-animation--shapes .square:nth-child(8) {
  width: 25px;
  height: 25px;
  left: 80%;
  animation-duration: 6s;
  animation-delay: 2s;
}

.knew-bg-animation--shapes .square:nth-child(9) {
  width: 15px;
  height: 15px;
  left: 70%;
  animation-duration: 5s;
  animation-delay: 1s;
}

.knew-bg-animation--shapes .square:nth-child(10) {
  width: 90px;
  height: 90px;
  left: 25%;
  animation-duration: 10s;
  animation-delay: 4s;
}

.knew-bg-animation--shapes .triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.knew-bg-animation--shapes .triangle:nth-child(1) {
  width: 20px;
  height: 22px;
  left: 50%;
  animation-delay: 0s;
}

.knew-bg-animation--shapes .triangle:nth-child(2) {
  width: 30px;
  height: 28px;
  left: 25%;
  animation-delay: 12s;
}

.knew-bg-animation--shapes .triangle:nth-child(3) {
  width: 30px;
  height: 28px;
  left: 80%;
  animation-delay: 4s;
}

.knew-bg-animation--shapes .triangle:nth-child(4) {
  width: 40px;
  height: 38px;
  left: 30%;
  animation-delay: 18s;
}

.knew-bg-animation--shapes .triangle:nth-child(5) {
  width: 50px;
  height: 40px;
  left: 70%;
  animation-delay: 1s;
}

.knew-bg-animation--shapes .circle {
  border-radius: 100%;
}

.knew-bg-animation--shapes .circle:nth-child(1) {
  width: 22px;
  height: 20px;
  left: 10%;
  animation-delay: 0s;
}

.knew-bg-animation--shapes .circle:nth-child(2) {
  width: 84px;
  height: 80px;
  left: 45%;
  animation-delay: 12s;
}

.knew-bg-animation--shapes .circle:nth-child(3) {
  width: 53px;
  height: 50px;
  left: 90%;
  animation-delay: 4s;
}

.knew-bg-animation--shapes .circle:nth-child(4) {
  width: 53px;
  height: 50px;
  left: 60%;
  animation-delay: 18s;
}

.knew-bg-animation--shapes .circle:nth-child(5) {
  width: 43px;
  height: 40px;
  left: 90%;
  animation-delay: 1s;
}


@keyframes rise {
  0% {
      bottom: -100px;
      transform: translateX(0) rotate(0deg);
  }

  50% {
      transform: translate(100px) rotate(180deg);
  }

  100% {
      bottom: 1080px;
      transform: translateX(-200px) rotate(360deg);
  }
}


/* Knew Child 3.2.0 — extra background animations. */
.knew-bg-animation {
  pointer-events: none;
}

.knew-bg-animation--aurora .knew-aurora-layer {
  position: absolute;
  width: 62vw;
  height: 62vw;
  min-width: 520px;
  min-height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  mix-blend-mode: multiply;
  background: radial-gradient(circle at 35% 35%, var(--knew-primary), transparent 66%);
  animation: knewAuroraDrift 18s ease-in-out infinite alternate;
}
.knew-bg-animation--aurora .knew-aurora-layer--1 { top:-22%; left:-18%; }
.knew-bg-animation--aurora .knew-aurora-layer--2 { right:-20%; top:12%; animation-duration:23s; animation-delay:-6s; transform:scale(.8); }
.knew-bg-animation--aurora .knew-aurora-layer--3 { left:28%; bottom:-35%; animation-duration:27s; animation-delay:-11s; transform:scale(1.15); opacity:.11; }
@keyframes knewAuroraDrift {
  0% { transform:translate3d(-4%, -2%, 0) scale(.92) rotate(0deg); }
  50% { transform:translate3d(10%, 8%, 0) scale(1.08) rotate(16deg); }
  100% { transform:translate3d(-2%, 16%, 0) scale(.98) rotate(-10deg); }
}

.knew-bg-animation--bokeh .knew-bokeh-lights span {
  position:absolute;
  left:var(--x,50%);
  top:110%;
  width:var(--s,42px);
  height:var(--s,42px);
  border-radius:50%;
  background:radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), var(--knew-primary_27) 38%, transparent 72%);
  filter:blur(var(--b,2px));
  opacity:.22;
  animation:knewBokehFloat var(--d,16s) linear infinite;
  animation-delay:var(--delay,0s);
}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(1){--x:6%;--s:25px;--d:13s;--delay:-2s}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(2){--x:14%;--s:58px;--d:20s;--delay:-12s;--b:4px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(3){--x:23%;--s:34px;--d:15s;--delay:-7s}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(4){--x:31%;--s:78px;--d:24s;--delay:-18s;--b:6px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(5){--x:40%;--s:20px;--d:12s;--delay:-8s}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(6){--x:49%;--s:48px;--d:19s;--delay:-4s;--b:3px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(7){--x:57%;--s:92px;--d:28s;--delay:-19s;--b:7px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(8){--x:65%;--s:30px;--d:14s;--delay:-10s}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(9){--x:73%;--s:66px;--d:22s;--delay:-15s;--b:5px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(10){--x:81%;--s:24px;--d:13s;--delay:-6s}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(11){--x:89%;--s:52px;--d:17s;--delay:-11s;--b:4px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(12){--x:95%;--s:83px;--d:26s;--delay:-20s;--b:6px}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(13){--x:36%;--s:38px;--d:18s;--delay:-16s}
.knew-bg-animation--bokeh .knew-bokeh-lights span:nth-child(14){--x:69%;--s:18px;--d:11s;--delay:-3s}
@keyframes knewBokehFloat {
  0% { transform:translate3d(0, 0, 0) scale(.7); opacity:0; }
  12% { opacity:.22; }
  75% { opacity:.16; }
  100% { transform:translate3d(45px, -125vh, 0) scale(1.25); opacity:0; }
}

@media (prefers-reduced-motion: reduce) {
  .knew-bg-animation * { animation:none !important; }
  .knew-bg-animation--bokeh .knew-bokeh-lights span { display:none; }
  .knew-bg-animation--aurora .knew-aurora-layer { opacity:.08; }
}

/* Dynamic CSS */
[data-theme=dark] .knew-breadcrumbs {
  background-color: transparent;
  border-color: rgba(190, 190, 190, 0.3);
}

html[data-theme="dark"] .knew-sidebar-style-3 #secondary .knew-widget {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Block CSS */

.content-area .wp-block-site-title a:not(:hover, :focus) {
  color: inherit;
}

.content-area .wp-block-site-title a:not(.knew-btn):not(.wp-block-button__link):hover,
.content-area .wp-block-site-title a:not(.knew-btn):not(.wp-block-button__link):focus {
  color: var(--knew-primary);
}

.single .entry-content .wp-block-avatar img {
  margin: 0;
}

.wp-block-navigation .wp-block-page-list {
  margin: 0;
}

.content-area .knew-entry .wp-block-navigation:where(:not([class*=has-text-decoration])) a,
.wp-block-navigation:where(:not([class*=has-text-decoration])) a {
  text-decoration: none;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  list-style: none;
  margin: 0;
}

.wp-block-navigation .wp-block-page-list > .wp-block-navigation-item:not(:first-child) {
  margin-left: 1rem;
}

.wp-block-file {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.wp-block-file a:not(.wp-block-file__button) {
  font-weight: 700;
}

#page #main .wp-block-cover .wp-block-cover-text a,
#page #main :where(.wp-block-cover-image:not(.has-text-color)),
#page #main :where(.wp-block-cover:not(.has-text-color)) {
  color: #fff;
}

.post-category a:hover,
.post-category a:focus {
  text-decoration: underline;
}

.wp-block-categories-dropdown.wp-block-categories {
  margin-top: 16px;
}