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

:root {
  --bg: #f7fbf5;
  --panel: #ffffff;
  --ink: #17331f;
  --muted: #56685b;
  --line: #d9e8d4;
  --accent: #00a032;
  --accent-strong: #0c5724;
  --accent-soft: #e7f5df;
  --warm: #7db82b;
  --gold: #f5f0ec;
  --earth: #5e433c;
  --shadow: 0 18px 42px rgba(12, 87, 36, 0.13);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

/* Ajuste fino final: una sola columna institucional */
@media (min-width: 1121px) {
  .lucas-cover .hero-copy {
    align-items: stretch;
    max-width: 540px;
  }

  .lucas-cover .hero-deck,
  .lucas-cover .hero-description,
  .lucas-cover .participation-list {
    box-sizing: border-box;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100%;
  }

  .lucas-cover .participation-list {
    max-width: 100%;
  }

  .lucas-cover .participation-list > span {
    display: block;
    margin: 0 0 10px !important;
    padding: 0 !important;
    text-align: left;
    width: 100%;
  }

  .lucas-cover .participation-list > span::after {
    display: none !important;
  }

  .lucas-cover .participation-list ul {
    align-items: stretch;
    display: grid;
    gap: 7px;
    justify-items: start;
    margin: 0;
    max-width: 410px;
    padding: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only,
  .lucas-cover .participation-list li.community-text {
    align-items: center;
    border-bottom-color: rgba(8, 74, 34, 0.12);
    box-sizing: border-box;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    min-height: 48px;
    padding: 2px 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only img {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
    width: auto;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-dgcye-nuevo"] {
    height: 38px;
    max-height: 38px;
    max-width: 260px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-fundacion-nuevo-final"] {
    height: 51px;
    max-height: 51px;
    max-width: 245px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-municipalidad-nuevo-final"] {
    height: 35px;
    max-height: 35px;
    max-width: 260px;
  }

  .lucas-cover .participation-list li.community-text {
    gap: 14px;
    min-height: 44px;
    padding-top: 5px;
  }

  .lucas-cover .club-icon {
    flex: 0 0 30px;
    height: 30px;
    width: 30px;
  }

  .lucas-cover .participation-list li.community-text strong {
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: left;
  }
}

/* Ajuste final exclusivo para telefonos: portada clara, sin cortes y con mejor ritmo */
@media (max-width: 600px) {
  body {
    overflow-x: hidden !important;
  }

  .topbar.lucas-cover {
    min-height: auto !important;
    padding: 22px 18px 0 !important;
  }

  .lucas-cover .hero-layout {
    display: grid !important;
    gap: 16px !important;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "title"
      "copy"
      "media" !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.7rem, 8.1vw, 2.45rem) !important;
    letter-spacing: -0.025em !important;
    line-height: 0.98 !important;
    margin: 0 0 10px !important;
    max-width: 100% !important;
  }

  .lucas-cover .hero-copy {
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .mobile-message-carousel {
    display: block !important;
    margin: 0 !important;
    min-height: 132px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .mobile-message {
    inset: 0 auto auto 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    transform: translateY(8px) !important;
    transition: opacity 520ms ease, transform 520ms ease !important;
    width: 100% !important;
  }

  .mobile-message.is-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .mobile-message strong {
    color: #084a22 !important;
    display: block !important;
    font-size: clamp(1.32rem, 6.25vw, 1.9rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.06 !important;
    margin: 0 0 8px !important;
  }

  .mobile-message span {
    color: #1c2d24 !important;
    display: block !important;
    font-size: clamp(0.98rem, 4.2vw, 1.1rem) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
  }

  .lucas-cover .hero-photo {
    border-radius: 18px !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 4 / 3 !important;
    border-radius: 18px !important;
    max-height: none !important;
  }

  .lucas-cover .carousel-arrow {
    font-size: 1.65rem !important;
    height: 40px !important;
    opacity: 0.92 !important;
    width: 40px !important;
  }

  .lucas-cover .carousel-dots {
    bottom: 10px !important;
    gap: 5px !important;
    max-width: calc(100% - 28px) !important;
  }

  .lucas-cover .carousel-dots button {
    height: 6px !important;
    width: 6px !important;
  }

  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 18px -18px 0 !important;
    padding: 0 !important;
  }

  .lucas-cover .hero-metrics article {
    min-height: 124px !important;
    padding: 15px 8px !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2.8rem, 15.5vw, 3.9rem) !important;
    line-height: 0.9 !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.68rem, 3vw, 0.82rem) !important;
    line-height: 1.05 !important;
    max-width: 11em !important;
  }

  .territory-classrooms-featured {
    margin-top: 0 !important;
    padding: 18px 14px !important;
  }

  #classroom-title-trigger {
    border-radius: 14px !important;
    padding: 20px 18px !important;
    text-align: center !important;
  }

  #classroom-title-trigger span {
    display: block !important;
    font-size: clamp(1.16rem, 5.7vw, 1.55rem) !important;
    line-height: 1.12 !important;
  }

  #classroom-title-trigger small {
    margin-top: 12px !important;
  }
}

.site-footer {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 236, 0.96));
  border: 1px solid rgba(8, 74, 34, 0.14);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(12, 87, 36, 0.08);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin: 28px auto 0;
  max-width: 1240px;
  padding: clamp(22px, 2.4vw, 34px);
}

.site-footer h2 {
  color: #084a22;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.05;
  margin: 6px 0 10px;
}

.site-footer p {
  color: #2e4335;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.footer-cta {
  background: #0c5724;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 14px 20px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.footer-cta:hover {
  background: #084a22;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 18px;
    padding: 20px;
  }

  .footer-cta {
    justify-content: center;
    width: 100%;
  }
}

/* Ajuste pedido: menos separacion entre texto e Impulsan y participan */
@media (min-width: 1121px) {
  .lucas-cover .hero-description {
    margin-top: clamp(8px, 0.8vw, 12px) !important;
    margin-bottom: 0 !important;
  }
}

/* Firma institucional final: logos horizontales */
@media (min-width: 1121px) {
  .lucas-cover .participation-list {
    max-width: 100%;
  }

  .lucas-cover .participation-list > span {
    margin-bottom: 12px !important;
    text-align: left;
  }

  .lucas-cover .participation-list ul {
    align-items: center;
    display: grid;
    gap: 10px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    max-width: 100%;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only {
    align-items: center;
    border-bottom: 0;
    display: flex;
    justify-content: center;
    min-height: 58px;
    padding: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only img {
    display: block;
    object-fit: contain;
    object-position: center center;
    width: auto;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-dgcye-nuevo"] {
    height: 38px !important;
    max-height: 38px !important;
    max-width: 155px !important;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-fundacion-nuevo-final"] {
    height: 52px !important;
    max-height: 52px !important;
    max-width: 155px !important;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-municipalidad-nuevo-final"] {
    height: 39px !important;
    max-height: 39px !important;
    max-width: 165px !important;
  }

  .lucas-cover .participation-list li.community-text {
    border-top: 1px solid rgba(8, 74, 34, 0.14);
    border-bottom: 0;
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 28px;
    padding: 8px 0 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.community-text::after,
  .lucas-cover .club-icon {
    display: none !important;
  }

  .lucas-cover .participation-list li.community-text strong {
    color: #24352a;
    font-size: clamp(0.72rem, 0.78vw, 0.84rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

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

.topbar {
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.96) 0 48%, rgba(247, 251, 245, 0.9) 48% 100%),
    linear-gradient(180deg, #ffffff 0%, #f2f7ef 100%);
  border-bottom: 4px solid var(--accent-strong);
  display: grid;
  gap: 11px;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  overflow: hidden;
  padding: 13px clamp(18px, 4vw, 52px) 16px;
  position: relative;
  z-index: 1;
}

.topbar::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0 36%, rgba(255, 255, 255, 0.75) 55%, rgba(255, 255, 255, 0.2) 100%),
    url("portada/portada-3.jpg") center / cover;
  content: "";
  filter: saturate(0.82);
  inset: 0;
  opacity: 0.16;
  position: absolute;
  z-index: 0;
}

.topbar::after {
  background: var(--accent-strong);
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  width: 42%;
  z-index: 0;
}

.official-logos {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(34px, 5vw, 70px);
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  padding-block: 4px 6px;
}

.official-logos img {
  background: transparent;
  border: 0;
  border-radius: 0;
  max-height: 72px;
  max-width: 300px;
  object-fit: contain;
  padding: 0;
}

.official-logos .logo-education {
  height: 62px;
  max-height: none;
  max-width: none;
  width: 274px;
}

.official-logos .logo-municipality {
  height: 62px;
  max-height: none;
  max-width: none;
  width: 258px;
}

.official-logos .logo-foundation {
  height: 62px;
  max-height: none;
  max-width: none;
  object-fit: contain;
  object-position: center;
  width: 238px;
}

.brand-strip {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.institution-wordmark {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  display: inline-flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.15;
  min-height: 52px;
  padding: 7px 11px;
  text-transform: uppercase;
}

.institution-wordmark small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  margin-top: 2px;
}

.ensenada-mark::before,
.education-mark::before,
.foundation-mark::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 8px;
  margin-bottom: 4px;
  width: 28px;
}

.foundation-mark {
  color: #245b87;
}

.hero-layout {
  align-items: start;
  display: grid;
  gap: clamp(12px, 2.2vw, 20px) clamp(28px, 4vw, 54px);
  grid-template-areas:
    "title title"
    "copy media";
  grid-template-columns: minmax(0, 0.78fr) minmax(430px, 1.04fr);
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hero-copy {
  grid-area: copy;
  max-width: 760px;
  min-width: 0;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--accent-strong);
  font-size: clamp(1.58rem, 2.92vw, 3.12rem);
  font-weight: 830;
  letter-spacing: 0.012em;
  line-height: 1.16;
  margin-top: 0;
  max-width: 1160px;
  text-transform: uppercase;
}

.hero-title {
  grid-area: title;
}

h1 span {
  display: block;
}

.hero-subtitle {
  color: var(--accent);
  font-size: clamp(1.05rem, 2.2vw, 1.8rem);
  font-weight: 900;
  margin-top: 12px;
  text-transform: uppercase;
}

.header-synthesis {
  color: var(--ink);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
  line-height: 1.52;
  margin-top: 0;
  max-width: 780px;
}

.header-synthesis p + p {
  margin-top: 9px;
}

.lead-highlight {
  background: linear-gradient(90deg, rgba(0, 170, 186, 0.16), rgba(231, 245, 223, 0.48));
  border-left: 4px solid #00a8b8;
  border-radius: 6px;
  color: #007d8b;
  font-weight: 900;
  line-height: 1.42;
  padding: 8px 12px;
}

.participation-list {
  background: rgba(255, 255, 255, 0.82);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(12, 87, 36, 0.08);
  margin-top: 15px;
  padding: 16px 18px;
}

.participation-list span {
  color: var(--accent-strong);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.participation-list ul {
  color: var(--muted);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  line-height: 1.55;
  margin: 0;
  padding-left: 0;
}

.participation-list li {
  display: inline-flex;
  gap: 8px;
}

.participation-list li::before {
  color: var(--accent);
  content: "•";
  font-weight: 900;
  line-height: 1.55;
  margin-right: 0;
}

.participation-list li + li {
  margin-top: 0;
}

.hero-photo {
  grid-area: media;
  background: white;
  border: 6px solid white;
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(12, 87, 36, 0.2);
  margin: 0;
  min-width: 0;
  overflow: hidden;
  transform: none;
}

.hero-photo img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.hero-slideshow {
  aspect-ratio: 16 / 8.85;
  background: var(--accent-soft);
  position: relative;
}

.hero-slideshow img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity 0.55s ease;
  width: 100%;
}

.hero-slideshow img.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img {
    transition: none;
  }
}

.carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(12, 87, 36, 0.18);
  border-radius: 999px;
  color: var(--accent-strong);
  cursor: pointer;
  display: flex;
  font-size: 1.08rem;
  font-weight: 500;
  height: 28px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  z-index: 3;
}

.carousel-arrow:hover {
  background: white;
  border-color: var(--accent-strong);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  bottom: 12px;
  display: flex;
  gap: 5px;
  left: 50%;
  max-width: calc(100% - 24px);
  padding: 7px 9px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.carousel-dots button {
  background: #c9d8c5;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 8px;
  min-height: 0;
  padding: 0;
  width: 8px;
}

.carousel-dots button.is-active {
  background: var(--accent-strong);
  width: 20px;
}

.hero-photo figcaption {
  background: var(--accent-strong);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  padding: 11px 14px;
}

h2 {
  line-height: 1.12;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.top-actions,
.panel-heading,
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.primary-button,
.ghost-button,
.tab,
.filter,
.icon-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 42px;
}

.primary-button {
  background: var(--accent);
  color: white;
  font-weight: 800;
  padding: 0 18px;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.ghost-button {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  padding: 0 18px;
}

main {
  padding: 0 clamp(18px, 4vw, 56px) 48px;
}

.identity-cover,
.implementation,
.territory-gallery,
.home-program,
.workshop-section,
.productions-section,
.people-section,
.memory-lab-section,
.assistant-section,
.pedagogic-observatory,
.pedagogic-framework-section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: clamp(20px, 4vw, 34px);
}

.identity-cover {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
}

.identity-cover p:not(.eyebrow),
.implementation p,
.territory-gallery p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

.cover-marks {
  display: grid;
  gap: 10px;
}

.cover-marks span {
  align-items: center;
  background: var(--gold);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-weight: 900;
  gap: 10px;
  padding: 12px;
}

.cover-marks span::before {
  background: var(--swatch);
  border-radius: 999px;
  content: "";
  height: 22px;
  width: 22px;
}

.implementation {
  background:
    linear-gradient(90deg, rgba(0, 160, 50, 0.08), transparent 42%),
    #ffffff;
}

.implementation-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.implementation-grid article {
  background: #f7fbf5;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  padding: 18px;
}

.implementation-grid span {
  color: var(--warm);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.implementation-grid h3 {
  color: var(--accent-strong);
  font-size: 1.05rem;
  margin: 0;
}

.implementation-grid p {
  margin-top: 10px;
}

.territory-gallery {
  background: #ffffff;
}

.photo-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.photo-grid figure {
  background: var(--gold);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
}

.photo-grid img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-grid figcaption {
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  padding: 10px 12px;
  text-transform: uppercase;
}

.home-program {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 42%, rgba(255, 255, 255, 0.82) 58%, rgba(8, 74, 34, 0.48) 100%),
    url("expo-fondo.jpg") center / cover;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}

.summary-metrics.home-metrics {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.summary-metrics.home-metrics div {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4faf0 100%);
  border: 1px solid rgba(0, 160, 50, 0.2);
  border-left: 5px solid var(--accent);
  box-shadow: 0 12px 26px rgba(12, 87, 36, 0.08);
  text-align: left;
}

.summary-metrics.home-metrics strong {
  color: var(--accent-strong);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.summary-metrics.home-metrics span {
  color: var(--ink);
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 8px;
  text-transform: none;
}

.institution-cards,
.classroom-grid,
.workshop-category-grid,
.production-grid,
.people-grid,
.memory-grid,
.assistant-grid,
.assistant-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.classroom-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.classroom-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 245, 0.96));
  border: 1px solid rgba(0, 160, 50, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(12, 87, 36, 0.07);
  min-height: 150px;
  padding: 18px;
  position: relative;
}

.classroom-grid article::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 34px;
}

.classroom-grid span {
  color: var(--warm);
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 18px 0 10px;
  text-transform: uppercase;
}

.classroom-grid h3 {
  color: var(--accent-strong);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.classroom-grid p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 10px;
}

.institution-cards article,
.workshop-category-grid article,
.production-grid article,
.people-grid article,
.memory-grid article,
.assistant-grid article,
.assistant-actions article {
  background: #f7fbf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 18px;
}

.institution-cards article {
  padding: 0;
}

.institution-cards img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.institution-carousel {
  background: var(--accent-soft);
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) var(--accent-soft);
}

.institution-carousel img {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.institution-carousel::-webkit-scrollbar {
  height: 8px;
}

.institution-carousel::-webkit-scrollbar-track {
  background: var(--accent-soft);
}

.institution-carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.photo-pending {
  align-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(0, 160, 50, 0.16), rgba(12, 87, 36, 0.08)),
    var(--accent-soft);
  color: var(--accent-strong);
  display: flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.3;
  padding: 20px;
  text-align: center;
  text-transform: uppercase;
}

.institution-cards h3,
.institution-cards p,
.institution-cards span {
  margin-left: 16px;
  margin-right: 16px;
}

.institution-cards h3 {
  color: var(--accent-strong);
  margin-bottom: 6px;
  margin-top: 14px;
}

.institution-cards p {
  color: var(--warm);
  font-weight: 900;
}

.institution-cards span {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin-bottom: 16px;
  margin-top: 8px;
}

.workshop-category-grid span {
  color: var(--warm);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.workshop-category-grid h3,
.production-grid h3,
.people-grid h3,
.memory-grid h3,
.assistant-grid h3,
.assistant-actions h3 {
  color: var(--accent-strong);
  margin: 0;
}

.workshop-category-grid p,
.production-grid p,
.people-grid p,
.memory-grid p,
.assistant-grid p,
.assistant-actions p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}

.record-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.pedagogic-framework-section {
  background:
    linear-gradient(135deg, rgba(12, 87, 36, 0.08), transparent 42%),
    #ffffff;
}

.foundation-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.foundation-grid article {
  background: #f7fbf5;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 18px;
}

.foundation-grid span {
  background: var(--accent-strong);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 6px 9px;
}

.foundation-grid h3 {
  color: var(--accent-strong);
  margin: 0;
}

.foundation-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 10px;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.summary-panel,
.framework-panel,
.source-strip,
.stats-band,
.side-panel,
.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.summary-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 760px;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 10px;
}

.summary-metrics div {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.summary-metrics strong {
  display: block;
  font-size: 1.85rem;
}

.summary-metrics span {
  color: var(--muted);
  font-size: 0.85rem;
}

.framework-panel {
  padding: 24px;
}

.program-core {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbf5 56%, #e7f5df 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 20px;
  margin-top: 20px;
  padding: clamp(20px, 4vw, 34px);
}

.core-heading {
  max-width: 980px;
}

.core-heading p:not(.eyebrow),
.institution-panel p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

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

.concept-grid article,
.role-grid article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.concept-grid span {
  background: var(--warm);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 6px 9px;
}

.concept-grid h3,
.role-grid h3 {
  font-size: 1.02rem;
  margin: 0;
}

.concept-grid p,
.role-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}

.institution-panel {
  background: white;
  border-left: 6px solid var(--accent);
  border-radius: 8px;
  padding: 22px;
}

.experience-bank,
.pedagogic-observatory,
.community-pedagogy,
.voices-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 20px;
  padding: clamp(20px, 4vw, 34px);
}

.section-heading {
  max-width: 1000px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
}

.experience-grid,
.trend-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.experience-card,
.trend-grid article,
.principles-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.experience-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf5 100%);
  display: grid;
  gap: 12px;
}

.experience-card h3,
.trend-grid h3,
.principles-list h3 {
  margin: 0;
}

.experience-card p,
.trend-grid p,
.principles-list p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 10px;
}

