/* ============================================
   Página Contacto - Hero (foto + overlay azul + curva #F0F6FF)
   ============================================ */

.con-hero {
  position: relative;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  padding-top: calc(72px + 2rem);
  padding-bottom: clamp(4rem, 10vw, 5.5rem);
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

/* Curva inferior (SVG usuario) */
.con-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(22px, 4vw, 40px);
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' width='1440' height='26' preserveAspectRatio='none'%3E%3Cpath fill='%23F0F6FF' d='M0 5.7735C360 25.7735 1080 -14.2265 1440 5.7735V25.7735H0V5.7735Z'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
}

/* Overlay azul sobre la foto */
.con-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    105deg,
    rgba(5, 42, 89, 0.88) 0%,
    rgba(5, 42, 89, 0.72) 38%,
    rgba(13, 107, 184, 0.45) 100%
  );
  pointer-events: none;
}

.con-hero-bg {
  position: absolute;
  inset: 0;
  background: url("../imagenes/fondo-hero-contacto-nuevo.jpeg") no-repeat center right;
  background-size: cover;
  z-index: -2;
}

.con-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.con-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  margin-bottom: 1rem;
}

.con-hero-badge i {
  font-size: 1rem;
  opacity: 0.95;
}

.con-hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.con-hero-title-line {
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #6dd4ff, rgba(109, 212, 255, 0.5));
  border-radius: 3px;
  margin: 0 0 1rem 0;
  box-shadow: 0 1px 8px rgba(109, 212, 255, 0.35);
}

.con-hero-subtitle {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 28rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.con-hero-cards-row {
  margin-top: 0.25rem;
}

/* Tarjetas contacto — fila compacta tipo cristal */
.con-hero-card {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.38);
  text-align: left;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.con-hero-card-horizontal {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.con-hero-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.con-hero-card-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(109, 212, 255, 0.95), rgba(77, 163, 224, 0.65));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(13, 107, 184, 0.35);
  transition: transform 0.22s ease;
}

.con-hero-card:hover .con-hero-card-icon {
  transform: scale(1.06);
}

.con-hero-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.con-hero-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  display: block;
}

.con-hero-card-value-sm {
  font-size: 0.98rem;
}

.con-hero-card-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

/* Panel derecho — ¿Cómo agendar? */
.con-hero-steps-panel {
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.con-hero-steps-panel-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.3;
}

.con-hero-steps-panel-title i {
  font-size: 1.45rem;
  opacity: 0.95;
}

.con-hero-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.con-hero-step-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.con-hero-step-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(109, 212, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.con-hero-step-row-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #ffffff;
  display: block;
  margin-bottom: 0.2rem;
}

.con-hero-step-row-desc {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .con-hero {
    min-height: 0;
    padding-bottom: 4.5rem;
  }

  .con-hero-bg {
    background-position: center center;
  }

  .con-hero-steps-panel {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .con-hero-card-horizontal {
    padding: 1rem 1.1rem;
  }
}

/* ============================================
   Formulario Separa tu Cita + Información
   ============================================ */

.con-form-section {
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 200px);
}

.con-form-card,
.con-info-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}

.con-form-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, #1e72e1, #0d3b66);
  color: #ffffff;
}

.con-form-card-header i {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.con-form-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0 0 0.15rem 0;
}

.con-form-card-subtitle {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
}

.con-form-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.con-form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  display: block;
}

.con-form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.con-form-input-wrap > i {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  color: #94a3b8;
  z-index: 1;
}

.con-form-textarea-wrap {
  align-items: flex-start;
}

