/* ======================================================
   LANDING · Buscador de clases por actividad
   Barbat.com
   ====================================================== */

/* --- Ocultar tabla técnica (fuente de datos JS) --- */
#tabla-relaciones {
  display: none;
}

/* --- Contenedor principal del buscador --- */
#rel-buscador {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Títulos */
#rel-buscador h2,
#rel-buscador h3 {
  margin-top: 0;
  color: #111;
}

/* Texto auxiliar */
#rel-buscador p {
  color: #555;
}

/* --- Select + botones superiores --- */
#rel-buscador select,
#rel-buscador input[type="text"],
#rel-buscador input[type="email"],
#rel-buscador input[type="tel"] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}

/* Botones */
#rel-buscador button {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #111;
  transition: all .2s ease;
}

#rel-buscador button:hover {
  opacity: .9;
}

#rel-buscador button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Botón primario */
#rel-buscador button[type="submit"],
#rel-buscador .btn-primary {
  background: #111;
  color: #fff;
}

/* Botón secundario */
#rel-buscador .btn-secondary {
  background: #fff;
  color: #111;
  border-color: #ccc;
}

/* --- Chips de actividades seleccionadas --- */
#chips {
  margin-top: 12px;
}

#chips button {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

/* --- Resultados --- */
#unionList span,
#commonList span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  margin: 0 6px 6px 0;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid #ddd;
  background: #fff;
}

/* Coincidencias destacadas */
#commonList span {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Contadores */
#unionCount,
#commonCount {
  font-weight: 500;
  color: #777;
}

/* --- Formulario CTA --- */
#leadForm {
  margin-top: 10px;
}

#leadForm label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
}

/* Mensajes */
#leadForm .error,
#leadForm .success {
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
}

#leadForm .success {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

#leadForm .error {
  background: #fff2f0;
  border: 1px solid #ffccc7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  #rel-buscador {
    padding: 16px;
  }

  #rel-buscador h2 {
    font-size: 20px;
  }

  #rel-buscador h3 {
    font-size: 16px;
  }
}
/* ============================
   CTA WhatsApp principal
   ============================ */

.cta-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 16px 20px;
  margin-top: 16px;

  background: #d32f2f; /* rojo fuerte */
  color: #fff;

  border: none;
  border-radius: 14px;

  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;

  cursor: pointer;
  box-shadow: 0 10px 24px rgba(211,47,47,.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.cta-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(211,47,47,.45);
}

.cta-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(211,47,47,.35);
}

.cta-whatsapp:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ícono */
.cta-whatsapp .cta-icon {
  font-size: 22px;
  line-height: 1;
}

/* Texto */
.cta-whatsapp .cta-text {
  text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
  .cta-whatsapp {
    font-size: 16px;
    padding: 14px 16px;
  }
}
/* ============================
   CTA WhatsApp HERO (verde)
   ============================ */

.cta-whatsapp--hero {
  background: #25D366; /* verde WhatsApp */
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
}

.cta-whatsapp--hero:hover {
  box-shadow: 0 14px 28px rgba(37,211,102,.45);
}
/* =========================
   Botón WhatsApp HERO
   ========================= */

.btn--whatsapp-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 14px 22px;
  border-radius: 14px;

  background: #25D366; /* verde WhatsApp */
  color: #fff !important;

  font-size: 16px;
  font-weight: 600;
  text-decoration: none;

  border: none;
  box-shadow: 0 10px 24px rgba(37,211,102,.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn--whatsapp-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37,211,102,.45);
  opacity: .95;
}

.btn--whatsapp-hero:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37,211,102,.35);
}
/* =========================
   Box datos de la marca
   ========================= */

.marca-datos-box{
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed #ddd;
  background: #fafafa;
}

.marca-datos-box__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.marca-datos-box__title span{
  font-weight: 400;
  opacity: .7;
}

.marca-datos-box__desc{
  font-size: 14px;
  line-height: 1.5;
  opacity: .85;
  margin-bottom: 12px;
}

.marca-datos-box__fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.marca-datos-box__fields input{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Mobile */
@media (max-width: 600px){
  .marca-datos-box__fields{
    grid-template-columns: 1fr;
  }
}
/* =========================
   Paso final (datos + CTA)
   ========================= */

.paso-final{
  margin-top: 28px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #eee;
  background: #fafafa;
}

.paso-final__header{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

.paso-final__content{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  align-items: stretch;
}

/* Box datos */
.marca-datos-box{
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed #ddd;
  background: #fff;
}

.marca-datos-box__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.marca-datos-box__title span{
  font-weight: 400;
  opacity: .7;
}

.marca-datos-box__desc{
  font-size: 14px;
  line-height: 1.5;
  opacity: .85;
  margin-bottom: 12px;
}

.marca-datos-box__fields{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* CTA */
.cta-final{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}

.cta-help{
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  opacity: .8;
}

/* Mobile */
@media (max-width: 800px){
  .paso-final__content{
    grid-template-columns: 1fr;
  }
  .marca-datos-box__fields{
    grid-template-columns: 1fr;
  }
}