.experience-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.experience-card dt {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.experience-card dd {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.concept-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.concept-tags span {
  background: #edf6d9;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 9px;
}

.pedagogic-observatory {
  background: linear-gradient(135deg, #ffffff 0%, #edf6d9 100%);
}

.trend-grid article {
  background: white;
}

.trend-grid strong {
  color: var(--warm);
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.principles-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.principles-list article {
  background: #f7fbf5;
  border-left: 5px solid var(--accent);
}

.voices-panel {
  background:
    linear-gradient(135deg, rgba(0, 160, 50, 0.08), transparent 48%),
    #ffffff;
}

.voices-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.voices-grid article {
  background: #f7fbf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.voices-grid blockquote {
  color: var(--accent-strong);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
}

.voices-grid p {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}

.source-strip {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  margin-top: 20px;
  padding: 22px;
}

.source-strip p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 10px;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.source-list span {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 11px;
}

.stats-band {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  margin-top: 14px;
  padding: 14px;
}

.stats-band article {
  background: var(--accent-soft);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.stats-band strong {
  color: var(--accent-strong);
  font-size: 1.8rem;
}

.stats-band span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.record-type,
#module-count {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 10px;
}

.module-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 800;
  padding: 0 14px;
}

.tab.active {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: white;
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}

.side-panel,
.content-panel {
  padding: 22px;
}

.side-panel {
  align-self: start;
  position: sticky;
  top: 118px;
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.filter-group p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.filter {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
}

.filter.active {
  background: var(--gold);
  border-color: var(--warm);
}

.community-note {
  background: var(--accent-soft);
  border-radius: 8px;
  line-height: 1.45;
  margin-top: 22px;
  padding: 16px;
}

.community-note p {
  color: var(--muted);
  margin-top: 6px;
}

.module-description {
  color: var(--muted);
  line-height: 1.6;
  margin: 12px 0 20px;
  max-width: 850px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.record-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
}

.record-card h3 {
  font-size: 1.08rem;
  margin: 0;
}

.record-card p {
  color: var(--muted);
  line-height: 1.5;
}

.record-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.score {
  background: #edf6d9;
  border-radius: 999px;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 10px;
}

.assistant-box {
  background: var(--accent-soft);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 18px;
}

.assistant-box button {
  justify-self: start;
}

.modal {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: min(620px, calc(100vw - 32px));
  padding: 0;
  width: 100%;
}

.modal::backdrop {
  background: rgba(38, 35, 29, 0.34);
}

.modal form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.icon-button {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 900;
  width: 42px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 28px;
}

@media (max-width: 900px) {
  .identity-cover,
  .overview,
  .home-metrics,
  .institution-cards,
  .classroom-grid,
  .implementation-grid,
  .workshop-category-grid,
  .production-grid,
  .people-grid,
  .memory-grid,
  .assistant-grid,
  .assistant-actions,
  .foundation-grid,
  .concept-grid,
  .role-grid,
  .experience-grid,
  .trend-grid,
  .voices-grid,
  .photo-grid,
  .source-strip,
  .stats-band,
  .summary-panel,
  .workspace {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-areas:
      "title title"
      "copy media";
    grid-template-columns: minmax(0, 0.72fr) minmax(330px, 1fr);
  }

  .topbar,
  .top-actions,
  .summary-panel {
    align-items: stretch;
  }

  .topbar {
    display: grid;
    gap: 8px;
    min-height: 100svh;
    padding: 8px 18px 9px;
    position: static;
  }

  .official-logos {
    flex-wrap: nowrap;
    gap: 22px;
    justify-content: center;
    padding-block: 3px 6px;
  }

  .official-logos img {
    max-height: none;
    max-width: none;
  }

  .official-logos .logo-education {
    height: 48px;
    width: min(34vw, 236px);
  }

  .official-logos .logo-municipality {
    height: 48px;
    width: min(31vw, 216px);
  }

  .official-logos .logo-foundation {
    height: 48px;
    max-height: none;
    max-width: none;
    object-fit: contain;
    width: min(32vw, 190px);
  }

  h1 {
    font-size: clamp(1.1rem, 2.78vw, 1.5rem);
    line-height: 1.15;
  }

  .header-synthesis {
    font-size: 0.82rem;
    line-height: 1.28;
    margin-top: 7px;
  }

  .participation-list {
    margin-top: 7px;
    padding: 9px 11px;
  }

  .participation-list span {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .participation-list ul {
    column-gap: 18px;
    font-size: 0.72rem;
    line-height: 1.32;
  }

  .hero-photo {
    max-width: 100%;
    transform: none;
  }

  .hero-slideshow {
    aspect-ratio: 16 / 7.55;
  }

  .hero-photo figcaption {
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  .carousel-arrow {
    font-size: 1rem;
    height: 26px;
    width: 26px;
  }

  .carousel-dots {
    bottom: 8px;
    gap: 4px;
    padding: 5px 7px;
  }

  .carousel-dots button {
    height: 7px;
    width: 7px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .summary-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .summary-metrics.home-metrics {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .source-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .top-actions,
  .summary-metrics,
  .classroom-grid,
  .official-logos {
    grid-template-columns: 1fr;
  }

  .summary-metrics.home-metrics {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 1.45rem;
  }

  .official-logos img {
    max-height: 34px;
    max-width: 31vw;
  }

  .participation-list ul {
    columns: 1;
  }

  .hero-layout {
    grid-template-areas:
      "title"
      "copy"
      "media";
    grid-template-columns: 1fr;
  }
}


/* Portada editorial institucional */
:root {
  --accent: #0a5b2a;
  --accent-strong: #084a22;
  --accent-soft: #eaf6ed;
  --light-green: #7fcf8a;
  --ink: #102818;
  --muted: #4f5f55;
  --line: #ededed;
  --bg: #ffffff;
  --panel: #ffffff;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

body {
  background: #ffffff;
}

.topbar {
  background: #ffffff;
  border-bottom: 0;
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 34px) clamp(28px, 4.4vw, 72px) 0;
  position: relative;
}

.topbar::before,
.topbar::after {
  display: none;
}

.brand-strip {
  justify-content: flex-start;
}

.official-logos {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(28px, 3vw, 52px);
  justify-content: flex-start;
  padding: 0;
  width: 100%;
}

.official-logos img {
  display: block;
  object-fit: contain;
}

.official-logos .logo-education {
  height: 48px;
  width: 224px;
}

.official-logos .logo-province {
  height: 48px;
  width: 160px;
}

.official-logos .logo-foundation {
  height: 54px;
  object-fit: contain;
  width: 218px;
}

.official-logos .logo-municipality {
  height: 56px;
  width: 248px;
}

.hero-layout {
  align-items: center;
  display: grid;
  gap: clamp(30px, 4.8vw, 76px);
  grid-template-areas: "copy media";
  grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1.22fr);
  min-height: 0;
  position: relative;
}

.hero-copy {
  grid-area: copy;
  max-width: 560px;
  padding: 4px 0 18px;
  position: relative;
  z-index: 3;
}

.hero-kicker {
  color: #009b3a;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  font-weight: 900;
  letter-spacing: 0.42em;
  margin-bottom: clamp(14px, 2vw, 24px);
}

h1.hero-title {
  color: var(--accent-strong);
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(2.25rem, 4.6vw, 5.15rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  max-width: 720px;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-rule {
  background: #43ae49;
  height: 5px;
  margin: clamp(18px, 2.2vw, 28px) 0 clamp(18px, 2.2vw, 28px);
  width: 76px;
}

.hero-deck {
  color: var(--accent-strong);
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(1.5rem, 2.15vw, 2.3rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  max-width: 520px;
}

.hero-description {
  color: #111f16;
  font-size: clamp(0.98rem, 1.13vw, 1.18rem);
  font-weight: 500;
  line-height: 1.42;
  margin-top: 16px;
  max-width: 530px;
}

.header-synthesis,
.lead-highlight {
  background: transparent;
  border: 0;
  color: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
  max-width: none;
  padding: 0;
}

.participation-list {
  background: transparent;
  border: 0;
  border-left: 7px solid #00a032;
  border-radius: 0;
  box-shadow: none;
  margin-top: clamp(22px, 3vw, 34px);
  padding: 0 0 0 22px;
}

.participation-list span {
  align-items: center;
  color: #009b3a;
  display: flex;
  font-size: 0.88rem;
  font-weight: 900;
  gap: 14px;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.participation-list span::after {
  background: #91cfa0;
  content: "";
  flex: 1;
  height: 1px;
  max-width: 260px;
}

.participation-list ul {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.participation-list li {
  align-items: center;
  border-bottom: 1px solid #ededed;
  color: #111f16;
  display: grid;
  gap: 2px 16px;
  grid-template-columns: 44px 1fr;
  line-height: 1.2;
  min-height: 58px;
  padding: 8px 0;
}

.participation-list li::before {
  content: none;
}

.participation-list li img {
  grid-row: span 2;
  max-height: 38px;
  max-width: 44px;
  object-fit: contain;
  width: 44px;
}

.participation-list li strong {
  font-size: 0.92rem;
  font-weight: 900;
}

.participation-list li small {
  color: #202f25;
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
}

.institution-icon {
  align-items: center;
  border: 2px solid #43ae49;
  border-radius: 999px;
  color: #43ae49;
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 900;
  grid-row: span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.hero-photo {
  background: transparent;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  grid-area: media;
  margin: 0;
  min-width: 0;
  overflow: visible;
  position: relative;
}

.hero-slideshow {
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(8, 74, 34, 0.12);
  overflow: hidden;
  position: relative;
}

.hero-slideshow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.82) 18%, rgba(255, 255, 255, 0.18) 45%, rgba(255, 255, 255, 0) 68%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.hero-slideshow img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  position: absolute;
  transition: opacity 0.55s ease;
  width: 100%;
}

.hero-slideshow img.is-active {
  opacity: 1;
}

.hero-slideshow figcaption {
  align-items: center;
  background: #084a22;
  border-radius: 9px;
  bottom: 34px;
  box-shadow: 0 14px 34px rgba(8, 74, 34, 0.24);
  color: #ffffff;
  display: flex;
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.45rem);
  font-weight: 800;
  gap: 13px;
  left: clamp(170px, 23vw, 320px);
  line-height: 1.1;
  padding: 16px 22px;
  position: absolute;
  right: clamp(18px, 2vw, 42px);
  z-index: 5;
}

.hero-slideshow figcaption span {
  color: #7fcf8a;
  font-family: Georgia, serif;
  font-size: 3.1rem;
  line-height: 0.6;
}

.carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(8, 74, 34, 0.16);
  color: var(--accent-strong);
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 6;
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  align-items: center;
  background: transparent;
  bottom: 126px;
  display: flex;
  gap: 13px;
  justify-content: center;
  left: 50%;
  padding: 0;
  position: absolute;
  transform: translateX(-50%);
  z-index: 6;
}

.carousel-dots button {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(8, 74, 34, 0.7);
  border-radius: 999px;
  height: 12px;
  padding: 0;
  width: 12px;
}

.carousel-dots button.is-active {
  background: #084a22;
  border-color: #084a22;
  width: 12px;
}

.hero-metrics {
  background:
    linear-gradient(rgba(8, 74, 34, 0.82), rgba(8, 74, 34, 0.82)),
    url("portada/portada-5.jpg") center / cover;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(18px, 2vw, 24px) calc(clamp(28px, 4.4vw, 72px) * -1) 0;
  min-height: clamp(160px, 19vh, 230px);
  position: relative;
}

.hero-metrics::before {
  backdrop-filter: blur(2px);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-metrics article {
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  justify-content: center;
  padding: clamp(24px, 3vw, 38px) clamp(20px, 3vw, 44px);
  position: relative;
  z-index: 1;
}

.hero-metrics article:first-child {
  border-left: 0;
}

.metric-icon {
  align-items: center;
  background: #7fcf8a;
  border-radius: 8px;
  box-shadow: inset 0 -3px 0 rgba(8, 74, 34, 0.18);
  color: white;
  display: inline-flex;
  font-size: 2.1rem;
  font-weight: 900;
  grid-row: span 2;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.hero-metrics strong {
  color: #ffffff;
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(3.4rem, 5vw, 6rem);
  font-weight: 900;
  line-height: 0.85;
}

.hero-metrics p {
  color: #ffffff;
  font-size: clamp(0.9rem, 1.05vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0;
  max-width: 245px;
  text-transform: uppercase;
}

.hero-metrics p::after {
  background: #43ae49;
  content: "";
  display: block;
  height: 5px;
  margin-top: 12px;
  width: 55px;
}

.home-program {
  margin-top: 0;
}

.territory-classrooms {
  border-top: 1px solid rgba(12, 87, 36, 0.14);
  margin-top: clamp(26px, 3vw, 42px);
  padding-top: clamp(22px, 2.6vw, 34px);
}

.rights-statement {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  max-width: none;
  align-items: center;
}

.rights-copy {
  max-width: 920px;
}

.rights-statement .eyebrow {
  margin-bottom: -4px;
}

.rights-statement h2 {
  color: var(--accent-strong);
  font-family: Inter, Montserrat, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0;
  max-width: 780px;
  text-transform: uppercase;
}

.rights-statement h2 span {
  display: block;
  white-space: nowrap;
}

.rights-statement p {
  margin: 0;
}

.rights-body {
  color: #415447;
  font-size: clamp(1.04rem, 1.15vw, 1.24rem);
  font-weight: 500;
  line-height: 1.62;
  max-width: 720px;
}

.rights-body::before {
  background: linear-gradient(90deg, var(--accent), rgba(0, 160, 50, 0.05));
  border-radius: 999px;
  content: "";
  display: block;
  height: 3px;
  margin-bottom: 18px;
  width: 92px;
}

.expo-video-link {
  align-items: center;
  background: #0a5b2a;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-top: clamp(16px, 2vw, 24px);
  padding: 0.82rem 1.2rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.expo-video-link:hover {
  background: #084a22;
  transform: translateY(-1px);
}

.expo-video-panel {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 46%, rgba(255, 255, 255, 0.28) 46% 100%);
  border: 0;
  border-radius: 0;
  display: grid;
  gap: clamp(28px, 4.4vw, 66px);
  grid-template-columns: minmax(300px, 0.82fr) minmax(420px, 1.18fr);
  margin: 0 calc(50% - 50vw);
  padding: clamp(30px, 4vw, 56px) clamp(40px, 7vw, 96px);
  position: relative;
}

.expo-video-panel > div:first-child {
  align-self: center;
  border-left: 5px solid #7fcf8a;
  padding-left: clamp(18px, 2.2vw, 30px);
}

.expo-video-panel span {
  color: #0a5b2a;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.expo-video-panel h3 {
  color: #063f1e;
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
}

.expo-video-panel p {
  color: #24352a;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.62;
  margin: 0;
  max-width: 42rem;
}

.expo-video-placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(8, 74, 34, 0.95), rgba(10, 91, 42, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(8, 74, 34, 0.22);
  display: flex;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}

.expo-video-placeholder::before {
  background: #ffffff;
  border-radius: 999px;
  content: "";
  height: 64px;
  margin-right: 1rem;
  width: 64px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.expo-video-placeholder::after {
  border-bottom: 12px solid transparent;
  border-left: 20px solid #0a5b2a;
  border-top: 12px solid transparent;
  content: "";
  left: calc(50% - 94px);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.expo-video-placeholder span {
  color: #ffffff;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.08em;
  margin: 0;
}

.expo-video-embed {
  background: #063f1e;
  padding: 0;
}

.expo-video-embed::before,
.expo-video-embed::after {
  display: none;
}

.expo-video-embed iframe {
  border: 0;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.expo-video-embed a {
  background: rgba(6, 63, 30, 0.86);
  border-radius: 999px;
  bottom: 14px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.55rem 0.8rem;
  position: absolute;
  right: 14px;
  text-decoration: none;
  text-transform: uppercase;
  z-index: 2;
}

.rights-carousel {
  aspect-ratio: 16 / 10.2;
  background: #eaf3e7;
  border-radius: 14px;
  box-shadow: 0 22px 52px rgba(12, 87, 36, 0.16);
  margin: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.rights-carousel::after {
  background: linear-gradient(180deg, rgba(8, 74, 34, 0) 42%, rgba(8, 74, 34, 0.82) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.rights-carousel img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  position: absolute;
  transition: opacity 900ms ease;
  width: 100%;
}

.rights-carousel img.is-active {
  opacity: 1;
}

.rights-carousel figcaption {
  bottom: 18px;
  color: #ffffff;
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 850;
  left: 20px;
  line-height: 1.25;
  margin: 0;
  max-width: 72%;
  position: absolute;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  z-index: 4;
}

.rights-carousel .carousel-arrow {
  height: 34px;
  top: 50%;
  width: 34px;
  z-index: 5;
}

.rights-carousel .carousel-prev {
  left: 14px;
}

.rights-carousel .carousel-next {
  right: 14px;
}

.rights-carousel .carousel-dots {
  bottom: 18px;
  left: auto;
  right: 18px;
  transform: none;
  z-index: 5;
}

.rights-carousel .carousel-dots button {
  height: 8px;
  width: 8px;
}

.territory-title {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.territory-title h3 {
  background:
    linear-gradient(90deg, rgba(8, 74, 34, 0.96), rgba(10, 91, 42, 0.88));
  border-radius: 8px;
  color: #ffffff;
  flex: 1;
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0;
  max-width: none;
  padding: 16px 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

.territory-zone-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.territory-zone-grid article {
  background: linear-gradient(180deg, #ffffff, #f7fbf5);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(12, 87, 36, 0.08);
  padding: 18px;
}

.territory-zone-grid span {
  color: var(--accent);
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.territory-zone-grid ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.territory-zone-grid li {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
  padding-left: 13px;
  position: relative;
}

.territory-zone-grid li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  top: 0.55em;
  width: 5px;
}

.territory-summary {
  background: rgba(0, 160, 50, 0.08);
  border-left: 5px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--accent-strong);
  font-weight: 850;
  margin: 18px 0 0;
  padding: 14px 18px;
}

@media (max-width: 1100px) {
  .rights-statement {
    grid-template-columns: 1fr;
  }

  .rights-statement h2,
  .rights-body {
    max-width: 760px;
  }

  .rights-carousel {
    max-width: 760px;
  }

  .territory-title {
    align-items: start;
    flex-direction: column;
  }

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

@media (max-width: 650px) {
  .territory-zone-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .topbar {
    min-height: auto;
  }
  .official-logos {
    flex-wrap: wrap;
  }
  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media";
  }
  .hero-copy {
    max-width: 760px;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-metrics article:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 650px) {
  .topbar {
    padding-inline: 18px;
  }
  .official-logos img,
  .official-logos .logo-education,
  .official-logos .logo-province,
  .official-logos .logo-foundation,
  .official-logos .logo-municipality {
    height: 38px;
    max-width: 45vw;
    width: auto;
  }
  h1.hero-title {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }
  .hero-slideshow figcaption {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  .carousel-dots {
    bottom: 96px;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    margin-inline: -18px;
  }
  .hero-metrics article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
  .hero-metrics article:first-child {
    border-top: 0;
  }
}


/* Ajustes de proporción editorial */
@media (min-width: 1101px) {
  .topbar {
    gap: 16px;
    padding-top: 20px;
  }

  .hero-layout {
    align-items: center;
    gap: clamp(42px, 5vw, 72px);
    grid-template-columns: minmax(500px, 0.9fr) minmax(0, 1.1fr);
  }

  h1.hero-title {
    font-size: clamp(2.75rem, 3.15vw, 3.72rem);
    line-height: 1.03;
  }

  .hero-kicker {
    margin-bottom: 16px;
  }

  .hero-rule {
    margin: 18px 0 18px;
  }

  .hero-deck {
    font-size: clamp(1.55rem, 1.85vw, 2.05rem);
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.38;
    margin-top: 12px;
  }

  .participation-list {
    margin-top: 20px;
  }

  .participation-list li {
    min-height: 48px;
    padding: 6px 0;
  }

  .participation-list li img {
    max-height: 30px;
  }

  .institution-icon {
    height: 32px;
    width: 32px;
  }

  .hero-slideshow {
    aspect-ratio: 16 / 9.6;
  }

  .hero-metrics {
    min-height: 176px;
  }
}


/* Corrección de título en tres líneas */
@media (min-width: 1101px) {
  .hero-layout {
    grid-template-columns: minmax(575px, 0.96fr) minmax(0, 1.04fr);
  }

  h1.hero-title {
    font-size: clamp(2.55rem, 2.78vw, 3.15rem);
    line-height: 1.02;
  }

  .hero-title span {
    white-space: nowrap;
  }

  .hero-slideshow {
    aspect-ratio: 16 / 10.2;
  }
}


/* Ajuste de placa y controles del carrusel */
.hero-slideshow figcaption {
  bottom: 22px;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  left: clamp(86px, 10vw, 160px);
  right: clamp(18px, 2vw, 32px);
  padding: 15px 20px;
}

.hero-slideshow figcaption span {
  font-size: 2.65rem;
}

.carousel-dots {
  bottom: 108px;
}

/* Portada editorial Lucas - capa final */
.topbar.lucas-cover {
  background:
    linear-gradient(90deg, #ffffff 0%, #ffffff 40%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.5) 58%, rgba(255, 255, 255, 0) 72%),
    #ffffff;
  color: #0f1f17;
  gap: 0;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 46px) clamp(48px, 5vw, 86px) 0;
}

.topbar.lucas-cover::before,
.topbar.lucas-cover::after {
  display: none;
}

.lucas-cover .hero-layout {
  align-items: center;
  display: grid;
  gap: clamp(36px, 4.4vw, 70px);
  grid-template-columns: minmax(390px, 0.76fr) minmax(0, 1.24fr);
  margin: 0 auto;
  max-width: 1510px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.lucas-cover .hero-copy {
  max-width: 560px;
  padding-block: 4px 18px;
}

.lucas-cover .hero-kicker {
  color: #079446;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.98rem);
  font-weight: 900;
  letter-spacing: 0.34em;
  margin: 0 0 clamp(16px, 1.8vw, 26px);
}

.lucas-cover h1.hero-title {
  color: #084a22;
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(2.45rem, 3.05vw, 4.45rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1.05;
  margin: 0;
  max-width: none;
  text-transform: uppercase;
}

.lucas-cover .hero-title span {
  display: block;
  white-space: normal;
}

.lucas-cover .hero-rule {
  background: #079446;
  border-radius: 999px;
  height: 5px;
  margin: clamp(22px, 2.3vw, 34px) 0 clamp(18px, 2vw, 28px);
  width: 74px;
}

.lucas-cover .hero-deck {
  color: #084a22;
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(1.7rem, 2.1vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0 0 14px;
}

.lucas-cover .hero-description {
  color: #1a241d;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.02vw, 1.12rem);
  font-weight: 450;
  line-height: 1.4;
  margin: 0 0 clamp(22px, 2.4vw, 34px);
  max-width: 525px;
}

.lucas-cover .participation-list {
  background: transparent;
  border: 0;
  border-left: 7px solid #079446;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  padding: 0 0 0 clamp(20px, 2vw, 34px);
}

.lucas-cover .participation-list > span {
  align-items: center;
  color: #079446;
  display: grid;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 14px;
  grid-template-columns: auto 1fr;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.lucas-cover .participation-list > span::after {
  background: rgba(7, 148, 70, 0.35);
  content: "";
  display: block;
  height: 1px;
  min-width: 90px;
}

.lucas-cover .participation-list ul {
  display: block;
  margin: 0;
  padding: 0;
}

.lucas-cover .participation-list li {
  align-items: center;
  border-bottom: 1px solid rgba(8, 74, 34, 0.14);
  color: #121f18;
  display: grid;
  gap: 2px 18px;
  grid-template-columns: 52px 1fr;
  list-style: none;
  min-height: 62px;
  padding: 9px 0;
}

.lucas-cover .participation-list li:last-child {
  border-bottom: 0;
}

.lucas-cover .participation-list li::before {
  display: none;
}

.lucas-cover .participation-list li img {
  grid-row: span 2;
  height: 42px;
  max-height: 42px;
  max-width: 52px;
  object-fit: contain;
  width: 52px;
}

.lucas-cover .participation-list li img[src*="fundacion"] {
  height: 46px;
  max-height: 46px;
}

.lucas-cover .participation-list strong {
  color: #111a14;
  display: block;
  font-size: clamp(0.93rem, 0.98vw, 1.04rem);
  font-weight: 850;
  line-height: 1.12;
}

.lucas-cover .participation-list small {
  color: #2d3a30;
  display: block;
  font-size: clamp(0.82rem, 0.9vw, 0.94rem);
  font-weight: 600;
  line-height: 1.16;
}

.lucas-cover .institution-icon {
  align-items: center;
  background: transparent;
  border: 0;
  color: #2fb65e;
  display: flex;
  grid-row: span 2;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 52px;
}

.lucas-cover .institution-icon::before {
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: -15px 18px 0 -9px currentColor, 15px 18px 0 -9px currentColor;
  content: "";
  display: block;
  height: 18px;
  width: 18px;
}

.lucas-cover .institution-icon::after {
  border: 3px solid currentColor;
  border-radius: 50% 50% 0 0;
  border-bottom: 0;
  bottom: 2px;
  content: "";
  height: 18px;
  left: 10px;
  position: absolute;
  width: 32px;
}

.lucas-cover .hero-photo {
  margin: 0;
  min-width: 0;
  position: relative;
}

.lucas-cover .hero-slideshow {
  aspect-ratio: 16 / 10.25;
  background: #edf3eb;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(8, 74, 34, 0.18);
  min-height: 470px;
  overflow: hidden;
  position: relative;
  width: min(100%, 930px);
}

.lucas-cover .hero-slideshow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 16%, rgba(255, 255, 255, 0) 34%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.lucas-cover .hero-slideshow img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.lucas-cover .hero-slideshow img[src*="portada-4"] {
  object-position: 58% center;
}

.lucas-cover .hero-slideshow figcaption {
  align-items: center;
  background: rgba(8, 74, 34, 0.94);
  border-radius: 10px;
  bottom: clamp(22px, 2.4vw, 38px);
  box-shadow: 0 18px 45px rgba(2, 29, 13, 0.2);
  color: #ffffff;
  display: flex;
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(1.15rem, 1.6vw, 1.85rem);
  font-weight: 800;
  gap: 14px;
  left: clamp(130px, 18vw, 310px);
  line-height: 1.15;
  margin: 0;
  padding: clamp(15px, 1.5vw, 22px) clamp(18px, 2.3vw, 34px);
  position: absolute;
  right: clamp(22px, 3vw, 54px);
  text-shadow: none;
  z-index: 4;
}

.lucas-cover .hero-slideshow figcaption span {
  color: #7fcf8a;
  font-size: clamp(2.3rem, 3vw, 4rem);
  line-height: 0.7;
}

.lucas-cover .carousel-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(5, 40, 19, 0.16);
  color: #084a22;
  display: flex;
  font-size: 2rem;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  line-height: 1;
  opacity: 1;
  top: 52%;
  transform: translateY(-50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
  width: 46px;
  z-index: 5;
}

.lucas-cover .carousel-arrow:hover {
  box-shadow: 0 14px 32px rgba(5, 40, 19, 0.22);
  transform: translateY(-50%) scale(1.04);
}

.lucas-cover .carousel-prev {
  left: clamp(14px, 1.8vw, 28px);
}

.lucas-cover .carousel-next {
  right: clamp(14px, 1.8vw, 28px);
}

.lucas-cover .carousel-dots {
  bottom: clamp(118px, 10vw, 150px);
  gap: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.lucas-cover .carousel-dots button {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(8, 74, 34, 0.7);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(7, 40, 18, 0.12);
  height: 12px;
  opacity: 1;
  width: 12px;
}

.lucas-cover .carousel-dots button.is-active {
  background: #084a22;
  border-color: #ffffff;
}

.lucas-cover .hero-metrics {
  background:
    linear-gradient(90deg, rgba(8, 74, 34, 0.88), rgba(8, 74, 34, 0.82)),
    url("portada/portada-5.jpg") center 45% / cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(34px, 3vw, 46px) calc(clamp(48px, 5vw, 86px) * -1) 0;
  min-height: clamp(190px, 18vw, 265px);
  overflow: hidden;
  position: relative;
}

.lucas-cover .hero-metrics::before {
  backdrop-filter: blur(2px);
  background: rgba(8, 74, 34, 0.08);
  content: "";
  inset: 0;
  position: absolute;
}

.lucas-cover .hero-metrics article {
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  gap: 8px 22px;
  grid-template-columns: 70px 1fr;
  justify-content: center;
  padding: clamp(24px, 3vw, 42px);
  position: relative;
  z-index: 1;
}

.lucas-cover .hero-metrics article:first-child {
  border-left: 0;
}

.lucas-cover .metric-icon {
  align-items: center;
  background: #7fcf8a;
  border-radius: 10px;
  box-shadow: inset 0 -4px 0 rgba(8, 74, 34, 0.22), 0 12px 24px rgba(0, 0, 0, 0.16);
  color: #ffffff;
  display: flex;
  font-family: Inter, system-ui, sans-serif;
  font-size: 2.05rem;
  font-weight: 900;
  grid-row: span 2;
  height: 62px;
  justify-content: center;
  line-height: 1;
  width: 62px;
}

.lucas-cover .metric-people::before {
  content: "○○";
  letter-spacing: -0.24em;
}

.lucas-cover .metric-book::before {
  content: "□";
  font-size: 2.3rem;
}

.lucas-cover .metric-home::before {
  content: "⌂";
  font-size: 2.1rem;
}

.lucas-cover .metric-file::before {
  content: "▤";
  font-size: 2.1rem;
}

.lucas-cover .hero-metrics strong {
  color: #ffffff;
  font-family: "Playfair Display", Merriweather, Georgia, serif;
  font-size: clamp(4.8rem, 6.2vw, 7.3rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.8;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.lucas-cover .hero-metrics p {
  color: #ffffff;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(0.9rem, 1vw, 1.12rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0;
  max-width: 260px;
  text-transform: uppercase;
}

.lucas-cover .hero-metrics p::after {
  background: #7fcf8a;
  border-radius: 999px;
  content: "";
  display: block;
  height: 5px;
  margin-top: 14px;
  width: 58px;
}

@media (min-width: 1300px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(3.15rem, 3.25vw, 4.65rem);
  }

  .lucas-cover .hero-slideshow {
    min-height: 520px;
  }
}

@media (max-width: 1120px) {
  .topbar.lucas-cover {
    min-height: auto;
    padding: 28px 24px 0;
  }

  .lucas-cover .hero-layout {
    grid-template-columns: 1fr;
  }

  .lucas-cover .hero-copy {
    max-width: 760px;
  }

  .lucas-cover .hero-slideshow {
    min-height: 420px;
    width: 100%;
  }

  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: -24px;
  }

  .lucas-cover .hero-metrics article:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .topbar.lucas-cover {
    padding-inline: 18px;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .lucas-cover .participation-list li {
    grid-template-columns: 46px 1fr;
  }

  .lucas-cover .hero-slideshow {
    min-height: 360px;
  }

  .lucas-cover .hero-slideshow figcaption {
    left: 16px;
    right: 16px;
  }

  .lucas-cover .carousel-dots {
    bottom: 104px;
  }

  .lucas-cover .hero-metrics {
    grid-template-columns: 1fr;
    margin-inline: -18px;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .lucas-cover .hero-metrics article:first-child {
    border-top: 0;
  }
}

/* Refinamiento final de proporciones de portada */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    gap: clamp(32px, 3.6vw, 58px);
    grid-template-columns: minmax(500px, 0.82fr) minmax(0, 1.18fr);
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2.55rem, 3vw, 4.25rem);
  }

  .lucas-cover .hero-slideshow {
    min-height: 440px;
  }

  .lucas-cover .participation-list li {
    min-height: 56px;
    padding: 7px 0;
  }
}

@media (min-width: 1300px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(2.85rem, 3.05vw, 4.35rem);
  }

  .lucas-cover .hero-slideshow {
    min-height: 490px;
  }
}

/* Ajuste de equilibrio visual solicitado: foto dominante */
@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-top: clamp(14px, 1.5vw, 24px);
  }

  .lucas-cover .hero-layout {
    align-items: end;
    gap: clamp(22px, 2.4vw, 38px);
    grid-template-columns: minmax(380px, 0.66fr) minmax(0, 1.34fr);
    max-width: 1580px;
  }

  .lucas-cover .hero-copy {
    max-width: 510px;
    padding-bottom: 2px;
  }

  .lucas-cover .hero-kicker {
    font-size: clamp(0.7rem, 0.72vw, 0.82rem);
    margin-bottom: clamp(8px, 0.9vw, 14px);
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.9rem, 2.25vw, 3.15rem);
    line-height: 1.04;
  }

  .lucas-cover .hero-rule {
    height: 4px;
    margin: clamp(14px, 1.3vw, 20px) 0 clamp(12px, 1.2vw, 18px);
    width: 58px;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.28rem, 1.55vw, 2.05rem);
    margin-bottom: 8px;
  }

  .lucas-cover .hero-description {
    font-size: clamp(0.9rem, 0.92vw, 1rem);
    line-height: 1.34;
    margin-bottom: clamp(14px, 1.3vw, 20px);
  }

  .lucas-cover .participation-list {
    border-left-width: 5px;
    padding-left: clamp(14px, 1.3vw, 20px);
  }

  .lucas-cover .participation-list > span {
    font-size: 0.78rem;
    margin-bottom: 4px;
  }

  .lucas-cover .participation-list li {
    gap: 1px 12px;
    grid-template-columns: 34px 1fr;
    min-height: 44px;
    padding: 5px 0;
  }

  .lucas-cover .participation-list li img {
    height: 27px;
    max-height: 27px;
    max-width: 34px;
    width: 34px;
  }

  .lucas-cover .participation-list li img[src*="fundacion"] {
    height: 30px;
    max-height: 30px;
  }

  .lucas-cover .participation-list strong {
    font-size: clamp(0.82rem, 0.84vw, 0.94rem);
  }

  .lucas-cover .participation-list small {
    font-size: clamp(0.72rem, 0.76vw, 0.84rem);
  }

  .lucas-cover .institution-icon {
    height: 30px;
    width: 34px;
  }

  .lucas-cover .institution-icon::before {
    border-width: 2px;
    box-shadow: -10px 14px 0 -7px currentColor, 10px 14px 0 -7px currentColor;
    height: 13px;
    width: 13px;
  }

  .lucas-cover .institution-icon::after {
    border-width: 2px;
    height: 13px;
    left: 6px;
    width: 23px;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 9.9;
    min-height: clamp(540px, 43vw, 670px);
    width: min(100%, 1040px);
  }

  .lucas-cover .hero-slideshow figcaption {
    bottom: clamp(18px, 1.7vw, 28px);
    font-size: clamp(1rem, 1.22vw, 1.55rem);
    left: clamp(110px, 15vw, 250px);
    padding: clamp(12px, 1.15vw, 18px) clamp(16px, 1.8vw, 26px);
  }

  .lucas-cover .hero-slideshow figcaption span {
    font-size: clamp(2rem, 2.3vw, 3.1rem);
  }

  .lucas-cover .carousel-dots {
    bottom: clamp(94px, 7.8vw, 122px);
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(22px, 2vw, 34px);
    min-height: clamp(168px, 15vw, 220px);
  }
}

.mobile-message-carousel,
.mobile-institutional-logos {
  display: none;
}

/* Ajustes exclusivos para telefonos */
@media (max-width: 600px) {
  .lucas-cover .cover-top-logos {
    display: none !important;
  }

  .topbar.lucas-cover {
    padding-top: 22px !important;
  }

  .lucas-cover .hero-layout {
    display: flex !important;
    flex-direction: column !important;
  }

  .lucas-cover h1.hero-title {
    order: 1 !important;
  }

  .lucas-cover .hero-copy {
    order: 2 !important;
    margin-top: 8px !important;
    min-height: 118px !important;
    padding-top: 0 !important;
  }

  .lucas-cover .hero-photo {
    order: 3 !important;
  }

  .lucas-cover .hero-metrics {
    order: 4 !important;
  }

  .lucas-cover .hero-rule,
  .lucas-cover .hero-deck,
  .lucas-cover .hero-description,
  .lucas-cover .hero-caption-text {
    display: none !important;
  }

  .mobile-message-carousel {
    display: block !important;
    min-height: 112px;
    position: relative;
  }

  .mobile-message {
    color: #084a22;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transform: translateY(8px);
    transition: opacity 520ms ease, transform 520ms ease;
    width: 100%;
  }

  .mobile-message.is-active {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-message strong {
    display: block;
    font-size: clamp(1.45rem, 7vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-transform: none;
  }

  .mobile-message span {
    color: #1c2d24;
    display: block;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    margin-top: 10px;
    max-width: 92%;
  }

  .mobile-institutional-logos {
    align-items: center;
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    margin: 38px auto 26px;
    padding: 0 24px;
  }

  .mobile-institutional-logos img {
    display: block;
    height: auto;
    object-fit: contain;
    width: min(76vw, 270px);
  }

  .mobile-institutional-logos img:nth-child(1) {
    width: min(76vw, 285px);
  }

  .mobile-institutional-logos img:nth-child(2) {
    width: min(68vw, 255px);
  }

  .mobile-institutional-logos img:nth-child(3) {
    width: min(72vw, 270px);
  }
}

/* Ajustes finales: carrusel apaisado, titulo mas legible y logos ordenados */
@media (min-width: 1121px) {
  .lucas-cover h1.hero-title {
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.82rem, 2.05vw, 2.9rem);
    font-weight: 900;
    letter-spacing: 0.012em;
    line-height: 1.08;
  }

  .lucas-cover .hero-title span {
    display: block;
    white-space: nowrap;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.35;
    min-height: clamp(383px, 29.7vw, 468px);
  }

  .lucas-cover .carousel-dots {
    bottom: clamp(88px, 6.7vw, 108px);
  }

  .lucas-cover .hero-slideshow figcaption {
    bottom: clamp(16px, 1.35vw, 24px);
  }

  .lucas-cover .participation-list li {
    align-items: center;
    gap: 0 16px;
    grid-template-columns: 46px 1fr;
    min-height: 48px;
    padding: 7px 0;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .participation-list li img[src*="fundacion"] {
    height: 34px;
    max-height: 34px;
    max-width: 46px;
    object-fit: contain;
    width: 46px;
  }

  .lucas-cover .participation-list li strong {
    align-self: center;
    line-height: 1.12;
  }

  .lucas-cover .participation-list li small {
    align-self: center;
    line-height: 1.12;
  }

  .lucas-cover .participation-list li:not(:has(small)) strong {
    align-self: center;
  }

  .lucas-cover .institution-icon {
    align-self: center;
    height: 34px;
    width: 46px;
  }
}

/* Bloque institucional centrado por renglon */
@media (min-width: 1121px) {
  .lucas-cover .participation-list li {
    grid-template-areas:
      "logo name"
      "logo detail";
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .institution-icon {
    align-self: center;
    grid-area: logo;
    justify-self: center;
  }

  .lucas-cover .participation-list strong {
    align-self: end;
    grid-area: name;
  }

  .lucas-cover .participation-list small {
    align-self: start;
    grid-area: detail;
  }

  .lucas-cover .participation-list li:not(:has(small)) {
    grid-template-areas: "logo name";
  }

  .lucas-cover .participation-list li:not(:has(small)) strong {
    align-self: center;
  }

  .lucas-cover .participation-list li img[src*="buenos-aires-provincia"] {
    height: 39px;
    max-height: 39px;
    max-width: 44px;
    width: 44px;
  }

  .lucas-cover .participation-list li img[src*="fundacion"] {
    height: 34px;
    max-height: 34px;
    max-width: 42px;
    width: 42px;
  }

  .lucas-cover .participation-list li img[src*="escudomuni"] {
    height: 31px;
    max-height: 31px;
    max-width: 39px;
    width: 39px;
  }

  .lucas-cover .institution-icon {
    height: 36px;
    width: 40px;
  }
}

/* Logos definitivos con escala visual uniforme */
@media (min-width: 1121px) {
  .lucas-cover .participation-list li {
    column-gap: 15px;
    grid-template-columns: 56px 1fr;
    min-height: 58px;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .participation-list li img[src*="dgcye-definitivo"],
  .lucas-cover .participation-list li img[src*="fundacion-definitivo"],
  .lucas-cover .participation-list li img[src*="municipalidad-definitivo"] {
    height: 34px;
    justify-self: start;
    max-height: 34px;
    max-width: none;
    object-fit: contain;
    width: auto;
  }

  .lucas-cover .institution-icon {
    height: 46px;
    justify-self: start;
    width: 46px;
  }

  .lucas-cover .participation-list strong,
  .lucas-cover .participation-list small {
    justify-self: start;
  }
}

/* Mayor presencia de logos y franja de indicadores mas compacta */
@media (min-width: 1121px) {
  .lucas-cover .participation-list li {
    column-gap: 20px;
    grid-template-columns: 76px 1fr;
    min-height: 76px;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .participation-list li img[src*="dgcye-definitivo"],
  .lucas-cover .participation-list li img[src*="fundacion-definitivo"],
  .lucas-cover .participation-list li img[src*="municipalidad-definitivo"] {
    height: 66px;
    max-height: 66px;
    width: auto;
  }

  .lucas-cover .institution-icon {
    height: 62px;
    width: 62px;
  }

  .lucas-cover .hero-metrics {
    background:
      linear-gradient(90deg, rgba(8, 74, 34, 0.78), rgba(8, 74, 34, 0.7)),
      url("portada/portada-5.jpg") center 45% / cover;
    min-height: clamp(118px, 10.5vw, 154px);
  }

  .lucas-cover .hero-metrics article {
    gap: 4px 15px;
    grid-template-columns: 48px 1fr;
    padding: clamp(16px, 1.8vw, 26px) clamp(22px, 2.5vw, 34px);
  }

  .lucas-cover .metric-icon {
    border-radius: 8px;
    font-size: 1.55rem;
    height: 44px;
    width: 44px;
  }

  .lucas-cover .metric-book::before {
    font-size: 1.75rem;
  }

  .lucas-cover .metric-home::before,
  .lucas-cover .metric-file::before {
    font-size: 1.65rem;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(3.35rem, 4.45vw, 5.1rem);
    line-height: 0.86;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.78rem, 0.86vw, 0.98rem);
    line-height: 1.14;
    max-width: 230px;
  }

  .lucas-cover .hero-metrics p::after {
    height: 4px;
    margin-top: 8px;
    width: 46px;
  }
}

/* Ajuste final de alineacion entre columna izquierda y carrusel */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    align-items: start;
    row-gap: clamp(14px, 1.35vw, 22px);
  }

  .lucas-cover .hero-copy {
    display: flex;
    flex-direction: column;
    max-width: 540px;
  }

  .lucas-cover .hero-rule {
    height: 4px;
    margin: 0 0 clamp(9px, 0.8vw, 13px);
  }

  .lucas-cover .hero-deck {
    margin-bottom: 6px;
  }

  .lucas-cover .hero-description {
    line-height: 1.3;
    margin-bottom: clamp(7px, 0.7vw, 11px);
  }

  .lucas-cover .participation-list {
    margin-top: 0;
  }

  .lucas-cover .participation-list > span {
    margin-bottom: 2px;
  }

  .lucas-cover .participation-list li {
    column-gap: 20px;
    grid-template-columns: 90px 1fr;
    min-height: 86px;
    padding: 5px 0;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .participation-list li img[src*="dgcye-definitivo"],
  .lucas-cover .participation-list li img[src*="fundacion-definitivo"],
  .lucas-cover .participation-list li img[src*="municipalidad-definitivo"] {
    height: 79px;
    max-height: 79px;
  }

  .lucas-cover .institution-icon {
    height: 74px;
    width: 74px;
  }
}

/* Compactar columna izquierda para que cierre dentro del carrusel */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    row-gap: clamp(10px, 1vw, 16px);
  }

  .lucas-cover .hero-copy {
    justify-content: start;
    max-width: 560px;
  }

  .lucas-cover .hero-rule {
    margin-bottom: clamp(7px, 0.65vw, 10px);
  }

  .lucas-cover .hero-deck {
    margin-bottom: 4px;
  }

  .lucas-cover .hero-description {
    line-height: 1.26;
    margin-bottom: clamp(13px, 1.15vw, 18px);
  }

  .lucas-cover .participation-list {
    border-left-width: 4px;
    padding-left: clamp(12px, 1.05vw, 17px);
  }

  .lucas-cover .participation-list > span {
    margin-bottom: 0;
  }

  .lucas-cover .participation-list li {
    column-gap: 16px;
    grid-template-columns: 62px 1fr;
    min-height: 51px;
    padding: 1px 0;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .participation-list li img[src*="dgcye-definitivo"],
  .lucas-cover .participation-list li img[src*="fundacion-definitivo"],
  .lucas-cover .participation-list li img[src*="municipalidad-definitivo"] {
    height: 56px;
    max-height: 52px;
  }

  .lucas-cover .institution-icon {
    height: 50px;
    width: 50px;
  }

  .lucas-cover .participation-list strong {
    line-height: 0.98;
  }

  .lucas-cover .participation-list small {
    line-height: 0.98;
    margin-top: -2px;
  }
}

/* Titulo principal en dos lineas a todo el ancho */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    align-items: start;
    grid-template-areas:
      "title title"
      "copy media";
    grid-template-columns: minmax(380px, 0.66fr) minmax(0, 1.34fr);
    row-gap: clamp(20px, 2.1vw, 32px);
  }

  .lucas-cover h1.hero-title {
    grid-area: title;
    margin: 0;
    max-width: 1480px;
    text-align: left;
    width: 100%;
  }

  .lucas-cover .hero-title span {
    display: block;
    white-space: nowrap;
  }

  .lucas-cover .hero-copy {
    grid-area: copy;
    padding-top: 0;
  }

  .lucas-cover .hero-photo {
    grid-area: media;
  }

  .lucas-cover .hero-rule {
    margin-top: 0;
  }
}

@media (min-width: 1121px) and (max-width: 1450px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(1.82rem, 2.35vw, 2.51rem);
  }
}

@media (min-width: 1451px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(2.31rem, 2.62vw, 3.19rem);
  }
}

/* Encuadre final: portada completa en una pantalla */
@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-top: clamp(10px, 1vw, 16px);
  }

  .lucas-cover .hero-layout {
    row-gap: clamp(8px, 0.75vw, 12px);
  }

  .lucas-cover h1.hero-title {
    line-height: 1.02;
  }

  .lucas-cover .hero-rule {
    height: 3px;
    margin-bottom: clamp(12px, 1.1vw, 18px);
  }

  .lucas-cover .hero-deck {
    margin-bottom: clamp(10px, 0.95vw, 15px);
  }

  .lucas-cover .hero-description {
    line-height: 1.35;
    margin-bottom: clamp(24px, 2.5vw, 38px);
  }

  .lucas-cover .participation-list > span {
    font-size: 0.74rem;
    margin-bottom: 6px;
  }

  .lucas-cover .participation-list li {
    column-gap: 16px;
    grid-template-columns: 58px 1fr;
    min-height: 46px;
    padding: 0;
  }

  .lucas-cover .participation-list li img,
  .lucas-cover .participation-list li img[src*="dgcye-definitivo"],
  .lucas-cover .participation-list li img[src*="fundacion-definitivo"],
  .lucas-cover .participation-list li img[src*="municipalidad-definitivo"] {
    height: 49px;
    max-height: 49px;
  }

  .lucas-cover .institution-icon {
    height: 47px;
    width: 47px;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 7.8;
    min-height: clamp(340px, 26vw, 410px);
  }

  .lucas-cover .carousel-dots {
    bottom: clamp(74px, 5.9vw, 92px);
  }

  .lucas-cover .hero-slideshow figcaption {
    bottom: clamp(12px, 1vw, 18px);
    padding: clamp(10px, 0.9vw, 14px) clamp(14px, 1.5vw, 22px);
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(12px, 1.1vw, 18px);
    min-height: clamp(96px, 8.8vw, 132px);
  }

  .lucas-cover .hero-metrics article {
    gap: 3px 12px;
    grid-template-columns: 42px 1fr;
    padding: clamp(12px, 1.25vw, 20px) clamp(18px, 2vw, 28px);
  }

  .lucas-cover .metric-icon {
    border-radius: 7px;
    font-size: 1.35rem;
    height: 38px;
    width: 38px;
  }

  .lucas-cover .metric-book::before {
    font-size: 1.5rem;
  }

  .lucas-cover .metric-home::before,
  .lucas-cover .metric-file::before {
    font-size: 1.45rem;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2.9rem, 3.8vw, 4.4rem);
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.72rem, 0.78vw, 0.9rem);
    line-height: 1.08;
  }

  .lucas-cover .hero-metrics p::after {
    height: 3px;
    margin-top: 6px;
    width: 40px;
  }
}

/* Ajuste puntual: aire superior del titulo y transicion suave del carrusel principal */
@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-top: clamp(28px, 2.6vw, 42px);
  }

  .lucas-cover .hero-slideshow img {
    transition: opacity 1200ms ease-in-out;
  }
}

/* Ajustes finales de aire, bajada e institucion */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    row-gap: clamp(16px, 1.55vw, 26px);
  }

  .lucas-cover .hero-description span {
    display: block;
  }

  .lucas-cover .participation-list li.community-text {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .lucas-cover .club-icon {
    align-items: center;
    border: 2px solid #079446;
    border-radius: 50%;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: relative;
    width: 34px;
  }

  .lucas-cover .club-icon::before {
    border: 2px solid #079446;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    content: "";
    height: 12px;
    left: 8px;
    position: absolute;
    top: 9px;
    width: 14px;
  }

  .lucas-cover .club-icon::after {
    background: #079446;
    border-radius: 50%;
    box-shadow: -8px 8px 0 -2px #079446, 8px 8px 0 -2px #079446;
    content: "";
    height: 5px;
    left: 14px;
    position: absolute;
    top: 13px;
    width: 5px;
  }
}

/* Subtitulo institucional alineado y nuevos logos */
@media (min-width: 1121px) {
  .lucas-cover .participation-list {
    padding-left: 0;
    width: 100%;
  }

  .lucas-cover .participation-list > span {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-left: 0;
    text-align: left;
  }

  .lucas-cover .participation-list ul {
    align-items: center;
  }

  .lucas-cover .participation-list li.logo-only {
    justify-content: flex-start;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-dgcye-nuevo"] {
    height: 38px;
    max-height: 38px;
    max-width: 210px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-fundacion-nuevo-final"] {
    height: 42px;
    max-height: 42px;
    max-width: 210px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-municipalidad-nuevo-final"] {
    height: 42px;
    max-height: 42px;
    max-width: 230px;
  }

  .lucas-cover .participation-list li.community-text {
    justify-content: flex-start;
  }
}

/* Firma institucional oficial: Impulsan y participan */
@media (min-width: 1121px) {
  .lucas-cover .participation-list {
    border-left-width: 0;
    padding-left: 16px;
  }

  .lucas-cover .participation-list > span {
    margin-bottom: 8px;
  }

  .lucas-cover .participation-list > span::after {
    display: none;
  }

  .lucas-cover .participation-list ul {
    display: grid;
    gap: 0;
  }

  .lucas-cover .participation-list li {
    align-items: center;
    column-gap: 18px;
    display: grid;
    grid-template-areas:
      "logo name"
      "logo detail";
    grid-template-columns: 118px 1fr;
    min-height: 58px;
    padding: 5px 0;
  }

  .lucas-cover .participation-list li:not(:has(small)) {
    grid-template-areas: "logo name";
  }

  .lucas-cover .participation-list li img {
    align-self: center;
    grid-area: logo;
    justify-self: start;
    object-fit: contain;
    width: auto;
  }

  .lucas-cover .participation-list li img[src*="logo-dgcye-oficial"] {
    height: 42px;
    max-height: 42px;
    max-width: 108px;
  }

  .lucas-cover .participation-list li img[src*="logo-fundacion-oficial"] {
    height: 42px;
    max-height: 42px;
    max-width: 112px;
  }

  .lucas-cover .participation-list li img[src*="logo-municipalidad-oficial"] {
    height: 44px;
    max-height: 44px;
    max-width: 116px;
  }

  .lucas-cover .institution-icon {
    align-self: center;
    grid-area: logo;
    height: 42px;
    justify-self: start;
    width: 42px;
  }

  .lucas-cover .participation-list strong {
    align-self: end;
    grid-area: name;
    line-height: 1.04;
  }

  .lucas-cover .participation-list small {
    align-self: start;
    display: block;
    grid-area: detail;
    line-height: 1.04;
    margin-top: 1px;
  }

  .lucas-cover .participation-list li:not(:has(small)) strong {
    align-self: center;
  }

  .lucas-cover .participation-list li.community-text {
    grid-template-areas: "logo name";
  }

  .lucas-cover .participation-list li.community-text::after {
    content: "";
    grid-area: logo;
    width: 1px;
  }

  .lucas-cover .participation-list li.community-text strong {
    align-self: center;
    font-weight: 700;
    text-transform: uppercase;
  }

  .lucas-cover .participation-list li.logo-only {
    grid-template-areas: "logo";
    grid-template-columns: 1fr;
    min-height: 50px;
  }

  .lucas-cover .participation-list li.logo-only img {
    grid-area: logo;
    justify-self: center;
  }
}

/* Logos institucionales centrados y con menos espacio blanco */
@media (min-width: 1121px) {
  .lucas-cover .participation-list {
    max-width: 360px;
  }

  .lucas-cover .participation-list ul {
    gap: 6px;
  }

  .lucas-cover .participation-list li.logo-only {
    align-items: center;
    border-bottom-color: rgba(8, 74, 34, 0.1);
    display: flex;
    justify-content: center;
    min-height: 44px;
    padding: 2px 0;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-dgcye-oficial"] {
    height: 34px;
    max-height: 34px;
    max-width: 180px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-fundacion-oficial"] {
    height: 48px;
    max-height: 48px;
    max-width: 180px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-municipalidad-oficial"] {
    height: 36px;
    max-height: 36px;
    max-width: 190px;
  }

  .lucas-cover .participation-list li.community-text {
    display: flex;
    justify-content: center;
    min-height: 38px;
    padding-top: 7px;
  }

  .lucas-cover .participation-list li.community-text::after {
    display: none;
  }

  .lucas-cover .participation-list li.community-text strong {
    text-align: center;
  }
}

@media (min-width: 1121px) {
  .lucas-cover .participation-list li.community-text {
    justify-content: center;
  }

  .lucas-cover .participation-list li.community-text strong {
    font-weight: 600;
    text-align: center;
  }
}

/* Aire final en bloque izquierdo de portada */
@media (min-width: 1121px) {
  .lucas-cover .hero-rule {
    margin-bottom: clamp(12px, 1.1vw, 18px);
  }

  .lucas-cover .hero-deck {
    margin-bottom: clamp(10px, 0.95vw, 15px);
  }

  .lucas-cover .hero-description {
    line-height: 1.35;
    margin-bottom: clamp(24px, 2.5vw, 38px);
  }

  .lucas-cover .participation-list > span {
    margin-bottom: 6px;
  }

  .lucas-cover .participation-list li {
    min-height: 48px;
    padding: 1px 0;
  }
}

/* Alineacion institucional final del bloque izquierdo */
@media (min-width: 1121px) {
  .lucas-cover .hero-copy {
    align-items: stretch;
  }

  .lucas-cover .hero-deck,
  .lucas-cover .hero-description,
  .lucas-cover .participation-list {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .lucas-cover .participation-list {
    max-width: 100%;
  }

  .lucas-cover .participation-list > span {
    display: block;
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    width: 100%;
  }

  .lucas-cover .participation-list ul {
    align-items: stretch;
    display: grid;
    gap: 5px;
    justify-items: start;
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    min-height: 43px;
    padding: 2px 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only img {
    display: block;
    justify-self: start;
    object-fit: contain;
    width: auto;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-dgcye-nuevo"] {
    height: 35px;
    max-height: 35px;
    max-width: 220px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-fundacion-nuevo-final"] {
    height: 46px;
    max-height: 46px;
    max-width: 220px;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-municipalidad-nuevo-final"] {
    height: 33px;
    max-height: 33px;
    max-width: 220px;
  }

  .lucas-cover .participation-list li.community-text {
    justify-content: flex-start;
    padding-top: 4px;
    width: 100%;
  }

  .lucas-cover .participation-list li.community-text strong {
    text-align: left;
  }
}

/* Firma institucional vertical definitiva */
@media (min-width: 1121px) {
  .lucas-cover .participation-list {
    max-width: 380px;
  }

  .lucas-cover .participation-list > span {
    margin: 0 0 9px !important;
    text-align: left;
  }

  .lucas-cover .participation-list > span::after {
    display: none !important;
  }

  .lucas-cover .participation-list ul {
    align-items: center;
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
    justify-items: center;
    margin: 0;
    max-width: 100%;
    padding: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only {
    align-items: center;
    border-bottom: 0;
    display: flex;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.logo-only img {
    display: block;
    object-fit: contain;
    object-position: center center;
    width: auto;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-dgcye-nuevo"] {
    height: 35px !important;
    max-height: 35px !important;
    max-width: 190px !important;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-fundacion-nuevo-final"] {
    height: 50px !important;
    max-height: 50px !important;
    max-width: 190px !important;
  }

  .lucas-cover .participation-list li.logo-only img[src*="logo-municipalidad-nuevo-final"] {
    height: 34px !important;
    max-height: 34px !important;
    max-width: 190px !important;
  }

  .lucas-cover .participation-list li.community-text {
    border: 0;
    display: flex;
    justify-content: center;
    min-height: 30px;
    padding: 5px 0 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.community-text::after,
  .lucas-cover .club-icon {
    display: none !important;
  }

  .lucas-cover .participation-list li.community-text strong {
    color: #24352a;
    display: block;
    font-size: clamp(0.72rem, 0.78vw, 0.84rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.15;
    margin: 0 auto;
    max-width: 320px;
    text-align: center;
    text-transform: uppercase;
  }
}

/* Ajuste fino: carrusel principal 10% mas angosto */
@media (min-width: 1121px) {
  .lucas-cover .hero-photo {
    width: 90%;
    justify-self: center;
  }
}

/* Correccion de estabilidad horizontal */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.topbar.lucas-cover,
.lucas-cover .hero-layout,
.lucas-cover .hero-metrics {
  max-width: 100%;
}

/* La portada no debe bloquear el desplazamiento manual */
.topbar.lucas-cover {
  overflow: visible !important;
}

/* Franja inferior: ancho completo y aire respecto del carrusel */
@media (min-width: 1121px) {
  .lucas-cover .hero-metrics {
    margin-top: clamp(28px, 3vw, 44px) !important;
    margin-left: calc(50% - 50vw + 8px);
    margin-right: calc(50% - 50vw + 8px);
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
  }
}

/* Franja verde mas baja y ajustada al contenido */
@media (min-width: 1121px) {
  .lucas-cover .hero-metrics {
    height: clamp(84px, 6.4vw, 106px) !important;
    min-height: 84px !important;
  }

  .lucas-cover .hero-metrics article {
    padding-top: clamp(6px, 0.65vw, 10px) !important;
    padding-bottom: clamp(6px, 0.65vw, 10px) !important;
  }
}

/* Firma institucional unificada */
@media (min-width: 1121px) {
  .lucas-cover .participation-list ul {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .lucas-cover .participation-list li.signature-logo {
    border: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.signature-logo::before {
    display: none;
  }

  .lucas-cover .participation-list li.signature-logo img {
    display: block;
    height: clamp(162px, 17.15vw, 208px);
    max-height: 208px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
  }

  .lucas-cover .participation-list li.community-text {
    border: 0;
    display: flex;
    justify-content: center;
    min-height: auto;
    padding: 2px 0 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.community-text::before,
  .lucas-cover .participation-list li.community-text::after {
    display: none;
  }

  .lucas-cover .participation-list li.community-text strong {
    color: #24352a;
    font-size: clamp(0.72rem, 0.78vw, 0.84rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
  }
}

/* Refinamiento institucional de carrusel e indicadores */
@media (min-width: 1121px) {
  .lucas-cover .hero-slideshow {
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(8, 74, 34, 0.13);
    overflow: hidden;
  }

  .lucas-cover .hero-slideshow::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.28) 18%, rgba(255, 255, 255, 0) 38%);
  }

  .lucas-cover .carousel-arrow {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(8, 74, 34, 0.14);
    box-shadow: 0 8px 20px rgba(5, 40, 19, 0.14);
    color: #084a22;
    display: flex;
    font-size: 1.42rem;
    font-weight: 500;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 2px;
    width: 34px;
  }

  .lucas-cover .carousel-arrow:hover {
    background: #ffffff;
    border-color: rgba(8, 74, 34, 0.25);
    box-shadow: 0 10px 24px rgba(5, 40, 19, 0.18);
    transform: translateY(-50%) scale(1.03);
  }

  .lucas-cover .carousel-prev {
    left: clamp(10px, 1.25vw, 18px);
  }

  .lucas-cover .carousel-next {
    right: clamp(10px, 1.25vw, 18px);
  }

  .lucas-cover .carousel-dots {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    bottom: clamp(62px, 5vw, 78px);
    box-shadow: 0 8px 22px rgba(5, 40, 19, 0.1);
    gap: 5px;
    padding: 5px 8px;
  }

  .lucas-cover .carousel-dots button {
    background: rgba(8, 74, 34, 0.24);
    border: 0;
    box-shadow: none;
    height: 6px;
    opacity: 0.85;
    width: 6px;
  }

  .lucas-cover .carousel-dots button.is-active {
    background: #084a22;
    height: 6px;
    opacity: 1;
    width: 18px;
  }

  .lucas-cover .hero-slideshow figcaption {
    border-radius: 8px;
    bottom: clamp(10px, 0.85vw, 15px);
    box-shadow: 0 12px 28px rgba(2, 29, 13, 0.18);
    font-size: clamp(0.82rem, 0.88vw, 1rem);
    left: clamp(88px, 12vw, 190px);
    padding: 9px 15px;
  }

  .lucas-cover .hero-slideshow figcaption span {
    font-size: clamp(1.6rem, 1.9vw, 2.35rem);
  }

  .lucas-cover .hero-metrics {
    background:
      linear-gradient(90deg, rgba(8, 74, 34, 0.76), rgba(8, 74, 34, 0.68)),
      url("portada/portada-5.jpg") center 45% / cover;
    align-items: center;
    box-sizing: border-box;
    height: clamp(112px, 9vw, 142px);
    margin-top: clamp(8px, 0.85vw, 14px);
    min-height: clamp(78px, 7.1vw, 104px);
  }

  .lucas-cover .hero-metrics::before {
    backdrop-filter: blur(1.4px);
    background: rgba(8, 74, 34, 0.03);
  }

  .lucas-cover .hero-metrics article {
    align-self: center;
    gap: 2px 10px;
    grid-template-columns: 34px 1fr;
    height: auto;
    min-height: 0;
    padding: clamp(9px, 0.95vw, 15px) clamp(16px, 1.7vw, 24px);
  }

  .lucas-cover .metric-icon {
    background: rgba(127, 207, 138, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    font-family: Inter, system-ui, sans-serif;
    font-size: 1.05rem;
    height: 32px;
    width: 32px;
  }

  .lucas-cover .metric-people::before {
    content: "◦◦";
    letter-spacing: -0.18em;
  }

  .lucas-cover .metric-book::before {
    content: "□";
    font-size: 1.24rem;
  }

  .lucas-cover .metric-home::before {
    content: "⌂";
    font-size: 1.25rem;
  }

  .lucas-cover .metric-file::before {
    content: "▤";
    font-size: 1.18rem;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2.35rem, 3.1vw, 3.7rem);
    line-height: 0.9;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.66rem, 0.72vw, 0.82rem);
    letter-spacing: 0.035em;
    line-height: 1.08;
    max-width: 210px;
  }

  .lucas-cover .hero-metrics p::after {
    height: 3px;
    margin-top: 5px;
    width: 34px;
  }
}

/* Correccion responsive final de portada */
@media (max-width: 1120px) {
  .topbar.lucas-cover {
    padding: 28px 24px 0;
  }

  .lucas-cover .hero-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-areas:
      "title"
      "copy"
      "media";
    grid-template-columns: minmax(0, 1fr);
    margin: 0 auto;
    max-width: 860px;
    width: 100%;
  }

  .lucas-cover h1.hero-title {
    grid-area: title;
    margin: 0;
    max-width: 100%;
    text-align: left;
    width: 100%;
  }

  .lucas-cover .hero-title span {
    white-space: normal;
  }

  .lucas-cover .hero-copy {
    grid-area: copy;
    max-width: 620px;
    width: 100%;
  }

  .lucas-cover .hero-photo {
    grid-area: media;
    justify-self: stretch;
    max-width: 100%;
    width: 100%;
  }

  .lucas-cover .hero-slideshow {
    min-height: 360px;
    width: 100%;
  }

  .lucas-cover .participation-list li.signature-logo img {
    height: clamp(120px, 20vw, 170px);
    max-height: 170px;
    max-width: 100%;
  }

  .lucas-cover .participation-list li.signature-logo {
    border: 0;
    display: flex;
    justify-content: center;
    padding: 0;
    width: 100%;
  }

  .lucas-cover .participation-list li.signature-logo::before {
    display: none;
  }

  .lucas-cover .participation-list li.signature-logo img {
    width: auto;
  }

  .lucas-cover .hero-metrics {
    margin-top: 28px;
    width: 100%;
  }
}

/* Titulo principal: sans serif institucional y contundente */
.lucas-cover h1.hero-title {
  color: #084a22;
  font-family: Inter, Montserrat, Manrope, "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0.012em;
  line-height: 1.04;
  text-transform: uppercase;
}

.lucas-cover .hero-title span {
  display: block;
}

@media (min-width: 1121px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(2rem, 2.55vw, 3.25rem);
  }

  .lucas-cover .hero-title span {
    white-space: nowrap;
  }
}

@media (max-width: 1120px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(1.9rem, 6.2vw, 3rem);
  }
}

/* Ajuste vertical: bajar carrusel manteniendo aire con la franja */
@media (min-width: 1121px) {
  .lucas-cover .hero-photo {
    margin-top: 16px;
  }
}

/* Sistema tipografico unificado */
body,
button,
input,
textarea,
select {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-heading h2,
.hero-deck,
.participation-list > span,
.eyebrow,
.nav-link,
.card-title {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
}

.hero-title,
.hero-metrics strong,
.summary-metrics strong,
.stats-band strong,
.metric-number,
.data-number {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-weight: 950;
}

p,
li,
span,
small,
.hero-description,
.section-heading p,
.card p,
.hero-metrics p,
.summary-metrics span {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.lucas-cover .hero-metrics strong {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-weight: 950;
}

.lucas-cover .hero-deck,
.lucas-cover .participation-list > span,
.lucas-cover .hero-metrics p {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

.lucas-cover .hero-deck,
.lucas-cover .participation-list > span {
  font-weight: 700 !important;
}

.lucas-cover .hero-description,
.lucas-cover .hero-description span {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
  font-weight: 400 !important;
}

.lucas-cover .hero-metrics p {
  font-weight: 700 !important;
}

.lucas-cover .hero-caption-text {
  color: #084a22;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 2.3vw, 2.56rem);
  font-weight: 950;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: clamp(18px, 2vw, 30px) 0 0;
  max-width: 100%;
  text-align: left;
}

.lucas-cover .hero-caption-text span {
  display: block;
}

@media (min-width: 1121px) {
  .lucas-cover .hero-deck {
    margin-top: clamp(10px, 1vw, 16px);
  }
}

/* Logos superiores institucionales */
.lucas-cover .cover-top-logos {
  align-items: center;
  display: flex;
  gap: clamp(26px, 4vw, 58px);
  justify-content: center;
  margin: 0 auto;
  max-width: 920px;
  width: 100%;
}

.lucas-cover .cover-top-logos img {
  display: block;
  height: auto;
  object-fit: contain;
}

.lucas-cover .cover-top-logos img:nth-child(1) {
  max-height: 60px;
  max-width: 350px;
  transform: translateY(2px);
}

.lucas-cover .cover-top-logos img:nth-child(2) {
  max-height: 48px;
  max-width: 210px;
}

.lucas-cover .cover-top-logos img:nth-child(3) {
  max-height: 48px;
  max-width: 285px;
  transform: translateY(3px);
}

@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-top: clamp(18px, 1.8vw, 28px);
  }

  .lucas-cover .cover-top-logos {
    margin-bottom: clamp(28px, 2.8vw, 42px);
  }

  .lucas-cover .hero-layout {
    row-gap: clamp(12px, 1.25vw, 20px);
  }

  .lucas-cover .hero-photo {
    margin-top: 18px;
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(30px, 3.2vw, 46px) !important;
  }
}

@media (max-width: 1120px) {
  .lucas-cover .cover-top-logos {
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-bottom: 20px;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 36px;
    max-width: 220px;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 44px;
    max-width: 175px;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 34px;
    max-width: 220px;
  }
}

/* Centrado visual del bloque textual con el carrusel principal */
@media (min-width: 1121px) {
  .lucas-cover .hero-copy {
    transform: translateY(70px);
  }
}

/* Ajuste de altura para primera pantalla en notebook */
@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-top: clamp(14px, 1.3vw, 20px);
  }

  .lucas-cover .cover-top-logos {
    margin-bottom: clamp(18px, 2vw, 30px);
  }

  .lucas-cover .hero-layout {
    row-gap: clamp(8px, 1vw, 14px);
  }

  .lucas-cover .hero-photo {
    margin-top: 10px;
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(12px, 1.6vw, 22px) !important;
  }
}

/* Acercar la franja verde al carrusel sin alterar los elementos internos */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    margin-bottom: -24px;
  }
}

/* Carrusel principal: navegacion limpia e institucional */
.lucas-cover .carousel-dots {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  gap: 7px !important;
  padding: 0 !important;
}

.lucas-cover .carousel-dots button {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(8, 74, 34, 0.34) !important;
  box-shadow: none !important;
  height: 7px !important;
  opacity: 0.82 !important;
  width: 7px !important;
}

.lucas-cover .carousel-dots button.is-active {
  background: #084a22 !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  height: 8px !important;
  opacity: 1 !important;
  width: 8px !important;
}

.lucas-cover .carousel-arrow {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(8, 74, 34, 0.16) !important;
  box-shadow: 0 5px 16px rgba(5, 40, 19, 0.12) !important;
  color: #084a22 !important;
  font-size: 1.35rem !important;
  font-weight: 400 !important;
  height: 30px !important;
  line-height: 1 !important;
  width: 30px !important;
}

.lucas-cover .carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 7px 18px rgba(5, 40, 19, 0.16) !important;
}

/* Sin raya superior en el bloque Construyendo saberes */
.lucas-cover .hero-rule {
  display: none !important;
}

/* Refinamiento final de experiencia visual del carrusel */
@media (min-width: 1121px) {
  .lucas-cover .carousel-arrow {
    opacity: 0 !important;
    pointer-events: none;
    transform: translateY(-50%) scale(0.96) !important;
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      background-color 220ms ease,
      box-shadow 220ms ease !important;
  }

  .lucas-cover .hero-slideshow:hover .carousel-arrow,
  .lucas-cover .hero-slideshow:focus-within .carousel-arrow {
    opacity: 0.9 !important;
    pointer-events: auto;
    transform: translateY(-50%) scale(1) !important;
  }

  .lucas-cover .hero-slideshow:hover .carousel-arrow:hover,
  .lucas-cover .hero-slideshow:focus-within .carousel-arrow:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.03) !important;
  }

  .lucas-cover .carousel-dots {
    bottom: 14px !important;
  }

  .lucas-cover .hero-slideshow figcaption {
    bottom: clamp(10px, 0.85vw, 14px) !important;
  }

  .lucas-cover .hero-layout {
    row-gap: clamp(10px, 1.05vw, 16px);
  }

  .lucas-cover .hero-photo {
    margin-top: -16px;
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(14px, 1.45vw, 20px) !important;
  }
}

/* Carrusel: imagen protagonista y controles editoriales minimos */
@media (min-width: 1121px) {
  .lucas-cover .hero-slideshow {
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: none !important;
  }

  .lucas-cover .carousel-arrow {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #084a22 !important;
    font-size: 1.42rem !important;
    height: 28px !important;
    opacity: 0 !important;
    width: 28px !important;
  }

  .lucas-cover .hero-slideshow:hover .carousel-arrow,
  .lucas-cover .hero-slideshow:focus-within .carousel-arrow {
    opacity: 0.86 !important;
  }

  .lucas-cover .hero-slideshow:hover .carousel-arrow:hover,
  .lucas-cover .hero-slideshow:focus-within .carousel-arrow:hover {
    background: #ffffff !important;
    opacity: 1 !important;
  }

  .lucas-cover .carousel-prev {
    left: 14px !important;
  }

  .lucas-cover .carousel-next {
    right: 14px !important;
  }

  .lucas-cover .carousel-dots {
    bottom: 10px !important;
    gap: 6px !important;
  }

  .lucas-cover .carousel-dots button {
    background: rgba(255, 255, 255, 0.74) !important;
    border: 0 !important;
    height: 6px !important;
    opacity: 0.9 !important;
    width: 6px !important;
  }

  .lucas-cover .carousel-dots button.is-active {
    background: #084a22 !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    height: 8px !important;
    width: 8px !important;
  }
}

/* Compactacion vertical final de portada para pantalla de notebook */
@media (min-width: 1121px) {
  .topbar.lucas-cover {
    align-content: start;
    padding-top: clamp(8px, 0.9vw, 14px) !important;
    grid-template-rows: auto auto auto !important;
  }

  .lucas-cover .cover-top-logos {
    align-self: start;
    height: 60px;
    margin-bottom: clamp(10px, 1.2vw, 18px) !important;
  }

  .lucas-cover .hero-layout {
    margin-bottom: 20px;
    row-gap: clamp(4px, 0.65vw, 10px) !important;
  }

  .lucas-cover .hero-copy {
    transform: translateY(70px);
  }

  .lucas-cover .hero-photo {
    margin-top: 22px !important;
  }

  .lucas-cover .hero-metrics {
    margin-top: 0 !important;
  }
}

/* Aulas comunitarias: titulo centrado y protagonista */
.territory-title {
  justify-content: center !important;
}

.territory-title h3 {
  flex: 0 1 auto !important;
  font-size: clamp(1.1rem, 1.65vw, 1.75rem) !important;
  max-width: 1100px;
  padding: clamp(14px, 1.6vw, 22px) clamp(22px, 3vw, 42px) !important;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.territory-classrooms {
  border-top: 0 !important;
  padding-top: clamp(12px, 1.5vw, 22px) !important;
}

/* Correccion final para version celular */
@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .topbar.lucas-cover {
    align-content: start;
    display: grid;
    min-height: auto;
    overflow: visible;
    padding: 18px 16px 0 !important;
  }

  .lucas-cover .cover-top-logos {
    flex-direction: column;
    gap: 12px;
    height: auto !important;
    margin-bottom: 22px !important;
    max-width: 100%;
  }

  .lucas-cover .cover-top-logos img {
    max-width: min(86vw, 280px) !important;
    transform: none !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 42px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 48px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 40px !important;
  }

  .lucas-cover .hero-layout {
    display: grid;
    gap: 18px !important;
    grid-template-areas:
      "title"
      "copy"
      "media" !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin-bottom: 22px !important;
    max-width: 100%;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.75rem, 9vw, 2.7rem) !important;
    line-height: 1.05;
    width: 100%;
  }

  .lucas-cover .hero-title span,
  .rights-statement h2 span,
  .territory-title h3 {
    white-space: normal !important;
  }

  .lucas-cover .hero-copy {
    max-width: 100%;
    transform: none !important;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .lucas-cover .hero-description {
    font-size: 1rem;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
    margin-top: 18px;
  }

  .lucas-cover .hero-photo {
    margin-top: 0 !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 10.5;
    min-height: 0 !important;
    width: 100%;
  }

  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    grid-template-columns: 30px 1fr;
    padding: 14px 12px !important;
  }

  .lucas-cover .hero-metrics article:nth-child(1),
  .lucas-cover .hero-metrics article:nth-child(2) {
    border-top: 0;
  }

  .lucas-cover .hero-metrics article:nth-child(2),
  .lucas-cover .hero-metrics article:nth-child(4) {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2rem, 10vw, 3.1rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.66rem !important;
    line-height: 1.08;
  }

  .home-program,
  .workshop-section,
  .productions-section,
  .people-section,
  .memory-lab-section,
  .observatory-section,
  .assistant-section,
  .framework-section {
    margin-inline: 14px;
  }

  .rights-statement {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .rights-copy {
    max-width: 100%;
  }

  .rights-statement h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.12;
  }

  .rights-body {
    font-size: 1rem;
    line-height: 1.5;
  }

  .territory-title h3 {
    font-size: clamp(1.05rem, 5.2vw, 1.45rem) !important;
    line-height: 1.18;
  }
}

/* Ajuste fino de portada para celulares */
@media (max-width: 760px) {
  .topbar.lucas-cover {
    padding: 12px 18px 0 !important;
  }

  .lucas-cover .cover-top-logos {
    gap: 7px !important;
    margin-bottom: 14px !important;
  }

  .lucas-cover .cover-top-logos img {
    max-width: min(78vw, 245px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 32px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 38px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 32px !important;
  }

  .lucas-cover .hero-layout {
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.55rem, 7.4vw, 2.08rem) !important;
    line-height: 1.02 !important;
    letter-spacing: 0.002em !important;
    margin-bottom: 2px !important;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.15rem, 5.1vw, 1.45rem) !important;
    margin-bottom: 8px !important;
  }

  .lucas-cover .hero-description {
    font-size: 0.94rem !important;
    line-height: 1.34 !important;
    max-width: 31rem;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.35rem, 6.5vw, 1.82rem) !important;
    line-height: 1.08 !important;
    margin-top: 12px !important;
  }

  .lucas-cover .hero-photo {
    margin-top: 2px !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 10.2 !important;
    border-radius: 14px !important;
  }

  .lucas-cover .carousel-dots {
    bottom: 8px !important;
  }

  .lucas-cover .carousel-arrow {
    height: 30px !important;
    width: 30px !important;
  }

  .lucas-cover .hero-metrics {
    margin-top: 12px !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    grid-template-columns: 26px 1fr !important;
    min-height: 94px !important;
    padding: 10px 9px !important;
  }

  .lucas-cover .metric-icon {
    height: 27px !important;
    width: 27px !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(1.7rem, 8.6vw, 2.45rem) !important;
    line-height: 0.92 !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.56rem !important;
    line-height: 1.05 !important;
  }
}

@media (max-width: 420px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(1.38rem, 7.1vw, 1.78rem) !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.22rem, 6.3vw, 1.6rem) !important;
  }
}

/* Portada celular compacta */
@media (max-width: 760px) {
  .topbar.lucas-cover {
    padding: 10px 14px 0 !important;
  }

  .lucas-cover .cover-top-logos {
    gap: 5px !important;
    margin-bottom: 10px !important;
  }

  .lucas-cover .cover-top-logos img {
    max-width: min(72vw, 224px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 28px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 34px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 28px !important;
  }

  .lucas-cover .hero-layout {
    gap: 9px !important;
    margin-bottom: 10px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.28rem, 6.4vw, 1.72rem) !important;
    line-height: 1 !important;
  }

  .lucas-cover .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.05rem, 4.8vw, 1.32rem) !important;
    margin-bottom: 6px !important;
  }

  .lucas-cover .hero-description {
    font-size: 0.88rem !important;
    line-height: 1.28 !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.18rem, 5.9vw, 1.48rem) !important;
    line-height: 1.04 !important;
    margin-top: 10px !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 9.8 !important;
  }

  .lucas-cover .hero-metrics {
    margin-top: 10px !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    grid-template-columns: 24px 1fr !important;
    min-height: 80px !important;
    padding: 9px 8px !important;
  }

  .lucas-cover .metric-icon {
    height: 24px !important;
    width: 24px !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(1.52rem, 7.6vw, 2.12rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.5rem !important;
    letter-spacing: 0.02em !important;
  }
}

/* Correccion visual de logos e indicadores en celulares */
@media (max-width: 760px) {
  .lucas-cover .cover-top-logos {
    align-items: center !important;
    display: grid !important;
    flex-direction: initial !important;
    gap: 10px !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    justify-items: center !important;
    margin: 0 auto 14px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .lucas-cover .cover-top-logos img {
    display: block !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    transform: none !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 29px !important;
    width: 128px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 38px !important;
    width: 112px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 31px !important;
    width: 116px !important;
  }

  .lucas-cover .hero-metrics {
    align-items: stretch !important;
    border-radius: 0 !important;
    gap: 0 !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    align-items: center !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    min-height: 86px !important;
    padding: 10px 6px !important;
    text-align: center !important;
  }

  .lucas-cover .metric-icon {
    height: 22px !important;
    margin-bottom: 4px !important;
    opacity: 0.82 !important;
    width: 22px !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(1.78rem, 8vw, 2.2rem) !important;
    line-height: 0.9 !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.52rem !important;
    line-height: 1.08 !important;
    margin-top: 4px !important;
    max-width: 8.2em !important;
  }

  .lucas-cover .hero-metrics p::after {
    margin: 7px auto 0 !important;
    width: 34px !important;
  }
}

@media (max-width: 420px) {
  .lucas-cover .cover-top-logos {
    gap: 7px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    width: 116px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    width: 102px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    width: 104px !important;
  }
}

/* Indicadores moviles mas limpios */
@media (max-width: 760px) {
  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    grid-template-columns: 1fr !important;
    min-height: 74px !important;
    padding: 9px 8px !important;
  }

  .lucas-cover .metric-icon {
    display: none !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(1.9rem, 8.8vw, 2.45rem) !important;
    margin-bottom: 4px !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.55rem !important;
    line-height: 1.05 !important;
    max-width: 11em !important;
  }

  .lucas-cover .hero-metrics p::after {
    height: 3px !important;
    margin-top: 6px !important;
  }
}

/* Permitir desplazamiento normal en celulares */
@media (max-width: 760px) {
  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }

  .topbar,
  .topbar.lucas-cover {
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .lucas-cover .hero-layout,
  .lucas-cover .hero-photo,
  .lucas-cover .hero-slideshow,
  .lucas-cover .hero-metrics {
    touch-action: pan-y !important;
  }
}

@media (max-width: 760px) {
  .expo-video-link {
    justify-content: center;
    width: 100%;
  }

  .expo-video-panel {
    grid-template-columns: minmax(0, 1fr);
    margin: 0 calc(50% - 50vw) 22px;
    padding: 24px 18px;
  }

  .expo-video-placeholder {
    min-height: 180px;
  }
}

/* Fusion de segunda seccion: texto institucional + video */
.home-program > .rights-statement {
  display: none !important;
}

.expo-video-panel h3,
.expo-video-panel p {
  font-size: 0 !important;
  line-height: 0 !important;
}

.expo-video-panel h3::before {
  color: #063f1e;
  content: "Muestra grupal\A de los talleres\A de personas mayores";
  display: block;
  font-size: clamp(1.85rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: pre-line;
  text-transform: uppercase;
}

.expo-video-panel p::before {
  color: #24352a;
  content: "Los talleres son espacios donde las personas mayores continúan aprendiendo, compartiendo experiencias y construyendo nuevos saberes. Esta muestra reúne parte de las producciones realizadas durante el año, reflejando el valor de la educación, la creatividad y el encuentro comunitario.";
  display: block;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.55;
  margin-top: 1rem;
}

/* Acercar el bloque de video a la franja de aulas comunitarias */
.home-program {
  gap: clamp(2px, 0.45vw, 8px) !important;
}

.expo-video-panel {
  padding-bottom: clamp(10px, 1.2vw, 18px) !important;
}

.territory-classrooms {
  margin-top: 0 !important;
  padding-top: clamp(2px, 0.35vw, 6px) !important;
}

.expo-video-panel + .territory-classrooms {
  display: none !important;
}

.territory-classrooms-featured {
  display: block !important;
  margin-bottom: clamp(12px, 1.5vw, 18px) !important;
}

/* Experiencia interactiva de aulas comunitarias */
.territory-zone-grid,
.territory-summary {
  display: none !important;
}

.territory-title {
  align-items: center !important;
  display: grid !important;
  gap: 14px !important;
  justify-items: center !important;
}

#classroom-title-trigger {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 14px;
  justify-content: center;
  transition: box-shadow 180ms ease, filter 180ms ease, transform 180ms ease;
}

#classroom-title-trigger small {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72em;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 8px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

#classroom-title-trigger small::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 180ms ease;
}

