/*
Theme Name: CREEMOS 2026
Theme URI: https://creemos.co/
Author: ecommerce friends
Description: Block Theme exclusivo para CREEMOS. Gutenberg nativo, patrones editables, alto rendimiento y preparado para SEO y descubrimiento por IA.
Version: 0.8.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: creemos-2026
*/

:root {
  --creemos-header-height: 82px;
  --creemos-shadow-sm: 0 12px 32px rgba(20,17,27,.08);
  --creemos-shadow-lg: 0 24px 70px rgba(20,17,27,.14);
  --creemos-radius-sm: 14px;
  --creemos-radius-md: 22px;
  --creemos-radius-lg: 32px;
}

html { scroll-behavior: smooth; }
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar .creemos-header { top: 32px; }
a { text-underline-offset: .18em; }
.wp-site-blocks { overflow-x: clip; }
.wp-block-post-content { margin-top: 0; }

/* Accessibility */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--wp--preset--color--cyan);
  outline-offset: 3px;
}
/* Header */
.creemos-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(20,17,27,.08);
  box-shadow: 0 4px 24px rgba(20,17,27,.04);
  backdrop-filter: blur(16px);
}
.creemos-header .wp-block-site-logo img { max-height: 44px; width: auto; }
.creemos-header .wp-block-navigation__container { gap: clamp(.7rem, 1.4vw, 1.35rem); }
.creemos-header .wp-block-navigation-item__content { white-space: nowrap; }
.creemos-header__cta .wp-block-button__link { white-space: nowrap; }
.creemos-nav-join { display: none !important; }

/* Shared editorial utilities */
.creemos-section { position: relative; }
.creemos-eyebrow {
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 800;
}
.creemos-lead { max-width: 760px; }
.creemos-card {
  height: 100%;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease;
}
.creemos-card:hover { transform: translateY(-3px); box-shadow: var(--creemos-shadow-sm); }
.creemos-card--border { border: 1px solid rgba(20,17,27,.10); }
.creemos-card__icon {
  width: 58px;
  height: 58px;
  padding: 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f4f0e7;
  box-sizing: border-box;
}
.creemos-card__icon img { width: 100%; height: 100%; object-fit: contain; }

/* Home hero */
.creemos-hero { overflow: hidden; }
.creemos-hero .wp-block-columns { min-height: clamp(560px, 70vh, 720px); }
.creemos-hero__copy { position: relative; z-index: 2; }
.creemos-hero__copy h1 { max-width: 760px; }
.creemos-hero__media {
  min-height: clamp(420px, 58vw, 650px);
  overflow: hidden;
  box-shadow: var(--creemos-shadow-lg);
}
.creemos-hero__media .wp-block-cover__inner-container {
  align-self: flex-end;
}
.creemos-hero__media-note {
  max-width: 280px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20,17,27,.72);
  backdrop-filter: blur(8px);
}

/* Quote */
.creemos-quote__photo {
  min-height: 520px;
  box-shadow: var(--creemos-shadow-sm);
}
.creemos-quote blockquote { margin: 0; }
.creemos-quote blockquote p { margin-top: 0; }

/* Movement cards */
.creemos-motive-card { min-height: 330px; }
.creemos-motive-card p:last-child { margin-bottom: 0; }

/* Belief / cover */
.creemos-belief { min-height: 600px; }
.creemos-belief__content {
  max-width: 780px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--creemos-radius-lg);
  background: rgba(20,17,27,.70);
  backdrop-filter: blur(10px);
}

/* Team */
.creemos-team-card { overflow: hidden; min-height: 390px; }
.creemos-team-card .wp-block-cover__inner-container { align-self: flex-end; }
.creemos-team-card__copy {
  padding: 20px;
  border-radius: 18px;
  background: rgba(20,17,27,.72);
  backdrop-filter: blur(8px);
}

/* Query cards */
.creemos-news-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(20,17,27,.08);
  box-shadow: 0 10px 32px rgba(20,17,27,.05);
}
.creemos-news-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.creemos-news-card .wp-block-post-title a:hover { color: var(--wp--preset--color--magenta); }

/* Forms */
.creemos-form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--creemos-radius-lg);
  background: #fff;
  box-shadow: var(--creemos-shadow-sm);
}
.creemos-form input,
.creemos-form select,
.creemos-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .9rem 1rem;
  border: 1px solid #d9d4cb;
  border-radius: 16px;
  background: #fff;
  color: #14111b;
  font: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.creemos-form input:focus,
