:root {
  --blue: #6f9fad;
  --blue-deep: #315c68;
  --teal: #6f9fad;
  --teal-dark: #4f8594;
  --white: #ffffff;
  --soft: #f6fafb;
  --soft-blue: #e6f0f3;
  --text: #24363b;
  --muted: #64777d;
  --line: #d9e7eb;
  --shadow: 0 22px 58px rgba(49, 92, 104, 0.13);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Montserrat, Avenir Next, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(217, 231, 235, 0.84);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(49, 92, 104, 0.08);
}

.nav {
  width: var(--container);
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 14px 28px rgba(111, 159, 173, 0.24);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.brand strong {
  display: block;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.15;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  line-height: 1.2;
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu > a:not(.btn) {
  position: relative;
}

.nav-menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  transition: transform 0.2s ease;
}

.nav-menu > a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(111, 159, 173, 0.28);
}

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

.btn-secondary {
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(111, 159, 173, 0.34);
  box-shadow: 0 14px 28px rgba(49, 92, 104, 0.08);
}

.btn-light {
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 16px 38px rgba(7, 45, 71, 0.2);
}

.btn-small {
  min-height: 44px;
  padding-inline: 17px;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6f8 54%, #ffffff 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 77% 18%, rgba(111, 159, 173, 0.18), transparent 31%),
    linear-gradient(90deg, rgba(111, 159, 173, 0.1), transparent 52%);
  pointer-events: none;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(111, 159, 173, 0.2);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 620px;
  height: 620px;
  right: -160px;
  top: 90px;
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -120px;
  bottom: 80px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 770px;
  margin-bottom: 22px;
  color: var(--blue-deep);
  font-size: clamp(2.55rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 850;
}

h2 {
  color: var(--blue-deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 18px;
  font-weight: 820;
}

h3 {
  color: var(--blue-deep);
  font-size: 1.24rem;
  line-height: 1.2;
  margin-bottom: 10px;
  font-weight: 820;
}

.hero-copy > p,
.section-heading p,
.split-heading p,
.about-copy p,
.final-cta-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-copy > p {
  max-width: 630px;
  margin-bottom: 30px;
}

.hero-logo {
  width: 148px;
  height: 148px;
  margin-bottom: 22px;
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(49, 92, 104, 0.18);
  object-fit: cover;
}

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

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 690px;
}

.trust-badges span {
  padding: 10px 14px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(111, 159, 173, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border: 10px solid var(--white);
  border-radius: 50% 50% 8px 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  left: -28px;
  bottom: 30px;
  max-width: 290px;
  padding: 20px;
  border: 1px solid rgba(111, 159, 173, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(11, 60, 93, 0.18);
  backdrop-filter: blur(12px);
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  color: var(--blue);
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.pain-section,
.results {
  background:
    linear-gradient(180deg, rgba(246, 250, 251, 0.98), rgba(255, 255, 255, 0.98)),
    var(--soft);
}

.feature-grid,
.service-grid,
.testimonial-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.service-card,
.testimonial-card {
  border: 1px solid rgba(219, 230, 238, 0.88);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(49, 92, 104, 0.07);
}

.feature-card {
  padding: 30px;
  border-radius: var(--radius);
}

.feature-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  border: 1px solid rgba(111, 159, 173, 0.34);
  border-radius: 50%;
  background: var(--blue);
}

.feature-card p,
.service-card p,
.testimonial-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 64px;
}

.image-stack {
  position: relative;
  min-height: 580px;
}

.main-image {
  width: 86%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.accent-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 250px;
  object-fit: cover;
  border: 8px solid var(--white);
  border-radius: 50% 50% 8px 8px;
  box-shadow: 0 22px 44px rgba(49, 92, 104, 0.16);
}

.about-copy {
  max-width: 560px;
}

.text-link,
.service-card a {
  display: inline-flex;
  align-items: center;
  color: var(--teal-dark);
  font-weight: 850;
  margin-top: 10px;
}

.text-link::after,
.service-card a::after {
  content: "";
  width: 28px;
  height: 1px;
  margin-left: 8px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.text-link:hover::after,
.service-card a:hover::after {
  transform: translateX(4px);
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  align-items: end;
  gap: 42px;
  margin-bottom: 42px;
}

.split-heading p {
  margin-bottom: 8px;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  overflow: hidden;
  border-radius: var(--radius);
}

.service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-card a {
  font-size: 0.92rem;
}

.urgent-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(49, 92, 104, 0.97), rgba(111, 159, 173, 0.9)),
    url("https://baemardent.cl/wp-content/uploads/2023/12/pic-8.png") center/cover;
}

.urgent-band .eyebrow,
.urgent-band h2,
.urgent-band p {
  color: var(--white);
}

.urgent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.urgent-content p {
  margin-bottom: 0;
  font-size: 1.08rem;
  opacity: 0.9;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.before-after figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.before-after img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.before-after span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 8px 13px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.testimonials {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafb 100%);
}

.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  padding: 28px;
  border-radius: var(--radius);
}

