:root {
  --primary: #1457b8;
  --primary-dark: #0d3f87;
  --accent: #ffde59;
  --text: #1e2430;
  --muted: #5f6b7a;
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --radius: 14px;
  --shadow: 0 8px 22px rgba(17, 44, 89, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e7edf8;
  backdrop-filter: blur(6px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  text-decoration: none;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--primary);
}

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #f7fbff 0%, #edf4ff 55%, #dbe9ff 100%);
  padding: 5.5rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 20% 20%, rgba(20, 87, 184, 0.25), transparent 38%),
              radial-gradient(circle at 80% 40%, rgba(255, 222, 89, 0.2), transparent 32%);
  animation: floatGlow 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes floatGlow {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.04); }
}

.hero-content {
  max-width: 760px;
}

.kicker {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin-bottom: 1rem;
}

h1 span {
  color: var(--primary);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.section {
  padding: 4.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.section-image {
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .45s ease, box-shadow .45s ease, filter .45s ease;
}

.section-image:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 36px rgba(17, 44, 89, 0.24);
  filter: brightness(1.05) saturate(1.05);
}

.section.alt {
  background: var(--bg-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  display: inline-block;
}

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.pulse {
  animation: pulseBtn 1.9s infinite;
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(20, 87, 184, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(20, 87, 184, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 87, 184, 0); }
}

.btn.secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 18px 34px rgba(17, 44, 89, 0.2);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0.8rem;
  transition: transform .45s ease, filter .45s ease;
}

.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.card h3 {
  margin-bottom: 0.7rem;
  color: var(--primary-dark);
}

.card ul {
  margin: 0;
  padding-left: 1rem;
}

.publico-simulador-layout {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.publico-col,
.simulador-col {
  min-width: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.simulador-col h3 {
  margin-bottom: 0.7rem;
  color: var(--primary-dark);
}

.simulador-frame {
  width: 100%;
  height: 520px;
  border: 1px solid #d7e3f8;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #fff;
}

.audience-item {
  background: #fff;
  border-left: 5px solid var(--primary);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}

.audience-item:hover {
  transform: translateX(6px);
}

.contact-lead {
  color: var(--muted);
  margin-top: -0.4rem;
}

.contact-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-icons li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  transition: transform .2s ease, color .2s ease;
}

.contact-icons li a:hover {
  transform: translateX(4px);
}

.contact-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  background: #0b2c61;
  color: #fff;
  padding: 1.1rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: #fff;
  color: #0b2c61;
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-logo {
  max-width: 260px;
  width: min(52vw, 260px);
  height: auto;
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: floatWhatsapp 2.6s ease-in-out infinite;
}

@keyframes floatWhatsapp {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cards,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .publico-simulador-layout {
    grid-template-columns: 1fr;
  }

  .simulador-frame {
    height: 560px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .section-image {
    height: clamp(280px, 52vw, 440px);
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    flex-direction: column;
    padding: 1rem 4%;
    border-bottom: 1px solid #e7edf8;
  }

  .nav.open {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .logo-img {
    height: 44px;
  }

  .footer-logo {
    width: min(72vw, 240px);
  }

  .section-image {
    height: clamp(220px, 58vw, 340px);
    border-radius: 12px;
  }
}