#classroom-title-trigger:hover,
#classroom-title-trigger:focus-visible {
  box-shadow: 0 16px 34px rgba(8, 74, 34, 0.18);
  filter: brightness(1.06);
  outline: 3px solid rgba(127, 207, 138, 0.42);
  outline-offset: 3px;
  transform: translateY(-1px);
}

#classroom-title-trigger:hover small::after,
#classroom-title-trigger:focus-visible small::after {
  transform: translateX(3px);
}

.classroom-modal[hidden] {
  display: none !important;
}

.classroom-modal {
  inset: 0;
  position: fixed;
  z-index: 50;
}

.classroom-modal__backdrop {
  background: rgba(3, 32, 15, 0.64);
  inset: 0;
  position: absolute;
}

.classroom-modal__panel {
  background: #ffffff;
  border-radius: clamp(14px, 1.4vw, 20px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: clamp(210px, 23vw, 290px) minmax(0, 1fr);
  left: 50%;
  max-height: min(82vh, 680px);
  max-width: 1180px;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 1180px);
}

.classroom-modal__close {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(8, 74, 34, 0.16);
  border-radius: 999px;
  color: #084a22;
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 38px;
  z-index: 3;
}

.classroom-modal__list {
  background: linear-gradient(180deg, #f4fbf2, #ffffff);
  border-right: 1px solid rgba(8, 74, 34, 0.12);
  max-height: min(82vh, 680px);
  overflow-y: auto;
  padding: clamp(18px, 2vw, 24px) clamp(14px, 1.6vw, 18px);
}

.classroom-modal__list p {
  color: #0a5b2a;
  font: 900 0.78rem/1.2 Inter, sans-serif;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

#classroom-list {
  display: grid;
  gap: 8px;
}

.classroom-list-button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #15351f;
  cursor: pointer;
  font: 800 clamp(0.82rem, 0.95vw, 0.92rem)/1.12 Inter, sans-serif;
  padding: clamp(0.5rem, 0.8vw, 0.68rem) clamp(0.56rem, 0.9vw, 0.78rem);
  text-align: left;
}

