/*
Theme Name: ParticipaEc by KINTI STUDIO
Theme URI: https://participa.ec/
Update URI: https://kintistudio.ec/products/participaec/
Author: KINTI STUDIO
Author URI: https://kintistudio.ec/
Description: Tema institucional ligero, accesible y sin dependencias de pago, desarrollado por KINTI STUDIO para Participa.ec.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: participaec
Tags: accessibility-ready, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --pec-blue: #5770d3;
  --pec-blue-dark: #1e1e42;
  --pec-footer: #363648;
  --pec-white: #ffffff;
  --pec-text: #1e1e42;
  --pec-muted: #f4f6ff;
  --pec-content: 1200px;
  --pec-radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--pec-text);
  background: var(--pec-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--pec-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover, a:focus { color: var(--pec-blue-dark); }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #ffcf4a;
  outline-offset: 3px;
}
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  left: 12px;
  top: 12px;
  width: auto;
  z-index: 100000;
  padding: 10px 14px;
  background: #fff;
  color: #111;
}

.pec-header {
  position: relative;
  z-index: 100;
  min-height: 114px;
  background: var(--pec-blue);
  color: var(--pec-white);
}
.pec-header__inner {
  width: min(calc(100% - 48px), var(--pec-content));
  min-height: 114px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.pec-brand,
.pec-header .custom-logo-link { display: inline-flex; align-items: center; flex: 0 0 auto; }
.pec-brand img,
.pec-header .custom-logo-link img { display: block; width: 70px; height: 78px; object-fit: contain; }
.pec-nav { margin-left: auto; }
.pec-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.pec-nav li { margin: 0; }
.pec-nav a {
  position: relative;
  display: block;
  padding: 12px 0;
  color: var(--pec-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}
.pec-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.pec-nav a:hover::after,
.pec-nav a:focus::after,
.pec-nav .current-menu-item > a::after { transform: scaleX(1); }
.pec-mobile-contact { display: none; }
.pec-contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 26px;
  border-radius: var(--pec-radius);
  background: var(--pec-blue-dark);
  color: var(--pec-white);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.pec-contact:hover, .pec-contact:focus { color: #fff; background: #11112d; transform: translateY(-1px); }
.pec-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.pec-menu-toggle svg { display: block; width: 30px; height: 30px; fill: currentColor; }

.pec-main { min-height: 48vh; overflow: clip; }
.pec-entry-content :where(h1, h2, h3) { text-wrap: balance; }
.pec-entry-content :where(p, li) { text-wrap: pretty; }
.pec-entry-content :where(.wp-block-button__link, .kb-button, .elementor-button, input[type="submit"], button[type="submit"]) {
  min-height: 48px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.pec-entry-content :where(.wp-block-button__link, .kb-button, .elementor-button, input[type="submit"], button[type="submit"]):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30,30,66,.16);
}
.pec-entry-content :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 48px;
  max-width: 100%;
  border: 1px solid #c7cce0;
  border-radius: 6px;
  background: #fff;
  color: var(--pec-text);
}
.pec-entry-content :where(input, select, textarea):focus {
  border-color: var(--pec-blue);
  box-shadow: 0 0 0 3px rgba(87,112,211,.18);
}
.home .kb-row-layout-id63_e81d9c-72 { background-image: url("assets/images/hero-participaec.webp") !important; }
.home .kb-row-layout-id63_e81d9c-72 h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem) !important; line-height: 1.05 !important; }
.pec-entry-content { width: 100%; }
.pec-entry-content::after { content: ""; display: table; clear: both; }
.pec-entry-content > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table, figure, form):not(.alignwide):not(.alignfull) {
  width: min(calc(100% - 48px), var(--pec-content));
  margin-right: auto;
  margin-left: auto;
}
.pec-entry-content > .alignwide { width: min(calc(100% - 48px), 1320px); margin-right: auto; margin-left: auto; }
.pec-entry-content > .alignfull { width: 100%; max-width: none; margin-right: 0; margin-left: 0; }
.pec-standard { width: min(calc(100% - 48px), var(--pec-content)); margin: 54px auto 72px; }
.pec-standard h1 { margin: 0 0 24px; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; }
.pec-post-meta { margin-top: -12px; margin-bottom: 30px; color: #666; font-size: .9rem; }
.pec-pagination { width: min(calc(100% - 48px), var(--pec-content)); margin: 30px auto 70px; }
.pec-card { margin-bottom: 28px; padding: 28px; border: 1px solid #e4e7f2; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(30,30,66,.06); }

.pec-footer { padding: 58px 0 24px; background: var(--pec-footer); color: var(--pec-white); }
.pec-footer__grid {
  width: min(calc(100% - 48px), var(--pec-content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 56px;
}
.pec-footer h2, .pec-footer h3 { margin: 0 0 14px; color: #fff; line-height: 1.15; }
.pec-footer h2 { font-size: 28px; }
.pec-footer h3 { font-size: 17px; letter-spacing: .05em; text-transform: uppercase; }
.pec-footer p { margin: 0 0 14px; }
.pec-footer ul { margin: 0; padding: 0; list-style: none; }
.pec-footer li { margin: 0 0 8px; }
.pec-footer a { color: #fff; text-decoration: none; }
.pec-footer a:hover, .pec-footer a:focus { color: #dce2ff; text-decoration: underline; }
.pec-footer__tagline { font-size: 18px; font-weight: 700; text-transform: uppercase; }
.pec-footer__bottom {
  width: min(calc(100% - 48px), var(--pec-content));
  margin: 42px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.2);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .pec-nav ul { gap: 16px; }
  .pec-nav a, .pec-contact { font-size: 14px; }
  .pec-contact { padding-inline: 18px; }
}
@media (max-width: 900px) {
  .pec-header, .pec-header__inner { min-height: 90px; }
  .pec-header__inner { width: min(calc(100% - 32px), var(--pec-content)); flex-wrap: wrap; gap: 0; }
  .pec-brand img,
  .pec-header .custom-logo-link img { width: 56px; height: 66px; }
  .pec-menu-toggle { display: inline-flex; }
  .pec-contact { margin-left: 14px; min-height: 44px; }
  .pec-nav {
    display: none;
    order: 4;
    width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 12px 20px 24px;
    background: var(--pec-blue);
  }
  .pec-header.is-open .pec-nav { display: block; }
  .pec-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .pec-nav a { padding: 11px 6px; font-size: 16px; }
  .pec-nav a::after { display: none; }
  .pec-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .pec-footer__intro { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .pec-contact { display: inline-flex; margin-left: auto; padding-inline: 14px; }
  .pec-footer__grid { grid-template-columns: 1fr; }
  .pec-footer__intro { grid-column: auto; }
  .pec-footer__bottom { flex-direction: column; gap: 8px; }
  .pec-entry-content > :where(p, h1, h2, h3, h4, h5, h6, ul, ol, blockquote, table, figure, form):not(.alignwide):not(.alignfull),
  .pec-entry-content > .alignwide,
  .pec-standard { width: min(calc(100% - 32px), var(--pec-content)); }
  .home .kb-row-layout-id63_e81d9c-72 { min-height: 620px; background-position: 54% center !important; }
  .home .kb-row-layout-id63_e81d9c-72 h1 { font-size: clamp(2.25rem, 12vw, 3.45rem) !important; }
}

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