/* ==========================================================================
   HEALTHY WORKUP - REDISEÑO PREMIUM DE SECCIÓN DE CONTACTO
   Paleta: Navy (#011E41), Cyan (#51BED5), Teal (#0B7C93), Azul (#175CDD)
   ========================================================================== */

:root {
  --hw-c-navy: #011E41;
  --hw-c-navy-dark: #001229;
  --hw-c-cyan: #51BED5;
  --hw-c-cyan-light: #e5f6fa;
  --hw-c-cyan-glow: rgba(81, 190, 213, 0.35);
  --hw-c-teal: #0b7c93;
  --hw-c-blue: #175cdd;
  --hw-c-text: #2c384e;
  --hw-c-muted: #64748b;
  --hw-c-surface: #ffffff;
  --hw-c-border: rgba(81, 190, 213, 0.28);
  --hw-c-card-shadow: 0 16px 40px rgba(1, 30, 65, 0.07);
  --hw-c-card-hover: 0 24px 50px rgba(81, 190, 213, 0.20);
}

/* ── Contenedor General de Contacto ────────────────────────── */
.contact.section {
  position: relative;
  background: linear-gradient(145deg, #f2f8fc 0%, #edf6fa 45%, #f6fbfe 100%);
  padding: 85px 0 0;
  overflow: hidden;
}

/* Luces y esferas decorativas de fondo */
.contact.section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(81, 190, 213, 0.16) 0%, rgba(81, 190, 213, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.contact.section::after {
  content: "";
  position: absolute;
  bottom: 120px;
  right: -100px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(1, 30, 65, 0.08) 0%, rgba(11, 124, 147, 0.04) 50%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.contact.section .container {
  position: relative;
  z-index: 2;
}

/* ── Encabezado de la Sección (Opcional / Badge) ───────────── */
.hw-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(81, 190, 213, 0.14);
  border: 1px solid rgba(81, 190, 213, 0.35);
  color: var(--hw-c-teal);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hw-contact-pill i {
  color: var(--hw-c-cyan);
  font-size: 0.95rem;
}

/* ── Columna Izquierda: Tarjetas de Información ───────────── */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.contact-info-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hw-c-border);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: var(--hw-c-card-shadow);
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.contact-info-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--hw-c-cyan), var(--hw-c-teal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  background: #ffffff;
  border-color: var(--hw-c-cyan);
  box-shadow: var(--hw-c-card-hover);
}

.contact-info-item:hover::before {
  opacity: 1;
}

/* Íconos de las tarjetas de información */
.contact-info-item .info-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--hw-c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 8px 20px rgba(11, 124, 147, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-info-item:hover .info-icon {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 12px 24px rgba(81, 190, 213, 0.42);
}

/* Textos dentro de las tarjetas */
.contact-info-item .info-content {
  flex: 1;
  min-width: 0;
}

.contact-info-item .info-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--hw-c-navy);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.contact-info-item .info-content p {
  color: var(--hw-c-muted);
  font-size: 0.94rem;
  margin: 0;
  line-height: 1.6;
}

.contact-info-item .info-content a.hw-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hw-c-navy);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 3px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.contact-info-item .info-content a.hw-contact-link:hover {
  color: var(--hw-c-teal);
  transform: translateX(3px);
}

.contact-info-item .info-content a.hw-contact-link i {
  color: var(--hw-c-cyan);
  font-size: 0.9rem;
}

/* Pulsación de estado en teléfonos */
.hw-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0b7c93;
  background: rgba(81, 190, 213, 0.12);
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}

.hw-status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: hwDotPulse 2s infinite;
}

@keyframes hwDotPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Redes Sociales */
.contact-info-item .social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.contact-info-item .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f7fb;
  color: var(--hw-c-navy);
  font-size: 1.15rem;
  border: 1px solid rgba(81, 190, 213, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.contact-info-item .social-links a:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 18px rgba(81, 190, 213, 0.35);
}

.contact-info-item .social-links a.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: #1877f2;
}

.contact-info-item .social-links a.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-color: #dc2743;
}

