:root {
  --blue: #029fdb;
  --deep-blue: #075a9f;
  --navy: #113f67;
  --gold: #ffbd2e;
  --orange: #ff9827;
  --ink: #25303a;
  --muted: #6f7b86;
  --soft: #f5fbff;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(12, 67, 112, 0.16);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  inset: 18px 24px auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 63, 103, 0.12);
  transition: transform 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--navy);
}

.nav a {
  position: relative;
  padding: 8px 2px;
}

.nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  transition: width 220ms ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: 48px;
  padding: 148px clamp(22px, 6vw, 84px) 76px;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 78, 135, 0.82), rgba(2, 159, 219, 0.70) 48%, rgba(255, 255, 255, 0.20)),
    url("../assets/hero-flores.png") center / cover no-repeat;
  transform: scale(1.04);
  animation: slowZoom 12s ease-in-out infinite alternate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(255,255,255,0), var(--white));
  content: "";
}

.hero-content {
  max-width: 770px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 8.4rem);
  line-height: 0.88;
  font-weight: 900;
}

h2 {
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.16rem;
}

.hero-copy {
  max-width: 670px;
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

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

.button.primary {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 16px 30px rgba(255, 189, 46, 0.28);
}

.button.ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.hero-card {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 28px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
}

.hero-card span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 6px 14px 0;
  border-radius: 8px;
  color: var(--deep-blue);
  background: var(--gold);
  font-size: 1.5rem;
  font-weight: 900;
  animation: bob 3.2s ease-in-out infinite;
}

.hero-card span:nth-child(2) { animation-delay: 160ms; }
.hero-card span:nth-child(3) { animation-delay: 320ms; }
.hero-card span:nth-child(4) { animation-delay: 480ms; }
.hero-card span:nth-child(5) { animation-delay: 640ms; }

.hero-card p {
  margin: 0;
  font-weight: 800;
  line-height: 1.45;
}

.floating-shape {
  position: absolute;
  z-index: -1;
  border-radius: 52% 48% 60% 40%;
  opacity: 0.75;
  filter: blur(0.2px);
  animation: floaty 8s ease-in-out infinite;
}

.shape-one {
  right: 8%;
  top: 22%;
  width: 150px;
  height: 150px;
  background: rgba(255, 189, 46, 0.72);
}

.shape-two {
  left: 6%;
  bottom: 16%;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.62);
  animation-delay: 1.3s;
}

.section-band {
  background: var(--soft);
}

.section-inner {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 7vw, 76px);
}

.copy-block p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.image-frame {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.image-frame::before {
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mission {
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 189, 46, 0.24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(2, 159, 219, 0.18), transparent 34%),
    var(--white);
}

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

.mission-card,
.service-card {
  border: 1px solid rgba(2, 159, 219, 0.16);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(17, 63, 103, 0.08);
}

.mission-card {
  min-height: 310px;
  padding: 28px;
}

.mission-card p,
.service-card p {
  color: var(--muted);
  line-height: 1.65;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--deep-blue));
  font-weight: 900;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 36px;
}

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

.service-card {
  position: relative;
  min-height: 202px;
  padding: 26px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 58px rgba(17, 63, 103, 0.14);
}

.service-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 16px 8px 18px 8px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.service-card svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--deep-blue);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact {
  background: var(--white);
}

.impact-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
}

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

.stats div {
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--soft);
}

.stats strong {
  display: block;
  color: var(--deep-blue);
  font-size: 1.7rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  position: absolute;
  left: 28px;
  top: 26px;
  bottom: 26px;
  width: 3px;
  background: linear-gradient(var(--blue), var(--gold));
  content: "";
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 0;
  border-radius: 8px;
  background: var(--soft);
}

.timeline-step span {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 6px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--blue);
  font-weight: 900;
}

.timeline-step p {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.45;
}

address {
  display: inline-block;
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(17, 63, 103, 0.08);
}

.cta {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(7, 90, 159, 0.96), rgba(2, 159, 219, 0.90)),
    url("../assets/contacto.png") center / cover no-repeat;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 56px;
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta .eyebrow {
  color: var(--gold);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  width: fit-content;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(4px);
}

.contact-art {
  margin: 0;
  border: 7px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(22px, 6vw, 84px);
  color: var(--muted);
  background: var(--white);
}

footer img {
  width: 220px;
}

footer p {
  margin: 0;
  text-align: right;
  font-size: 0.92rem;
}

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

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

.delay-1 { transition-delay: 120ms; }
.delay-2 { transition-delay: 240ms; }

@keyframes slowZoom {
  from { transform: scale(1.04) translateY(0); }
  to { transform: scale(1.10) translateY(-10px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(18px, -22px, 0) rotate(9deg); }
}

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

@media (max-width: 900px) {
  .site-header {
    inset: 12px 14px auto;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(280px, calc(100vw - 28px));
    padding: 14px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
  }

  .hero,
  .split,
  .impact-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    min-height: auto;
    padding-top: 132px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-card {
    width: 100%;
    max-width: 430px;
  }

  .mission-grid,
  .service-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .section-inner {
    padding: 74px 0;
  }

  .cta-inner {
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 170px;
  }

  h1 {
    font-size: 3rem;
    line-height: 0.98;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-card span {
    width: 42px;
    height: 42px;
    font-size: 1.24rem;
  }

  footer {
    display: grid;
  }

  footer p {
    text-align: left;
  }
}
