@charset "UTF-8";

/*
Theme Name: Paradigma Comic 2026
Theme URI: https://paradigmacomic.cl/
Description: 2026 visual refresh for Paradigma Comic. Child theme of Twenty Twenty-One.
Author: Paradigma Comic
Template: twentytwentyone
Version: 0.1.0
Text Domain: paradigma-2026
*/

:root {
  --paradigma-yellow: #f4e747;
  --paradigma-red: #ff3b46;
  --paradigma-blue: #075dff;
  --paradigma-green: #00d596;
  --paradigma-purple: #9b4ff5;
  --paradigma-orange: #ff955f;
  --paradigma-black: #080909;
  --paradigma-white: #fff;
  --global--color-background: #050505;
  --global--color-primary: #fff;
  --global--color-secondary: #fff;
  --global--color-border: rgba(255, 255, 255, 0.88);
  --global--spacing-vertical: 20px;
  --responsive--aligndefault-width: min(calc(100vw - 32px), 760px);
  --responsive--alignwide-width: min(calc(100vw - 32px), 860px);
  --branding--logo--max-width: min(560px, 72vw);
  --branding--logo--max-height: 190px;
  --branding--logo--max-width-mobile: min(430px, 84vw);
  --branding--logo--max-height-mobile: 145px;
  --primary-nav--font-size: 1rem;
  --primary-nav--font-size-mobile: 0.78rem;
  --primary-nav--font-weight: 800;
  --home-card-icon-size: 104px;
  --home-card-icon-offset-x: 15px;
  --home-card-text-padding-x: 28px;
  --home-card-text-padding-y: 18px;
}

html,
body {
  background-color: #050505;
}

body.custom-background,
body {
  position: relative;
  background-color: #050505 !important;
  background-size: cover !important;
  background-position: center top !important;
  background-attachment: fixed !important;
  color: var(--paradigma-white);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at center 15%,
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.72) 70%
    ),
    rgba(0, 0, 0, 0);
}

.site {
  position: relative;
  z-index: 1;
  background: transparent;
  min-height: 100vh;
}

.site-header,
.site-main,
.widget-area,
.site-footer {
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(34px, 7vh, 82px);
  padding-bottom: 0;
  max-width: var(--responsive--alignwide-width);
}

.site-branding {
  margin: 0;
  width: 100%;
  text-align: center;
}

.site-logo {
  margin: 0 auto;
  text-align: center;
}

.site-header > .site-logo {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-logo .custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--branding--logo--max-width-mobile);
  max-height: var(--branding--logo--max-height-mobile);
  margin: 0 auto;
}

.site-title,
.site-description {
  display: none;
}

/* Icon navigation */
.primary-navigation {
  position: relative;
  width: 100%;
  margin-top: clamp(22px, 3.4vh, 36px);
  color: #fff;
}

.primary-navigation > .primary-menu-container {
  background: transparent;
}

.primary-navigation > div > .menu-wrapper {
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  gap: clamp(10px, 2.2vw, 32px);
  align-items: start;
  justify-content: center;
  padding: 0;
  margin: 0 auto;
  max-width: 780px;
  list-style: none;
}

.primary-navigation > div > .menu-wrapper li,
.primary-navigation .primary-menu-container > ul > .menu-item {
  border: 0;
  width: auto;
  display: block;
  text-align: center;
}

.primary-navigation .primary-menu-container {
  margin-left: 0;
  margin-right: 0;
  text-transform: uppercase;
}

.primary-navigation a,
.primary-navigation a:link,
.primary-navigation a:visited,
.primary-navigation a:hover,
.primary-navigation a:focus {
  color: #fff;
  font-family: var(--global--font-primary);
  font-weight: 900;
  font-size: var(--primary-nav--font-size-mobile);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0;
  outline-offset: 6px;
}

.primary-navigation a::before {
  content: "";
  display: block;
  width: clamp(68px, 8.3vw, 86px);
  aspect-ratio: 1;
  margin: 0 auto 8px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform-origin: center;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 220ms ease;
  will-change: transform, filter;
}

.primary-navigation a:hover::before,
.primary-navigation a:focus::before {
  transform: perspective(480px) translateY(-7px) scale(1.1) rotateX(8deg);
  filter:
    brightness(1.2)
    saturate(1.15)
    drop-shadow(0 12px 8px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 14px currentColor);
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.65),
    0 0 12px currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .primary-navigation a::before {
    transition: filter 120ms ease;
  }

  .primary-navigation a:hover::before,
  .primary-navigation a:focus::before {
    transform: none;
  }
}