.classroom-list-button.active,
.classroom-list-button:hover {
  background: rgba(10, 91, 42, 0.1);
  color: #084a22;
}

.classroom-modal__content {
  align-items: center;
  display: grid;
  gap: clamp(18px, 2.5vw, 34px);
  grid-template-columns: minmax(360px, 1.2fr) minmax(260px, 0.8fr);
  padding: clamp(22px, 3vw, 34px);
}

.classroom-photo {
  aspect-ratio: 16 / 11;
  background: #eaf3e7;
  border-radius: 16px;
  max-height: min(52vh, 430px);
  overflow: hidden;
  position: relative;
}

.classroom-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.classroom-photo::after {
  background: linear-gradient(180deg, rgba(8, 74, 34, 0), rgba(8, 74, 34, 0.4));
  content: "";
  inset: 55% 0 0;
  position: absolute;
}

.classroom-photo__nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 999px;
  color: #084a22;
  cursor: pointer;
  display: flex;
  font-size: 1.7rem;
  height: 34px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  z-index: 2;
}

.classroom-photo__nav--prev {
  left: 12px;
}

.classroom-photo__nav--next {
  right: 12px;
}

.classroom-photo__dots {
  bottom: 12px;
  display: flex;
  gap: 7px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.classroom-photo__dots span {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.classroom-photo__dots span.active {
  background: #7fcf8a;
}

.classroom-info {
  align-self: center;
  display: flex;
  flex-direction: column;
  max-height: min(68vh, 560px);
  min-width: 0;
}

.classroom-info > span {
  color: #0a5b2a;
  display: block;
  font: 900 0.82rem/1 Inter, sans-serif;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.classroom-info h3 {
  color: #063f1e;
  font-size: clamp(1.45rem, 2.45vw, 2.45rem);
  line-height: 1.02;
  margin: 0 0 clamp(0.45rem, 0.8vw, 0.8rem);
}

.classroom-address {
  color: #0a5b2a;
  font-weight: 850;
  margin: 0 0 clamp(0.55rem, 0.9vw, 0.9rem);
}

.classroom-info p {
  color: #2b3c30;
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.48;
  margin: 0;
}

.classroom-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: clamp(0.9rem, 1.5vw, 1.25rem);
}

.classroom-map,
.classroom-actions button {
  background: #0a5b2a;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: 900 0.78rem/1 Inter, sans-serif;
  letter-spacing: 0.06em;
  padding: 0.78rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.classroom-actions button {
  background: #eef7eb;
  color: #084a22;
  margin-left: 6px;
}

body.classroom-modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .classroom-modal__panel {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }

  .classroom-modal__list {
    border-bottom: 1px solid rgba(8, 74, 34, 0.12);
    border-right: 0;
    padding: 20px 18px 12px;
  }

  #classroom-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .classroom-list-button {
    min-width: 180px;
  }

  .classroom-modal__content {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .classroom-modal__panel {
    max-height: 78vh;
    width: min(86vw, 1120px);
  }

  .classroom-modal__list {
    max-height: 78vh;
  }

  .classroom-modal__content {
    gap: 18px;
    padding: 24px 30px;
  }

  .classroom-photo {
    aspect-ratio: 16 / 10;
    max-height: 38vh;
  }

  .classroom-info h3 {
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  }

  .classroom-info p {
    line-height: 1.38;
  }

  .classroom-actions {
    margin-top: 0.8rem;
  }
}

/* Ajustes responsive finales: portada, video, aulas y seccion de talleres */
.topbar.lucas-cover {
  box-sizing: border-box;
}

.lucas-cover .cover-top-logos,
.lucas-cover .hero-layout,
main > section,
.home-program {
  box-sizing: border-box;
}

.expo-video-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(238, 248, 235, 0.72) 100%),
    url("expo-fondo.jpg") center / cover no-repeat !important;
  margin-top: clamp(10px, 1.2vw, 18px) !important;
}

