:root {
  color-scheme: light;
  --brand-white: #fdfdfd;
  --brand-ink: #082b30;
  --brand-muted: #435b56;
  --brand-green: #087348;
  --brand-accent: #009653;
  --brand-highlight: #04ae60;
  --brand-deep: #014e38;
  --brand-soft: #eef8f3;
  --brand-border: #cbdfd5;
  --brand-shadow: 0 .7rem 2.1rem #043d2a16;
  background: var(--brand-white);
}

html { --header-height: clamp(4.5rem, 7vw, 6.5rem); }

body:is(.home-page, .interior-page) {
  --canvas: var(--brand-white);
  --ink: var(--brand-ink);
  --muted: var(--brand-muted);
  --green: var(--brand-green);
  --line: var(--brand-border);
  --paper: var(--brand-soft);
  --mint: #e5f4ed;
  --cover-text: var(--ink);
  --cover-soft: var(--muted);
  --cover-mint: var(--green);
  --cover-line: var(--line);
  --showcase-ink: var(--ink);
  --showcase-mint: var(--green);
  --showcase-line: var(--line);
  --plan-mint: var(--green);
  --plan-border: var(--line);
  --plan-surface: var(--brand-white);
  --feature-edge: #bcf3d9;
  color: var(--ink);
  background: var(--canvas);
}

:focus-visible { outline-color: var(--brand-green); }
.skip { color: var(--brand-ink); background: var(--brand-white); border-color: var(--brand-green); }

/* A single brand treatment for the navigation and footer. */
body:is(.home-page, .interior-page) .site-header {
  border-color: var(--line);
  background: #fdfdfdf7;
}

body:is(.home-page, .interior-page) .site-header .header-inner {
  width: min(94%, 96rem);
  margin-inline: auto;
  min-height: var(--header-height);
}

body:is(.home-page, .interior-page) .site-header .cover-brand { color: var(--ink); }

body:is(.home-page, .interior-page) .cover-brand-icon {
  position: relative;
  display: block;
  flex: none;
  width: clamp(2.8rem, 5.4vw, 5.2rem);
  aspect-ratio: .9;
  border-radius: 0;
  background: none;
  overflow: hidden;
}

/* Reveal the supplied emblem while the wordmark remains selectable text. */
.cover-brand-icon > img {
  position: absolute;
  width: 221%;
  height: auto;
  max-width: none;
  inset: -30% auto auto -60.5%;
  border-radius: 0;
  clip-path: polygon(29.8% 30.4%, 31.1% 27.8%, 33.1% 25.3%, 35.7% 23.2%, 38.6% 22.1%, 41.7% 22.1%, 44.2% 22.9%, 47.1% 24.4%, 48.8% 25.4%, 50.4% 25.7%, 52.5% 25.1%, 55.4% 23.7%, 57.4% 22.8%, 59.9% 22.3%, 64.25% 16.45%, 70.3% 26.45%, 69.55% 26.95%, 67.65% 26.95%, 68.75% 29.1%, 69.55% 32.9%, 69.5% 36.1%, 68.7% 39.5%, 67.45% 43.3%, 66.7% 47.6%, 65.45% 51.5%, 64.2% 54.85%, 62.5% 58.25%, 60.8% 60.3%, 59% 61.4%, 57.2% 61.65%, 55.35% 61%, 53.95% 59.5%, 52.9% 57.4%, 51.75% 54.3%, 50.55% 50.9%, 49.9% 49.65%, 49.15% 49.1%, 48.5% 49.45%, 47.8% 50.5%, 46.8% 52.9%, 45.85% 55.65%, 44.65% 58.55%, 43.2% 60.6%, 41.75% 61.58%, 39.6% 61.75%, 38% 61.2%, 36.7% 60.05%, 35.15% 57.75%, 33.75% 54.4%, 32.9% 50.7%, 32% 47.3%, 31.05% 44.8%, 30.1% 42.3%, 29.55% 39.85%, 29.5% 36.95%, 29.55% 33.8%);
}

body:is(.home-page, .interior-page) .cover-brand-name { color: var(--ink); }
body:is(.home-page, .interior-page) .cover-brand-name strong,
footer.site-footer .brand strong { color: var(--brand-accent); }
.cover-brand-subtitle { color: var(--ink); }

body:is(.home-page, .interior-page) #navigation a {
  color: var(--ink);
  font-weight: 650;
}

body:is(.home-page, .interior-page) #navigation a:is(:hover, [aria-current]) { color: var(--green); }
body:is(.home-page, .interior-page) #navigation a[aria-current]::after {
  background: var(--brand-highlight);
  box-shadow: 0 .13rem .5rem #04ae6066;
}

