/* === CONTACTO === */
.contact-section {
  background: #f5f8fb;
  padding: 4rem 1rem;
  color: #1a1a1a;
}

.contact-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h1 {
  font-size: 2.5rem;
  color: #004080;
}

.contact-header p {
  font-size: 1.1rem;
  color: #333;
}


/* WhatsApp flotante */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 1rem;
  z-index: 1000;
  transition: background 0.3s;
}

.floating-whatsapp-btn:hover {
  background: #1ebc5c;
}

/* === Responsive === */
@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 2rem;
  }

  .btn-primary {
    width: 100%;
  }

  .formulario {
    padding: 1.5rem;
  }
}

.custom-container {
  background: linear-gradient(135deg, #f0f6ff, #eaf1fa);
  border-left: 6px solid #004080;
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  color: #1a1a1a;
}

.custom-container h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #004080;
}

.custom-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

.custom-container a {
  color: #004080;
  font-weight: bold;
  text-decoration: underline;
}

.custom-container a:hover {
  color: #0072ce;
}

/* WhatsApp flotante */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-decoration: none;
  font-size: 1rem;
  z-index: 1000;
  transition: background 0.3s;
}

.floating-whatsapp-btn:hover {
  background: #1ebc5c;
}

/* === UTILIDADES === */
.hidden {
  display: none !important;
}

/* === Botones extra visibles === */
.extra-buttons {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-extra {
  background-color: #004080;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-block;
}

.btn-extra:hover {
  background-color: #d32f2f;
}

/* Oculta por defecto el menú móvil */
.hidden {
  display: none !important;
}

/* Muestra el menú si no tiene la clase .hidden */
.mobile-menu:not(.hidden) {
  display: block;
}

.btn-submit {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background-color: var(--color-primary, #004080);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
  background-color: var(--color-primary-dark, #0059b3);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn-submit:focus {
  outline: 3px solid #99ccff;
  outline-offset: 2px;
}

/* === ICONO FLOTANTE MÓVIL === */
.mobile-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-color: #d32f2f;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  cursor: pointer;
  text-decoration: none;
  display: none;
}

/* === POPUP MÓVIL === */
.mobile-offer {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 260px;
  background-color: white;
  border: 2px solid #d32f2f;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  padding: 1rem;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mobile-offer-content {
  text-align: center;
  position: relative;
}

.mobile-offer h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
}

.mobile-close {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: #555;
  cursor: pointer;
}

.popup-buttons .btn-popup {
  background-color: #d32f2f;
  color: white;
  padding: 0.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.95rem;
  display: block;
  margin: 0.5rem 0;
  transition: background-color 0.2s;
}

.popup-buttons .btn-popup:hover {
  background-color: #b71c1c;
}

/* === FORMULARIO === */
.formulario {
  background: #ffffff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: auto;
  transition: all 0.3s ease;
}

/* === GRUPOS === */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-group label {
  font-weight: 600;
  font-size: 1.05rem;
  color: #004080;
}

/* === INPUTS, SELECTS, TEXTAREA === */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  padding: 0.9rem 1rem;
  border: 1px solid #cfdff0;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9fbfd;
  color: #222;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #00bcd4;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* === CHECKBOX GROUP === */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-left: 1rem;
}

.checkbox-group label {
  font-weight: normal;
  color: #333;
}

/* === SELECT PERSONALIZADO (cross-browser) === */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='%23004080' height='24' viewBox='0 0 24 24' width='24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}

/* === BARRA DE PROGRESO === */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e3eef7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.progress-bar .progress {
  height: 100%;
  width: 70%;
  background-color: #00bcd4;
  transition: width 0.3s ease;
}

/* === BOTÓN === */
.btn-primary {
  background: linear-gradient(to right, #004080, #007acc);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn-primary:hover {
  background: linear-gradient(to right, #0059b3, #0080ff);
  transform: translateY(-2px);
}

/* === INFO DE CONTACTO === */
.contact-info {
  background: #eef7fc;
  border-left: 5px solid #00bcd4;
  padding: 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  color: #222;
  margin-top: 2rem;
}

.contact-info a {
  color: #007acc;
  text-decoration: underline;
}

/* === CONSENTIMIENTO === */
.form-group input[type="checkbox"] {
  accent-color: #00bcd4;
  margin-right: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .formulario {
    padding: 2rem 1rem;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}