.primary-navigation .current-menu-item > a:first-child,
.primary-navigation .current_page_item > a:first-child {
  text-decoration: none;
}

.primary-navigation .menu-wrapper > li:nth-child(1) > a,
.primary-navigation .menu-inicio > a {
  color: var(--paradigma-yellow);
}
.primary-navigation .menu-wrapper > li:nth-child(1) > a::before,
.primary-navigation .menu-inicio > a::before {
  background-image: url("assets/images/icon-home.png");
}

.primary-navigation .menu-wrapper > li:nth-child(2) > a,
.primary-navigation .menu-investigacion > a {
  color: var(--paradigma-red);
}
.primary-navigation .menu-wrapper > li:nth-child(2) > a::before,
.primary-navigation .menu-investigacion > a::before {
  background-image: url("assets/images/icon-investigacion.png");
}

.primary-navigation .menu-wrapper > li:nth-child(3) > a,
.primary-navigation .menu-descargas > a {
  color: var(--paradigma-purple);
}
.primary-navigation .menu-wrapper > li:nth-child(3) > a::before,
.primary-navigation .menu-descargas > a::before {
  background-image: url("assets/images/icon-descargas.png");
}

.primary-navigation .menu-wrapper > li:nth-child(4) > a,
.primary-navigation .menu-youtube > a {
  color: var(--paradigma-orange);
}
.primary-navigation .menu-wrapper > li:nth-child(4) > a::before,
.primary-navigation .menu-youtube > a::before {
  background-image: url("assets/images/icon-youtube.png");
}

.primary-navigation .menu-wrapper > li:nth-child(5) > a,
.primary-navigation .menu-contacto > a {
  color: var(--paradigma-green);
}
.primary-navigation .menu-wrapper > li:nth-child(5) > a::before,
.primary-navigation .menu-contacto > a::before {
  background-image: url("assets/images/icon-contacto.png");
}

/* Compact dropdowns: the parent theme's submenu can become a large black panel
   with icon-sized items; keep dropdowns small and text-only. */
.primary-navigation .menu-wrapper > li > .sub-menu,
.primary-navigation .primary-menu-container > ul > .menu-item > .sub-menu {
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  text-align: left;
}

.primary-navigation .menu-wrapper > li > .sub-menu::before,
.primary-navigation
  .primary-menu-container
  > ul
  > .menu-item
  > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.primary-navigation .sub-menu li,
.primary-navigation > div > .menu-wrapper .sub-menu li,
.primary-navigation > div > .menu-wrapper > li > .sub-menu li,
.primary-navigation
  .primary-menu-container
  > ul
  > .menu-item
  .sub-menu
  .menu-item {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
}

.primary-navigation .sub-menu .menu-item > a,
.primary-navigation .primary-menu-container .sub-menu .menu-item > a {
  padding: 9px 16px;
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  white-space: normal;
  color: #fff;
}

.primary-navigation .sub-menu .menu-item > a::before,
.primary-navigation .primary-menu-container .sub-menu .menu-item > a::before {
  display: none;
  content: none;
}

.primary-navigation .sub-menu .menu-item > a:hover,
.primary-navigation .sub-menu .menu-item > a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.menu-button-container {
  display: none;
}

/* Main content */
.site-main {
  padding-top: clamp(24px, 4vh, 42px);
  padding-bottom: 30px;
}

.site-main > * {
  margin-top: 0;
  margin-bottom: 0;
}

.home .entry-content,
.front-page .entry-content,
.page .entry-content {
  max-width: 760px;
  margin-top: 0;
}

.entry-content a {
  color: inherit;
}

