/* Contacto — hero navy + acentos azul / dorado de marca */

.ct-page {
  --ct-navy: #1a264c;
  --ct-navy-2: #0f1b38;
  --ct-blue: #1e4f7a;
  --ct-cyan: #39aae6;
  --ct-gold: #eab818;
  --ct-gold-deep: #d4a40f;
  --ct-muted: #64748b;
  --ct-line: #e2e8f0;
  --ct-soft: #f4f8fc;
  --ct-ink: #0f172a;
  color: var(--ct-ink);
  background: #fff;
}

.ct-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.ct-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-gold);
}

.ct-hero {
  position: relative;
  overflow: hidden;
  padding: 3.2rem 0 3.6rem;
  color: #fff;
  background: linear-gradient(125deg, #0f1b38 0%, #1a264c 42%, #1e4f7a 78%, #2a9fd6 100%);
  border-bottom: 0;
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 88% 35%, rgba(57, 170, 230, 0.32), transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 90%, rgba(234, 184, 24, 0.12), transparent 55%);
  pointer-events: none;
}

.ct-hero__inner {
  position: relative;
  max-width: 36rem;
}

.ct-hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.ct-hero__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.92);
}

/* Canales */
.ct-channels {
  position: relative;
  z-index: 1;
  margin-top: -1.35rem;
  padding: 0 0 0.25rem;
  background: transparent;
}

.ct-channels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.ct-channel {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.05rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid #d7e6f2;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(15, 27, 56, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ct-channel:hover {
  border-color: #9ec9e8;
  background: #f7fbfe;
  box-shadow: 0 8px 22px rgba(30, 79, 122, 0.08);
  color: inherit;
}

.ct-channel__ico {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f4fb;
  color: var(--ct-blue);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.ct-channel__ico--wa {
  background: #eef8e8;
  color: #3d7a45;
}

.ct-channel__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7aa3c4;
}

.ct-channel__value {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ct-navy);
  word-break: break-word;
}

/* Main */
.ct-main {
  padding: 1.5rem 0 3.25rem;
  background: #fff;
}

.ct-main__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 1.25rem;
  align-items: start;
}

.ct-form-card {
  border: 1px solid #d7e6f2;
  border-radius: 1.15rem;
  padding: 1.4rem 1.3rem 1.25rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 27, 56, 0.04);
  border-top: 3px solid var(--ct-gold);
}

.ct-form-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ct-navy);
}

.ct-form-card__lead {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  color: var(--ct-muted);
}

.ct-form {
  display: grid;
  gap: 0.85rem;
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.ct-field { min-width: 0; }

.ct-optional {
  color: #94a3b8;
  font-weight: 500;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.3rem;
}

.form-input {
  width: 100%;
  border: 1px solid #d7e6f2;
  border-radius: 0.55rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 15px;
  color: #1e293b;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder { color: #94a3b8; }

.form-input:focus {
  border-color: var(--ct-cyan);
  box-shadow: 0 0 0 3px rgba(57, 170, 230, 0.18);
}

.form-input.error {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

.ct-textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-error-msg {
  font-size: 0.75rem;
  color: #b91c1c;
  margin-top: 0.25rem;
  display: none;
}

.form-error-msg.show { display: block; }

.ct-form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.2rem;
}

.ct-form__secure {
  margin: 0;
  font-size: 0.75rem;
  color: #94a3b8;
}

.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.ct-btn--gold {
  background: var(--ct-gold);
  color: var(--ct-navy-2);
  box-shadow: 0 10px 24px rgba(234, 184, 24, 0.28);
}

.ct-btn--gold:hover {
  filter: brightness(0.97);
  color: var(--ct-navy-2);
  transform: translateY(-1px);
}

.ct-btn--gold:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Compat: si queda la clase antigua */
.ct-btn--navy {
  background: var(--ct-gold);
  color: var(--ct-navy-2);
  box-shadow: 0 10px 24px rgba(234, 184, 24, 0.28);
}

.ct-btn--navy:hover {
  filter: brightness(0.97);
  color: var(--ct-navy-2);
}

.ct-btn--navy:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Info */
.ct-info {
  display: grid;
  gap: 0.75rem;
}

.ct-info__block {
  border: 1px solid #d7e6f2;
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  background: var(--ct-soft);
  border-left: 3px solid var(--ct-cyan);
}

.ct-info__block h2 {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ct-blue);
}

.ct-info__block p {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #64748b;
}

.ct-info__block p:last-child { margin-bottom: 0; }

.ct-info__block strong {
  color: var(--ct-navy);
  font-weight: 650;
}

.ct-info__block em {
  font-style: normal;
  color: #94a3b8;
}

.ct-info__address {
  display: block !important;
  line-height: 1.5;
  color: var(--ct-navy) !important;
  font-weight: 600;
}

.ct-info__address i {
  color: var(--ct-gold-deep);
  margin-right: 0.35rem;
}

.ct-info__note {
  display: block !important;
  margin-top: 0.5rem !important;
  font-size: 0.78rem !important;
  color: #7aa3c4 !important;
  line-height: 1.45;
}

.ct-info__map {
  position: relative;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid #d7e6f2;
  background:
    linear-gradient(180deg, #e8f4fb 0%, #d7e8f5 100%);
  min-height: 280px;
  box-shadow: 0 12px 28px rgba(15, 27, 56, 0.06);
}

.ct-info__map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  background: transparent;
}

.ct-map__link {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #1a264c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 27, 56, 0.22);
}

.ct-map__link:hover {
  color: #fff;
  background: #1e4f7a;
}

/* Toast */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  transform: translateX(120%);
  transition: transform 0.35s ease;
  max-width: 380px;
}
.toast.show { transform: translateX(0); }
.toast-success { background: var(--ct-navy); color: #f1f5f9; }
.toast-error { background: #7f1d1d; color: #fecaca; }

@keyframes spin-small { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin-small 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@media (max-width: 900px) {
  .ct-channels__grid,
  .ct-main__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ct-wrap { width: min(100%, calc(100% - 1.25rem)); }
  .ct-form__row { grid-template-columns: 1fr; }
  .ct-form__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .ct-form__foot .ct-btn { width: 100%; }
}

/* Banner CTA del footer alineado a marca en esta página */
.footer-top-cta-banner {
  background: linear-gradient(120deg, #1a264c 0%, #1e4f7a 100%) !important;
  border: 0;
  box-shadow: none !important;
}

.footer-top-cta-banner .footer-top-left strong,
.footer-top-cta-banner .footer-top-left p {
  color: #fff !important;
}

.footer-top-cta-banner .btn-brand-accent {
  background: var(--ct-gold) !important;
  color: var(--ct-navy-2) !important;
  border-color: var(--ct-gold) !important;
  box-shadow: 0 8px 20px rgba(234, 184, 24, 0.25) !important;
}
