@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap");

:root {
  --purple-950: #24103f;
  --purple-900: #321255;
  --purple-800: #45176f;
  --purple-700: #5c258d;
  --purple-600: #7134a2;
  --green-800: #237326;
  --green-700: #2f8d35;
  --green-600: #3c9e42;
  --green-100: #eef8ee;
  --gold: #d9a618;
  --cream: #fffaf0;
  --cream-2: #fbf5e8;
  --white: #ffffff;
  --ink: #191724;
  --text: #48444e;
  --muted: #726d79;
  --border: #e8e5eb;
  --shadow-sm: 0 8px 24px rgb(32 20 46 / 8%);
  --shadow-md: 0 20px 50px rgb(33 18 48 / 12%);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--white);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
    font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 900;
      color: var(--purple-800);
  letter-spacing: -0.042em;
}


h2 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.07rem;
  font-weight: 800;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--purple-900);
  border-radius: 8px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.primary-nav a:focus-visible,
.social-circle:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid rgb(47 141 53 / 30%);
  outline-offset: 4px;
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.button-primary {
  color: var(--white);
  background: var(--green-700);
  box-shadow: 0 10px 24px rgb(47 141 53 / 20%);
}

.button-primary:hover {
  background: var(--green-800);
  box-shadow: 0 14px 30px rgb(47 141 53 / 28%);
}

.button-outline {
  color: var(--purple-800);
  background: rgb(255 255 255 / 72%);
  border-color: var(--purple-600);
}

.button-outline:hover {
  color: var(--white);
  background: var(--purple-700);
}

.button-white {
  color: var(--purple-900);
  background: var(--white);
}

.button-white:hover {
  color: var(--white);
  background: var(--purple-950);
}

.button-whatsapp {
  color: var(--white);
  border-color: rgb(255 255 255 / 54%);
  background: transparent;
}

.button-whatsapp:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 10%);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow-purple {
  color: var(--purple-700);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-700);
  font-size: 0.9rem;
  font-weight: 800;
}

.text-link .icon {
  transition: transform var(--transition);
}

.text-link:hover .icon {
  transform: translateX(5px);
}

/* ICONOS */
.lucide-cloud-sync-icon, .lucide-sprout-icon, .lucide-users-round-icon, .lucide-triangle-alert, .lucide-earth-icon {
  width: 100px;
  height: 48px;
}

 .lucide-earth-icon, .lucide-library-big-icon, .lucide-handshake-icon, .lucide-lightbulb-icon  {
  width: 95px;
  height: 76px;
}

/* Header */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid rgb(43 22 67 / 7%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  min-height: 78px;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 175px;
  height: auto;
}

.primary-nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.3vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav li {
    margin: 0;
    padding: 0;
}

.primary-nav ul {
    height: 100%;
}

.primary-nav li {
    display: flex;
    align-items: center;
}

.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a {
    color: var(--green-700);
}

.primary-nav a {
    position: relative;
    display: inline-block;
    padding: 28px 0 25px;
    color: #27212d;
    font-size: 0.87rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.primary-nav a::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--green-700);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_item > a::after {
    transform: scaleX(1);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--green-700);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-circle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), color var(--transition), background var(--transition);
}

.social-circle:hover {
  color: var(--white);
  background: var(--green-700);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--purple-900);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.menu-toggle .icon-close {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgb(255 250 240 / 0.92) 0%,
      rgb(255 250 240 / 0.88) 34%,
      rgb(255 250 240 / 0.58) 55%,
      rgb(255 250 240 / 0.18) 100%
    ),
    var(--hero-bg);

  background-position:
    center center,
    center center;

  background-size:
    cover,
    cover;

  background-repeat:
    no-repeat,
    no-repeat;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: 1;
  width: 220px;
  height: 330px;
  content: "";
  opacity: 0.28;
  background:
    radial-gradient(ellipse at center, transparent 57%, rgb(114 132 58 / 18%) 58%, transparent 61%) 0 0 / 46px 46px;
  pointer-events: none;
}

.hero::before {
  left: -105px;
  bottom: -75px;
  transform: rotate(15deg);
}

