/*
Theme Name: Qhubo Say
Theme URI: https://example.com/qhubo-say
Author: Equipo Qhubo
Author URI: https://example.com
Description: Tema WordPress basado en el mockup Q'hubo. El contenido se maneja con shortcodes.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qhubo-say
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap");

:root {
  --qh-yellow: #ffe600;
  --qh-red: #e60033;
  --qh-blue: #0d6ecf;
  --qh-gray: #1f1f1f;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--qh-gray);
  background: #fff;
}

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

.qh-container {
  width: min(1200px, 94vw);
  margin: 0 auto;
}

.qh-header {
  background: var(--qh-yellow);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 82px;
  transition: padding 0.2s ease, box-shadow 0.2s ease, min-height 0.2s ease;
}

.qh-topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.qh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.qh-header--scrolled {
  min-height: 58px;
}

.qh-header--scrolled .qh-centered {
  display: none;
}

.qh-header--scrolled .qh-topbar {
  padding: 6px 0;
  gap: 6px;
}

.qh-header--scrolled .qh-menu-row {
  gap: 10px;
}

.qh-logo img {
  height: 56px;
  width: auto;
}

.qh-logo-text {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: var(--qh-red);
}

.qh-menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.qh-nav {
  flex: 1;
}

.qh-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  font-weight: 600;
  text-transform: uppercase;
  justify-content: center;
}

.qh-menu li {
  position: relative;
}

.qh-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 20px;
  color: #0b0b0b;
  transition: background 0.2s, color 0.2s;
  font-size: 15px;
}

.qh-menu a .fa-solid {
  font-size: 14px;
}

.qh-menu a:hover,
.qh-menu .current-menu-item > a,
.qh-menu .current_page_item > a {
  background: var(--qh-blue);
  color: #fff;
}

.qh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qh-actions .qh-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qh-actions .qh-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qh-blue);
  font-size: 16px;
  transition: transform 0.15s, background 0.15s;
}

.qh-actions .qh-social a:hover {
  transform: translateY(-1px);
  background: #fefefe;
}

.qh-search-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.qh-search-form input[type="search"] {
  width: 200px;
  padding: 8px 12px 8px 12px;
  border: 0;
  outline: none;
  font-size: 14px;
}

.qh-search-form button {
  background: var(--qh-blue);
  color: #fff;
  border: 0;
  padding: 0 12px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qh-search-form .fa-magnifying-glass {
  font-size: 14px;
}

.qh-menu-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.qh-menu-row .qh-nav {
  display: flex;
  justify-content: center;
}

.qh-menu-row {
  justify-content: center;
}

.qh-centered {
  text-align: center;
}

main.qh-main {
  padding: 28px 0 40px;
}

.qh-grid {
  display: grid;
  gap: 16px;
}

.qh-grid--cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.qh-grid--cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.qh-grid--cols-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.qh-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.qh-card a {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qh-card__thumb {
  padding-top: 60%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.qh-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.35) 100%);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.qh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.qh-card:hover .qh-card__thumb::after {
  opacity: 1;
}

.qh-card:hover .qh-card__thumb {
  transform: scale(1.02);
}

.qh-card__thumb {
  transition: transform 0.18s ease;
}

.qh-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qh-card__category {
  display: inline-block;
  background: #f2f2f2;
  color: var(--qh-red);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  width: fit-content;
}

.qh-card__title {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.3;
}

.qh-card__meta {
  font-size: 13px;
  color: #666;
}

.qh-card--featured {
  grid-column: span 2;
}

.qh-card--featured .qh-card__thumb {
  padding-top: 68%;
}

.qh-card--mag-large .qh-card__thumb {
  padding-top: 70%;
}

.qh-card--mag-side .qh-card__thumb {
  padding-top: 56%;
}

.qh-grid-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.qh-grid-featured__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.qh-archive__header h1 {
  margin: 0 0 8px;
  font-family: "Montserrat", Arial, sans-serif;
}

.qh-archive__description {
  margin: 0 0 18px;
  color: #555;
}

.qh-pagination {
  margin-top: 18px;
}

.qh-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  margin-right: 6px;
  border-radius: 6px;
}

.qh-pagination .current {
  background: var(--qh-blue);
  color: #fff;
  border-color: var(--qh-blue);
}

.qh-footer {
  background: var(--qh-yellow);
  padding: 32px 0 12px;
  margin-top: 24px;
  color: #000;
}

.qh-footer .qh-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 26px;
  align-items: start;
}

.qh-footer .qh-logo img {
  height: 48px;
}

.qh-footer p {
  margin: 10px 0;
  line-height: 1.6;
}

.qh-footer-contact {
  text-align: right;
}

.qh-footer-contact h4 {
  margin: 0 0 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
}

.qh-footer-contact a {
  color: inherit;
  font-weight: 600;
}

.qh-footer-bottom {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

.qh-footer-social {
  display: flex;
  gap: 10px;
}

.qh-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  transition: background 0.2s;
}

.qh-footer-social a:hover {
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 1024px) {
  .qh-menu {
    gap: 8px;
  }

  .qh-actions {
    gap: 6px;
  }
}

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

  .qh-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .qh-nav {
    width: 100%;
  }

  .qh-menu {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .qh-actions {
    width: 100%;
    justify-content: space-between;
  }

  .qh-search-form input[type="search"] {
    width: 100%;
  }

  .qh-footer .qh-footer-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .qh-footer-contact {
    text-align: left;
  }

  .qh-grid-featured {
    grid-template-columns: 1fr;
  }

  .qh-card--featured {
    grid-column: span 1;
  }

.qh-grid-mag {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

.qh-grid-mag__main,
.qh-grid-mag__side {
  display: grid;
  gap: 14px;
}

.qh-grid-mag__side {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.qh-grid--tiles {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.qh-card--wide {
  grid-column: span 2;
}

.qh-rechisme {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 18px;
}

.qh-rechisme__col {
  display: grid;
  gap: 14px;
}

.qh-rechisme__col--left {
  grid-auto-rows: 1fr;
}

.qh-rechisme__col--right {
  grid-auto-rows: minmax(120px, auto);
}

.qh-card--rech-left .qh-card__thumb {
  padding-top: 70%;
}

.qh-card--rech-hero {
  height: 100%;
}

.qh-card--rech-hero .qh-card__thumb {
  padding-top: 80%;
}

.qh-card--rech-hero .qh-card__body {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #fff;
  position: relative;
  margin-top: -110px;
  padding: 18px 16px;
}

.qh-card--rech-hero .qh-card__category {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.qh-card--rech-hero .qh-card__title {
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
}

.qh-card--rech-hero .qh-card__meta {
  color: #e8e8e8;
}

.qh-card--rech-right {
  flex-direction: row;
  align-items: stretch;
}

.qh-card--rech-right .qh-card__thumb {
  width: 40%;
  padding-top: 0;
  min-height: 120px;
}

.qh-card--rech-right .qh-card__body {
  width: 60%;
}

.qh-card--rech-right .qh-card__title {
  font-size: 16px;
}

.qh-card--rech-right .qh-card__category {
  font-size: 11px;
}

@media (max-width: 1024px) {
  .qh-rechisme {
    grid-template-columns: 1fr;
  }

  .qh-card--rech-hero .qh-card__thumb {
    padding-top: 65%;
  }

  .qh-card--rech-hero .qh-card__body {
    margin-top: -90px;
  }

  .qh-rechisme__col--right {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .qh-card--rech-right {
    flex-direction: column;
  }

  .qh-card--rech-right .qh-card__thumb,
  .qh-card--rech-right .qh-card__body {
    width: 100%;
  }
}
}