.entry-content > * {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Homepage cards: icon column + bordered text panel in a two-column grid. */
.home .entry-content > h4,
.front-page .entry-content > h4,
.home .entry-content li,
.front-page .entry-content li,
.home .wp-block-latest-posts > li,
.front-page .wp-block-latest-posts > li,
.home .wp-block-categories-list > li,
.front-page .wp-block-categories-list > li {
  display: grid;
  grid-template-columns: var(--home-card-icon-size) minmax(0, 1fr);
  align-items: stretch;
  margin: 10px auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left !important;
  overflow: visible;
}

.home .entry-content > h4::before,
.front-page .entry-content > h4::before,
.home .entry-content li::before,
.front-page .entry-content li::before,
.home .wp-block-latest-posts > li::before,
.front-page .wp-block-latest-posts > li::before,
.home .wp-block-categories-list > li::before,
.front-page .wp-block-categories-list > li::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  align-self: stretch;
  min-height: 78px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  border-radius: 13px;
  transform: translateX(var(--home-card-icon-offset-x));
}

.home .entry-content > h4 > *,
.front-page .entry-content > h4 > *,
.home .entry-content li > a,
.front-page .entry-content li > a,
.home .wp-block-latest-posts > li > a,
.front-page .wp-block-latest-posts > li > a,
.home .wp-block-categories-list > li > a,
.front-page .wp-block-categories-list > li > a {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  margin: 0;
  box-sizing: border-box;
  padding: var(--home-card-text-padding-y) var(--home-card-text-padding-x);
  padding-left: calc(
    var(--home-card-text-padding-x) + var(--home-card-icon-offset-x)
  );
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left: 0;
  border-radius: 0 13px 13px 0;
  background: rgba(4, 6, 6, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.75),
    0 3px 18px rgba(0, 0, 0, 0.28);
}

.home .entry-content > h4::after,
.front-page .entry-content > h4::after,
.home .entry-content li::after,
.front-page .entry-content li::after,
.home .wp-block-latest-posts > li::after,
.front-page .wp-block-latest-posts > li::after,
.home .wp-block-categories-list > li::after,
.front-page .wp-block-categories-list > li::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: stretch;
  z-index: 2;
  margin: 0 var(--home-card-text-padding-x) 16px;
  margin-left: calc(
    var(--home-card-text-padding-x) + var(--home-card-icon-offset-x)
  );
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.home .entry-content > h4 a,
.front-page .entry-content > h4 a {
  font-family: var(--global--font-primary);
  font-size: clamp(1rem, 2vw, 1.33rem);
  font-weight: 900;
  line-height: 1.24;
  color: #fff !important;
  text-decoration: none !important;
  margin: 0;
}

.home .entry-content > h4:nth-of-type(1)::before,
.front-page .entry-content > h4:nth-of-type(1)::before {
  background-image: url("assets/images/icono_1.png");
}

.home .entry-content > h4:nth-of-type(2)::before,
.front-page .entry-content > h4:nth-of-type(2)::before {
  background-image: url("assets/images/icono_2.png");
}

.home .entry-content > h4:nth-of-type(3)::before,
.front-page .entry-content > h4:nth-of-type(3)::before {
  background-image: url("assets/images/icono_3.png");
}

.home .entry-content > h4:nth-of-type(4)::before,
.front-page .entry-content > h4:nth-of-type(4)::before {
  background-image: url("assets/images/icono_4.png");
}

.home .entry-content > h4 + hr,
.front-page .entry-content > h4 + hr {
  display: none;
}

.home .entry-content ul,
.home .entry-content ol,
.front-page .entry-content ul,
.front-page .entry-content ol {
  list-style: none;
  padding-left: 0;
}

.home .entry-content li > a,
.front-page .entry-content li > a,
.home .wp-block-latest-posts > li > a,
.front-page .wp-block-latest-posts > li > a,
.home .wp-block-categories-list > li > a,
.front-page .wp-block-categories-list > li > a {
  font-family: var(--global--font-primary);
  font-size: clamp(1rem, 2vw, 1.33rem);
  font-weight: 900;
  line-height: 1.24;
  color: #fff;
  text-decoration: none;
}

.home .entry-content li:nth-child(1)::before,
.front-page .entry-content li:nth-child(1)::before,
.home .wp-block-latest-posts > li:nth-child(1)::before,
.front-page .wp-block-latest-posts > li:nth-child(1)::before,
.home .wp-block-categories-list > li:nth-child(1)::before,
.front-page .wp-block-categories-list > li:nth-child(1)::before {
  background-image: url("assets/images/icono_1.png");
}

