:root {
  --brand-blue: #1f2f66;
  --brand-orange: #f39b12;
  --brand-light: #f3f6ff;
  --text-dark: #1a1a1a;
  --text-muted: #4b4f66;
  --logo-bg: #0c0838;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.5;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.topbar {
  background: var(--logo-bg);
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.logo {
  width: 220px;
  max-width: 100%;
  height: auto;
}

.header-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #24d366;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(36, 211, 102, 0.3);
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.gestor-feature {
  background: linear-gradient(180deg, var(--logo-bg) 0%, #16144f 100%);
  padding: 48px 0;
}

.intro-block {
  background: linear-gradient(180deg, #0f0c45 0%, #1b1c63 100%);
  padding: 34px 0;
}

.intro-block p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-align: center;
}

.gestor-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
}

.gestor-image-wrap {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
}

.gestor-image {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.gestor-text h2 {
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.gestor-text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
}

.gestor-cta {
  display: inline-block;
  margin-top: 8px;
}

.btn-primary,
.btn-secondary {
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand-orange);
  color: #13224a;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact {
  background: var(--brand-light);
  padding: 80px 0;
}

.contact h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  color: var(--brand-blue);
}

.contact-subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.contact-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 30px rgba(16, 39, 92, 0.08);
}

.contact-card h3 {
  margin-top: 0;
  color: var(--brand-blue);
}

.contact-card p {
  color: var(--text-muted);
}

.contact-card a {
  color: var(--brand-orange);
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}

.contact-form {
  display: grid;
  gap: 8px;
}

.contact-form label {
  font-weight: 600;
  color: var(--brand-blue);
  margin-top: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d2d9ee;
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  color: var(--text-dark);
  background: #fbfcff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #8ea4e8;
  box-shadow: 0 0 0 3px rgba(31, 47, 102, 0.12);
}

.contact-form button {
  margin-top: 10px;
  border: 0;
  cursor: pointer;
}

.hidden-botcheck {
  display: none;
}

.form-status {
  min-height: 24px;
  margin: 6px 0 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-status.success {
  color: #0f8a47;
}

.form-status.error {
  color: #bb1e1e;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 47, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 999;
}

.success-overlay.show {
  opacity: 1;
  visibility: visible;
}

.success-modal {
  background: #ffffff;
  color: var(--brand-blue);
  border-radius: 14px;
  padding: 22px 28px;
  box-shadow: 0 18px 35px rgba(15, 28, 68, 0.25);
  border-left: 6px solid #0f8a47;
}

.success-modal p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.map-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d2d9ee;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 270px;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  background: #0f1c44;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 22px 0;
}

.footer p {
  margin: 0;
}

@media (max-width: 840px) {
  .gestor-content {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: center;
  }

  .header-title {
    order: 3;
    width: 100%;
  }
}