.hero::after {
  right: -80px;
  top: 25px;
  transform: rotate(-18deg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 78%, rgb(243 217 138 / 0.22), transparent 24%),
    radial-gradient(circle at 72% 20%, rgb(255 255 255 / 0.10), transparent 22%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 640px;
}

.hero-copy {
  max-width: 620px;
  padding: 90px 0;
  text-align: left;
}

.hero-copy h1 {
  margin-bottom: 22px;
  color: var(--purple-800);
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero-description {
  max-width: 560px;
  margin-bottom: 30px;
  color: #4a444e;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}
/* Franja de principios */

.principles {
  position: relative;
  z-index: 3;
  color: var(--white);
  background:
    radial-gradient(circle at 50% -120%, rgb(255 255 255 / 18%), transparent 55%),
    linear-gradient(90deg, var(--purple-900), var(--purple-700), var(--purple-900));
}

.principles-grid {
  display: grid;
  min-height: 116px;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.principle {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 26px;
  border-right: 1px solid rgb(255 255 255 / 24%);
}

.principle:last-child {
  border-right: 0;
}

.principle .icon {
  width: 48px;
  height: 48px;
}

.principle span {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Encabezados */

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}

.section-heading-row > div {
  flex: 1;
  text-align: center;
}

.heading-line {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--green-700);
  border-radius: 999px;
}

.section-heading-light h2 {
  color: var(--white);
}

.section-heading-light .heading-line {
  background: var(--white);
}

/* Tarjetas */

.work-lines {
  background: var(--white);
}

.cards-grid {
  display: grid;
  gap: 12px;
}

.cards-grid-four {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cards-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover,
.project-card:hover {
  border-color: rgb(92 37 141 / 22%);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.info-card {
  display: flex;
  min-height: 325px;
  flex-direction: column;
  padding: 30px 26px 24px;
  border-radius: var(--radius-sm);
}

.card-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  color: var(--green-700);
}

.info-card h3 {
  min-height: 42px;
  margin-bottom: 18px;
}

.info-card p {
  color: var(--text);
  font-size: 0.94rem;
}

.info-card .text-link {
  margin-top: auto;
}

/* Proyectos */

.projects-section {
  background: #fafafa;
}

.project-card {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 16;
  background: #e7e7e7;
}


.justificado {
  text-align: justify;
  text-justify: inter-word; /* Mejora cómo se distribuyen los espacios entre palabras */
       /* Compatibilidad con Internet Explorer/Edge antiguo */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.045);
}

.status {
  position: absolute;
  bottom: 10px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.status-progress {
  color: #246927;
  background: #e8f6e7;
}

.status-finished {
  color: var(--purple-800);
  background: #f0e7f7;
}

.status-next {
  color: #775500;
  background: #fff1b5;
}

.project-content {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  padding: 26px 24px 24px;
}

.project-content p {
  font-size: 0.94rem;
}

.project-content .text-link {
  margin-top: auto;
}

/* Impacto */

.impact-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgb(255 255 255 / 9%), transparent 28%),
    linear-gradient(90deg, #267b2b, #38933b, #267b2b);
}

.impact-section::before,
.impact-section::after {
  position: absolute;
  width: 180px;
  height: 180px;
  content: "";
  opacity: 0.11;
  border: 3px solid var(--white);
  border-radius: 50% 0 50% 50%;
}

.impact-section::before {
  left: -70px;
  top: 20px;
  transform: rotate(35deg);
}

.impact-section::after {
  right: -70px;
  bottom: -70px;
  transform: rotate(210deg);
}

.impact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.impact-item {
  display: grid;
  min-height: 120px;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 18px;
  padding: 8px 34px;
  border-right: 1px solid rgb(255 255 255 / 42%);
}

.impact-item:last-child {
  border-right: 0;
}

.impact-icon {
  width: 55px;
  height: 55px;
  grid-row: span 2;
}

.impact-item strong {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.impact-item span {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Publicación */

.featured-publication {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 248 229 / 78%), rgb(255 255 255 / 92%) 45%, rgb(255 248 229 / 72%));
}

.featured-publication::before,
.featured-publication::after {
  position: absolute;
  width: 130px;
  height: 180px;
  content: "";
  opacity: 0.14;
  border: 2px solid var(--gold);
  border-radius: 50% 0 50% 50%;
}

.featured-publication::before {
  left: -65px;
  top: 75px;
  transform: rotate(25deg);
}

.featured-publication::after {
  right: -65px;
  bottom: 20px;
  transform: rotate(205deg);
}

.publication-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 275px;
  align-items: center;
  gap: 38px;
}

.publication-cover {
  margin: 0;
  filter: drop-shadow(0 18px 14px rgb(30 22 21 / 22%));
}

.publication-cover img {
  width: 100%;
  max-height: 290px;
  object-fit: contain;
}

.publication-copy h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.publication-copy h3 {
  margin: 20px 0 8px;
  color: var(--purple-700);
  font-size: 0.9rem;
}

.publication-copy p {
  margin-bottom: 10px;
  font-size: 0.94rem;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  color: var(--purple-700);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.launch-card {
  padding: 26px;
  border: 1px solid #d7ab4f;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 72%);
}

.launch-card-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--purple-800);
}

.launch-card-title .icon {
  width: 31px;
  height: 31px;
}

.launch-card p {
  margin-left: 44px;
  color: var(--text);
}

/* CTA */

.collaboration {
  color: var(--white);
  background:
    radial-gradient(circle at 30% -100%, rgb(255 255 255 / 16%), transparent 55%),
    linear-gradient(90deg, var(--purple-800), var(--purple-700), var(--purple-900));
}

.collaboration-inner {
  display: flex;
  min-height: 114px;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.collaboration h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.55rem;
}

.collaboration p {
  margin: 0;
  font-size: 0.86rem;
}

.collaboration-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

/* Footer */

.site-footer {
  color: rgb(255 255 255 / 86%);
  background:
    radial-gradient(circle at 50% 0, rgb(129 79 179 / 22%), transparent 46%),
    var(--purple-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1fr;
  gap: 48px;
  padding-top: 54px;
  padding-bottom: 46px;
}

.footer-brand img {
  width: 180px;
  margin-bottom: 20px;

}

.footer-brand p {
  max-width: 280px;
  font-size: 0.84rem;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--purple-950);
  background: var(--white);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform var(--transition), background var(--transition);
}

.social-links a:hover {
  background: #e8d6f7;
  transform: translateY(-2px);
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.footer-nav h2,
.footer-contact h2 {
  margin-bottom: 9px;
  color: var(--white);
  font-size: 1rem;
}

.footer-nav a,
.footer-contact a,
.footer-contact span {
  font-size: 0.82rem;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-contact .icon {
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 22px;
  color: rgb(255 255 255 / 55%);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.76rem;
}

/* Animaciones */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet */

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: 170px 1fr auto;
    gap: 16px;
  }

  .primary-nav {
    gap: 16px;
  }

  .primary-nav a {
    font-size: 0.78rem;
  }

  .header-actions .button {
    display: none;
  }

  .cards-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    
  }

  .principle {
    padding-inline: 15px;
  }

  .impact-item {
    padding-inline: 18px;
  }

  .publication-grid {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .launch-card {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

/* Menú móvil */

@media (max-width: 860px) {

  .header-inner {
    min-height: 70px;
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 160px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu-toggle[aria-expanded="true"] .icon-menu {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 70px 0 auto;
    z-index: 999;

    display: flex;

    max-height: 0;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    overflow: hidden;

    background: var(--white);

    box-shadow: 0 18px 34px rgb(31 17 46 / 12%);

    transition: max-height 300ms ease;
  }

  .primary-nav.is-open {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  /*
   * IMPORTANTE:
   * El UL de desktop seguía horizontal.
   */
  .primary-nav ul,
  .primary-nav .menu {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;

    gap: 0;
    margin: 0;
    padding: 0;
  }

  .primary-nav li {
    width: 100%;
    margin: 0;
  }

  .primary-nav a {
    display: block;

    width: 100%;
    padding: 16px 24px;

    border-bottom: 1px solid var(--border);

    font-size: 0.95rem;

    white-space: normal;
  }

  .primary-nav a::after {
    display: none;
  }

  .header-actions {
    display: none;
  }


  /*
   * HERO
   * No usamos "background:" porque borraría
   * la imagen dinámica configurada desde WordPress.
   */
.hero {
  min-height: 620px;

  display: flex;
  align-items: center;

  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
}

  /*
 * En tablet dejamos de usar las 2 columnas de desktop.
 */
.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

/*
 * El texto recupera un ancho legible.
 */
.hero-copy {
  width: 100%;
  max-width: 560px;

  padding: 64px 0;

  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 540px;

  margin: 0 0 24px;

  font-size: clamp(2.7rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;

  text-wrap: balance;
}

.hero-description {
  max-width: 520px;

  margin: 0 0 28px;

  font-size: 1.05rem;
  line-height: 1.65;
}

/*
 * El overlay protege el texto pero permite ver la imagen.
 */
.hero-overlay {
  display: block;

  background:
    linear-gradient(
      90deg,
      rgb(255 250 240 / 0.96) 0%,
      rgb(255 250 240 / 0.92) 35%,
      rgb(255 250 240 / 0.68) 58%,
      rgb(255 250 240 / 0.18) 100%
    );
}

  .publication-article-cover {
    max-width: 300px;
  }

  .publication-single .publication-article-header h1 {
    font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
  }

}
/* Móvil */

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 56px 0;
  }

  h1 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }


.hero {
  min-height: 560px;
  background-position: 72% center;
}

.hero-copy {
  max-width: 100%;
  padding: 48px 0;
}

.hero-copy h1 {
  max-width: 430px;

  font-size: clamp(2.25rem, 10vw, 3.2rem);
  line-height: 1.02;
}

.hero-description {
  max-width: 430px;

  font-size: 1rem;
  line-height: 1.6;
}

.hero-overlay {
  background:
    linear-gradient(
      90deg,
      rgb(255 250 240 / 0.97) 0%,
      rgb(255 250 240 / 0.92) 52%,
      rgb(255 250 240 / 0.48) 76%,
      rgb(255 250 240 / 0.12) 100%
    );
}
.hero-actions {
  flex-direction: column;
  align-items: stretch;
}

.hero-actions .button {
  width: 100%;
}


  .publication-actions,
  .collaboration-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .publication-actions .button,
  .collaboration-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 310px;
  }

  .hero-image-frame {
    min-height: 310px;
  }

  .hero-image-frame img {
    max-height: 310px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principle {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .principle:nth-child(3) {
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .cards-grid-four {
    grid-template-columns: 1fr;
  }

  .info-card {
    min-height: 280px;
  }

  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .project-card {
    display: block;
  }

  .project-image {
    min-height: 190px;
    aspect-ratio: 16 / 8.5;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-item {
    min-height: 105px;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 35%);
  }

  .impact-item:nth-child(3) {
    border-bottom: 1px solid rgb(255 255 255 / 35%);
  }

  .impact-item:last-child {
    border-bottom: 0;
  }

  .publication-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .publication-cover {
    width: 180px;
    margin-inline: auto;
  }

  .launch-card {
    grid-column: auto;
  }

  .launch-card p {
    margin-left: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Reduce motion */

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   Publicación destacada ampliada
   ========================================================= */

.featured-publication .publication-grid-expanded {
  grid-template-columns: 190px minmax(0, 1fr) 270px;
  align-items: start;
  gap: 36px;
}

.featured-publication .publication-cover,
.featured-publication .launch-card {
  position: static;
  align-self: start;
}

.featured-publication .publication-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: top center;
}

.featured-publication .publication-copy {
  min-width: 0;
}

.featured-publication .publication-copy > h2 {
  margin-bottom: 22px;
  color: var(--purple-800);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.14;
}

.featured-publication .publication-description {
  margin-bottom: 15px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.72;
}

/* Capítulos */

.publication-chapters {
  margin-top: 38px;
}

.publication-chapters-header {
  margin-bottom: 20px;
}

.publication-chapters-header h3 {
  margin-bottom: 0;
  color: var(--purple-800);
  font-size: 1.55rem;
}

.chapter-group {
  margin-bottom: 13px;
  overflow: hidden;
  background: rgb(255 255 255 / 82%);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 7px 22px rgb(33 18 48 / 5%);
}

.chapter-group summary {
  display: grid;
  min-height: 67px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--purple-800);
  cursor: pointer;
  list-style: none;
  transition:
    color var(--transition),
    background var(--transition);
}

.chapter-group summary::-webkit-details-marker {
  display: none;
}

.chapter-group summary:hover {
  background: #f8f4fa;
}

.chapter-group[open] summary {
  color: var(--white);
  background: linear-gradient(
    115deg,
    var(--purple-900),
    var(--purple-700)
  );
}

.chapter-group-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--purple-800);
  background: #f0e8f5;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.chapter-group[open] .chapter-group-number {
  color: var(--purple-900);
  background: var(--white);
}

.chapter-group-title {
  font-size: 0.97rem;
  font-weight: 900;
}

.chapter-group-arrow {
  width: 19px;
  height: 19px;
  transition: transform 220ms ease;
}

.chapter-group[open] .chapter-group-arrow {
  transform: rotate(90deg);
}

.chapter-group-content {
  padding: 6px 22px 22px;
}

.chapter-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.chapter-item:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.chapter-item h4 {
  margin: 0 0 17px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
}

.chapter-authors {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-authors li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  font-size: 0.83rem;
}

.chapter-authors span {
  color: var(--green-700);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chapter-authors strong {
  color: var(--text);
  font-weight: 700;
}

/* Presentación */

.featured-publication .launch-card {
  background: rgb(255 255 255 / 88%);
}

.launch-access-data {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.launch-access-data div {
  padding: 12px 14px;
  background: #faf7fc;
  border: 1px solid #e9e1ed;
  border-radius: 8px;
}

.launch-access-data dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.launch-access-data dd {
  margin: 0;
  color: var(--purple-800);
  font-size: 0.93rem;
  font-weight: 900;
}

/* Tablet */

@media (max-width: 1080px) {
  .featured-publication .publication-grid-expanded {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .featured-publication .publication-cover {
    position: static;
  }

  .featured-publication .launch-card {
    position: static;
    grid-column: 2;
  }
}

/* Móvil */

@media (max-width: 720px) {
  .featured-publication .publication-grid-expanded {
    grid-template-columns: 1fr;
  }

  .featured-publication .publication-cover {
    width: min(210px, 70%);
    margin-inline: auto;
  }

  .featured-publication .launch-card {
    grid-column: auto;
  }

  .chapter-group summary {
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 10px;
    padding-inline: 13px;
  }

  .chapter-group-content {
    padding-inline: 17px;
  }

  .chapter-authors li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .featured-publication .publication-actions .button {
    width: 100%;
  }
}

        /* =========================================================
   Descarga del libro
   ========================================================= */

.book-download-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--white);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 35px 110px rgb(27 15 36 / 38%);
}

.book-download-dialog::backdrop {
  background: rgb(25 13 34 / 70%);
  backdrop-filter: blur(5px);
}

.book-download-dialog[open] {
  animation: book-dialog-open 220ms ease both;
}

@keyframes book-dialog-open {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.book-download-shell {
  position: relative;
  max-height: 92vh;
  padding: 38px;
  overflow-y: auto;
}

.book-download-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--purple-800);
  background: #f2edf5;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.book-download-close:hover {
  color: var(--white);
  background: var(--purple-700);
  transform: rotate(5deg);
}

.book-download-close svg {
  width: 20px;
  height: 20px;
}

.book-download-header {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  padding-right: 35px;
}

.book-download-header h2 {
  margin-bottom: 10px;
  color: var(--purple-800);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.22;
}

.book-download-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.book-download-icon {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 18px;
}

.book-download-icon svg {
  width: 32px;
  height: 32px;
}

.book-download-form {
  display: grid;
  gap: 20px;
}

.book-form-field {
  display: flex;
  flex-direction: column;
}

.book-form-field label {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.book-form-field input {
  width: 100%;
  min-height: 49px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fdfcfd;
  border: 1px solid #dcd7df;
  border-radius: 9px;
  outline: 0;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.book-form-field input:focus {
  background: var(--white);
  border-color: var(--purple-600);
  box-shadow: 0 0 0 4px rgb(91 37 141 / 9%);
}

.book-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.5;
  cursor: pointer;
}

.book-form-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--green-700);
}

.book-form-consent a {
  color: var(--purple-700);
  font-weight: 900;
  text-decoration: underline;
}

.book-form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 5px;
}

.book-download-status {
  min-height: 22px;
  margin: 0;
  color: var(--green-800);
  font-size: 0.8rem;
  font-weight: 800;
}

.book-download-status.is-error {
  color: #ae3030;
}

@media (max-width: 620px) {
  .book-download-shell {
    padding: 30px 21px;
  }

  .book-download-header {
    grid-template-columns: 1fr;
    padding-right: 30px;
  }

  .book-download-actions {
    flex-direction: column;
  }

  .book-download-actions .button {
    width: 100%;
  }
}


/* =========================================================
   Créditos, evaluación y coordinación editorial
   ========================================================= */

.publication-credits-header {
  padding: 19px 0 22px;
  border-bottom: 1px solid var(--border);
}

.publication-credits-header h4 {
  margin: 0 0 8px;
  color: var(--purple-800);
  font-size: 1.2rem;
  font-weight: 900;
}

.publication-credits-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

/* Evaluadores */

.publication-evaluators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
}