.home .entry-content li:nth-child(2)::before,
.front-page .entry-content li:nth-child(2)::before,
.home .wp-block-latest-posts > li:nth-child(2)::before,
.front-page .wp-block-latest-posts > li:nth-child(2)::before,
.home .wp-block-categories-list > li:nth-child(2)::before,
.front-page .wp-block-categories-list > li:nth-child(2)::before {
  background-image: url("assets/images/icono_2.png");
}

.home .entry-content li:nth-child(3)::before,
.front-page .entry-content li:nth-child(3)::before,
.home .wp-block-latest-posts > li:nth-child(3)::before,
.front-page .wp-block-latest-posts > li:nth-child(3)::before,
.home .wp-block-categories-list > li:nth-child(3)::before,
.front-page .wp-block-categories-list > li:nth-child(3)::before {
  background-image: url("assets/images/icono_3.png");
}

.home .entry-content li:nth-child(4)::before,
.front-page .entry-content li:nth-child(4)::before,
.home .wp-block-latest-posts > li:nth-child(4)::before,
.front-page .wp-block-latest-posts > li:nth-child(4)::before,
.home .wp-block-categories-list > li:nth-child(4)::before,
.front-page .wp-block-categories-list > li:nth-child(4)::before {
  background-image: url("assets/images/icono_4.png");
}

/* Footer is not part of the 2026 mockup; keep it quiet and below the fold. */
.wp-block-social-links .wp-social-link,
.wp-block-social-links .wp-social-link:hover,
.wp-block-social-links .wp-social-link:focus,
.wp-block-social-links .wp-social-link a {
  background: transparent !important;
  color: #fff !important;
}

.wp-social-link-twitter svg {
  display: none;
}

.wp-social-link-twitter a::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: url("assets/x_logo.svg") center / contain no-repeat;
}

.wp-block-social-link .paradigma-social-icon {
  display: block;
  width: 1.35em;
  height: 1.35em;
  object-fit: contain;
}

.home .widget-area,
.front-page .widget-area,
.home .site-footer,
.front-page .site-footer {
  margin-top: 16px;
  padding-top: 0;
  padding-bottom: 12px;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media only screen and (min-width: 482px) {
  .site-logo .custom-logo {
    max-width: var(--branding--logo--max-width);
    max-height: var(--branding--logo--max-height);
  }

  .primary-navigation a {
    font-size: var(--primary-nav--font-size);
  }
}

@media only screen and (max-width: 720px) {
  .site-header {
    padding-top: 28px;
  }

  .primary-navigation > div > .menu-wrapper {
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    gap: 8px;
  }

  .primary-navigation a {
    font-size: 0.64rem;
  }

  .primary-navigation a::before {
    width: clamp(48px, 13vw, 64px);
    margin-bottom: 6px;
  }

  .home .entry-content > h4,
  .front-page .entry-content > h4,
  .home .entry-content li,
  .front-page .entry-content li,
  .home .wp-block-latest-posts > li,
  .front-page .wp-block-latest-posts > li,
  .home .wp-block-categories-list > li,
  .front-page .wp-block-categories-list > li {
    --home-card-icon-size: 82px;
    --home-card-text-padding-x: 16px;
    --home-card-text-padding-y: 14px;
  }

  .home .entry-content > h4::before,
  .front-page .entry-content > h4::before,
  .home .entry-content li::before,
  .front-page .entry-content li::before,
  .home .wp-block-latest-posts > li::before,
  .front-page .wp-block-latest-posts > li::before,
  .home .wp-block-categories-list > li::before,
  .front-page .wp-block-categories-list > li::before,
  .home .entry-content > h4 > *,
  .front-page .entry-content > h4 > *,
  .home .entry-content li > a,
  .front-page .entry-content li > a,
  .home .wp-block-latest-posts > li > a,
  .front-page .wp-block-latest-posts > li > a,
  .home .wp-block-categories-list > li > a,
  .front-page .wp-block-categories-list > li > a {
    min-height: 70px;
  }

  .home .entry-content > h4::after,
  .front-page .entry-content > h4::after,
  .home .entry-content li::after,
  .front-page .entry-content li::after,
  .home .wp-block-latest-posts > li::after,
  .front-page .wp-block-latest-posts > li::after,
  .home .wp-block-categories-list > li::after,
  .front-page .wp-block-categories-list > li::after {
    margin-bottom: 12px;
  }
}

@media only screen and (max-width: 430px) {
  .primary-navigation > div > .menu-wrapper {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    row-gap: 12px;
  }
}
