:root {
  --teal: #008fb9;
  --teal-deep: #006d8f;
  --teal-soft: #e6f5f9;
  --cream: #fffef6;
  --ink: #1a2a32;
  --ink-muted: #4a5c66;
  --line: rgba(26, 42, 50, 0.12);
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 109, 143, 0.18);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--teal);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(255, 254, 246, 0.12);
  background: var(--teal-deep);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 1.35rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: rgba(255, 254, 246, 0.9);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--teal-deep) !important;
  background: var(--cream);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--white);
  color: var(--teal-deep) !important;
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #0a1c24;
  background-image:
    linear-gradient(120deg, rgba(0, 143, 185, 0.35), transparent 50%),
    url("../assets/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 109, 143, 0.35) 0%, rgba(10, 28, 36, 0.72) 55%, rgba(10, 28, 36, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 143, 185, 0.45), transparent 55%);
}

.hero-ornament {
  position: absolute;
  right: -8vw;
  top: 8vh;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 254, 246, 0.22);
  box-shadow:
    0 0 0 28px rgba(255, 254, 246, 0.04),
    0 0 0 56px rgba(255, 254, 246, 0.03);
  animation: ornament-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(3.5rem, 9vh, 5.5rem);
  animation: rise-in 0.9s ease both;
}

.hero-copy {
  max-width: 40rem;
}

.hero-brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: rgba(255, 254, 246, 0.9);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cream);
  color: var(--teal-deep);
}

.btn-primary:hover {
  background: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 254, 246, 0.45);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(255, 254, 246, 0.1);
}

.btn-lg {
  min-height: 3.3rem;
  padding-inline: 1.5rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vh, 5.5rem) 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.focus-copy h2,
.cta-inner h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

.section-lead,
.focus-copy p,
.cta-inner p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Services */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.4rem 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 109, 143, 0.1);
}

.service-index {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.service-card p {
  margin: 0;
  color: var(--ink-muted);
  flex: 1;
}

.service-cta {
  align-self: start;
  margin-top: 0.35rem;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
  transition: color 0.2s ease;
}

.service-cta:hover {
  color: var(--teal);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head-center .section-lead {
  margin-inline: auto;
  max-width: 42ch;
}

/* Pasos */
.pasos {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--teal-soft) 70%, white), var(--cream));
}

.pasos-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.paso-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.6rem 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
}

.paso-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.paso-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--teal-deep);
}

.paso-card p {
  margin: 0;
  color: var(--ink-muted);
}

.pasos-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-deep);
}

/* Focus */
.focus {
  background:
    linear-gradient(180deg, var(--teal-soft), color-mix(in srgb, var(--cream) 70%, var(--teal-soft)));
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.focus-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.focus-points li {
  display: grid;
  gap: 0.3rem;
  padding-left: 1rem;
  border-left: 3px solid var(--teal);
}

.focus-points strong {
  font-size: 1.02rem;
}

.focus-points span {
  color: var(--ink-muted);
}

/* CTA band */
.cta-band {
  background: var(--teal);
  color: var(--white);
}

.cta-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

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

.cta-inner p {
  color: rgba(255, 254, 246, 0.9);
  margin-bottom: 1.5rem;
}

.cta-band .btn-primary {
  box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 6.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.footer-brand p:last-child {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--teal-deep);
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.fab-wa {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
  z-index: 50;
  transition: transform 0.2s ease;
}

.fab-wa svg {
  display: block;
  flex-shrink: 0;
}

.fab-wa:hover {
  transform: translateY(-2px) scale(1.03);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

@keyframes ornament-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --wrap: min(1120px, calc(100% - 1.5rem));
  }

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

  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media,
  .hero-ornament,
  .hero-content,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