.publication-evaluator {
  position: relative;
  display: grid;
  min-height: 135px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  gap: 13px;
  padding: 18px;
  background: #fcfbfd;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.publication-evaluator:hover {
  border-color: rgb(91 37 141 / 22%);
  box-shadow: 0 10px 25px rgb(34 19 46 / 7%);
  transform: translateY(-2px);
}

.publication-evaluator-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--purple-700);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 900;
}

.publication-evaluator h5 {
  margin: 2px 0 9px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 900;
  line-height: 1.35;
}

.publication-evaluator-role,
.publication-evaluator-institution {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.publication-evaluator-role {
  color: var(--green-700);
  font-weight: 900;
}

.publication-evaluator-institution {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

/* Coordinación editorial */

.publication-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding-top: 22px;
}

.publication-editor {
  display: grid;
  min-height: 120px;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px;
  background:
    linear-gradient(145deg, #ffffff, #faf7fc);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.publication-editor-icon {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 14px;
}

.publication-editor-icon .icon {
  width: 25px;
  height: 25px;
}

.publication-editor span {
  display: block;
  margin-bottom: 5px;
  color: var(--green-700);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.publication-editor h5 {
  margin: 0;
  color: var(--purple-800);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.35;
}

@media (max-width: 860px) {
  .publication-evaluators-grid,
  .publication-editorial-grid {
    grid-template-columns: 1fr;
  }
}

/* Ajuste específico para tablet */

@media (min-width: 621px) and (max-width: 860px) {

  .hero {
    min-height: 620px;
    align-items: center;

    /*
     * Mantiene completa la ilustración en tablet.
     * La primera capa es el gradiente y la segunda la imagen dinámica.
     */
    background-size:
      cover,
      auto 100%;

    background-position:
      center center,
      right center;

    background-repeat:
      no-repeat,
      no-repeat;
  }

  .hero-grid {
    min-height: 620px;
  }

  .hero-copy {
    width: min(58%, 560px);
    max-width: 560px;
    padding: 52px 0 58px;
  }

  .hero-copy h1 {
    max-width: 540px;
    margin-bottom: 22px;
    font-size: clamp(2.4rem, 5vw, 3.15rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
  }

  .hero-description {
    max-width: 520px;
    margin-bottom: 26px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-actions .button {
    min-height: 52px;
    padding: 14px 22px;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgb(255 250 240 / 0.98) 0%,
        rgb(255 250 240 / 0.93) 37%,
        rgb(255 250 240 / 0.70) 55%,
        rgb(255 250 240 / 0.18) 74%,
        rgb(255 250 240 / 0.04) 100%
      );
  }
}


@media (max-width: 620px) {
  .publication-evaluator {
    min-height: auto;
    padding: 16px 14px;
  }

  .publication-editor {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: auto;
    padding: 17px 15px;
  }

  .publication-editor-icon {
    width: 42px;
    height: 42px;
  }
}

.nojustificado {text-align:left!important;}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.footer-menu {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin: 0;
  padding: 0;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.publication-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.publication-card-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f1f4;
}

.publication-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-card-content {
  padding: 24px;
}

.publication-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.publication-card h3 {
  margin-bottom: 14px;
}

.publication-card p {
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .publications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .publications-grid {
    grid-template-columns: 1fr;
  }
}


.publication-single-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.publication-single-cover {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ececef;
}

.publication-single-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.publication-single-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.publication-single-authors {
  margin-bottom: 20px;
  color: var(--purple-800);
  font-weight: 700;
}

.publication-single-summary {
  max-width: 780px;
  margin-bottom: 28px;
}

.publication-single-data {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.publication-single-data > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.publication-single-data dt {
  font-weight: 800;
}

.publication-single-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.publication-single-body {
  max-width: 900px;
}

@media (max-width: 800px) {
  .publication-single-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .publication-single-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.publication-article {
  max-width: 860px;
  margin: 0 auto;
}

.publication-article-header {
  margin-bottom: 48px;
}

.publication-article-type {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--purple-700);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-article-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.publication-article-authors {
  margin-bottom: 16px;
  color: var(--purple-800);
  font-size: 1.05rem;
  font-weight: 700;
}

.publication-article-dates {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.publication-article-section {
  margin-top: 42px;
}

.publication-article-section h2 {
  margin-bottom: 16px;
  color: var(--purple-800);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.publication-article-summary,
.publication-article-body {
  font-size: 1.03rem;
  line-height: 1.75;
}

.publication-keywords {
  line-height: 1.7;
}

.publication-article-data {
  display: grid;
  gap: 12px;
}

.publication-article-data > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.publication-article-data dt {
  font-weight: 800;
}

.publication-article-image {
  margin: 48px 0 0;
}

.publication-article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.publication-article-actions {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .publication-article-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.publication-book {
  width: 100%;
}
.publication-book-hero {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
  padding: 34px 0 52px;
}

.publication-book-cover {
  margin: 0;
}

.publication-book-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
}

.publication-book-info {
  max-width: 860px;
  padding-top: 8px;
}

.publication-book-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.publication-book-type,
.publication-book-year {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication-book-authors {
  margin: 0 0 20px;
  color: var(--purple-800);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.publication-book-summary {
  max-width: 760px;
  margin-top: 18px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.72;
}

.publication-book-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.publication-book-data div {
  display: grid;
  gap: 4px;
}

.publication-book-data dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication-book-data dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.publication-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.publication-book-body {
  max-width: 900px;
  margin: 72px auto 0;
  font-size: 1.03rem;
  line-height: 1.75;
}


@media (max-width: 900px) {
  .publication-book-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .publication-book-cover {
    max-width: 320px;
  }

  .publication-book-info h1 {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }
}

@media (max-width: 600px) {
  .publication-book-data {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {

  .publication-book-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .publication-book-cover {
    max-width: 420px;
  }

  .publication-book-data > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.publication-event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  max-width: 900px;
  margin: 56px auto 0;
  padding: 28px;
  background: #faf8fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.publication-event-icon {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: var(--purple-800);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.publication-event-icon .icon {
  width: 24px;
  height: 24px;
}

.publication-event-content h2 {
  margin: 6px 0 12px;
}

.publication-event-access {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.publication-event-access > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
}

.publication-event-access dt {
  font-weight: 800;
}

@media (max-width: 640px) {
  .publication-event-card {
    grid-template-columns: 1fr;
  }

  .publication-event-access > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}


/* =========================================================
   SINGLE PROJECT
========================================================= */

.project-single-header {
  padding: 42px 0 54px;
  background: #faf8fb;
  border-bottom: 1px solid var(--border);
}

.project-single-heading {
  max-width: 980px;
  margin-top: 54px;
}

.project-single-heading .status {
  display: inline-flex;
  margin-bottom: 20px;
}

.project-single-heading h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}


.project-single-header {
  padding: 28px 0 40px;
  background: #faf8fb;
  border-bottom: 1px solid var(--border);
}

.project-single-heading {
  max-width: 900px;
  margin-top: 32px;
}


.project-single-lead {
  max-width: 800px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}


/* PORTADA */

.project-single-media {
  padding-top: 48px;
}

.project-single-cover {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ececef;
}

.project-single-cover img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}


/* CONTENIDO */

.project-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.project-single-main {
  min-width: 0;
}

.project-objective {
  padding-bottom: 42px;
  border-bottom: 1px solid var(--border);
}

.project-objective h2 {
  margin: 8px 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.project-objective-text {
  max-width: 760px;
  font-size: 1.1rem;
  line-height: 1.75;
}

.project-description {
  max-width: 780px;
  margin-top: 48px;
  font-size: 1.03rem;
  line-height: 1.8;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.project-description h2 {
  margin-top: 48px;
  font-size: 1.8rem;
}

.project-description h3 {
  margin-top: 36px;
}


/* FICHA */

.project-single-sidebar {
  position: sticky;
  top: 110px;
}

.project-facts {
  padding: 28px;
  background: #faf8fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.project-facts > .section-kicker {
  display: block;
  margin-bottom: 20px;
  font-weight: 800;
}

.project-fact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 17px 0;
  border-top: 1px solid var(--border);
  line-height: 1.5;
}

.project-fact-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* RESPONSIVE */

@media (max-width: 900px) {

  .project-single-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .project-single-sidebar {
    position: static;
  }

  .project-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .project-facts > .section-kicker {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {

  .project-single-header {
    padding: 28px 0 40px;
  }

  .project-single-heading {
    margin-top: 38px;
  }

  .project-single-media {
    padding-top: 24px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }
}

/* 
.project-single-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--purple-700);
  font-size: 0.82rem;
  font-weight: 800;
}


.project-single-header .breadcrumb svg { width: 15px; height: 15px; }
.project-single-header .breadcrumb a:hover { text-decoration: underline; }


.project-single-header .breadcrumb .breadcrumb-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
 */
.project-single-gallery {
  margin-top: 10px;
  padding-top: 32px;
}

.project-single-gallery h2 {
  margin-top: 10px;
  font-size: 1.8rem;;
}



.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.activity-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.activity-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.activity-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-card-body {
  padding: 24px;
}

.activity-card-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.activity-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.activity-card h2 a {
  color: inherit;
}

.activity-card-details {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.activity-single-header {
  padding: 32px 0 44px;
  background: #faf8fb;
  border-bottom: 1px solid var(--border);
}

.activity-single-header h1 {
  max-width: 900px;
  margin: 18px 0;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
}

.activity-single-lead {
  max-width: 760px;
  line-height: 1.65;
}

.activity-single-media {
  padding-top: 40px;
}

.activity-single-media img {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.activity-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 70px;
  align-items: start;
}

.activity-single-sidebar {
  position: sticky;
  top: 110px;
}

.activity-facts {
  padding: 26px;
  background: #faf8fb;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.activity-facts > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.activity-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-facts .button {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-single-grid {
    grid-template-columns: 1fr;
  }

  .activity-single-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
}

.publication-book-info h1,
.publication-article-info h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  color: var(--purple-900);
  font-size: clamp(1.9rem, 2.35vw, 2.65rem) !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* .publication-single .breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  font-size: 0.84rem;
}

.publication-single .breadcrumb .breadcrumb-icon,
.publication-single .breadcrumb svg {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px;
} */


.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--purple-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.breadcrumb svg { width: 15px; height: 15px; }
.breadcrumb a:hover { text-decoration: underline; }

.publication-book-hero,
.publication-article-hero {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: 20px 0 42px;
}

.publication-book-cover img,
.publication-article-cover img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.publication-single .publication-book-info h1,
.publication-single .publication-article-info h1 {
  font-size: clamp(1.9rem, 2.35vw, 2.65rem) !important;
}


.publication-article-hero {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
  padding: 28px 0 46px;
}

.publication-article-cover {
  margin: 0;
}

.publication-article-cover img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
}

.publication-article-header {
  padding: 6px 0 0;
}

.publication-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.publication-article-type,
.publication-article-year {
  color: var(--purple-800);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication-single .publication-article-header h1 {
  max-width: 800px;
  margin: 0 0 18px;
  color: var(--purple-900);
  font-size: clamp(1.52rem, 2vw, 2rem) !important;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.publication-article-authors {
  margin: 0 0 16px;
  color: var(--purple-800);
  font-size: 1rem;
  font-weight: 700;
}

.publication-article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.publication-single .publication-article-section h2,
.publication-single .publication-article-resources h2 {
  margin: 0 0 16px;
  color: var(--purple-900);
  font-size: 1.25rem !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.publication-article-section {
  max-width: 900px;
  margin: 0 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

@media (max-width: 800px) {

  .publication-article-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .publication-article-cover {
    max-width: 300px;
  }

  .publication-single .publication-article-header h1 {
    font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
  }
}

/* =========================================================
   HOME · PROYECTOS DESTACADOS · RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .project-card {
    width: 100%;
    min-width: 0;
  }

  .project-card img {
    width: 100%;
    height: auto;
  }

  .project-card-content {
    width: 100%;
    min-width: 0;
  }

  .project-card h3,
  .project-card p {
    overflow-wrap: normal;
    word-break: normal;
  }

}


@media (max-width: 1024px) {
  .cards-grid.cards-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cards-grid.cards-grid-three {
    grid-template-columns: 1fr !important;
  }
}