.testimonial-card img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
}

.stars {
  color: #e6a700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.testimonial-card p {
  margin-bottom: 20px;
}

.testimonial-card strong {
  color: var(--blue);
}

.final-cta {
  background: var(--white);
}

.final-cta-card {
  padding: clamp(36px, 7vw, 72px);
  text-align: center;
  border: 1px solid rgba(111, 159, 173, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230, 240, 243, 0.95), rgba(255, 255, 255, 0.96)),
    url("https://baemardent.cl/wp-content/uploads/2023/12/pic-1.jpg") center/cover;
  box-shadow: var(--shadow);
}

.final-cta-card p {
  max-width: 560px;
  margin-inline: auto;
}

.final-cta-card .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

.footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #315c68;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.9fr;
  gap: 36px;
}

.footer .brand strong,
.footer h2 {
  color: var(--white);
}

.footer .brand small {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.66);
}

.footer .brand-mark {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.footer h2 {
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.76);
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  color: var(--white);
  font-weight: 900;
  border-radius: 999px;
  background: #3aa874;
  box-shadow: 0 16px 34px rgba(58, 168, 116, 0.32);
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .section {
    padding: 76px 0;
  }

  .nav-toggle {
    display: block;
  }

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

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

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

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

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

  .nav-menu a {
    padding: 12px;
  }

  .nav-menu .btn {
    margin-top: 6px;
  }

  .hero-grid,
  .about-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: 420px;
  }

  .hero-card {
    left: 18px;
    bottom: 18px;
  }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

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

  .image-stack {
    min-height: 520px;
  }

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

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

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  .brand strong {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand small {
    display: none;
  }

  .nav-menu {
    top: 68px;
    left: 14px;
    right: 14px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .hero-logo {
    width: 118px;
    height: 118px;
    margin-bottom: 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.15rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .hero-copy > p,
  .section-heading p,
  .split-heading p,
  .about-copy p,
  .final-cta-card p {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 54px;
  }

  .trust-badges {
    gap: 8px;
  }

  .trust-badges span {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .hero-visual img {
    height: 330px;
    border-radius: 50% 50% 8px 8px;
  }

  .hero-card {
    max-width: calc(100% - 36px);
    padding: 16px;
    border-radius: 8px;
  }

  .feature-card,
  .testimonial-card {
    padding: 24px;
  }

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

  .service-card img {
    height: 210px;
  }

  .image-stack {
    min-height: 430px;
  }

  .main-image {
    width: 100%;
    height: 360px;
  }

  .accent-image {
    width: 58%;
    height: 165px;
    border-width: 6px;
  }

  .before-after {
    padding: 12px;
    border-radius: 8px;
  }

  .before-after img {
    height: 280px;
  }

  .final-cta-card {
    border-radius: 8px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 50px;
    padding: 0 16px;
    font-size: 0.9rem;
  }
}
