:root {
  --yellow: #f6be1b;
  --blue: #2f53a4;
  --blue-dark: #29385f;
  --dark: #1a1f2b;
  --light: #ffffff;
  --soft: #eceff3;
  --text: #303646;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: #fff;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 84svh;
  color: var(--light);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(10, 12, 19, 0.25), rgba(10, 12, 19, 0.25)),
    url('img/FondoAmarillo.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 621px) {
  .hero-bg {
    background-attachment: fixed;
  }
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e7e8ec;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.58rem 0;
}

.brand-logo {
  width: clamp(152px, 19vw, 250px);
  height: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: #151821;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--yellow);
}


.hero-seal {
  position: absolute;
  top: 0.35rem;
  right: 0.2rem;
  width: clamp(88px, 10vw, 138px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  max-width: 760px;
  min-height: calc(84svh - 84px);
  padding: 2rem 0 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-logo-overlay {
  width: min(360px, 72vw);
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

h1 {
  margin: 0.55rem 0 0.8rem;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.15;
}

.hero-sub {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
}

.hero-note {
  margin: 1rem 0 1.8rem;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1.4rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #111;
}

.btn-primary {
  background: var(--yellow);
  color: #111;
}

.btn-primary:hover {
  background: #111;
  color: #fff;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.section {
  padding: 4rem 0;
}

.why,
.trust {
  background: linear-gradient(180deg, #fff 0%, #f5f7fa 100%);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-media {
  min-height: 380px;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
}

.trust-media {
  background-image: url('img/confianzaImg.jpg');
}

.split-text {
  background: #fff;
  border-left: 8px solid var(--yellow);
  padding: 1.35rem 1.2rem;
  box-shadow: 0 10px 24px rgba(19, 28, 45, 0.08);
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #111620;
}

.lead {
  font-weight: 700;
}

.services {
  background: var(--soft);
}

.section-title-center {
  text-align: center;
  text-transform: uppercase;
}

.underline {
  width: min(360px, 58%);
  height: 8px;
  margin: 0.7rem auto 2rem;
  background: var(--yellow);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 420px;
  display: flex;
  background-image: linear-gradient(rgba(9, 15, 30, 0.25), rgba(9, 15, 30, 0.25)), var(--bg);
  background-size: cover;
  background-position: center;
}

.overlay {
  margin-top: auto;
  color: #fff;
  padding: 1rem;
}

.service-copy {
  border-left: 5px solid var(--yellow);
  padding-left: 0.8rem;
}

.overlay h3 {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

.overlay p {
  margin: 0;
  line-height: 1.4;
}

.phrase-band {
  background-image: linear-gradient(rgba(35, 47, 75, 0.6), rgba(35, 47, 75, 0.6)),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.phrase-band p {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
}

.contact-footer {
  background: #3d3f44;
  color: #fff;
}

.contact-panel {
  padding: 2rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.contact-block {
  border-left: 6px solid var(--yellow);
  padding-left: 0.85rem;
  margin-bottom: 0;
}

.contact-block h3 {
  margin: 0 0 0.35rem;
  color: #fff;
}

.contact-block p {
  margin: 0.25rem 0;
}

.contact-block a,
.copy {
  color: #fff;
}


.copy {
  opacity: 0.85;
}

.whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: transparent;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.whatsapp::before {
  content: 'W';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero-content {
    padding-top: 5rem;
  }

}

@media (max-width: 620px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-seal {
    top: 0.3rem;
    right: 0.3rem;
    width: clamp(70px, 20vw, 96px);
  }

  .hero-content {
    min-height: calc(84svh - 120px);
    padding-top: 1.5rem;
  }

  .hero-logo-overlay {
    width: min(280px, 78vw);
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu {
    gap: 0.9rem;
  }

  .menu a {
    font-size: 0.84rem;
  }

  .service-card {
    min-height: 360px;
  }
}