.creemos-form select:focus,
.creemos-form textarea:focus {
  border-color: #24acd3;
  box-shadow: 0 0 0 3px rgba(36,172,211,.13);
  outline: 0;
}
.creemos-form textarea { min-height: 120px; resize: vertical; }
.creemos-form label { display:block; font-weight:700; margin-bottom:.4rem; }
.creemos-form__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.creemos-form__full { grid-column:1/-1; }
.creemos-form__message {
  padding:1rem 1.25rem;
  border-radius:16px;
  margin-bottom:1rem;
  background:#effbd0;
  font-weight:700;
}
.creemos-form__legal { font-size: .88rem; line-height: 1.45; }
.creemos-form__honeypot { position:absolute !important; left:-9999px !important; height:1px !important; overflow:hidden !important; }

/* FAQ */
.creemos-faq { display: grid; gap: 12px; }
.creemos-faq__item {
  border: 1px solid rgba(20,17,27,.10);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.creemos-faq__item summary {
  cursor: pointer;
  padding: 18px 22px;
  list-style: none;
}
.creemos-faq__item summary::-webkit-details-marker { display:none; }
.creemos-faq__item summary::after { content: '+'; float:right; font-size:1.35rem; line-height:1; }
.creemos-faq__item[open] summary::after { content: '−'; }
.creemos-faq__answer { padding: 0 22px 20px; color:#4b4652; }

/* Footer */
.creemos-footer a { color: inherit; }
.creemos-footer a:hover { color: var(--wp--preset--color--lime); }

/* Mobile */
@media (max-width: 980px) {
  .creemos-header .wp-block-navigation__responsive-container-open { display: flex; }
  .creemos-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .creemos-header__desktop-cta { display: none !important; }
  .creemos-nav-join { display: flex !important; }
  .creemos-nav-join a { padding: .8rem 1rem !important; border-radius: 999px; background:#14111b; color:#fff !important; }
  .creemos-hero .wp-block-columns { min-height: auto; }
  .creemos-hero__media { min-height: 460px; }
}
@media (max-width: 782px) {
  body.admin-bar .creemos-header { top: 46px; }
  .creemos-form__grid { grid-template-columns:1fr; }
  .creemos-hero__media { min-height: 390px; }
  .creemos-quote__photo { min-height: 420px; }
  .creemos-belief { min-height: 560px; }
  .creemos-team-card { min-height: 330px; }
}
@media (max-width: 600px) {
  .creemos-header { position: sticky; }
  .creemos-header .wp-block-site-title { font-size: 1.1rem !important; }
  .creemos-hero__media { min-height: 340px; }
  .creemos-belief__content { padding: 24px; }
}

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

/* Sprint 2 — página Creemos */
.creemos-about-hero__photo { overflow: hidden; box-shadow: var(--creemos-shadow-lg); }
.creemos-origin p { max-width: 760px; }
.creemos-timeline { position: sticky; top: calc(var(--creemos-header-height) + 28px); }
.creemos-timeline__item { position: relative; padding-left: 24px; border-left: 2px solid rgba(20,17,27,.12); }
.creemos-timeline__item + .creemos-timeline__item { margin-top: 24px; }
.creemos-timeline__item::before { content:""; position:absolute; left:-7px; top:.45rem; width:12px; height:12px; border-radius:50%; background:#14111b; }
.creemos-manifesto__grid,
.creemos-values__grid { align-items: stretch; }
.creemos-manifesto-card,
.creemos-value-card { height: 100%; box-sizing: border-box; }
.creemos-manifesto-card { min-height: 245px; }
.creemos-value-card { min-height: 220px; border:1px solid rgba(20,17,27,.08); }
.creemos-about-cta .wp-block-group.has-black-background-color { box-shadow: var(--creemos-shadow-lg); }

/* Sprint 2 — Directorio de corporados */
.creemos-directory { max-width:1200px; margin-inline:auto; }
.creemos-directory__filters {
  display:grid;
  grid-template-columns:minmax(210px,1.35fr) repeat(4,minmax(135px,1fr)) auto auto;
  gap:12px;
  align-items:center;
  margin-bottom:22px;
  padding:18px;
  background:#f8f7f3;
  border:1px solid rgba(20,17,27,.08);
  border-radius:22px;
}
.creemos-directory__filters input,
.creemos-directory__filters select {
  width:100%; min-height:48px; box-sizing:border-box; border:1px solid #d9d4cb; border-radius:14px; background:#fff; color:#14111b; padding:.72rem .9rem; font:inherit;
}
.creemos-directory__filters .wp-element-button { min-height:48px; border:0; cursor:pointer; }
.creemos-directory__clear { font-weight:800; white-space:nowrap; }
.creemos-directory__summary { margin:0 0 22px; color:#5a5560; font-weight:700; }
.creemos-directory__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.creemos-person-card { overflow:hidden; border:1px solid rgba(20,17,27,.09); border-radius:24px; background:#fff; box-shadow:0 8px 28px rgba(20,17,27,.05); transition:transform .2s ease,box-shadow .2s ease; }
.creemos-person-card:hover { transform:translateY(-3px); box-shadow:var(--creemos-shadow-sm); }
.creemos-person-card__media { display:block; aspect-ratio:4/3; overflow:hidden; background:#14111b; }
.creemos-person-card__media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.creemos-person-card:hover .creemos-person-card__media img { transform:scale(1.025); }
.creemos-person-card__placeholder { display:grid; place-items:center; width:100%; height:100%; color:#fff; background:linear-gradient(135deg,#14111b,#2e2936); font-weight:900; letter-spacing:.08em; }
.creemos-person-card__body { padding:24px; }
.creemos-person-card__eyebrow { color:#e81e84; font-weight:900; text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; }
.creemos-person-card__title { margin:.5rem 0 .35rem; font-size:clamp(1.35rem,2vw,1.8rem); }
.creemos-person-card__title a { color:inherit; }
.creemos-person-card__territory { color:#5a5560; font-size:.9rem; font-weight:800; }
.creemos-text-link { display:inline-flex; gap:.35rem; align-items:center; margin-top:.5rem; font-weight:900; }
.creemos-directory__pagination { margin-top:40px; }
.creemos-directory__pagination .page-numbers { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; padding:0; list-style:none; }
.creemos-directory__pagination a,
.creemos-directory__pagination span { display:grid; place-items:center; min-width:42px; min-height:42px; padding:0 10px; border-radius:999px; background:#f4f0e7; font-weight:800; }
.creemos-directory__pagination .current { background:#14111b; color:#fff; }
.creemos-empty-state { padding:40px; border-radius:22px; background:#f8f7f3; text-align:center; }

/* Ficha de corporado */
.creemos-profile__image { overflow:hidden; box-shadow:var(--creemos-shadow-sm); }
.creemos-profile-meta { margin-top:28px; }
.creemos-profile-meta__facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.creemos-profile-meta__facts > div { padding:14px 16px; border-radius:14px; background:#f8f7f3; }
.creemos-profile-meta__facts span { display:block; color:#5a5560; text-transform:uppercase; letter-spacing:.07em; font-size:.7rem; font-weight:800; }
.creemos-profile-meta__facts strong { display:block; margin-top:2px; }
.creemos-profile-meta__links { display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.creemos-profile-meta__links a { padding:.55rem .85rem; border:1px solid rgba(20,17,27,.14); border-radius:999px; font-size:.86rem; font-weight:800; }
.creemos-related-flags { padding:32px; border-radius:24px; background:#14111b; color:#fff; }
.creemos-related-flags .creemos-eyebrow { color:#b5e600; }
.creemos-related-flags__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.creemos-related-flags__grid a { display:block; padding:20px; border-radius:16px; background:rgba(255,255,255,.08); color:#fff; }
.creemos-related-flags__grid strong,
.creemos-related-flags__grid span { display:block; }
.creemos-related-flags__grid span { margin-top:6px; color:rgba(255,255,255,.72); font-size:.9rem; }

@media (max-width: 980px) {
  .creemos-timeline { position:static; }
  .creemos-directory__filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .creemos-directory__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .creemos-directory__filters,
  .creemos-directory__grid,
  .creemos-profile-meta__facts,
  .creemos-related-flags__grid { grid-template-columns:1fr; }
  .creemos-manifesto-card,
  .creemos-value-card { min-height:0; }
  .creemos-related-flags { padding:24px; }
}


/* ===== Sprint 3 · editorial, banderas y jóvenes ===== */

/* Las consultas del Home mantienen tres cards compactas incluso cuando el
   patrón fue copiado a Gutenberg en una versión anterior del theme. */
.wp-block-post-template:has(.creemos-news-card) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}
.creemos-news-card {
  min-width: 0;
}
.creemos-news-card .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  background: #e9e5dc;
}
.creemos-news-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creemos-news-card .wp-block-post-title {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem) !important;
  margin-bottom: .55rem;
}
.creemos-news-card .wp-block-post-excerpt {
  font-size: .92rem;
}
.creemos-news-card .wp-block-post-excerpt__more-link { font-weight: 850; }

/* Un bloque FAQ sin respuestas confirmadas no deja un hueco visual. */
.creemos-section:has(.creemos-faq-empty),
.creemos-faq-section:has(.creemos-faq-empty) {
  display: none !important;
}

/* Contenedores relacionales vacíos en banderas/jóvenes. */
.creemos-related-section:has(.creemos-related-empty) {
  display: none !important;
}

/* Archive de banderas */
.creemos-flags-hero {
  overflow: hidden;
}
.creemos-flags-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.creemos-flag-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid rgba(20,17,27,.10);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(20,17,27,.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.creemos-flag-card__accent {
  width: 64px;
  height: 7px;
  margin-bottom: 30px;
  border-radius: 99px;
  background: #24acd3;
}
.creemos-flag-card--lime .creemos-flag-card__accent { background: #b5e600; }
.creemos-flag-card--orange .creemos-flag-card__accent { background: #ff8a00; }
.creemos-flag-card--magenta .creemos-flag-card__accent { background: #e81e84; }
.creemos-flag-card__index {
  margin: 0 0 10px;
  color: #5a5560;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.creemos-flag-card h2 {
  margin-bottom: .6rem;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
}
.creemos-flag-card h2 a { color: inherit; }
.creemos-flag-card > p:not(.creemos-flag-card__index) { color: #5a5560; }
.creemos-flag-card .creemos-text-link { margin-top: auto; padding-top: 18px; }

/* Landing individual de bandera */
.creemos-flag-single-hero { overflow: hidden; }
.creemos-flag-single-hero__media {
  min-height: 420px;
  overflow: hidden;
}
.creemos-flag-content > *:first-child { margin-top: 0; }
.creemos-flag-content h2 { margin-top: 1.8em; }
.creemos-related-people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.creemos-related-person {
  overflow: hidden;
  border: 1px solid rgba(20,17,27,.09);
  border-radius: 22px;
  background: #fff;
}
.creemos-related-person__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #14111b;
}
.creemos-related-person__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.creemos-related-person__photo span {
  width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 900;
}
.creemos-related-person > div { padding: 20px; }
.creemos-related-person .creemos-eyebrow { margin: 0 0 6px; color: #e81e84; font-size: .7rem; }
.creemos-related-person h3 { margin: 0 0 5px; font-size: 1.25rem; }
.creemos-related-person p:last-child { margin-bottom: 0; color: #5a5560; }

.creemos-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.creemos-editorial-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(20,17,27,.09);
  box-shadow: 0 8px 28px rgba(20,17,27,.05);
}
.creemos-editorial-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eeeae2;
}
.creemos-editorial-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creemos-editorial-card__body { padding: 22px; }
.creemos-editorial-card__date { margin: 0 0 8px; color: #5a5560; font-size: .78rem; }
.creemos-editorial-card h3 { margin-bottom: .55rem; font-size: 1.25rem; }
.creemos-editorial-card h3 a { color: inherit; }
.creemos-editorial-card__body > p:not(.creemos-editorial-card__date) { color: #5a5560; font-size: .9rem; }

/* Jóvenes CREEMOS */
.creemos-youth-hero { overflow: hidden; }
.creemos-youth-hero__media { min-height: 520px; }
.creemos-youth-principle {
  height: 100%;
  min-height: 250px;
  border: 1px solid rgba(20,17,27,.09);
  transition: transform .2s ease, box-shadow .2s ease;
}
.creemos-youth-principle:hover { transform: translateY(-3px); box-shadow: var(--creemos-shadow-sm); }
.creemos-youth-number { font-weight: 900; letter-spacing: .08em; }
.creemos-youth-callout { overflow: hidden; }

@media (max-width: 900px) {
  .wp-block-post-template:has(.creemos-news-card),
  .creemos-editorial-grid,
  .creemos-related-people { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .creemos-flags-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wp-block-post-template:has(.creemos-news-card),
  .creemos-editorial-grid,
  .creemos-related-people { grid-template-columns: 1fr !important; }
  .creemos-flag-card { min-height: 0; }
}


/* ===== Sprint 4 · centro editorial / Noticias ===== */

/* Las tarjetas de equipo sembradas sin fotografía dejan de parecer espacios vacíos.
   Al añadir una imagen desde Gutenberg, la foto vuelve a ser la protagonista. */
.creemos-team-card { min-height: 300px; }
.creemos-team-card:not(:has(.wp-block-cover__image-background)) .wp-block-cover__background {
  opacity: 1 !important;
}
.creemos-team-card:not(:has(.wp-block-cover__image-background)) .creemos-team-card__copy {
  background: rgba(20,17,27,.68);
}

.creemos-news-hero h1 { max-width: 13ch; }
.creemos-news-index__body { min-height: 520px; }
.creemos-category-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
}
.creemos-category-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .62rem .95rem;
  border: 1px solid rgba(20,17,27,.12);
  border-radius: 999px;
  background: #fff;
  color: #14111b;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}
.creemos-category-nav a:hover,
.creemos-category-nav a.is-active {
  background: #14111b;
  color: #fff;
  border-color: #14111b;
}
.creemos-news-search { min-width: min(100%, 330px); }
.creemos-news-search .wp-block-search__inside-wrapper {
  overflow: hidden;
  border: 1px solid rgba(20,17,27,.12);
  border-radius: 999px;
  background: #fff;
}
.creemos-news-search input { border: 0; padding-left: 18px; }
.creemos-news-search button { margin: 0; border-radius: 999px; }

.creemos-news-archive-grid,
.creemos-search-grid {
  gap: 22px !important;
}
.creemos-news-archive-card,
.creemos-search-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(20,17,27,.09);
  box-shadow: 0 8px 28px rgba(20,17,27,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.creemos-news-archive-card:hover,
.creemos-search-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--creemos-shadow-sm);
}
.creemos-news-archive-card__media,
.creemos-news-archive-card .wp-block-post-featured-image {
  overflow: hidden;
  margin: 0;
  background: #e9e5dc;
}
.creemos-news-archive-card__media img,
.creemos-news-archive-card .wp-block-post-featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.creemos-news-archive-card__body { height: 100%; box-sizing: border-box; }
.creemos-news-card__categories a {
  color: #24acd3;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
}
.creemos-news-archive-card .wp-block-post-title { margin: .55rem 0; }
.creemos-news-archive-card .wp-block-post-title a { color: inherit; }
.creemos-news-archive-card .wp-block-post-excerpt { color: #5a5560; font-size: .92rem; }

.creemos-pagination { margin-top: 48px; gap: 8px; }
.creemos-pagination .page-numbers,
.creemos-pagination .wp-block-query-pagination-previous,
.creemos-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #14111b;
  font-weight: 800;
  text-decoration: none;
}
.creemos-pagination .current { background: #14111b; color: #fff; }

/* Artículo individual */
.creemos-article-hero h1 { max-width: 16ch; margin-bottom: 0; }
.creemos-article-meta { margin-bottom: 24px; }
.creemos-article-meta__cats { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.creemos-article-meta__cats a {
  display:inline-flex; padding:.48rem .7rem; border-radius:999px;
  background:#b5e600; color:#14111b; font-size:.75rem; font-weight:900; text-decoration:none;
}
.creemos-article-subtitle {
  max-width: 760px;
  margin: 0 0 16px;
  color: rgba(255,255,255,.80);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}
.creemos-article-meta__line {
  display:flex; flex-wrap:wrap; gap:8px 18px; color:rgba(255,255,255,.70); font-size:.86rem;
}
.creemos-article-lead { max-width: 760px; color:rgba(255,255,255,.78); }
.creemos-article-featured {
  transform: translateY(-1px);
  box-shadow: var(--creemos-shadow-sm);
}
.creemos-article-featured img { width:100%; object-fit:cover; }
.creemos-article-content { font-size: clamp(1rem,1.15vw,1.1rem); line-height:1.75; }
.creemos-article-content > .wp-block-post-content > p,
.creemos-article-content > .wp-block-post-content > ul,
.creemos-article-content > .wp-block-post-content > ol { margin-bottom: 1.35em; }
.creemos-article-content .wp-block-post-content h2 { margin-top: 2.1em; font-size: clamp(1.8rem,3vw,2.6rem); }
.creemos-article-content .wp-block-post-content h3 { margin-top: 1.8em; font-size: clamp(1.35rem,2.3vw,1.8rem); }
.creemos-article-content .wp-block-quote {
  margin: 2.4em 0;
  padding: 28px 30px;
  border-left: 5px solid #e81e84;
  border-radius: 0 20px 20px 0;
  background: #f4f0e7;
  font-size: 1.2em;
}
.creemos-article-content figcaption { color:#6a646f; font-size:.82rem; }
.creemos-author-box {
  display:grid;
  grid-template-columns:96px 1fr;
  gap:22px;
  align-items:center;
  margin-top:56px;
  padding-top:32px;
  border-top:1px solid rgba(20,17,27,.12);
}
.creemos-author-box__avatar { width:96px; height:96px; border-radius:50%; object-fit:cover; }
.creemos-author-box h3 { margin:.15rem 0 .4rem; }
.creemos-author-box p:last-child { margin-bottom:0; color:#5a5560; }
.creemos-author-box .creemos-eyebrow { color:#e81e84; margin:0; }
.creemos-related-news-grid { margin-top: 30px; }
.creemos-related-section:has(.creemos-related-empty) { display:none !important; }
.creemos-article-cta h2 { margin-bottom: .35rem; }

@media (max-width: 900px) {
  .creemos-team-card { min-height: 250px; }
  .creemos-news-archive-grid,
  .creemos-search-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 640px) {
  .creemos-news-archive-grid,
  .creemos-search-grid { grid-template-columns: 1fr !important; }
  .creemos-news-hero h1,
  .creemos-article-hero h1 { max-width: none; }
  .creemos-author-box { grid-template-columns:1fr; }
  .creemos-category-nav { margin-inline:-4px; padding-inline:4px; }
  .creemos-team-card { min-height: 220px; }
}

/* ===== Sprint 5 · Corporados / datos verificados ===== */
.creemos-news-card__category {
  display:inline-flex;
  align-items:center;
  margin:0 0 12px;
  color:#24acd3;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.creemos-news-card__category a { color:inherit; text-decoration:none; }
.creemos-news-category-fallback { color:#24acd3; }

.creemos-corporados-hero h1 { max-width:14ch; }
.creemos-corporados-directory-section .creemos-directory { margin-top:34px; }
.creemos-profile-meta__verification {
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
  align-items:center;
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  background:#f4f0e7;
  color:#5a5560;
  font-size:.82rem;
}
.creemos-profile-meta__verification strong { color:#14111b; }
.creemos-profile-meta__verification a { margin-left:auto; font-weight:900; }
.creemos-corporado-news-section {
  border-top:1px solid rgba(20,17,27,.12);
}
.creemos-corporado-news-section:has(.creemos-related-empty) { display:none !important; }

@media (max-width:640px){
  .creemos-corporados-hero h1 { max-width:none; }
  .creemos-profile-meta__verification { align-items:flex-start; flex-direction:column; }
  .creemos-profile-meta__verification a { margin-left:0; }
}

/* ===== Sprint 6 · FAQ / SEO editorial ===== */
.creemos-faq-page-hero h1 { max-width: 12ch; }
.creemos-faq-page-body .creemos-faq { max-width: 900px; margin-inline: auto; }
.creemos-faq__item {
  margin: 0 0 12px;
  border: 1px solid rgba(20,17,27,.10);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.creemos-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
  font-size: 1.08rem;
}
.creemos-faq__item summary::-webkit-details-marker { display: none; }
.creemos-faq__item summary::after {
  content: '+';
  float: right;
  font-size: 1.35em;
  line-height: 1;
}
.creemos-faq__item[open] summary::after { content: '−'; }
.creemos-faq__answer { padding: 0 24px 24px; color: #5a5560; line-height: 1.7; }
.creemos-faq__answer > :last-child { margin-bottom: 0; }
@media (max-width:640px){
  .creemos-faq-page-hero h1 { max-width:none; }
  .creemos-faq__item summary { padding:18px; }
  .creemos-faq__answer { padding:0 18px 18px; }
}

/* ===== Sprint 8 · Menús clásicos + apariencia global ===== */
.creemos-header__inner { min-height: calc(var(--creemos-header-height) - 28px); }
.creemos-header__actions { margin-left: auto; }
.creemos-header .wp-block-shortcode { margin: 0; }
.creemos-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .72rem 1.15rem;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.creemos-header-cta:hover { transform: translateY(-1px); }
.creemos-classic-nav { position: relative; }
.creemos-classic-nav__panel { display: flex; align-items: center; }
.creemos-classic-menu {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 1.4vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.creemos-classic-menu li { position: relative; margin: 0; }
.creemos-classic-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.creemos-classic-menu .current-menu-item > a,
.creemos-classic-menu .current-menu-ancestor > a { opacity: .62; }
.creemos-classic-menu .sub-menu {
  position: absolute;
  z-index: 1002;
  top: calc(100% + 8px);
  left: -18px;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border: 1px solid rgba(20,17,27,.09);
  border-radius: 16px;
  background: var(--creemos-header-bg,#fff);
  box-shadow: var(--creemos-shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.creemos-classic-menu .sub-menu a { width: 100%; min-height: 38px; padding: 7px 10px; box-sizing: border-box; border-radius: 10px; }
.creemos-classic-menu .sub-menu a:hover { background: rgba(20,17,27,.05); }
.creemos-classic-menu li:hover > .sub-menu,
.creemos-classic-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.creemos-menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 12px; background: transparent; color: inherit; cursor: pointer; }
.creemos-menu-toggle i { display: block; width: 24px; height: 2px; margin: 5px auto; border-radius: 9px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.creemos-mobile-cta { display: none; }

.creemos-footer .wp-block-shortcode { margin: 0; }
.creemos-footer-brand h3 { margin: 18px 0 14px; color: inherit; }
.creemos-footer-brand__tagline { font-size: 1.08rem; }
.creemos-footer-brand__description { max-width: 440px; opacity: .82; }
.creemos-footer-menu .creemos-classic-menu { display: grid; gap: 5px; align-items: start; }
.creemos-footer-menu .creemos-classic-menu a { min-height: 0; color: inherit; font-weight: 500; white-space: normal; }
.creemos-footer-menu .sub-menu { position: static; min-width: 0; padding: 5px 0 0 14px; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
.creemos-footer-copyright { font-size: .9rem; }

@media (max-width: 980px) {
  .creemos-header__actions { gap: 8px !important; }
  .creemos-header__desktop-cta { display: none !important; }
  .creemos-menu-toggle { display: block; }
  .creemos-classic-nav__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    width: min(360px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(20,17,27,.10);
    border-radius: 20px;
    background: var(--creemos-header-bg,#fff);
    box-shadow: 0 22px 60px rgba(20,17,27,.16);
    box-sizing: border-box;
  }
  .creemos-classic-nav.is-open .creemos-classic-nav__panel { display: block; }
  .creemos-classic-nav.is-open .creemos-menu-toggle i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .creemos-classic-nav.is-open .creemos-menu-toggle i:nth-child(2) { opacity: 0; }
  .creemos-classic-nav.is-open .creemos-menu-toggle i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .creemos-classic-menu--primary { display: grid; gap: 2px; align-items: stretch; }
  .creemos-classic-menu--primary a { display: flex; width: 100%; min-height: 44px; padding: 7px 10px; box-sizing: border-box; border-radius: 10px; }
  .creemos-classic-menu--primary a:hover { background: rgba(20,17,27,.05); }
  .creemos-classic-menu--primary .sub-menu { position: static; display: block; min-width: 0; margin: 0 0 5px 12px; padding: 0 0 0 12px; border: 0; border-left: 1px solid rgba(20,17,27,.12); border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .creemos-mobile-cta { display: flex; margin-top: 10px; }
}
@media (max-width: 600px) {
  .creemos-header__brand { gap: 8px !important; }
  .creemos-header .wp-block-site-title { font-size: 1rem !important; }
  .creemos-footer .wp-block-columns { gap: 34px; }
}
.creemos-header .creemos-classic-menu a:hover { opacity: .68; }