.workshop-section {
  display: block !important;
}

.productions-section,
.people-section,
.memory-lab-section,
.pedagogic-observatory,
.assistant-section,
.pedagogic-framework-section {
  display: none !important;
}

@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-bottom: clamp(10px, 1.2vw, 18px) !important;
  }

  .lucas-cover .hero-layout {
    align-items: start !important;
    grid-template-columns: minmax(360px, 0.78fr) minmax(520px, 1fr) !important;
    max-width: 1280px !important;
  }

  .lucas-cover .hero-copy {
    align-self: start !important;
    margin-top: clamp(18px, 2.3vw, 34px) !important;
    transform: none !important;
  }

  .lucas-cover .hero-photo {
    justify-self: end !important;
    margin-top: 0 !important;
    max-width: min(52vw, 720px) !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.9 !important;
  }

  .lucas-cover .hero-metrics {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .topbar.lucas-cover {
    padding: 18px clamp(24px, 5vw, 54px) 18px !important;
  }

  .lucas-cover .cover-top-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    max-width: 860px !important;
  }

  .lucas-cover .hero-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 860px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2rem, 5.8vw, 3.6rem) !important;
    line-height: 1.02 !important;
  }

  .lucas-cover .hero-copy {
    transform: none !important;
  }

  .lucas-cover .hero-photo {
    margin: 0 !important;
    max-width: 860px !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.7 !important;
  }

  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .home-program {
    padding-inline: clamp(24px, 5vw, 54px) !important;
  }

  .expo-video-panel {
    grid-template-columns: 0.9fr 1.1fr !important;
    padding: clamp(24px, 3vw, 38px) !important;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0 !important;
  }

  .topbar.lucas-cover {
    padding: 16px 16px 0 !important;
  }

  .lucas-cover .cover-top-logos {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    margin-bottom: 16px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    width: min(31vw, 128px) !important;
    max-height: 32px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    width: min(27vw, 116px) !important;
    max-height: 36px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    width: min(30vw, 126px) !important;
    max-height: 32px !important;
  }

  .lucas-cover .hero-layout {
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: 1fr !important;
    margin-bottom: 0 !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.65rem, 8.2vw, 2.35rem) !important;
    line-height: 1.02 !important;
    max-width: 100% !important;
  }

  .lucas-cover .hero-copy {
    transform: none !important;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.25rem, 5vw, 1.58rem) !important;
  }

  .lucas-cover .hero-description {
    max-width: 100% !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.7rem, 8vw, 2.35rem) !important;
    max-width: 100% !important;
  }

  .lucas-cover .hero-photo {
    margin: 4px 0 0 !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 10.2 !important;
  }

  .lucas-cover .carousel-arrow {
    opacity: 0.82 !important;
    pointer-events: auto !important;
  }

  .lucas-cover .carousel-dots {
    bottom: 8px !important;
  }

  .lucas-cover .hero-metrics {
    border-radius: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 14px calc(50% - 50vw) 0 !important;
    width: 100vw !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    min-height: 88px !important;
    padding: 12px 8px !important;
  }

  .lucas-cover .metric-icon {
    display: none !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.62rem !important;
    line-height: 1.08 !important;
    max-width: 13em !important;
  }

  .home-program {
    gap: 12px !important;
    padding: 22px 16px 0 !important;
  }

  .territory-classrooms-featured {
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  .territory-title h3 {
    border-radius: 10px !important;
    font-size: clamp(0.96rem, 4.2vw, 1.25rem) !important;
    line-height: 1.12 !important;
    padding: 14px 16px !important;
    white-space: normal !important;
  }

  .expo-video-panel {
    border-radius: 14px !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    padding: 22px 18px !important;
  }

  .expo-video-panel h3::before {
    font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
  }

  .expo-video-panel p::before {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }

  .expo-video-placeholder {
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
  }

  .workshop-section {
    margin-top: 18px !important;
  }

  .workshop-category-grid {
    grid-template-columns: 1fr !important;
  }

  .classroom-modal__panel {
    border-radius: 0 !important;
    inset: 0 !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    transform: none !important;
    width: 100vw !important;
  }

  .classroom-photo {
    max-height: none !important;
  }
}

