/* Kúvi — estilos del sitio */
:root {
  --sqs-site-gutter: 4vw;
  --sqs-mobile-site-gutter: 6vw;
  --sqs-site-max-width: 1500px;
  --accent: #febc30;
  --black: #000;
  --white: #fff;
  --font-heading: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  /* escala tipográfica fluida: tamaño = (n - 1) * k + 1rem */
  --k: calc(1.2 * min(1vw, 14px));
  --logo-h: 50px;
  --header-pad: 3vw;
  --header-h: calc(var(--header-pad) * 2 + var(--logo-h));
}
@media (max-width: 767px) {
  :root {
    --k: calc(0.012 * min(100vh, 900px));
    --logo-h: 35px;
    --header-pad: 6.5vw;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 1em 0 0.5em;
  letter-spacing: -0.018em;
}
h1 { font-size: calc(3.5 * var(--k) + 1rem); line-height: 1.118; }
h2 { font-size: calc(1.8 * var(--k) + 1rem); line-height: 1.2064; }
h3 { font-size: calc(1.2 * var(--k) + 1rem); line-height: 1.2376; }
h4 { font-size: calc(0.2 * var(--k) + 1rem); line-height: 1.29; }
p { margin: 1em 0; }
strong { font-weight: 700; }

.sqsrte-large { font-size: calc(0.4 * var(--k) + 1rem); }
.sqsrte-small { font-size: calc(-0.1 * var(--k) + 1rem); }
.sqsrte-text-color--white { color: var(--white); }
.sqsrte-text-color--black { color: var(--black); }
.sqsrte-text-highlight {
  background: var(--accent);
  border-radius: 0.6em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.rich { width: 100%; overflow-wrap: break-word; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.rich a:hover { opacity: 0.7; }
.rich ol, .rich ul { padding-left: 40px; margin: 1em 0; }
.rich li > p { margin: 0; }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--black);
  font-family: var(--font-heading); font-weight: 700; text-transform: uppercase;
  padding: 1em 2.4em; border-radius: 20px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; color: var(--white); }
.header--accent { color: var(--accent); }
.header--white { color: var(--black); }
.header__shadow { position: absolute; inset: 0; box-shadow: 0 12px 12px 0 #000; opacity: 0.15; pointer-events: none; }
.header__inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--header-pad) var(--sqs-site-gutter);
}
.header__logo { display: block; line-height: 0; }
.header__logo img { display: block; height: var(--logo-h); width: auto; }
.header__nav { display: flex; align-items: center; }
.header__nav a {
  margin-left: 1.5vw; text-decoration: none; line-height: 1.8;
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 calc(100% - 1.6px);
}
.header__nav a:hover { opacity: 0.7; }
.header__nav a[aria-current="page"] { background-image: linear-gradient(currentColor, currentColor); }

.burger {
  display: none; position: relative; width: 35px; height: 35px; padding: 0;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.menu-open .burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--black);
  opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-menu[hidden] { display: none; }
.header--white .mobile-menu { background: var(--white); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mobile-menu a { font-size: 8.5vw; line-height: 1.3; margin: 3vw 5vw; text-decoration: none; }
.mobile-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

@media (max-width: 767px) {
  .header__inner { padding: var(--header-pad) var(--sqs-mobile-site-gutter); justify-content: center; }
  .header__nav { display: none; }
  .burger { display: block; position: absolute; right: var(--sqs-mobile-site-gutter); top: 50%; transform: translateY(-50%); }
  .menu-open .header { position: fixed; }
}

/* ---------- Secciones ---------- */
.page-section {
  --pad: 3.3vmax; --mh: 33vh;
  position: relative; display: flex; align-items: center;
  min-height: var(--mh);
}
.section-height--medium { --pad: 6.6vmax; --mh: 66vh; }
.section-height--large { --pad: 10vmax; --mh: 100vh; }
.page-section.is-first { padding-top: var(--header-h); }
.page-section.background-width--inset { padding: var(--sqs-site-gutter); }
.page-section.has-divider { padding-bottom: var(--divider); }
.theme-black, .theme-bright-inverse { color: var(--white); background: var(--black); }
.theme-bright-inverse h1, .theme-bright-inverse h2, .theme-bright-inverse h3, .theme-bright-inverse h4 { color: var(--accent); }

.section-bg { position: absolute; inset: 0; overflow: hidden; }
.section-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-bg__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.theme-bright-inverse .section-bg__overlay { background: #000; }

.section-divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: calc(var(--divider) + 1px); fill: var(--white); z-index: 2; }
.has-stroke::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); z-index: 2; }

