:root {
  --blue: #2c9bd1;
  --blue-deep: #1477ad;
  --green: #79ad45;
  --green-deep: #4f8431;
  --aqua: #62c7c7;
  --coral: #e98568;
  --ink: #173140;
  --muted: #64727a;
  --line: rgba(23, 49, 64, 0.12);
  --paper: #fbfdfc;
  --soft: #eef8f5;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(25, 75, 98, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 55px rgba(24, 80, 103, 0.12);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition: box-shadow 220ms ease, background 220ms ease, top 220ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 42px rgba(24, 80, 103, 0.16);
}

.brand {
  display: flex;
  width: 230px;
  height: 58px;
  align-items: center;
  flex: 0 0 230px;
  overflow: visible;
}

.brand img {
  width: 220px;
  height: 58px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(23, 49, 64, 0.76);
  font-size: 0.91rem;
  font-weight: 650;
}

.site-nav a {
  border-radius: 999px;
  padding: 11px 14px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  color: var(--blue-deep);
  background: rgba(44, 155, 209, 0.08);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  margin-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 10px 26px rgba(44, 155, 209, 0.22);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--green-deep));
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 10px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 112px max(24px, calc((100vw - 1120px) / 2)) 112px;
  background:
    linear-gradient(90deg, rgba(248, 253, 252, 0.78) 0%, rgba(248, 253, 252, 0.5) 38%, rgba(248, 253, 252, 0.08) 68%),
    linear-gradient(180deg, rgba(248, 253, 252, 0.08) 0%, rgba(248, 253, 252, 0.12) 100%),
    url("portada.jpg") center right / cover no-repeat;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 58vw);
  padding-top: 6px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 5.7vw, 5.85rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 26px;
  color: rgba(23, 49, 64, 0.74);
  font-size: clamp(1.04rem, 1.5vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 18px 36px rgba(44, 155, 209, 0.26);
}

.button-primary:hover {
  box-shadow: 0 22px 46px rgba(44, 155, 209, 0.34);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.hero-strip {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 24px;
  left: max(24px, calc((100vw - 1120px) / 2));
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 54px rgba(24, 80, 103, 0.1);
  backdrop-filter: blur(18px);
}

.hero-strip a {
  min-height: 72px;
  padding: 24px 22px;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.hero-strip a:hover {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 112px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(23, 49, 64, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(24, 80, 103, 0.11);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease;
}

.scroll-cue:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateX(-50%) translateY(3px);
}

.scroll-cue span {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue-deep);
  border-bottom: 2px solid var(--blue-deep);
  transform: translateY(-2px) rotate(45deg);
  animation: cuePulse 1.8s ease-in-out infinite;
}

.section {
  padding: 108px max(24px, calc((100vw - 1120px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) 1fr;
  gap: 36px;
  margin-bottom: 42px;
}

.section-heading h2,
.metrics-copy h2,
.cta-content h2 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card,
.testimonial {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(24, 80, 103, 0.08);
}

.feature-card {
  min-height: 275px;
  padding: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
  border-color: rgba(44, 155, 209, 0.28);
  box-shadow: 0 26px 62px rgba(24, 80, 103, 0.14);
  transform: translateY(-6px);
}

.icon-dot {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #9fd8e6);
}

.icon-dot.green {
  background: linear-gradient(135deg, var(--green), #cfe4a5);
}

.icon-dot.aqua {
  background: linear-gradient(135deg, var(--aqua), #bdeceb);
}

.icon-dot.coral {
  background: linear-gradient(135deg, var(--coral), #f7c5ae);
}

.feature-card h3,
.service-panel h3 {
  margin-bottom: 12px;
  font-size: 1.34rem;
  line-height: 1.12;
}

.feature-card p,
.service-panel p,
.testimonial p,
.site-footer p,
.metric span {
  color: var(--muted);
}

.services-section {
  background: #f3faf8;
}

.service-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: minmax(235px, auto);
  gap: 16px;
}

.service-panel {
  position: relative;
  display: flex;
  min-height: 235px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 8px;
  padding: 30px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(23, 49, 64, 0.02), rgba(23, 49, 64, 0.72)),
    linear-gradient(135deg, var(--blue), var(--green));
  isolation: isolate;
}

.service-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.44), transparent 18%),
    linear-gradient(135deg, transparent 0 48%, rgba(255, 255, 255, 0.18) 49% 54%, transparent 55%);
  content: "";
  transition: transform 260ms ease;
}

.service-panel:hover::before {
  transform: scale(1.08);
}

.service-panel span {
  position: absolute;
  top: 24px;
  left: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 900;
}

.service-panel p {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.service-panel.large {
  grid-row: span 2;
  min-height: 486px;
  background:
    linear-gradient(180deg, rgba(23, 49, 64, 0.04), rgba(23, 49, 64, 0.68)),
    linear-gradient(135deg, #81c7df, #6fac4f 52%, #efa17e);
}

.service-panel.wide {
  grid-column: span 2;
  background:
    linear-gradient(180deg, rgba(23, 49, 64, 0.02), rgba(23, 49, 64, 0.72)),
    linear-gradient(135deg, var(--green), var(--aqua));
}

.metrics-section {
  padding: 118px max(24px, calc((100vw - 1120px) / 2));
  color: var(--white);
  background: var(--ink);
}

.metrics-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 46px;
  align-items: start;
}

.metrics-copy .eyebrow {
  color: #a9db86;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.metric {
  min-height: 178px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.055);
  transition: background 180ms ease;
}

.metric:hover {
  background: rgba(255, 255, 255, 0.09);
}

.metric strong {
  display: block;
  margin-bottom: 44px;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.12;
}

.metric span {
  color: rgba(255, 255, 255, 0.68);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 270px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(24, 80, 103, 0.08);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.placeholder {
  width: 100%;
  height: 100%;
  transition: transform 320ms ease;
}

.gallery-item:hover .placeholder {
  transform: scale(1.05);
}

.placeholder::before,
.placeholder::after {
  position: absolute;
  content: "";
}

.movement {
  background:
    radial-gradient(circle at 42% 24%, rgba(255, 255, 255, 0.85) 0 7%, transparent 8%),
    linear-gradient(150deg, transparent 0 40%, rgba(255, 255, 255, 0.38) 41% 46%, transparent 47%),
    linear-gradient(135deg, #8ed2df, #75ad4a 58%, #eda17d);
}

.workshop {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.72) 0 11%, transparent 12%),
    linear-gradient(135deg, #f5c2a8, #fff3d9 42%, #77c6c7);
}

.talk {
  background:
    radial-gradient(circle at 38% 35%, rgba(255, 255, 255, 0.76) 0 10%, transparent 11%),
    linear-gradient(135deg, #7fcadf, #2c9bd1 45%, #74ad48);
}

.community {
  background:
    radial-gradient(circle at 25% 36%, rgba(255, 255, 255, 0.74) 0 8%, transparent 9%),
    radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.68) 0 7%, transparent 8%),
    radial-gradient(circle at 75% 44%, rgba(255, 255, 255, 0.6) 0 6%, transparent 7%),
    linear-gradient(135deg, #77b457, #6fc7c8 55%, #f0a17d);
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--white);
  background: rgba(23, 49, 64, 0.52);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.testimonials-section {
  background: #fff8f4;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.testimonial {
  min-height: 260px;
  padding: 30px;
}

.testimonial p {
  margin-bottom: 42px;
  font-size: 1.14rem;
}

.testimonial span {
  color: var(--green-deep);
  font-weight: 800;
}

.video-testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-testimonial p {
  margin-bottom: 0;
  font-weight: 800;
  color: var(--ink);
}

.video-testimonial small {
  color: var(--muted);
  font-weight: 650;
}

.video-placeholder {
  position: relative;
  display: grid;
  min-height: 172px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 49, 64, 0.02), rgba(23, 49, 64, 0.42)),
    linear-gradient(135deg, rgba(44, 155, 209, 0.78), rgba(121, 173, 69, 0.78));
}