@media (max-width: 390px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(1.45rem, 7.6vw, 1.95rem) !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.48rem, 7.4vw, 1.95rem) !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(1.75rem, 9vw, 2.3rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: 0.55rem !important;
  }
}

/* Correccion final de alineacion portada/carrusel en escritorio y notebook */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    align-items: start !important;
  }

  .lucas-cover .hero-copy {
    align-self: start !important;
    margin-top: clamp(8px, 1.1vw, 18px) !important;
    transform: none !important;
  }

  .lucas-cover .hero-photo {
    align-self: start !important;
    margin-top: 0 !important;
  }
}

/* Cierre limpio de la segunda portada: aulas + video de la Expo */
.home-program {
  gap: clamp(10px, 1.1vw, 18px) !important;
  padding-top: clamp(22px, 3vw, 42px) !important;
}

.home-program > .rights-statement {
  display: none !important;
}

.territory-classrooms-featured {
  margin: 0 auto clamp(10px, 1.1vw, 16px) !important;
  max-width: 1100px !important;
  padding: 0 !important;
}

.territory-title h3 {
  box-sizing: border-box;
}

.expo-video-panel {
  align-items: center !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(238, 248, 235, 0.74) 100%),
    url("expo-fondo.jpg") center / cover no-repeat !important;
  border-radius: 18px !important;
  gap: clamp(28px, 4vw, 58px) !important;
  margin: 0 auto !important;
  max-width: 1200px !important;
  padding: clamp(26px, 3.2vw, 46px) clamp(28px, 4.4vw, 58px) !important;
}

.expo-video-panel > div:first-child {
  border-left: 5px solid #7fcf8a !important;
  padding-left: clamp(18px, 2vw, 26px) !important;
}

.expo-video-panel h3,
.expo-video-panel p {
  font-size: revert !important;
  line-height: revert !important;
}

.expo-video-panel h3::before,
.expo-video-panel p::before {
  content: none !important;
  display: none !important;
}

.expo-video-panel h3 {
  color: #063f1e !important;
  font-size: clamp(1.9rem, 3vw, 3.1rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.04 !important;
  margin: 0 0 clamp(14px, 1.5vw, 22px) !important;
  text-transform: uppercase !important;
}

.expo-video-panel h3 span {
  display: block !important;
}

.expo-video-panel p {
  color: #24352a !important;
  font-size: clamp(1rem, 1.16vw, 1.14rem) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  max-width: 43rem !important;
}

.expo-video-embed {
  box-shadow: 0 22px 52px rgba(8, 74, 34, 0.2) !important;
}

/* Refinamiento visual del bloque de video: lectura clara y fondo calmo */
.expo-video-panel {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.985) 48%, rgba(247, 252, 245, 0.97) 100%),
    url("expo-fondo.jpg") center / cover no-repeat !important;
  box-shadow: 0 18px 52px rgba(8, 74, 34, 0.08) !important;
}

.expo-video-panel h3 span {
  color: inherit !important;
  display: block !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  text-transform: inherit !important;
}

.expo-video-panel .expo-video-embed {
  background: #063f1e !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 44px rgba(8, 74, 34, 0.22) !important;
}

@media (min-width: 1121px) {
  .home-program {
    padding-bottom: clamp(24px, 3vw, 42px) !important;
  }

  .expo-video-panel {
    grid-template-columns: minmax(300px, 0.82fr) minmax(460px, 1.18fr) !important;
  }
}