body:is(.home-page, .interior-page) .site-header .header-cta,
.home-page .hero .button:not(.outline),
.interior-page .interior-hero .button:not(.outline),
.showcase-page .plan-request,
.interior-page .contact-panel .button,
.interior-page .legal-content .button:not(.outline),
.button:not(.outline) {
  border-color: transparent;
  border-radius: 2rem;
  color: #fff;
  background: linear-gradient(180deg, #087348, #023e28);
  box-shadow: 0 .28rem .6rem #02513823;
}

body:is(.home-page, .interior-page) .site-header .header-cta:hover,
.home-page .hero .button:not(.outline):hover,
.interior-page .interior-hero .button:not(.outline):hover,
.showcase-page .plan-request:hover,
.interior-page .contact-panel .button:hover,
.interior-page .legal-content .button:not(.outline):hover,
.button:not(.outline):hover {
  color: #fff;
  background: linear-gradient(180deg, #087f4d, #014e38);
  box-shadow: 0 .45rem 1.05rem #0251383b;
}

body:is(.home-page, .interior-page) .header-cta::before {
  content: '';
  width: .9em;
  height: .85em;
  margin-inline-end: .15em;
  border: 1.5px solid currentColor;
  border-radius: .17em;
  background: none;
  box-shadow: inset 0 .19em currentColor;
  mix-blend-mode: normal;
}

.header-cta .cover-action-icon { display: none; }

.home-page .hero .button.outline,
.home-page main > .section .button.outline,
.interior-page main .button.outline,
.feature-page .feature-hero .button.outline {
  border: 1px solid #53786a;
  border-radius: 2rem;
  color: var(--ink);
  background: var(--brand-white);
  box-shadow: none;
}

.home-page .hero .button.outline:hover,
.home-page main > .section .button.outline:hover,
.interior-page main .button.outline:hover,
.feature-page .feature-hero .button.outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--paper);
}

