:root {
  --color-primary: #0b6e7b;
  --color-primary-dark: #054e59;
  --color-accent: #38bfd1;
  --color-text: #0f2f36;
  --color-muted: #5a6f75;
  --color-background: #f3f7f8;
  --shadow-soft: 0 12px 32px rgba(5, 78, 89, 0.12);
  --shadow-strong: 0 22px 46px rgba(5, 78, 89, 0.14);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --transition-base: 0.35s ease;
  --transition-fast: 0.18s ease;
  --max-width: 1100px;
}

/* RESET BÁSICO */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
  background-color: #fff;
  line-height: 1.6;
}

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

a:hover,
button:hover {
  opacity: 0.9;
}

/* LAYOUT GENERAL */

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

/* HEADER / NAVBAR */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid rgba(11, 110, 123, 0.12);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* NAV DESKTOP */

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

.nav a {
  position: relative;
  padding-bottom: 0.1rem;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}

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

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

.nav__cta {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-primary);
}

/* MENÚ MÓVIL */

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
}

.mobile-menu span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* HERO */

.hero {
  background: linear-gradient(
    140deg,
    rgba(11, 110, 123, 0.08),
    rgba(56, 191, 209, 0.04)
  );
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.hero__content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: space-between;
}

.hero__content--single {
  justify-content: center;
}

.hero__copy {
  flex: 1 1 320px;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.hero .lead {
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* CTA GROUP */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* BOTONES */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 110, 123, 0.18);
}

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

.btn--outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: #fff;
}

.btn--ghost {
  border: 1px solid rgba(11, 110, 123, 0.2);
  color: var(--color-primary-dark);
  background: transparent;
}

/* TARJETA HERO */

.hero__card {
  flex: 0 1 320px;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 110, 123, 0.12);
}

.hero__card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero__card ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--color-muted);
}

/* SECCIONES GENERALES */

section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

/* BLOQUES DE CONTENIDO */

.content-block {
  background: #fff;
}

.content-block__inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.content-block h2,
.content-block h3 {
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.content-block--list .content-block__inner {
  gap: 1.25rem;
}

.content-block ul {
  padding-left: 1.2rem;
}

.content-block li {
  margin-bottom: 0.35rem;
}

/* CTA */

.cta {
  background: linear-gradient(
    140deg,
    rgba(11, 110, 123, 0.12),
    rgba(56, 191, 209, 0.03)
  );
}

.cta__content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.cta__content > div:first-child {
  flex: 1 1 260px;
}

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

/* FOOTER */

.footer {
  background: #043844;
  color: #f0f6f7;
  padding: 2rem 0;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.footer__copy {
  margin-top: 0.5rem;
  color: rgba(240, 246, 247, 0.7);
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .hero__content {
    justify-content: center;
  }

  .hero__card {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 72px 1rem auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 20px 60px rgba(17, 49, 73, 0.12);
    border: 1px solid rgba(27, 75, 107, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__cta {
    width: 100%;
    text-align: center;
  }

  .mobile-menu {
    display: flex;
  }

  .mobile-menu.mobile-menu--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu.mobile-menu--open span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu.mobile-menu--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__content {
    flex-direction: column;
  }

  .cta__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .cta-group,
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__card {
    padding: 1.5rem;
  }

  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
}