.contact-info-item .social-links a.twitter:hover {
  background: #011E41;
  color: #51BED5;
  border-color: #011E41;
}

/* Tarjeta Reaseguro / Confianza */
.hw-trust-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(81, 190, 213, 0.12) 0%, rgba(1, 30, 65, 0.04) 100%);
  border: 1px dashed rgba(81, 190, 213, 0.4);
  margin-top: 6px;
}

.hw-trust-card i {
  font-size: 1.6rem;
  color: var(--hw-c-teal);
  flex-shrink: 0;
}

.hw-trust-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--hw-c-navy);
  line-height: 1.45;
  font-weight: 500;
}

/* ── Columna Derecha: Tarjeta del Formulario ───────────────── */
.contact-form-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--hw-c-border);
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: var(--hw-c-card-shadow);
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.contact-form-card:hover {
  border-color: var(--hw-c-cyan);
  box-shadow: 0 24px 60px rgba(1, 30, 65, 0.12);
}

/* Barra superior gradiente de marca */
.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--hw-c-cyan) 0%, var(--hw-c-teal) 50%, var(--hw-c-navy) 100%);
}

.contact-form-card .form-header {
  margin-bottom: 28px;
}

.contact-form-card .form-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--hw-c-navy);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.contact-form-card .form-header p {
  color: var(--hw-c-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

/* Grupos de Input con Ícono Integrado */
.hw-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.hw-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
  pointer-events: none;
  transition: color 0.25s ease, transform 0.25s ease;
  z-index: 3;
}

.hw-input-group.textarea-group .hw-input-icon {
  top: 20px;
  transform: none;
}

/* Campos de Formulario estilizados */
.contact-form-card .form-control.contactus,
.contact-form-card .form-control.contactusmess {
  width: 100%;
  background: #f8fbfe;
  border: 1.5px solid #dce8f0;
  border-radius: 14px;
  padding: 14px 18px 14px 50px;
  font-size: 0.96rem;
  color: var(--hw-c-navy);
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: none;
}

.contact-form-card .form-control.contactus {
  height: 54px;
}

.contact-form-card .form-control.contactusmess {
  padding-top: 16px;
  min-height: 140px;
  resize: vertical;
}

.contact-form-card .form-control.contactus::placeholder,
.contact-form-card .form-control.contactusmess::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Estado Focus */
.hw-input-group:focus-within .hw-input-icon {
  color: var(--hw-c-teal);
  transform: translateY(-50%) scale(1.1);
}

.hw-input-group.textarea-group:focus-within .hw-input-icon {
  transform: scale(1.1);
}

.contact-form-card .form-control.contactus:focus,
.contact-form-card .form-control.contactusmess:focus {
  background: #ffffff;
  border-color: var(--hw-c-cyan);
  box-shadow: 0 0 0 4px var(--hw-c-cyan-glow);
  outline: none;
}

/* ── Botón de Envío Premium ───────────────────────────────── */
.btn-submit.send_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--hw-c-navy) 0%, var(--hw-c-teal) 65%, var(--hw-c-cyan) 100%);
  background-size: 200% auto;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 24px rgba(1, 30, 65, 0.20);
  transition: all 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}

.btn-submit.send_btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-submit.send_btn:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(81, 190, 213, 0.42);
  color: #ffffff;
}

.btn-submit.send_btn:hover::before {
  left: 100%;
}

.btn-submit.send_btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(1, 30, 65, 0.25);
}

.btn-submit.send_btn i {
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.btn-submit.send_btn:hover i {
  transform: translateX(4px);
}

/* ── Banner Inferior con Imagen de Fondo ──────────────────── */
.map-container {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--hw-c-cyan), var(--hw-c-teal), var(--hw-c-navy));
  z-index: 3;
}

.map-container .map-overlay {
  background: linear-gradient(135deg, rgba(1, 30, 65, 0.88) 0%, rgba(11, 124, 147, 0.76) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 60px 24px;
}

.map-container .map-overlay h3 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.map-container .map-overlay p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
  margin: 0 auto;
}

