/* =====================================================
   JEGASA – Página de contacto
   ===================================================== */

body {
  font-size: 1rem;
  line-height: 1.5;
}

body p,
body li,
body ul,
body ol,
body label,
body small,
body span,
body figcaption,
body address,
body blockquote,
body .contact-info {
  font-size: 1rem !important;
}

.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 42vh, 400px);
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 31, 60, 0.62);
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2rem, 6vw, 3rem) clamp(1.25rem, 4vw, 2rem);
  max-width: 920px;
  width: 100%;
}

.contact-hero-content h1 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.contact-hero-logo {
  width: clamp(120px, 28vw, 200px);
  margin: 0 auto;
}

/* ===== Sección formulario ===== */
.contact-page-section {
  background: #f2f2f2;
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.contact-heading-bar {
  background: #fff;
  text-align: center;
  padding: clamp(0.75rem, 2vw, 1rem) 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2697fd;
}

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #083884;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(120, 120, 120, 0.25);
  padding: 0.65rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: max(1rem, 16px);
  color: #1a2a3a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2697fd;
  box-shadow: 0 0 0 2px rgba(38, 151, 253, 0.15);
}

.form-group textarea {
  min-height: clamp(110px, 22vw, 140px);
  resize: vertical;
}

.contact-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.btn-enviar {
  background: #2697fd;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
  flex-shrink: 0;
}

.btn-enviar:hover {
  filter: brightness(1.08);
}

.contact-info {
  flex: 1 1 220px;
  margin: 0;
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
  line-height: 1.75;
  color: #5a6573;
}

.contact-info a {
  color: #083884;
  font-weight: 600;
  word-break: break-word;
}

.contact-info a:hover {
  color: #2697fd;
}

/* ===== Mensajes ===== */
.success-msg {
  background: hsl(145, 63%, 42%);
  color: #fff;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.error-msg {
  background: hsl(358, 78%, 50%);
  color: #fff;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .contact-hero {
    min-height: clamp(220px, 38vh, 320px);
  }

  .contact-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-enviar {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-hero-content h1 {
    font-size: 1.15rem;
  }

  .contact-form-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
