:root {
  color-scheme: only light;
  --mist: #eaf2fb;
  --sky: #c6d9f0;
  --harbor: #0f2f4f;
  --fjord: #1f5a85;
  --signal: #2a7fc1;
  --ink: #101824;
  --ice: #f7faff;
  --shadow: 0 24px 60px rgba(15, 47, 79, 0.16);
}

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

body {
  margin: 0;
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink);
  background: radial-gradient(circle at top left, #e6effb 0%, #d6e3f6 45%, #f8fbff 100%);
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

section[id] {
  scroll-margin-top: 90px;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

main {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 255, 0.88);
  border-bottom: 1px solid rgba(15, 47, 79, 0.12);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--harbor);
}

.nav-toggle .material-symbols-outlined {
  font-size: 32px;
  line-height: 1;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width 0.3s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(23, 56, 49, 0.15);
}

.btn-primary {
  background: var(--signal);
  color: #fff;
  border-color: var(--signal);
}

.btn-ghost {
  border-color: var(--harbor);
  color: var(--harbor);
  background: transparent;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  margin: 0 0 1rem;
  color: var(--harbor);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fjord);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.hero-card {
  background: var(--ice);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 47, 79, 0.08);
  animation: float-in 1s ease-out both;
}

.card-title {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0 0 0.75rem;
  color: var(--harbor);
}

.card-text {
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.card-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 400;
  color: var(--fjord);
}

.card-highlight span {
  background: rgba(42, 127, 193, 0.15);
  border-radius: 999px;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  position: relative;
  z-index: 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: transparent;
  z-index: -1;
}

main > section.section:nth-of-type(even)::before {
  background: #fff;
}

.section-header {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

.servicios .section-header {
  text-align: center;
  margin: 0 auto;
}

.about .section-header {
  text-align: center;
  margin: 0 auto;
}

.contacto .section-header {
  text-align: center;
  margin: 0 auto;
}

.section-header h2 {
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--harbor);
  margin: 0;
}

.section-header p {
  margin: 0;
  line-height: 1.7;
}

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
}

.service-card {
  text-align: center;
  padding: 0 1rem;
}

.service-icon {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(42, 127, 193, 0.12);
  box-shadow: 0 18px 40px rgba(15, 47, 79, 0.12);
}

.service-icon img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 0.6rem;
  font-weight: 400;
  color: var(--harbor);
}

.service-card p {
  margin: 0;
  line-height: 1.6;
  color: rgba(15, 47, 79, 0.75);
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

.about-stack {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.9rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.about-block {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about-block.reverse {
  flex-direction: row-reverse;
}

.about-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-media img {
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  max-width: 360px;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
}

.about-block#about .about-media img {
  max-width: 300px;
}

.about-content {
  flex: 1;
  max-width: 520px;
}

.about-block h2 {
  margin: 0 0 0.75rem;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--harbor);
}

.about-block p {
  margin: 0;
  line-height: 1.8;
  color: rgba(15, 47, 79, 0.75);
}

.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

.contact-card,
.map-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 47, 79, 0.1);
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fbff 0%, #ffffff 55%);
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(42, 127, 193, 0.12);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-card-header img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.contact-card-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--harbor);
}

.contact-card-header p {
  margin: 0.2rem 0 0;
  color: rgba(15, 47, 79, 0.7);
  font-size: 0.95rem;
}

.contact-line {
  margin: 0.5rem 0;
  font-weight: 400;
  color: var(--harbor);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-details {
  margin: 0;
  font-style: normal;
}

.contact-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--harbor);
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.map-card {
  padding: 0;
  overflow: hidden;
  min-height: 320px;
}

.map-card iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 320px;
  filter: grayscale(1) contrast(1.05);
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: rgba(15, 47, 79, 0.7);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1.5rem;
    left: 1.5rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 47, 79, 0.12);
    border: 1px solid rgba(15, 47, 79, 0.12);
  }

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

  .nav-links .btn {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
    color: inherit;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-block,
  .about-block.reverse {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .about-content {
    max-width: 100%;
  }

  .about-media img {
    max-width: 270px;
  }
}

@media (max-width: 600px) {
  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .about-stack {
    gap: 0.6rem;
  }
}