.hw-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 50px;
  background: rgba(81, 190, 213, 0.25);
  border: 1px solid rgba(81, 190, 213, 0.5);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hw-map-badge i {
  color: var(--hw-c-cyan);
}

/* ── Adaptabilidad Responsive ─────────────────────────────── */
@media (min-width: 992px) and (max-width: 1199px) {
  .contact-info-item {
    padding: 18px 20px;
    gap: 14px;
  }
  .contact-info-item .info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 1.2rem;
  }
  .contact-info-item .info-content a.hw-contact-link {
    font-size: 0.88rem;
  }
}

@media (min-width: 1400px) {
  .contact.section .container {
    max-width: 1320px;
  }
}

@media (max-width: 991px) {
  .contact.section {
    padding: 60px 0 0;
  }
  .contact-form-card {
    padding: 34px 26px;
  }
  .map-container {
    margin-top: 60px;
  }
}

@media (max-width: 576px) {
  .contact-form-card {
    padding: 26px 18px;
    border-radius: 20px;
  }
  .contact-info-item {
    padding: 18px;
    border-radius: 16px;
  }
  .contact-info-item .info-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 1.15rem;
  }
  .map-container .map-overlay h3 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   TOPBAR & HERO BANNER (PAGE TITLE) MEJORADO - HEALTHY WORKUP
   ========================================================================== */