.con-form-textarea-wrap > i {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.con-form-input,
.con-form-select {
  padding-left: 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
}

.con-form-input:focus,
.con-form-select:focus {
  border-color: #1e72e1;
  box-shadow: 0 0 0 3px rgba(30, 114, 225, 0.15);
}

.con-form-textarea {
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  resize: vertical;
  min-height: 100px;
}

.con-form-hint {
  font-size: 0.8rem;
  color: #94a3b8;
}

.con-form-count {
  font-size: 0.8rem;
  color: #64748b;
}

.con-form-btn-submit {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(90deg, #1e72e1, #0d3b66);
  border: none;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.con-form-btn-submit:hover {
  color: #ffffff;
  opacity: 0.95;
}

.con-info-card {
  margin-bottom: 1.25rem;
}

.con-info-card:last-child {
  margin-bottom: 0;
}

.con-info-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, #1e72e1, #0d3b66);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.con-info-card-header i {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.con-info-card-body {
  padding: 1.25rem 1.5rem;
}

.con-info-item {
  font-size: 0.95rem;
  color: #334155;
  margin-bottom: 0.75rem;
}

.con-info-item i {
  color: #1e72e1;
  margin-right: 0.35rem;
}

.con-info-alert {
  font-size: 0.85rem;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.con-info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e72e1;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.con-info-link:hover {
  color: #0d3b66;
}

.con-info-horario {
  margin-bottom: 0;
}

.con-info-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ============================================
   Sección Ubicación / Mapa
   ============================================ */

.con-ubicacion-section {
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 100%);
}

.con-ubicacion-header {
  margin-bottom: 2rem;
}

.con-ubicacion-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0d3b66;
  background: rgba(30, 114, 225, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.con-ubicacion-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  color: #0d3b66;
  margin-bottom: 0.5rem;
}

.con-ubicacion-intro {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.con-ubicacion-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.75rem;
  height: 100%;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(30, 114, 225, 0.08);
}

.con-ubicacion-card-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #0d3b66;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.con-ubicacion-card-title i {
  color: #1e72e1;
  font-size: 1.35rem;
}

.con-ubicacion-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.con-ubicacion-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.con-ubicacion-list li:last-child {
  margin-bottom: 0;
}

.con-ubicacion-list li i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(30, 114, 225, 0.1);
  color: #1e72e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.con-ubicacion-list li a {
  color: #1e72e1;
  font-weight: 600;
  text-decoration: none;
}

.con-ubicacion-list li a:hover {
  color: #0d3b66;
  text-decoration: underline;
}

.con-ubicacion-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.con-ubicacion-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.con-ubicacion-btn-primary {
  background: linear-gradient(90deg, #1e72e1, #0d3b66);
  color: #ffffff;
  border: none;
}

.con-ubicacion-btn-primary:hover {
  color: #ffffff;
  opacity: 0.95;
  transform: translateY(-1px);
}

.con-ubicacion-btn-outline {
  background: #ffffff;
  color: #1e72e1;
  border: 2px solid #1e72e1;
}

.con-ubicacion-btn-outline:hover {
  background: rgba(30, 114, 225, 0.08);
  color: #0d3b66;
  border-color: #0d3b66;
  transform: translateY(-1px);
}

.con-ubicacion-map-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(30, 114, 225, 0.1);
  min-height: 380px;
  height: 100%;
}

.con-ubicacion-map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  height: 100%;
  vertical-align: top;
}

@media (min-width: 992px) {
  .con-ubicacion-map-wrap {
    min-height: 420px;
  }
  .con-ubicacion-map-wrap iframe {
    min-height: 420px;
  }
}

/* Aceptación legal (privacidad / términos) */
.con-form-privacy-check {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  background: rgba(0, 85, 165, 0.04);
  border: 1px solid rgba(0, 85, 165, 0.12);
}

.con-form-privacy-check .form-check-label {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #374151;
}

.con-form-privacy-check .form-check-label a {
  font-weight: 600;
  color: #0055a5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.con-form-privacy-check .form-check-label a:hover {
  color: #043d7a;
}

.con-agenda-especialidad-banner {
  border-radius: 0.75rem;
  font-weight: 600;
  color: #052a59;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(13, 110, 253, 0.22) 100%);
}
