/* Components introduced for the updated carousel and secondary page covers. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.page .block-header { --link-spacing: clamp(18px, 2.4vw, 36px) !important; }
.home-hero, .page-banner { margin-top: -152px; }
.home-carousel { position: relative; height: clamp(220px, 50svh, 480px); overflow: hidden; background: #083723; touch-action: pan-y; }
.home-carousel__slides, .home-carousel__slide { position: absolute; inset: 0; }
.home-carousel__slide { opacity: 0; transition: opacity .65s ease; pointer-events: none; }
.home-carousel__slide.is-active { opacity: 1; }
.home-carousel__slide img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
.home-carousel::after, .page-banner::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(#0006, transparent 55%); pointer-events: none; }
.home-carousel__controls { position: absolute; z-index: 3; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 32px; background: #083723bd; backdrop-filter: blur(8px); }
.home-carousel__controls button { display: grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; touch-action: manipulation; border-radius: 50%; }
.home-carousel__arrow { font-size: 36px; line-height: 1; }
.home-carousel__pause { font-family: sans-serif; font-size: 18px; }
.home-carousel__dots { display: flex; align-items: center; }
.home-carousel__dots button { min-width: 32px; }
.home-carousel__dots span { width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: transparent; }
.home-carousel__dots [aria-pressed="true"] span { width: 20px; border-radius: 8px; background: #fff; }
.home-intro { box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1224px; margin-inline: auto; padding: 32px 16px; font-family: "Touche Regular", sans-serif; }
.home-intro__eyebrow { margin: 0 0 8px; color: #29352e; font-size: 18px; line-height: 1.4; }
.home-intro h1 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1.15 "Touche Bold", sans-serif; color: #06933c; }
.home-intro__subtitle { margin: 8px 0 0; font-size: 18px; line-height: 1.5; color: #29352e; }
.home-intro__cta { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 28px; border-radius: 28px; color: #fff; background: #06933c; text-decoration: none; font-size: 16px; white-space: nowrap; }
.page-banner { position: relative; width: 100%; height: clamp(320px, 50svh, 600px); overflow: hidden; background: #083723; }
.page-banner img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-position, center); }
.page-heading { box-sizing: border-box; width: 100%; max-width: 1224px; margin-inline: auto; padding: 64px 16px 28px; }
.page-heading h1 { margin: 0; font: 400 clamp(32px, 4vw, 48px)/1.15 "Touche Bold", sans-serif; color: #06933c; }
.page :is(#NqBsOFC46, #SeYHggBDVV) h1, .page :is(#NqBsOFC46, #SeYHggBDVV) h1 * { color: #06933c !important; }
.catalog-overview { box-sizing: border-box; width: 100%; background: linear-gradient(135deg, #06933c, #032c17); padding: 56px 16px; font-family: "Touche Regular", sans-serif; }
.catalog-overview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1224px; margin-inline: auto; }
.catalog-overview__card { min-width: 0; padding-bottom: 24px; text-align: center; background: #ffffff0a; }
.catalog-overview__photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.catalog-overview__card h2 { margin: 24px 16px 18px; color: #fff; font: 400 24px/1.3 "Touche Bold", sans-serif; }
.catalog-overview__cta { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 28px; border: 1px solid #fff; border-radius: 24px; color: #fff; text-decoration: none; font-size: 16px; }

.page--eventos .block-header:not(.block-header--scrolled) > .background { background-color: #083723 !important; }
.events-empty { min-height: calc(100svh - 152px); }

@media (max-width: 1024px) {
  .home-hero, .page-banner { margin-top: -88px; }
  .page-banner { height: clamp(280px, 45svh, 480px); }
  .page-heading { max-width: 720px; padding: 40px 24px 16px; }
  .home-intro { padding: 28px 24px; }
  .page .layout-element:has(> #zgtNKO) { --responsive-order: 9; }
  .page .layout-element:has(> #zyOSF5) { --responsive-order: 12; }
  .page :is(#zfVmtg, #zd3Y3f, #zXVAyT) .image-wrapper--mobile { max-width: 520px; margin-inline: auto; }
  .page .image-wrapper--mobile .image__image { object-fit: contain; }
  .catalog-overview__grid { gap: 16px; }
  .catalog-overview__card h2 { font-size: 20px; }
  .events-empty { min-height: calc(100svh - 88px); }
}

@media (max-width: 768px) {
  .page-banner { height: clamp(240px, 40svh, 380px); }
  .page-heading { padding: 32px 16px 8px; }
  .page-heading h1 { font-size: 32px; }
  .home-intro { align-items: flex-start; flex-direction: column; gap: 20px; padding: 24px 16px 32px; }
  .home-intro__eyebrow, .home-intro__subtitle { font-size: 16px; }
  .home-intro h1 { font-size: 32px; }
  .home-carousel__controls { bottom: 12px; gap: 4px; padding-inline: 4px; }
  .home-carousel__dots button { min-width: 28px; }
  .catalog-overview { padding: 32px 16px; }
  .catalog-overview__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .catalog-overview__card h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-carousel__slide { transition: none; }
}

/* Identidad corporativa y escala tipográfica compartida. */
.page {
  --corporate-green: #06933c;
  --section-title-size: 40px;
  --content-title-size: 24px;
  --body-copy-size: 18px;
  --section-number-size: 32px;
}
.page :is(.section-title, .content-title) :is(h1, h2, h3, h4, h5, h6),
.page :is(.section-title, .content-title) :is(h1, h2, h3, h4, h5, h6) * {
  color: var(--corporate-green) !important;
  font-family: "Touche Bold", sans-serif !important;
  font-weight: 400;
  font-size: var(--content-title-size) !important;
  line-height: 1.25 !important;
}
.page .section-title :is(h1, h2, h3, h4, h5, h6),
.page .section-title :is(h1, h2, h3, h4, h5, h6) *,
.page :is(.home-intro, .page-heading) h1 {
  font-size: var(--section-title-size) !important;
  line-height: 1.2 !important;
  color: var(--corporate-green) !important;
}
.page .text-box :is(p, li) { font-size: var(--body-copy-size) !important; line-height: 1.5 !important; }
.page .text-box :is(p, li) :is(span, strong, em, a) { font-size: inherit !important; line-height: inherit !important; }
.page .section-number :is(h1, h2, h3, h4, h5, h6),
.page .section-number :is(h1, h2, h3, h4, h5, h6) * {
  color: var(--corporate-green) !important;
  font: 400 var(--section-number-size)/1.2 "Touche Bold", sans-serif !important;
}
.page :is(#z9b47X, #zwiUHj, #zSaWas) p,
.page .catalog-overview__card h2 { font-size: var(--content-title-size) !important; line-height: 1.3 !important; }
.page :is(#zf1kqQ, #zS3k4t) .section-title :is(h1, span),
.page :is(#zrKiGV, #z2C7eG) :is(h1, h2, h3, h4, h5, h6, span) { color: #fff !important; }

/* Las portadas llenan el ancho; el encuadre sustituye las franjas laterales. */
.page-banner img { --photo-position: center 35%; }
.home-carousel__slide:nth-child(1) img { --photo-position: 35% 20%; }
.home-carousel__slide:nth-child(2) img { --photo-position: 55% 35%; }
.home-carousel__slide:nth-child(3) img { --photo-position: 45% 35%; }

/* Los tres marcos comparten altura, alineación y esquinas redondeadas. */
.company-principles { padding: 64px 16px; background: #0d1b2b; font-family: "Touche Regular", sans-serif; }
.company-principles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1224px; margin-inline: auto; }
.company-principles__card { min-width: 0; overflow: hidden; border-radius: 20px 20px 0 0; background: #fff; }
.company-principles__image { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: center; }
.company-principles__body { padding: 32px; color: #1a1a1a; font-size: var(--body-copy-size); line-height: 1.5; }
.company-principles__body h2 { margin: 0 0 20px; }
.company-principles__body p { margin: 0 0 24px; }
.company-principles__body p:last-child { margin-bottom: 0; }

/* Ventajas: filas compactas con el mismo tamaño de texto y numeración. */
.page #u7vIc0iRh .block-layout {
  grid-template-columns: minmax(0, 1.1fr) 44px minmax(0, 1fr) !important;
  grid-template-rows: auto repeat(6, minmax(40px, auto)) auto !important;
  gap: 20px 32px;
  min-height: 0 !important;
  padding-block: 64px;
}
.page #u7vIc0iRh .layout-element { align-self: start; justify-content: flex-start; min-height: 0; }
.page #u7vIc0iRh .layout-element:has(> #sRerUHxW4) { display: none; }
.page #u7vIc0iRh .layout-element:has(> #UhPwLW1iU) { grid-column: 2 / 4; grid-row: 1; }
.page #u7vIc0iRh .layout-element:has(> #zZSgdk) { grid-column: 1; grid-row: 1 / 5; }
.page #u7vIc0iRh .layout-element:has(> #I1dwBdpns) { grid-column: 1; grid-row: 5 / 8; }
.page #u7vIc0iRh .layout-element:has(> #WVysm9qnh) { grid-column: 1; grid-row: 8; justify-self: center; }
.page #u7vIc0iRh .layout-element:has(> .section-number) { grid-column: 2; }
.page #u7vIc0iRh .layout-element:has(> :is(#t93kHfQ3Q, #nW7vA00J6, #ASySiabpJ, #zEWesT, #zBzRK1, #zD7ZfZ)) { grid-column: 3; }
.page #u7vIc0iRh .layout-element:has(> :is(#nx8iU0veE, #t93kHfQ3Q)) { grid-row: 2; }
.page #u7vIc0iRh .layout-element:has(> :is(#_KThOOBAK, #nW7vA00J6)) { grid-row: 3; }
.page #u7vIc0iRh .layout-element:has(> :is(#PxpDl7TQG, #ASySiabpJ)) { grid-row: 4; }
.page #u7vIc0iRh .layout-element:has(> :is(#zwpsuX, #zEWesT)) { grid-row: 5; }
.page #u7vIc0iRh .layout-element:has(> :is(#zOE9tP, #zBzRK1)) { grid-row: 6; }
.page #u7vIc0iRh .layout-element:has(> :is(#zW2NZh, #zD7ZfZ)) { grid-row: 7; }
.page #zZSgdk { height: auto !important; aspect-ratio: 16 / 9; }
.page #I1dwBdpns p { margin-bottom: 18px; }
.page #I1dwBdpns p:last-child { margin-bottom: 0; }
.page #WVysm9qnh { width: auto; min-width: 180px; max-width: 240px; min-height: 48px; height: auto !important; padding: 12px 28px; }

/* Valores: las descripciones de la segunda fila comienzan a la misma altura. */
@media (min-width: 1025px) {
  .page #zgQLrL .layout-element:has(> :is(#ztPlsr, #z8P3Jz, #z6IsiF)) {
    grid-row: 16 / 21;
    align-self: start;
  }
}

/* Historia: título y foto juntos, alineados con el texto de la derecha. */
.page #zS39RE { padding: 64px 16px; scroll-margin-top: 112px; }
.page #zS39RE .block-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
  grid-template-rows: auto 1fr !important;
  gap: 24px 64px;
  min-height: 0 !important;
  padding: 0 !important;
}
.page #zS39RE .layout-element { min-width: 0; min-height: 0; height: auto; align-self: start; }
.page #zS39RE .layout-element:has(> #z54l_3) { grid-column: 1 !important; grid-row: 1 !important; }
.page #zS39RE .layout-element:has(> #zAa45N) { grid-column: 1 !important; grid-row: 2 !important; }
.page #zS39RE .layout-element:has(> #z7cbLj) { grid-column: 2 !important; grid-row: 1 / 3 !important; }
.page #z54l_3 h1, .page #z54l_3 h1 * { color: #fff !important; margin: 0; }
.page #z7cbLj p { margin: 0 0 18px !important; }
.page #z7cbLj p:last-child { margin-bottom: 0 !important; }
.page #zAa45N, .page #zAa45N .image { height: auto !important; }
.page #zAa45N .image__image { display: block; width: 100%; height: auto !important; border-radius: 16px; }

@media (max-width: 1024px) {
  .page { --section-title-size: 36px; --content-title-size: 22px; --section-number-size: 28px; }
  .page #zS39RE { padding: 48px 24px; }
  .page #zS39RE .block-layout { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: none !important; gap: 24px; }
  .page #zS39RE .layout-element:has(> :is(#z54l_3, #zAa45N, #z7cbLj)) { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .page #zS39RE .layout-element:has(> #z54l_3) { order: 1; }
  .page #zS39RE .layout-element:has(> #zAa45N) { order: 2; }
  .page #zS39RE .layout-element:has(> #z7cbLj) { order: 3; }
  .company-principles { padding: 48px 24px; }
  .company-principles__grid { grid-template-columns: minmax(0, 1fr); max-width: 672px; }
  .page #u7vIc0iRh .block-layout {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    grid-template-rows: repeat(10, auto) !important;
    gap: 20px 16px;
  }
  .page #u7vIc0iRh .layout-element { order: 0; }
  .page #u7vIc0iRh .layout-element:has(> #UhPwLW1iU) { grid-column: 1 / -1 !important; grid-row: 1 !important; }
  .page #u7vIc0iRh .layout-element:has(> #zZSgdk) { grid-column: 1 / -1 !important; grid-row: 2 !important; }
  .page #u7vIc0iRh .layout-element:has(> #I1dwBdpns) { grid-column: 1 / -1 !important; grid-row: 3 !important; }
  .page #u7vIc0iRh .layout-element:has(> #WVysm9qnh) { grid-column: 1 / -1 !important; grid-row: 10 !important; }
  .page #u7vIc0iRh .layout-element:has(> .section-number) { grid-column: 1 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#t93kHfQ3Q, #nW7vA00J6, #ASySiabpJ, #zEWesT, #zBzRK1, #zD7ZfZ)) { grid-column: 2 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#nx8iU0veE, #t93kHfQ3Q)) { grid-row: 4 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#_KThOOBAK, #nW7vA00J6)) { grid-row: 5 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#PxpDl7TQG, #ASySiabpJ)) { grid-row: 6 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#zwpsuX, #zEWesT)) { grid-row: 7 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#zOE9tP, #zBzRK1)) { grid-row: 8 !important; }
  .page #u7vIc0iRh .layout-element:has(> :is(#zW2NZh, #zD7ZfZ)) { grid-row: 9 !important; }
}

@media (max-width: 768px) {
  .page { --section-title-size: 32px; --content-title-size: 20px; --body-copy-size: 16px; --section-number-size: 26px; }
  .page #zS39RE { padding: 32px 16px; }
  .company-principles { padding: 32px 16px; }
  .company-principles__body { padding: 24px; }
  .page :is(#z9b47X, #zwiUHj, #zSaWas) p,
  .page .catalog-overview__card h2 { font-size: 22px !important; }
  .home-carousel__slide:nth-child(1) img { --photo-position: 30% center; }
  .home-carousel__slide:nth-child(2) img { --photo-position: 56% center; }
  .home-carousel__slide:nth-child(3) img { --photo-position: 42% center; }
}