/* ── Topbar Mejorado ───────────────────────────────────────── */
.contact-page .header .topbar {
  background: linear-gradient(90deg, #011E41 0%, #032752 45%, #0b7c93 100%) !important;
  border-bottom: 1px solid rgba(81, 190, 213, 0.25);
  height: 44px;
}

.contact-page .header .topbar .contact-info i {
  color: #51bed5 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.contact-page .header .topbar .contact-info a,
.contact-page .header .topbar .contact-info span {
  color: #f1f8fc !important;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.2px;
  transition: color 0.25s ease;
}

.contact-page .header .topbar .contact-info a:hover {
  color: #51bed5 !important;
  text-decoration: none;
}

.contact-page .header .topbar .social-links a {
  color: #e2f2f8;
  background: rgba(255, 255, 255, 0.10);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  font-size: 12.5px;
  border: 1px solid rgba(81, 190, 213, 0.25);
  transition: all 0.25s ease;
}

.contact-page .header .topbar .social-links a:hover {
  background: #51bed5;
  color: #011E41;
  transform: translateY(-2px);
  border-color: #51bed5;
  box-shadow: 0 4px 10px rgba(81, 190, 213, 0.4);
}

/* ── Logo y Navbar Mejorado en Contacto ────────────────────── */
.contact-page .header .logo img {
  max-height: 48px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 6px rgba(1, 30, 65, 0.12));
}

.contact-page .header .logo .sitename {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #011E41;
}

.contact-page .header .logo .sitename span {
  color: #0b7c93;
}

/* ── Hero Banner (Page Title) Rediseñado ───────────────────── */
.contact-page .page-title.hw-contact-hero {
  position: relative;
  background: linear-gradient(135deg, #011E41 0%, #03264c 45%, #07465c 80%, #0b7c93 100%) !important;
  padding-top: 120px;
  padding-bottom: 0;
  overflow: hidden;
  color: #ffffff;
}

/* Luces y esferas de neón cyan decorativas */
.contact-page .page-title.hw-contact-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(81, 190, 213, 0.26) 0%, rgba(81, 190, 213, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(25px);
  z-index: 1;
}

.contact-page .page-title.hw-contact-hero::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: 10%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(11, 124, 147, 0.32) 0%, rgba(1, 30, 65, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(30px);
  z-index: 1;
}

/* Malla geométrica sutil en el fondo */
.hw-hero-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(81, 190, 213, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.contact-page .page-title.hw-contact-hero .heading {
  padding: 68px 0 48px;
  position: relative;
  z-index: 2;
}

/* Badge de Hero */
.hw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 22px;
  border-radius: 50px;
  background: rgba(81, 190, 213, 0.16);
  border: 1px solid rgba(81, 190, 213, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #7ce2f5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(1, 30, 65, 0.3);
}

.hw-hero-badge i {
  color: #51BED5;
  font-size: 0.95rem;
}

/* Título de Hero */
.contact-page .page-title.hw-contact-hero .heading-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hw-gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #92e9fa 60%, #51BED5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 35px rgba(81, 190, 213, 0.35);
}

/* Texto introductorio */
.hw-hero-lead {
  font-size: 1.12rem;
  color: rgba(235, 246, 255, 0.92);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 32px;
  font-weight: 400;
}

/* Chips de beneficios/confianza */
.hw-hero-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.hw-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f1f8fd;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hw-hero-chip:hover {
  background: rgba(81, 190, 213, 0.22);
  border-color: rgba(81, 190, 213, 0.55);
  transform: translateY(-2px);
  color: #ffffff;
}

.hw-hero-chip i {
  color: #51BED5;
  font-size: 1rem;
}

/* Breadcrumbs Modernos */
.contact-page .page-title.hw-contact-hero nav.breadcrumbs {
  background: rgba(1, 20, 44, 0.6) !important;
  border-top: 1px solid rgba(81, 190, 213, 0.22);
  padding: 14px 0;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hw-breadcrumb-list {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}

.hw-breadcrumb-list li a {
  color: rgba(235, 245, 255, 0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  transition: color 0.25s ease;
}

.hw-breadcrumb-list li a:hover {
  color: #51BED5;
}

.hw-breadcrumb-list li.separator {
  color: rgba(81, 190, 213, 0.6);
  font-size: 0.78rem;
}

.hw-breadcrumb-list li.current {
  color: #51BED5;
  font-weight: 700;
}

@media (max-width: 768px) {
  .contact-page .page-title.hw-contact-hero .heading-title {
    font-size: 2.2rem;
  }
  .hw-hero-lead {
    font-size: 1rem;
  }
  .hw-hero-chips-wrap {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}

/* ==========================================================================
   MODAL DE CONTACTO - REDISEÑO PREMIUM & ACCESIBLE
   ========================================================================== */

/* Contenedor principal del modal */
.hw-contact-modal-content {
  border-radius: 26px;
  border: none;
  overflow: hidden;
  box-shadow: 0 25px 75px rgba(1, 30, 65, 0.28);
  background: #ffffff;
  transition: all 0.3s ease;
}

/* Cabecera del modal con gradiente corporativo premium */
.hw-contact-modal-header {
  background: linear-gradient(135deg, #011E41 0%, #083c5a 50%, #0b7c93 100%);
  padding: 24px 30px;
  border-bottom: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Barra decorativa superior del modal */
.hw-contact-modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #51BED5 0%, #38bdf8 50%, #0b7c93 100%);
}

/* Contenido de la cabecera */
.hw-modal-header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hw-modal-title-badge {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #51BED5;
  font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hw-modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hw-modal-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #51BED5;
  display: inline-flex;
  align-items: center;
}

/* Título del modal */
.hw-contact-modal-title {
  font-family: var(--heading-font), "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

/* Botón de cerrar ampliado, ultra visible y accesible */
.hw-contact-modal-close {
  background: #ffffff;
  color: #0b7c93;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(1, 30, 65, 0.25);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  position: relative;
  z-index: 5;
  opacity: 1 !important;
  background-image: none !important;
}

.hw-contact-modal-close i {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 800;
  transition: transform 0.25s ease, color 0.25s ease;
}

.hw-contact-modal-close:hover {
  background: #fee2e2;
  color: #e11d48;
  border-color: #fca5a5;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 22px rgba(225, 29, 72, 0.35);
}

.hw-contact-modal-close:active {
  transform: scale(0.95);
}

/* Cuerpo del modal */
.hw-contact-modal-body {
  padding: 34px 38px 38px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 40%);
}

.hw-contact-form-wrapper {
  max-width: 100%;
}

/* Banner introductorio amigable */
.hw-modal-intro-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e6f6fa 100%);
  border: 1px solid #d4edf7;
  border-left: 4px solid #0b7c93;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(11, 124, 147, 0.05);
}

.hw-modal-intro-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(11, 124, 147, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b7c93;
  font-size: 1.25rem;
}

.hw-modal-intro-text p {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.hw-modal-intro-text strong {
  color: #011E41;
}

/* Etiquetas de formulario */
.hw-field-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 7px;
  display: block;
  letter-spacing: 0.1px;
}

.hw-required-dot {
  color: #ef4444;
  font-weight: 800;
  margin-left: 2px;
}

/* Grupos de inputs estilizados */
.hw-contact-modal-body .hw-input-group {
  position: relative;
  width: 100%;
  margin-bottom: 0;
}

.hw-contact-modal-body .form-control.contactus,
.hw-contact-modal-body .form-control.contactusmess {
  background: #f8fafc;
  border: 1.5px solid #dbe7ee;
  border-radius: 12px;
  padding: 12px 16px 12px 46px;
  font-size: 0.94rem;
  color: #011E41;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hw-contact-modal-body .form-control.contactus {
  height: 50px;
}

.hw-contact-modal-body .form-control.contactusmess {
  padding-top: 14px;
  min-height: 110px;
  resize: vertical;
}

.hw-contact-modal-body .form-control.contactus::placeholder,
.hw-contact-modal-body .form-control.contactusmess::placeholder {
  color: #94a3b8;
  font-weight: 400;
  font-size: 0.9rem;
}

/* Iconos de los inputs */
.hw-contact-modal-body .hw-input-group .hw-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: #64748b;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

.hw-contact-modal-body .hw-input-group.textarea-group .hw-input-icon {
  top: 22px;
  transform: none;
}

/* Efectos al enfocar inputs */
.hw-contact-modal-body .form-control.contactus:focus,
.hw-contact-modal-body .form-control.contactusmess:focus {
  background: #ffffff;
  border-color: #0b7c93;
  box-shadow: 0 0 0 4px rgba(81, 190, 213, 0.22);
  outline: none;
}

.hw-contact-modal-body .hw-input-group:focus-within .hw-input-icon {
  color: #0b7c93;
  transform: translateY(-50%) scale(1.12);
}

.hw-contact-modal-body .hw-input-group.textarea-group:focus-within .hw-input-icon {
  transform: scale(1.12);
}

/* Contenedor de acciones del modal */
.hw-contact-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #eef3f6;
}

/* Insignia de seguridad y confianza */
.hw-modal-security-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #64748b;
  font-weight: 500;
}

.hw-modal-security-badge i {
  color: #10b981;
  font-size: 1.15rem;
}

/* Grupo de botones */
.hw-modal-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Botón Cancelar */
.hw-contact-modal-cancel {
  padding: 11px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.91rem;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
  outline: none;
}

.hw-contact-modal-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Botón Enviar Mensaje */
.hw-contact-modal-submit {
  padding: 11px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.93rem;
  border: none;
  background: linear-gradient(135deg, #0b7c93 0%, #1594ad 50%, #011E41 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(11, 124, 147, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  cursor: pointer;
  outline: none;
}

.hw-contact-modal-submit:hover {
  background: linear-gradient(135deg, #086b7f 0%, #0b7c93 50%, #001229 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 124, 147, 0.45);
}

.hw-contact-modal-submit i {
  font-size: 1.05rem;
  transition: transform 0.25s ease;
}

.hw-contact-modal-submit:hover i {
  transform: translateX(4px) scale(1.05);
}

/* Responsive del modal */
@media (max-width: 768px) {
  .hw-contact-modal-header {
    padding: 20px 22px;
  }

  .hw-contact-modal-close {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .hw-modal-title-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.25rem;
  }

  .hw-contact-modal-title {
    font-size: 1.2rem;
  }

  .hw-contact-modal-body {
    padding: 24px 20px;
  }

  .hw-contact-modal-actions {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }

  .hw-modal-security-badge {
    justify-content: center;
  }

  .hw-modal-btn-group {
    flex-direction: column-reverse;
    width: 100%;
    gap: 10px;
  }

  .hw-contact-modal-cancel,
  .hw-contact-modal-submit {
    width: 100%;
    justify-content: center;
  }
}

