/* Exclusivo de probar.html (formulario de demo / prueba gratis) */
.page-header { text-align: center; padding: 60px 24px 40px; max-width: 780px; margin: 0 auto; }
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-header p { color: var(--muted); font-size: .95rem; }

.probar-wrap { max-width: 620px; margin: 0 auto; padding: 0 24px 90px; }
.probar-card { padding: 2rem 2.25rem; }
.probar-card:hover { background: var(--glass); } /* la tarjeta del formulario no reacciona al hover */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Selector demo / prueba */
.tipo-group { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.tipo-opt { position: relative; cursor: pointer; }
.tipo-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tipo-opt span {
  display: block; text-align: center; padding: .8rem .75rem; border-radius: 12px;
  border: 1px solid var(--border); color: var(--muted); font-weight: 700; font-size: .88rem;
  transition: border-color .2s, background .2s, color .2s;
}
.tipo-opt:hover span { background: var(--glass-hover); }
.tipo-opt input:checked + span {
  color: var(--text); border-color: var(--accent); background: rgba(167,139,250,.14);
}
.tipo-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Campos */
.campo { margin-bottom: 1.15rem; }
.campo label { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.campo .opcional { color: var(--muted); font-weight: 500; }
.campo input[type="text"], .campo input[type="email"], .campo input[type="tel"], .campo select {
  width: 100%; font-family: 'Inter', sans-serif;
  font-size: 1rem; /* 16px: evita el zoom automático de iOS al enfocar */
  color: var(--text); background-color: rgba(255,255,255,.06);
  border: 1px solid var(--border); border-radius: 10px; padding: .75rem .9rem;
  transition: border-color .2s, background-color .2s;
}
.campo select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.65' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem;
}
.campo select option { background: #0d0d14; color: #fff; }
.campo input::placeholder { color: rgba(255,255,255,.35); }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--accent); background-color: rgba(255,255,255,.09); }
.campo .invalido { border-color: #f87171 !important; }
.ayuda { margin-top: .35rem; font-size: .76rem; color: var(--muted); line-height: 1.5; }

/* Honeypot: fuera de pantalla (no display:none, que algunos bots detectan) */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Términos */
.terminos { display: flex; gap: .7rem; align-items: flex-start; margin: 1.4rem 0 1rem; cursor: pointer;
  font-size: .82rem; color: var(--muted); line-height: 1.55; }
.terminos input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 18px; accent-color: #7c3aed; cursor: pointer; }
.terminos a { color: var(--accent); font-weight: 600; }
.terminos-hint { color: var(--text); font-weight: 600; }

.turnstile-box { min-height: 0; margin-bottom: 1rem; display: flex; justify-content: center; }

.form-error {
  margin: 0 0 1rem; padding: .75rem 1rem; border-radius: 10px; font-size: .85rem; line-height: 1.5;
  color: #fecaca; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4);
}
.form-error[hidden] { display: none; }

.btn-enviar { width: 100%; text-align: center; white-space: normal; }
.btn-enviar:disabled { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.form-nota { margin-top: 1.1rem; font-size: .76rem; color: var(--muted); text-align: center; line-height: 1.6; }
.form-nota a { color: var(--accent); font-weight: 600; }

/* Pantalla de éxito */
.exito { text-align: center; padding: 2.75rem 2rem; }
.exito[hidden] { display: none; }
.exito-icono {
  width: 60px; height: 60px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
}
.exito h2 { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.5rem; margin-bottom: .6rem; }
.exito p { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; line-height: 1.6; }
.exito .form-nota { margin-top: 1.1rem; margin-bottom: 0; }

@media (max-width: 575px) {
  .probar-wrap { padding: 0 16px 70px; }
  .probar-card { padding: 1.5rem 1.25rem; }
  .page-header { padding: 40px 20px 28px; }
  .tipo-group { grid-template-columns: 1fr; }
}