@media (max-width: 760px) {
  .home-program {
    padding: 18px 14px 0 !important;
  }

  .territory-classrooms-featured {
    margin-bottom: 10px !important;
  }

  .expo-video-panel {
    grid-template-columns: 1fr !important;
    padding: 22px 18px !important;
  }

  .expo-video-panel > div:first-child {
    border-left-width: 4px !important;
  }

  .expo-video-panel h3 {
    font-size: clamp(1.55rem, 7.4vw, 2.2rem) !important;
  }

  .expo-video-panel p {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }
}

/* Video Expo integrado: sin placa blanca, con fondo fotográfico difuminado */
.expo-video-panel {
  background: rgba(8, 74, 34, 0.36) !important;
  box-shadow: 0 18px 52px rgba(8, 74, 34, 0.14) !important;
  isolation: isolate;
  overflow: hidden;
}

.expo-video-panel::before {
  background: url("expo-fondo.jpg") center / cover no-repeat;
  content: "";
  filter: blur(12px);
  inset: -22px;
  opacity: 0.82;
  position: absolute;
  transform: scale(1.04);
  z-index: -2;
}

.expo-video-panel::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(8, 74, 34, 0.34) 100%),
    rgba(8, 74, 34, 0.08);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.expo-video-panel > div:first-child {
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 46px rgba(8, 74, 34, 0.08) !important;
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px) clamp(22px, 2.6vw, 34px) clamp(26px, 3vw, 44px) !important;
}

.expo-video-panel .expo-video-embed {
  background:
    linear-gradient(135deg, rgba(8, 74, 34, 0.72), rgba(8, 74, 34, 0.48)),
    url("expo-fondo.jpg") center / cover no-repeat !important;
}

/* Muestra: texto sobre veladura blanca que se desvanece hacia el video */
.expo-video-panel {
  background: rgba(8, 74, 34, 0.22) !important;
}

.expo-video-panel::before {
  filter: blur(10px) !important;
  opacity: 0.9 !important;
}

.expo-video-panel::after {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 30%,
      rgba(255, 255, 255, 0.42) 48%,
      rgba(8, 74, 34, 0.24) 76%,
      rgba(8, 74, 34, 0.4) 100%) !important;
}

.expo-video-panel > div:first-child {
  align-self: center !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  height: auto !important;
  max-width: 430px !important;
  min-height: 0 !important;
  padding-bottom: clamp(18px, 2.2vw, 30px) !important;
  padding-top: clamp(18px, 2.2vw, 30px) !important;
}

.expo-video-panel .expo-video-embed {
  align-self: center !important;
}

.expo-video-panel h3 {
  font-size: clamp(1.8rem, 2.75vw, 2.8rem) !important;
  line-height: 1.02 !important;
  margin-bottom: clamp(16px, 1.8vw, 24px) !important;
}

.expo-video-panel p {
  line-height: 1.5 !important;
}

/* Ajuste fino: reducir la altura visual del fondo difuminado del video */
.expo-video-panel {
  padding-top: clamp(16px, 2vw, 28px) !important;
  padding-bottom: clamp(16px, 2vw, 28px) !important;
}

.expo-video-panel::before {
  filter: blur(7px) !important;
  inset: -10px !important;
  transform: scale(1.015) !important;
}

.expo-video-panel > div:first-child {
  padding-top: clamp(10px, 1.4vw, 18px) !important;
  padding-bottom: clamp(10px, 1.4vw, 18px) !important;
}

/* Ajuste solicitado: difuminado mínimo y texto alineado al alto del video */
.expo-video-panel {
  align-items: center !important;
  padding-top: clamp(8px, 1vw, 14px) !important;
  padding-bottom: clamp(8px, 1vw, 14px) !important;
}

.expo-video-panel::before {
  filter: blur(3px) !important;
  inset: -4px !important;
  opacity: 0.58 !important;
  transform: none !important;
}

.expo-video-panel::after {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.82) 31%,
      rgba(255, 255, 255, 0.28) 48%,
      rgba(8, 74, 34, 0.18) 78%,
      rgba(8, 74, 34, 0.3) 100%) !important;
}

.expo-video-panel > div:first-child {
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.expo-video-panel .expo-video-embed {
  align-self: stretch !important;
}

/* Correccion: no escalar el video; compactar el texto para alinearlo */
.expo-video-panel .expo-video-embed {
  align-self: center !important;
}

.expo-video-panel > div:first-child {
  align-self: center !important;
  display: block !important;
  max-width: 390px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.expo-video-panel h3 {
  font-size: clamp(1.45rem, 2.2vw, 2.25rem) !important;
  line-height: 1.04 !important;
  margin-bottom: clamp(10px, 1.2vw, 16px) !important;
}

.expo-video-panel p {
  font-size: clamp(0.92rem, 1.02vw, 1rem) !important;
  line-height: 1.42 !important;
}

/* Restauracion de proporciones: no deformar carrusel ni video */
.lucas-cover .hero-photo {
  width: min(100%, 720px) !important;
}

.lucas-cover .hero-slideshow {
  aspect-ratio: 16 / 8.9 !important;
  height: auto !important;
}

.lucas-cover .hero-slideshow img {
  height: 100% !important;
  object-fit: cover !important;
  width: 100% !important;
}

.expo-video-panel {
  align-items: center !important;
  grid-template-columns: minmax(380px, 0.86fr) minmax(480px, 1.14fr) !important;
}

.expo-video-panel > div:first-child {
  align-self: center !important;
  display: block !important;
  max-width: 410px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.expo-video-panel .expo-video-embed {
  align-self: center !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-width: 590px !important;
  min-height: 0 !important;
  width: 100% !important;
}

.expo-video-panel .expo-video-embed iframe {
  height: 100% !important;
  width: 100% !important;
}

.expo-video-panel h3 {
  font-size: clamp(1.18rem, 1.72vw, 1.72rem) !important;
  line-height: 1.04 !important;
  margin-bottom: clamp(8px, 0.9vw, 12px) !important;
}

.expo-video-panel p {
  font-size: clamp(0.82rem, 0.9vw, 0.92rem) !important;
  line-height: 1.32 !important;
}

/* Escala general del bloque Muestra + video */
.expo-video-panel {
  max-width: 1280px !important;
  padding: clamp(18px, 2.3vw, 34px) clamp(34px, 5vw, 70px) !important;
}

.expo-video-panel > div:first-child {
  max-width: 450px !important;
}

.expo-video-panel .expo-video-embed {
  max-width: 660px !important;
}

.expo-video-panel h3 {
  font-size: clamp(1.32rem, 1.92vw, 2.05rem) !important;
}

.expo-video-panel p {
  font-size: clamp(0.9rem, 1vw, 1.02rem) !important;
  line-height: 1.38 !important;
}

/* Fondo unico para aulas + muestra + video */
.home-program {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.62) 48%, rgba(8, 74, 34, 0.24) 100%),
    url("expo-fondo.jpg") center top / cover no-repeat !important;
}

.expo-video-panel {
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.expo-video-panel::before {
  display: none !important;
}

.expo-video-panel::after {
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.82) 28%,
      rgba(255, 255, 255, 0.3) 45%,
      rgba(255, 255, 255, 0) 62%) !important;
}

.expo-video-panel > div:first-child {
  filter: drop-shadow(0 16px 30px rgba(255, 255, 255, 0.92)) drop-shadow(0 8px 18px rgba(255, 255, 255, 0.76)) !important;
}

.expo-video-panel .expo-video-embed {
  background: #063f1e !important;
}

@media (max-width: 760px) {
  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 10.2 !important;
  }

  .expo-video-panel {
    grid-template-columns: 1fr !important;
  }

  .expo-video-panel > div:first-child,
  .expo-video-panel .expo-video-embed {
    max-width: 100% !important;
  }
}

/* Ajustes puntuales solo de portada */
@media (min-width: 1121px) {
  .lucas-cover .cover-top-logos {
    align-items: center !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    transform: translateY(0) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    transform: translateY(4px) !important;
  }

  .lucas-cover .hero-photo {
    max-width: min(56vw, 780px) !important;
    width: min(56vw, 780px) !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.65 !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .lucas-cover .hero-slideshow img {
    height: 100% !important;
    object-fit: cover !important;
    width: 100% !important;
  }
}

/* Auditoria responsive final: estabilidad visual en celulares, tablets, notebooks y escritorio */
html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

img,
iframe,
video {
  max-width: 100%;
}

.lucas-cover h1.hero-title,
.lucas-cover .hero-deck,
.lucas-cover .hero-caption-text,
.hero-metrics strong,
.section-heading h2,
.workshop-category-grid h3,
.territory-title h3,
.expo-video-panel h3 {
  font-family: Inter, "Segoe UI", Arial, sans-serif !important;
}

.lucas-cover .hero-slideshow,
.expo-video-embed,
.classroom-photo {
  overflow: hidden !important;
}

.lucas-cover .hero-slideshow img,
.classroom-photo img {
  height: 100% !important;
  object-fit: cover !important;
  width: 100% !important;
}

.lucas-cover .carousel-arrow {
  align-items: center !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(8, 74, 34, 0.1) !important;
  box-shadow: 0 8px 18px rgba(8, 74, 34, 0.12) !important;
  color: #075421 !important;
  display: flex !important;
  font-size: 1.55rem !important;
  height: 34px !important;
  justify-content: center !important;
  line-height: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease !important;
  width: 34px !important;
}

.lucas-cover .hero-slideshow:hover .carousel-arrow,
.lucas-cover .hero-slideshow:focus-within .carousel-arrow {
  opacity: 0.92 !important;
  pointer-events: auto !important;
}

.lucas-cover .carousel-arrow:hover {
  background: #ffffff !important;
  transform: translateY(-50%) scale(1.04) !important;
}

.lucas-cover .carousel-dots {
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  bottom: 10px !important;
  box-shadow: none !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: center !important;
  left: 50% !important;
  padding: 0 !important;
  position: absolute !important;
  transform: translateX(-50%) !important;
  z-index: 4 !important;
}

.lucas-cover .carousel-dots button {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(8, 74, 34, 0.16) !important;
  border-radius: 999px !important;
  box-shadow: 0 1px 5px rgba(8, 74, 34, 0.12) !important;
  height: 7px !important;
  padding: 0 !important;
  width: 7px !important;
}

.lucas-cover .carousel-dots button.is-active {
  background: #0a5b2a !important;
  border-color: #0a5b2a !important;
  height: 8px !important;
  width: 8px !important;
}

.expo-video-embed {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
}

.expo-video-embed iframe {
  border: 0 !important;
  height: 100% !important;
  width: 100% !important;
}

@media (min-width: 1121px) {
  .topbar.lucas-cover {
    gap: 8px !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 10px clamp(36px, 5vw, 68px) 0 !important;
  }

  .lucas-cover .cover-top-logos {
    align-items: center !important;
    gap: clamp(34px, 5vw, 72px) !important;
    grid-template-columns: max-content max-content max-content !important;
    justify-content: center !important;
    margin: 0 auto 8px !important;
    max-width: 980px !important;
  }

  .lucas-cover .cover-top-logos img {
    object-fit: contain !important;
    object-position: center !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 48px !important;
    transform: translateY(2px) !important;
    width: clamp(260px, 23vw, 330px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 52px !important;
    transform: none !important;
    width: clamp(210px, 18vw, 270px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 48px !important;
    transform: translateY(1px) !important;
    width: clamp(230px, 19vw, 295px) !important;
  }

  .lucas-cover .hero-layout {
    align-items: start !important;
    column-gap: clamp(24px, 3vw, 42px) !important;
    display: grid !important;
    grid-template-columns: minmax(360px, 0.7fr) minmax(560px, 1fr) !important;
    max-width: 1248px !important;
    row-gap: 8px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2.05rem, 3.05vw, 2.86rem) !important;
    grid-column: 1 / -1 !important;
    line-height: 1.02 !important;
    margin: 0 0 8px !important;
    max-width: 100% !important;
  }

  .lucas-cover .hero-copy {
    align-self: start !important;
    margin-top: clamp(20px, 2.2vw, 30px) !important;
    max-width: 510px !important;
    transform: none !important;
  }

  .lucas-cover .hero-deck {
    margin-bottom: clamp(14px, 1.4vw, 18px) !important;
  }

  .lucas-cover .hero-description {
    margin-bottom: clamp(24px, 2.8vw, 38px) !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(2rem, 2.55vw, 2.75rem) !important;
    line-height: 1.04 !important;
  }

  .lucas-cover .hero-photo {
    justify-self: end !important;
    margin: 0 !important;
    max-width: min(57vw, 790px) !important;
    width: min(57vw, 790px) !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.05 !important;
    border-radius: 14px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  .lucas-cover .hero-metrics {
    height: auto !important;
    margin: -26px calc(50% - 50vw) 0 !important;
    min-height: 76px !important;
    padding: 0 !important;
    width: 100vw !important;
  }

  .lucas-cover .hero-metrics article {
    min-height: 76px !important;
    padding: 10px 18px !important;
  }

  .lucas-cover .metric-icon {
    height: 34px !important;
    width: 34px !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2.25rem, 3.25vw, 3.1rem) !important;
    line-height: 0.92 !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.66rem, 0.74vw, 0.78rem) !important;
    line-height: 1.05 !important;
    margin-top: 4px !important;
  }

  .home-program {
    margin-top: 0 !important;
    max-width: none !important;
    padding: clamp(26px, 3vw, 44px) clamp(48px, 6vw, 90px) clamp(28px, 4vw, 54px) !important;
  }

  .territory-classrooms-featured {
    margin: 0 auto clamp(26px, 3vw, 42px) !important;
    max-width: 760px !important;
  }

  .expo-video-panel {
    align-items: center !important;
    display: grid !important;
    gap: clamp(34px, 4.2vw, 66px) !important;
    grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1fr) !important;
    margin: 0 auto !important;
    max-width: 1160px !important;
    padding: clamp(26px, 3vw, 46px) clamp(36px, 4.5vw, 64px) !important;
  }

  .expo-video-panel > div:first-child {
    max-width: 420px !important;
  }

  .expo-video-panel h3 {
    font-size: clamp(1.6rem, 2.35vw, 2.55rem) !important;
    line-height: 1.05 !important;
  }

  .expo-video-panel p {
    font-size: clamp(0.95rem, 1.02vw, 1.06rem) !important;
    line-height: 1.48 !important;
  }

  .expo-video-panel .expo-video-embed {
    max-width: 620px !important;
    width: 100% !important;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .topbar.lucas-cover {
    min-height: auto !important;
    overflow: visible !important;
    padding: 16px clamp(24px, 5vw, 54px) 0 !important;
  }

  .lucas-cover .cover-top-logos {
    align-items: center !important;
    gap: clamp(18px, 3vw, 34px) !important;
    margin-bottom: 14px !important;
  }

  .lucas-cover .cover-top-logos img {
    max-height: 44px !important;
    object-fit: contain !important;
  }

  .lucas-cover .hero-layout {
    gap: 18px !important;
    grid-template-columns: 1fr !important;
    max-width: 920px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2rem, 5.1vw, 3.35rem) !important;
    line-height: 1.02 !important;
  }

  .lucas-cover .hero-copy {
    max-width: 720px !important;
  }

  .lucas-cover .hero-photo {
    max-width: 920px !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.8 !important;
  }

  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 18px calc(50% - 50vw) 0 !important;
    width: 100vw !important;
  }

  .home-program {
    max-width: none !important;
    padding: 32px clamp(24px, 5vw, 54px) 44px !important;
  }

  .expo-video-panel {
    gap: 28px !important;
    grid-template-columns: 1fr !important;
    max-width: 920px !important;
  }

  .expo-video-panel .expo-video-embed {
    max-width: 760px !important;
  }
}

@media (max-width: 760px) {
  .topbar.lucas-cover {
    min-height: auto !important;
    overflow: visible !important;
    padding: 16px 18px 0 !important;
  }

  .lucas-cover .cover-top-logos {
    align-items: center !important;
    display: grid !important;
    gap: 10px !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    margin: 0 auto 22px !important;
    max-width: 320px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 42px !important;
    width: min(82vw, 260px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 58px !important;
    width: min(78vw, 250px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 50px !important;
    width: min(80vw, 260px) !important;
  }

  .lucas-cover .hero-layout {
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: 1fr !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.8rem, 9.2vw, 2.8rem) !important;
    line-height: 1.02 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .lucas-cover .hero-copy {
    margin: 0 !important;
    max-width: 100% !important;
    transform: none !important;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.32rem, 6vw, 1.75rem) !important;
    margin-bottom: 14px !important;
  }

  .lucas-cover .hero-description {
    font-size: clamp(1rem, 4.4vw, 1.18rem) !important;
    line-height: 1.35 !important;
    margin-bottom: 22px !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(2rem, 10.5vw, 3rem) !important;
    line-height: 1.03 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }

  .lucas-cover .hero-photo {
    margin: 4px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 10.4 !important;
    border-radius: 14px !important;
  }

  .lucas-cover .carousel-arrow {
    height: 32px !important;
    opacity: 0.78 !important;
    pointer-events: auto !important;
    width: 32px !important;
  }

  .lucas-cover .carousel-dots {
    bottom: 9px !important;
    gap: 6px !important;
  }

  .lucas-cover .carousel-dots button {
    height: 6px !important;
    width: 6px !important;
  }

  .lucas-cover .hero-metrics {
    border-radius: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 16px calc(50% - 50vw) 0 !important;
    min-height: 0 !important;
    width: 100vw !important;
  }

  .lucas-cover .hero-metrics article {
    min-height: 92px !important;
    padding: 14px 8px !important;
  }

  .lucas-cover .metric-icon {
    height: 30px !important;
    width: 30px !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2.1rem, 11vw, 3rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.58rem, 2.8vw, 0.72rem) !important;
    line-height: 1.05 !important;
    max-width: 12em !important;
  }

  .home-program {
    background-position: center top !important;
    margin-top: 0 !important;
    padding: 22px 14px 30px !important;
  }

  .territory-classrooms-featured {
    margin: 0 auto 18px !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  .territory-title h3 {
    border-radius: 10px !important;
    font-size: clamp(0.95rem, 4.3vw, 1.22rem) !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    line-height: 1.15 !important;
    padding: 14px 16px !important;
    white-space: normal !important;
  }

  .expo-video-panel {
    border-radius: 16px !important;
    display: grid !important;
    gap: 20px !important;
    grid-template-columns: 1fr !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    padding: 22px 18px !important;
  }

  .expo-video-panel::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.72) 55%, rgba(255,255,255,0.2) 100%) !important;
  }

  .expo-video-panel > div:first-child {
    max-width: 100% !important;
  }

  .expo-video-panel h3 {
    font-size: clamp(1.65rem, 8vw, 2.35rem) !important;
    line-height: 1.05 !important;
  }

  .expo-video-panel p {
    font-size: clamp(0.98rem, 4vw, 1.08rem) !important;
    line-height: 1.46 !important;
  }

  .expo-video-panel .expo-video-embed {
    max-width: 100% !important;
    width: 100% !important;
  }

  .workshop-section,
  main > section {
    margin-inline: 14px !important;
    padding: 22px 18px !important;
  }

  .section-heading h2 {
    font-size: clamp(1.35rem, 6vw, 1.9rem) !important;
    line-height: 1.12 !important;
  }

  .section-heading p {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }

  .workshop-category-grid {
    grid-template-columns: 1fr !important;
  }

  .workshop-category-grid article {
    padding: 18px !important;
  }

  .classroom-modal__panel {
    border-radius: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    inset: 0 !important;
    max-height: none !important;
    min-height: 100dvh !important;
    overflow-y: auto !important;
    width: 100vw !important;
  }

  .classroom-modal__list {
    max-height: none !important;
    padding: 18px 16px 10px !important;
  }

  #classroom-list {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
  }

  .classroom-list-button {
    min-width: 168px !important;
  }

  .classroom-modal__content {
    display: grid !important;
    gap: 18px !important;
    grid-template-columns: 1fr !important;
    padding: 18px 16px 24px !important;
  }

  .classroom-photo {
    aspect-ratio: 16 / 10 !important;
    max-height: none !important;
  }

  .classroom-info h3 {
    font-size: clamp(1.6rem, 8vw, 2.3rem) !important;
  }
}