/* White reading areas and emerald waves from the design reference. */
.home-page .hero,
.interior-page .contact-hero,
.interior-page .interior-detail,
.showcase-page .showcase-hero,
.feature-page .feature-hero,
.showcase-page--planes .catalogue-hero {
  color: var(--ink);
  background: radial-gradient(ellipse at 88% 48%, #d0efe0, transparent 61%), var(--brand-white);
}

.home-page .hero h1,
.interior-page .contact-hero h1,
.interior-page .interior-detail h1,
.showcase-page .showcase-hero h1 { color: var(--ink); }

.home-page .hero h1 em,
.interior-page .contact-hero h1 em,
.showcase-page .showcase-hero h1 em,
.showcase-section .section-heading h2 em {
  color: var(--brand-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.home-page .hero .eyebrow,
.interior-page .contact-hero .eyebrow,
.interior-page .interior-detail .eyebrow,
.showcase-page .showcase-hero .eyebrow,
.showcase-section .eyebrow { color: var(--green); }
.home-page .hero .eyebrow span { background: currentColor; }

.home-page .hero .hero-lead,
.interior-page .interior-hero .interior-lead,
.interior-page .contact-hero .interior-lead,
.interior-page .interior-detail .detail-lead,
.showcase-section .section-heading > p:last-child { color: var(--muted); }

.showcase-wave { filter: drop-shadow(0 -.15rem .65rem #0dbb7950); }
.showcase-wave::before {
  background: linear-gradient(148deg, #007950, #014e38 31%, #0aa36d 54%, #014e38 75%, #013a29);
}
.showcase-wave::after {
  background: linear-gradient(105deg, #1bbc8e20, #afffe0 33%, #34dca8 51%, #dcfff1 68%, #14bc8950);
  background-size: 200% 100%;
}
.feature-arc {
  border-color: #29b98477;
  background: radial-gradient(ellipse at 44% 0%, #05ab6c7d, #bde9d94a 42%, transparent 68%);
  box-shadow: 0 -1rem 2.7rem -1.3rem #00a56963;
}

.home-page .hero { min-height: 0; padding-bottom: clamp(3.6rem, 8vw, 7rem); }
.home-page .hero::before, .home-page .hero::after { display: none; }
.home-page .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3.4rem);
  min-height: auto;
  padding-block: clamp(2.25rem, 5vw, 5rem) clamp(1.5rem, 3vw, 3rem);
}
.home-page .hero-visual {
  position: relative;
  inset: auto;
  width: 100%;
  margin: 0;
  border: 2px solid #bcf5dc;
  border-radius: clamp(1.3rem, 4vw, 3.25rem);
  box-shadow: 0 0 2rem #04ae6052, var(--brand-shadow);
  background: var(--brand-deep);
}
.home-page .hero-artwork { mask-image: none; }
.home-page .hero .actions .cover-action-icon { display: none; }
.home-page .cover-areas {
  background: #fdfdfde8;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--brand-shadow);
}
.cover-areas li + li::before { background: var(--line); }
.cover-areas a { color: var(--ink); }
.cover-areas a:hover { color: var(--green); background: var(--paper); }
.cover-area-icon { background-color: var(--green); }
.home-page .cover-scroll { margin-bottom: .3rem; color: var(--green); }
.home-page .hero > .showcase-wave { height: clamp(2.7rem, 6.5vw, 6.2rem); z-index: 0; }

.feature-page .feature-media {
  border-color: #c3f9e1;
  box-shadow: 0 0 2.2rem #08b77f4c, var(--brand-shadow);
}
.feature-media .feature-frame::after,
.feature-bleed .feature-frame::after {
  background: linear-gradient(155deg, #12a87813, transparent 55%, #004e3824);
}
.feature-page .feature-bleed .feature-media { box-shadow: none; }
.feature-page .feature-alliances .feature-media { transform: none; }
.feature-page .feature-alliances h1 { max-width: 21ch; }
.feature-pills li {
  color: var(--ink);
  background: #fdfdfdf7;
  border-color: #b5dfca;
  box-shadow: 0 .45rem 1rem #073b292c;
}
.feature-pills .showcase-icon, .feature-course-topics svg { color: var(--green); }
.feature-course-topics li + li { border-color: var(--line); }
.showcase-about .interior-visual::after {
  background: linear-gradient(90deg, #e8f8eed1, #f0f9f45c 27%, transparent 55%);
}

.showcase-page--planes .catalogue-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.6rem);
  padding-block: clamp(1.7rem, 3vw, 3rem) clamp(3rem, 5vw, 5rem);
}
.catalogue-hero .catalogue-copy { max-width: none; }
.catalogue-image {
  position: relative;
  z-index: 0;
  inset: auto;
  width: 100%;
  aspect-ratio: 2.15;
  border: 2px solid #c3f9e1;
  border-radius: clamp(1rem, 2.5vw, 2rem);
  box-shadow: 0 0 1.6rem #04ae6036, var(--brand-shadow);
  mask-image: none;
  opacity: 1;
}
.catalogue-image img { object-position: center 68%; }
.catalogue-image::after { display: none; }
.catalogue-hero .showcase-wave { width: 100%; opacity: 1; }

/* Cards, plans, contact form, and legal pages share the same light surfaces. */
.home-page main > .section,
.home-page main > .about,
.home-page main > .stage-section,
.home-page main > .contact,
.interior-page .interior-collection,
.interior-page .legal-section,
.feature-page .feature-content,
.feature-page .feature-content + .feature-content,
.catalogue::before {
  background: linear-gradient(145deg, var(--brand-white) 35%, var(--paper));
}
.home-page main > .section:nth-of-type(even), .feature-page .feature-content + .feature-content {
  background: linear-gradient(150deg, var(--paper), var(--brand-white) 72%);
}
.home-page main > .section::before, .interior-collection::before, .legal-section::before {
  background: linear-gradient(90deg, transparent, #27a97464, transparent);
}

.service,
.course,
.stage-grid > article,
.interior-collection :is(.service, .course, .stage-grid > article),
.showcase-page .interior-principles .stage-grid > article,
.feature-content .feature-cards > article,
.home-page main > .contact .contact-action,
.interior-page .legal-content,
.contact-utility,
.contact-panel,
.catalogue-menu,
.catalogue-panel,
.catalogue-steps {
  color: var(--ink);
  background: var(--brand-white);
  border-color: var(--line);
  box-shadow: var(--brand-shadow);
}

.service .card-body h3,
.course .card-body h3,
.stage-grid > article h3,
.interior-collection .stage-grid > article h3,
.feature-page .feature-content .feature-card-title,
.legal-content h2,
.contact-panel .contact-panel-label,
.contact-number,
.home-page .contact .contact-action strong { color: var(--ink); }

.service .service-intro,
.legal-content a:not(.button),
.contact-utility-copy a,
.contact-utility-social,
.interior-detail .back-link { color: var(--green); }
.home-page main > .contact p,
.showcase-page .interior-principles .stage-grid > article p,
.catalogue-title p,
.catalogue-steps li span,
.contact-message p,
.contact-message label,
.contact-message label small { color: var(--muted); }
.home-page .contact h2, .home-page .contact .contact-action { color: var(--ink); }
.home-page main > .about .about-photo, .interior-detail .detail-guide, .interior-detail .detail-media {
  border-color: var(--line);
  box-shadow: var(--brand-shadow);
}
.service:last-child > img { object-position: 79% 51%; }
.feature-content .service[id="equipamiento-y-bioseguridad"] > img { object-position: 78% 60%; }
.signal-icon, .card-icon, .showcase-page .principles-values li, .principles-band,
.catalogue-scope > section, .catalogue-meta {
  color: var(--green);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}
.principle-heading h3::after { background: var(--brand-accent); box-shadow: none; }
.principles-values .showcase-icon, .principles-band .showcase-icon,
.catalogue-steps li > .showcase-icon, .catalogue-title > .showcase-icon,
.catalogue-tab > .showcase-icon:first-child { color: var(--green); }

.catalogue-steps li + li, .catalogue-scope h4 { border-color: var(--line); }
.catalogue-options { scrollbar-color: #6cae95 var(--paper); }
.catalogue-tab {
  color: var(--ink);
  border-color: var(--line);
  background: var(--brand-white);
}
.catalogue-tab:hover { background: var(--paper); border-color: #75ad95; }
.catalogue-tab[aria-selected="true"] {
  color: #06422e;
  background: #d8f2e5;
  border-color: #38a674;
  box-shadow: none;
}
.catalogue-tab:focus-visible, .catalogue-panel:focus-visible { outline-color: var(--green); }
.catalogue-meta { background: transparent; }
.catalogue-meta dd, .catalogue-scope h4 { background: none; color: var(--green); }
.catalogue-meta dd { background: #dff3e9; }
.catalogue-scope li { color: var(--ink); }
.catalogue-scope li::before { background: #d3eee0; color: var(--green); }
.legal-content .legal-notice { background: var(--paper); border-color: var(--brand-accent); }

.contact-art {
  border: 2px solid #ccf7e5;
  border-radius: 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 90%, transparent), linear-gradient(#000 72%, transparent);
  opacity: .65;
}
.contact-hero::after {
  border-color: #8ee4be;
  background: linear-gradient(160deg, #05a977, var(--brand-deep) 48%);
  box-shadow: 0 -.35rem 1.8rem #1ad49b43;
}
.contact-message { border-color: var(--line); }
.contact-message input:not([type="hidden"]), .contact-message textarea {
  color: var(--ink);
  border-color: #a5c7b7;
  background: #f5faf7;
}
.contact-benefits .contact-icon, .contact-panel .contact-icon { background-color: var(--green); }
.contact-utility-copy .contact-icon, .contact-utility-book .contact-icon {
  filter: none;
  mix-blend-mode: multiply;
}

footer.site-footer {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(150deg, #edf8f3, var(--brand-white) 70%);
}
footer.site-footer :is(.brand, p) { color: var(--ink); }
footer.site-footer :is(.social-links a, .footer-legal a) { color: var(--green); }
footer.site-footer :is(.social-links a, .footer-legal), .showcase-footer .footer-inner > p { border-color: var(--line); }
footer.site-footer .social-links a:hover { background: #dcefe5; color: var(--green); border-color: #8ac7aa; }
body:is(.home-page, .interior-page) footer.site-footer .cover-brand-icon { width: 2.55rem; }

@media (hover: hover) {
  .service:hover, .course:hover, .stage-grid > article:hover,
  .showcase-page .interior-principles .stage-grid > article:hover,
  .feature-content .feature-cards > article:hover {
    border-color: #79bf9e;
    box-shadow: 0 .85rem 2.3rem #043d2a25;
  }
}

@media (max-width: 62rem) {
  .home-page .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .home-page .hero-visual { width: min(100%, 42rem); margin-inline: auto; }
}

@media (max-width: 55rem) {
  body:is(.home-page, .interior-page) .site-header .header-inner { width: 92%; }
  body:is(.home-page, .interior-page) .site-header .menu,
  .interactive body:is(.home-page, .interior-page) #navigation {
    color: var(--ink);
    border-color: var(--line);
    background: var(--brand-white);
  }
  .showcase-about .interior-visual::after { background: linear-gradient(0deg, #e8f8ed31, transparent 50%); }
  .feature-page .feature-bleed .feature-media { box-shadow: var(--brand-shadow); }
  .contact-art { opacity: .16; }
  .catalogue-meta { background: var(--paper); }
}

@media (max-width: 40rem) {
  .showcase-page--planes .catalogue-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .catalogue-image { aspect-ratio: 1.85; }
  .home-page .hero { padding-bottom: 3rem; }
}
