/* ========== WhatsApp Flotante ============================================== */
/* Usa tokens del sistema: --brand-*, --radius, --shadow */

.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 60px;
  height: 60px;
  background: #25D366; /* Verde corporativo WhatsApp - excepción al sistema */
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .35), var(--shadow);
  z-index: 1200;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none;
  color: #fff;
}

.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgba(37, 211, 102, .45), var(--shadow);
}

.wa-float:active {
  transform: scale(.98);
}

.wa-float:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* Pulso sutil para llamar la atención los primeros segundos */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25D366;
  animation: wa-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: .6; }
  100% { transform: scale(1.4);  opacity: 0; }
}

/* Tooltip opcional al hover en escritorio */
.wa-float__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.wa-float:hover .wa-float__label {
  opacity: 1;
}

@media (max-width: 720px) {
  .wa-float__label { display: none; }
  .wa-float {
    bottom: 1rem;
    right: 1rem;
    width: 56px;
    height: 56px;
  }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ========== Formulario de Contacto ========================================= */

.contact-wrap {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form h2 {
  margin: 0;
  color: var(--text);
}

.contact-form__intro {
  color: var(--text-soft);
  margin: 0 0 .5rem 0;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.contact-field label {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}

.contact-field label .req {
  color: #dc2626;
  margin-left: .15rem;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(30, 155, 255, .15);
}

.contact-field textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-field__hint {
  font-size: .85rem;
  color: var(--muted);
}

.contact-rgpd {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-rgpd input[type="checkbox"] {
  margin-top: .25rem;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--brand-600);
}

.contact-rgpd label {
  font-size: .9rem;
  line-height: 1.45;
  color: var(--text-soft);
}

.contact-rgpd a {
  color: var(--brand-600);
  text-decoration: underline;
}

.contact-form__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.contact-form__status {
  font-size: .9rem;
  color: var(--text-soft);
}

.contact-form__status.is-error { color: #dc2626; }
.contact-form__status.is-success { color: #16a34a; }

/* Honeypot oculto - antispam */
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