@media (max-width: 390px) {
  .lucas-cover h1.hero-title {
    font-size: clamp(1.62rem, 8.4vw, 2.2rem) !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.78rem, 9.6vw, 2.48rem) !important;
  }

  .lucas-cover .hero-metrics article {
    min-height: 88px !important;
  }
}

@media (min-width: 1600px) {
  .lucas-cover .hero-layout {
    max-width: 1380px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2.6rem, 2.5vw, 3.25rem) !important;
  }

  .lucas-cover .hero-photo {
    max-width: 820px !important;
    width: 820px !important;
  }

  .expo-video-panel {
    max-width: 1240px !important;
  }

  .workshop-section,
  main > section {
    max-width: 1320px !important;
  }
}

/* Correccion visual posterior a auditoria: portada mas proporcionada y video intacto */
@media (min-width: 1121px) {
  .lucas-cover .hero-layout {
    column-gap: clamp(22px, 2.4vw, 36px) !important;
    grid-template-columns: minmax(330px, 0.72fr) minmax(500px, 0.98fr) !important;
    max-width: 1160px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(1.9rem, 2.65vw, 2.55rem) !important;
    letter-spacing: -0.015em !important;
    line-height: 1.02 !important;
    margin-bottom: clamp(10px, 1.15vw, 16px) !important;
  }

  .lucas-cover .hero-copy {
    margin-top: clamp(14px, 1.8vw, 26px) !important;
    max-width: 430px !important;
  }

  .lucas-cover .hero-deck {
    font-size: clamp(1.18rem, 1.55vw, 1.5rem) !important;
    margin-bottom: clamp(12px, 1.2vw, 16px) !important;
  }

  .lucas-cover .hero-description {
    font-size: clamp(0.92rem, 1.02vw, 1.02rem) !important;
    line-height: 1.34 !important;
    margin-bottom: clamp(22px, 2.2vw, 32px) !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.75rem, 2.25vw, 2.35rem) !important;
    line-height: 1.04 !important;
  }

  .lucas-cover .hero-photo {
    max-width: min(52vw, 650px) !important;
    width: min(52vw, 650px) !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.6 !important;
    max-height: 360px !important;
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(10px, 1vw, 14px) !important;
  }

  .expo-video-panel {
    grid-template-columns: minmax(390px, 0.9fr) minmax(500px, 1.1fr) !important;
    gap: clamp(34px, 4vw, 58px) !important;
    max-width: 1180px !important;
    padding-left: clamp(42px, 5.2vw, 78px) !important;
    padding-right: clamp(42px, 5.2vw, 78px) !important;
  }

  .expo-video-panel > div:first-child {
    max-width: 500px !important;
  }

  .expo-video-panel h3 {
    font-size: clamp(1.25rem, 1.78vw, 1.9rem) !important;
    line-height: 1.05 !important;
    margin-bottom: clamp(10px, 1vw, 14px) !important;
  }

  .expo-video-panel p {
    font-size: clamp(0.88rem, 0.94vw, 0.98rem) !important;
    line-height: 1.36 !important;
    max-width: 470px !important;
  }

  .expo-video-panel .expo-video-embed {
    max-width: 620px !important;
  }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .lucas-cover .cover-top-logos {
    margin-bottom: 6px !important;
    max-width: 760px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    width: clamp(210px, 19vw, 260px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    width: clamp(180px, 16vw, 230px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    width: clamp(190px, 17vw, 245px) !important;
  }

  .lucas-cover .hero-layout {
    max-width: 1050px !important;
  }

  .lucas-cover .hero-photo {
    max-width: min(50vw, 600px) !important;
    width: min(50vw, 600px) !important;
  }
}

/* Restauracion final de portada: logos, carrusel y franja con imagen de fondo */
.lucas-cover .cover-top-logos img,
.lucas-cover .hero-slideshow img {
  display: block !important;
}

.lucas-cover .hero-slideshow {
  background: #eef7eb !important;
}

.lucas-cover .hero-slideshow img {
  opacity: 0 !important;
  transition: opacity 650ms ease !important;
}

.lucas-cover .hero-slideshow img.is-active {
  opacity: 1 !important;
}

.lucas-cover .hero-metrics {
  background:
    linear-gradient(90deg, rgba(8, 74, 34, 0.88), rgba(8, 74, 34, 0.76)),
    url("expo-fondo.jpg") center 42% / cover no-repeat !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

@media (min-width: 1121px) {
  .lucas-cover .cover-top-logos {
    align-items: center !important;
    display: flex !important;
    gap: clamp(44px, 5vw, 76px) !important;
    justify-content: center !important;
    margin: 0 auto clamp(12px, 1.4vw, 20px) !important;
    max-width: 980px !important;
  }

  .lucas-cover .cover-top-logos img {
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    max-height: 54px !important;
    width: clamp(250px, 21vw, 315px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    max-height: 56px !important;
    width: clamp(210px, 17vw, 260px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: 54px !important;
    width: clamp(230px, 19vw, 290px) !important;
  }

  .lucas-cover .hero-layout {
    grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1fr) !important;
    max-width: 1220px !important;
  }

  .lucas-cover h1.hero-title {
    font-size: clamp(2rem, 2.85vw, 2.85rem) !important;
    line-height: 1.02 !important;
    margin-bottom: clamp(12px, 1.4vw, 20px) !important;
  }

  .lucas-cover .hero-copy {
    max-width: 470px !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.9rem, 2.45vw, 2.55rem) !important;
  }

  .lucas-cover .hero-photo {
    max-width: min(54vw, 700px) !important;
    width: min(54vw, 700px) !important;
  }

  .lucas-cover .hero-slideshow {
    aspect-ratio: 16 / 8.75 !important;
    max-height: 390px !important;
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(10px, 1.2vw, 18px) !important;
  }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .lucas-cover .cover-top-logos {
    gap: clamp(28px, 3.8vw, 54px) !important;
    max-width: 900px !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(1) {
    width: clamp(220px, 20vw, 280px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(2) {
    width: clamp(185px, 16vw, 235px) !important;
  }

  .lucas-cover .cover-top-logos img:nth-child(3) {
    width: clamp(200px, 18vw, 255px) !important;
  }

  .lucas-cover .hero-layout {
    max-width: 1120px !important;
  }

  .lucas-cover .hero-photo {
    max-width: min(52vw, 660px) !important;
    width: min(52vw, 660px) !important;
  }
}

@media (max-width: 760px) {
  .lucas-cover .cover-top-logos img:nth-child(1),
  .lucas-cover .cover-top-logos img:nth-child(2),
  .lucas-cover .cover-top-logos img:nth-child(3) {
    max-height: none !important;
    transform: none !important;
  }

  .lucas-cover .hero-metrics {
    background:
      linear-gradient(90deg, rgba(8, 74, 34, 0.9), rgba(8, 74, 34, 0.78)),
      url("expo-fondo.jpg") center / cover no-repeat !important;
  }
}

/* Ajuste fino: portada apenas mas compacta para que asome la franja verde inicial */
@media (min-width: 1121px) {
  .topbar.lucas-cover {
    padding-top: clamp(18px, 2vw, 28px) !important;
  }

  .lucas-cover .cover-top-logos {
    margin-bottom: clamp(8px, 0.9vw, 12px) !important;
  }

  .lucas-cover .hero-layout {
    row-gap: clamp(16px, 1.7vw, 24px) !important;
  }

  .lucas-cover h1.hero-title {
    margin-bottom: clamp(8px, 0.9vw, 12px) !important;
  }

  .lucas-cover .hero-copy {
    padding-top: clamp(16px, 2.2vw, 30px) !important;
  }

  .lucas-cover .hero-deck {
    margin-bottom: clamp(8px, 0.8vw, 12px) !important;
  }

  .lucas-cover .hero-description {
    margin-bottom: clamp(14px, 1.5vw, 22px) !important;
  }

  .lucas-cover .hero-slideshow {
    max-height: 365px !important;
  }

  .lucas-cover .hero-metrics {
    margin-top: clamp(4px, 0.6vw, 8px) !important;
  }
}

/* Capa final exclusiva para telefonos: logos al cierre y mensajes rotativos */
@media (max-width: 600px) {
  .lucas-cover .cover-top-logos {
    display: none !important;
  }

  .lucas-cover .hero-rule,
  .lucas-cover .hero-deck,
  .lucas-cover .hero-description,
  .lucas-cover .hero-caption-text {
    display: none !important;
  }

  .lucas-cover .hero-copy {
    min-height: 118px !important;
    padding-top: 0 !important;
  }

  .mobile-message-carousel {
    display: block !important;
    min-height: 112px !important;
    position: relative !important;
  }

  .mobile-message {
    left: 0 !important;
    opacity: 0 !important;
    position: absolute !important;
    top: 0 !important;
    transform: translateY(8px) !important;
    transition: opacity 520ms ease, transform 520ms ease !important;
    width: 100% !important;
  }

  .mobile-message.is-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .mobile-message strong {
    color: #084a22 !important;
    display: block !important;
    font-size: clamp(1.45rem, 7vw, 2.15rem) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.05 !important;
  }

  .mobile-message span {
    color: #1c2d24 !important;
    display: block !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    margin-top: 10px !important;
  }

  .mobile-institutional-logos {
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 22px !important;
    margin: 38px auto 26px !important;
    padding: 0 24px !important;
  }

  .mobile-institutional-logos img {
    display: block !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .mobile-institutional-logos img:nth-child(1) {
    width: min(76vw, 285px) !important;
  }

  .mobile-institutional-logos img:nth-child(2) {
    width: min(68vw, 255px) !important;
  }

  .mobile-institutional-logos img:nth-child(3) {
    width: min(72vw, 270px) !important;
  }
}

/* Ajuste puntual del bloque textual de portada para futuro boton */
@media (min-width: 1121px) {
  .lucas-cover .hero-copy {
    align-self: start !important;
    margin-left: 0 !important;
    margin-top: clamp(18px, 2vw, 30px) !important;
    max-width: 430px !important;
    padding-left: 0 !important;
    text-align: left !important;
    transform: none !important;
  }

  .lucas-cover .hero-deck,
  .lucas-cover .hero-description,
  .lucas-cover .hero-caption-text {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .lucas-cover .hero-deck {
    margin-top: 0 !important;
    margin-bottom: clamp(16px, 1.45vw, 22px) !important;
  }

  .lucas-cover .hero-description {
    margin-bottom: clamp(42px, 4.5vw, 66px) !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.82rem, 2.25vw, 2.34rem) !important;
    line-height: 1.05 !important;
    margin-top: 0 !important;
  }
}

/* Correccion final: indicadores compactos en celular vertical y horizontal */
@media (max-width: 600px) {
  .lucas-cover .hero-metrics {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto !important;
    margin: 14px -18px 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: calc(100% + 36px) !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    align-items: center !important;
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    height: 92px !important;
    justify-content: center !important;
    min-height: 92px !important;
    padding: 8px 6px !important;
    text-align: center !important;
  }

  .lucas-cover .hero-metrics article:nth-child(odd) {
    border-left: 0 !important;
  }

  .lucas-cover .hero-metrics article:nth-child(-n + 2) {
    border-top: 0 !important;
  }

  .lucas-cover .metric-icon {
    display: none !important;
  }

  .lucas-cover .hero-metrics strong {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: clamp(2.35rem, 11.5vw, 3.2rem) !important;
    font-weight: 950 !important;
    line-height: 0.86 !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.58rem, 2.75vw, 0.72rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.025em !important;
    line-height: 1.03 !important;
    margin: 0 !important;
    max-width: 13em !important;
  }

  .lucas-cover .hero-metrics p::after {
    height: 3px !important;
    margin: 6px auto 0 !important;
    width: 36px !important;
  }
}

@media (max-width: 900px) and (max-height: 520px) {
  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-top: 12px !important;
    width: 100% !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: 0 !important;
    height: 82px !important;
    min-height: 82px !important;
    padding: 7px 4px !important;
  }

  .lucas-cover .hero-metrics article:first-child {
    border-left: 0 !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.52rem, 2.2vw, 0.66rem) !important;
  }
}

/* Ajuste definitivo de indicadores en celulares: compactos, con margen y sin deformar. */
@media (max-width: 700px) {
  .lucas-cover .hero-photo {
    margin-bottom: 14px !important;
  }

  .lucas-cover .hero-metrics {
    box-sizing: border-box !important;
    display: grid !important;
    gap: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto !important;
    margin: 12px auto 0 !important;
    max-width: 520px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: calc(100% - 28px) !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    align-items: center !important;
    border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    height: 76px !important;
    justify-content: center !important;
    min-height: 76px !important;
    padding: 6px 4px !important;
    text-align: center !important;
  }

  .lucas-cover .hero-metrics article:nth-child(odd) {
    border-left: 0 !important;
  }

  .lucas-cover .hero-metrics article:nth-child(-n + 2) {
    border-top: 0 !important;
  }

  .lucas-cover .metric-icon {
    display: none !important;
  }

  .lucas-cover .hero-metrics strong {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: clamp(1.95rem, 10vw, 2.75rem) !important;
    font-weight: 950 !important;
    line-height: 0.9 !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.5rem, 2.45vw, 0.64rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    line-height: 1.03 !important;
    margin: 0 !important;
    max-width: 12em !important;
  }

  .lucas-cover .hero-metrics p::after {
    height: 3px !important;
    margin: 5px auto 0 !important;
    width: 28px !important;
  }
}

@media (max-width: 940px) and (max-height: 540px) {
  .lucas-cover .hero-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 10px auto 0 !important;
    max-width: 820px !important;
    width: calc(100% - 32px) !important;
  }

  .lucas-cover .metric-icon {
    display: none !important;
  }

  .lucas-cover .hero-metrics article,
  .lucas-cover .hero-metrics article:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-top: 0 !important;
    gap: 3px !important;
    height: 64px !important;
    min-height: 64px !important;
    padding: 4px 3px !important;
  }

  .lucas-cover .hero-metrics article:first-child {
    border-left: 0 !important;
  }

  .lucas-cover .hero-metrics strong {
    font-size: clamp(1.55rem, 5.5vw, 2.25rem) !important;
  }

  .lucas-cover .hero-metrics p {
    font-size: clamp(0.46rem, 1.65vw, 0.58rem) !important;
    line-height: 1.02 !important;
    max-width: 11em !important;
  }

  .lucas-cover .hero-metrics p::after {
    height: 2px !important;
    margin-top: 4px !important;
    width: 24px !important;
  }
}

.floating-signup {
  align-items: center;
  background: linear-gradient(135deg, #0a5b2a, #0f7338);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 14px 30px rgba(8, 74, 34, 0.24);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 850;
  justify-content: center;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 14px 22px;
  position: fixed;
  right: 22px;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  z-index: 50;
}

.floating-signup:hover,
.floating-signup:focus-visible {
  background: linear-gradient(135deg, #084a22, #0a6b31);
  box-shadow: 0 18px 36px rgba(8, 74, 34, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

.floating-signup:focus-visible {
  outline: 3px solid rgba(127, 207, 138, 0.8);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .floating-signup {
    bottom: 14px;
    box-shadow: 0 10px 24px rgba(8, 74, 34, 0.22);
    font-size: 0.78rem;
    left: 50%;
    padding: 13px 20px;
    right: auto;
    transform: translateX(-50%);
  }

  .floating-signup:hover,
  .floating-signup:focus-visible {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* Ajuste editorial del bloque izquierdo de portada. */
@media (min-width: 901px) {
  .lucas-cover .hero-copy {
    align-self: stretch !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    max-width: 38rem !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }

  .lucas-cover .hero-deck {
    margin: 0 0 1.35rem !important;
  }

  .lucas-cover .hero-description {
    margin: 0 0 2.7rem !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.95rem, 2.7vw, 2.85rem) !important;
    line-height: 0.98 !important;
    margin: 0 !important;
    max-width: 11.5em !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .lucas-cover .hero-description {
    margin-bottom: 2.1rem !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.7rem, 2.45vw, 2.35rem) !important;
  }
}

/* Portada: todo el texto izquierdo debe quedar dentro del mismo bloque visual. */
@media (min-width: 901px) {
  .lucas-cover .hero-copy {
    justify-content: flex-start !important;
    padding-top: clamp(2.6rem, 4.2vw, 3.8rem) !important;
  }

  .lucas-cover .hero-deck {
    margin-bottom: 1.45rem !important;
  }

  .lucas-cover .hero-description {
    line-height: 1.34 !important;
    margin-bottom: 1.65rem !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.62rem, 2.25vw, 2.22rem) !important;
    line-height: 0.96 !important;
    margin-top: 0 !important;
    max-width: 10.8em !important;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .lucas-cover .hero-copy {
    padding-top: clamp(2.25rem, 3.6vw, 3.1rem) !important;
  }

  .lucas-cover .hero-description {
    margin-bottom: 1.35rem !important;
  }

  .lucas-cover .hero-caption-text {
    font-size: clamp(1.45rem, 2.05vw, 1.95rem) !important;
  }
}

/* Talleres: grilla equilibrada y acceso visual a Revista Memorias. */
.workshop-section .workshop-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  align-items: stretch !important;
}

.workshop-section .workshop-category-grid article {
  min-height: 150px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 1.25rem !important;
}

.workshop-section .workshop-category-grid article:not(.workshop-magazine-card) {
  align-items: flex-start !important;
  text-align: left !important;
}

.workshop-section .workshop-category-grid article:not(.workshop-magazine-card) h3,
.workshop-section .workshop-category-grid article:not(.workshop-magazine-card) p,
.workshop-section .workshop-category-grid article:not(.workshop-magazine-card) span {
  max-width: 32rem !important;
}

.workshop-magazine-card {
  padding: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf4 52%, #e5f5e8 100%) !important;
  border: 1px solid rgba(10, 91, 42, 0.24) !important;
  box-shadow: 0 30px 70px rgba(8, 74, 34, 0.22) !important;
  min-height: 178px !important;
  position: relative !important;
  transform: translateY(-7px) scale(1.025) !important;
  z-index: 2 !important;
}

.magazine-cover-link {
  min-height: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(132px, 0.8fr) minmax(0, 1fr) !important;
  gap: 1.15rem !important;
  align-items: center !important;
  padding: 1.08rem !important;
  color: var(--green-dark) !important;
  text-decoration: none !important;
}

.magazine-cover-link img {
  width: 100% !important;
  max-height: 250px !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14) !important;
  transition: transform 180ms ease, box-shadow 180ms ease !important;
}

.magazine-cover-link span {
  display: block !important;
  font-size: clamp(1.28rem, 1.9vw, 1.7rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.02em !important;
}

.magazine-cover-link span::after {
  content: "Abrir edición 2026";
  display: block;
  width: fit-content;
  margin-top: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 91, 42, 0.08);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.magazine-cover-link:hover img {
  transform: translateY(-2px) scale(1.015) !important;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18) !important;
}

.magazine-cover-link:hover span::after {
  background: var(--green) !important;
  color: #fff !important;
}

@media (max-width: 1100px) {
  .workshop-section .workshop-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .workshop-section .workshop-category-grid {
    grid-template-columns: 1fr !important;
  }

  .workshop-section .workshop-category-grid article:not(.workshop-magazine-card) {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .magazine-cover-link {
    grid-template-columns: 0.58fr 1fr !important;
  }
}