.content-wrapper { position: relative; z-index: 1; width: 100%; padding: var(--pad) 0; }

/* ---------- Retícula (24 columnas desktop / 8 móvil) ---------- */
.fluid-engine { width: 100%; }
.fe-block { position: relative; display: flex; flex-direction: column; min-width: 0; }
.fe-block > .sqs-block { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.img-fill { position: relative; flex: 1 1 auto; overflow: hidden; min-height: 0; }
.img-fill img, .img-fill a { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.btn {
  display: flex; align-items: center; justify-content: center; flex: 1 1 auto;
  width: 100%; padding: 0 1em; border-radius: 20px; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 700; line-height: 1.2;
  text-align: center; text-decoration: none;
  transition: opacity 0.1s linear;
}
.btn:hover { opacity: 0.8; }
.btn--primary { background: var(--accent); color: var(--black); font-size: 1rem; letter-spacing: 0.02em; text-transform: uppercase; }
.btn--secondary, .btn--tertiary { background: transparent; color: var(--black); border: 2px solid var(--black); font-size: calc(0.25 * var(--k) + 1rem); }

.block-rule hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--black); }

.social { display: flex; gap: 12px; }
.fe-block > .block-social { align-items: center; }
.social a { display: block; width: 20px; height: 20px; }
.social a:hover { opacity: 0.7; }
.social svg { display: block; width: 100%; height: 100%; fill: currentColor; }

/* ---------- Acordeón ---------- */
.accordion { list-style: none; margin: 0; padding: 0; width: 100%; }
.acc-item { border-bottom: 1px solid rgba(0, 0, 0, 0.07); }
.acc-item:first-child { border-top: 1px solid rgba(0, 0, 0, 0.07); }
.acc-item:last-child { border-bottom: 0; }
.acc-title { margin: 0; }
.acc-title button {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: 30px 0; margin: 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.acc-icon { position: relative; flex: 0 0 14px; width: 14px; height: 14px; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: currentColor; transition: transform 0.3s ease, opacity 0.3s ease; }
.acc-icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.acc-icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }
.is-open .acc-icon::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-desc { overflow: hidden; }
.acc-desc p { margin: 0; padding: 0 15.4% 50px; }

/* ---------- Lista de iniciativas ---------- */
.user-items-list-section { display: block; min-height: 66vh; }
.user-items-list { width: 100%; padding: 3.3vmax var(--sqs-site-gutter); }
.user-items-list__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; }
.list-item__media { aspect-ratio: 3 / 2; overflow: hidden; }
.list-item__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.list-item__content { text-align: center; }
.list-item__title { font-size: calc(0.6 * var(--k) + 1rem); line-height: 1.2064; max-width: 75%; margin: 6% auto 0; }
.list-item__desc { max-width: 75%; margin: 6% auto 0; }

@media (max-width: 767px) {
  .user-items-list { padding-left: var(--sqs-mobile-site-gutter); padding-right: var(--sqs-mobile-site-gutter); }
  .user-items-list__grid { grid-template-columns: 1fr; }
  .list-item__title, .list-item__desc { max-width: 100%; }
  .acc-desc p { padding: 0 0 30px; }
  .acc-title button { padding: 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