.video-placeholder::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 38% 30%, rgba(255, 255, 255, 0.72) 0 9%, transparent 10%),
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.24) 46% 51%, transparent 52%);
  content: "";
}

.video-placeholder span {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(23, 49, 64, 0.18);
}

.video-placeholder span::after {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--blue-deep);
  content: "";
  transform: translate(-45%, -50%);
}

.cta-section {
  padding: 122px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(246, 252, 250, 0.86), rgba(246, 252, 250, 0.92)),
    linear-gradient(135deg, rgba(44, 155, 209, 0.16), rgba(121, 173, 69, 0.16), rgba(233, 133, 104, 0.16));
}

.cta-content {
  width: min(860px, 100%);
  margin: 0 auto;
}

.cta-content .eyebrow {
  color: var(--blue-deep);
}

.cta-content h2 {
  margin: 0 auto 30px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 42px;
  padding: 54px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer img {
  width: 160px;
  margin-bottom: 18px;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--blue-deep);
}

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

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

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(-3px) rotate(45deg);
  }
  50% {
    opacity: 1;
    transform: translateY(2px) rotate(45deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    border-radius: 28px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 55px rgba(24, 80, 103, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 124px;
    padding-bottom: 116px;
    background-position: center center;
  }

  .hero-content {
    width: min(620px, 62vw);
    padding-top: 10px;
  }

  .hero-strip,
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .scroll-cue {
    bottom: 104px;
  }

  .section-heading,
  .metrics-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-layout {
    grid-template-columns: 1fr 1fr;
  }

  .service-panel.large,
  .service-panel.wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 300px;
  }

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

  .gallery-item.wide {
    grid-column: span 2;
  }

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

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    padding: 8px 10px 8px 14px;
  }

  .brand {
    width: 132px;
    flex-basis: 132px;
  }

  .brand img {
    width: 126px;
    height: 50px;
  }

  .hero {
    padding-inline: 18px;
    padding-top: 104px;
    padding-bottom: 82px;
    background:
      linear-gradient(90deg, rgba(248, 253, 252, 0.78) 0%, rgba(248, 253, 252, 0.46) 60%, rgba(248, 253, 252, 0.16) 100%),
      linear-gradient(180deg, rgba(248, 253, 252, 0.08) 0%, rgba(248, 253, 252, 0.28) 100%),
      url("portada.jpg") center center / cover no-repeat;
  }

  h1 {
    font-size: clamp(2.8rem, 17vw, 4.7rem);
  }

  .hero-content {
    width: 100%;
  }

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

  .hero-strip,
  .feature-grid,
  .service-layout,
  .metrics-grid,
  .gallery-grid,
  .testimonial-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    display: none;
  }

  .scroll-cue {
    bottom: 24px;
    width: 40px;
    height: 40px;
  }

  .section,
  .metrics-section {
    padding: 78px 18px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .feature-card {
    min-height: 230px;
  }

  .icon-dot {
    margin-bottom: 34px;
  }

  .service-panel.large,
  .service-panel.wide,
  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-auto-rows: 245px;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }

  .site-footer {
    gap: 22px;
  }
}

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