/* 2026-11-04 PremiaFans Negocios: registro publico (registroPremiaFans.do). Estilos propios de esta pantalla;
   no usa ni pisa estilos de AdmiPyme. Primero celular; a partir de 900px, dos columnas. */

:root {
  --pf-azul: #4967AF;
  --pf-azul-oscuro: #3A5391;
  --pf-verde: #3C9B3F;
  --pf-amarillo: #EEAE10;
  --pf-rojo: #D62626;
  --pf-tinta: #1F2A44;
  --pf-tenue: #5B6478;
  --pf-borde: #D5DAE5;
  --pf-fondo: #FFFFFF;
  --pf-fondo-suave: #F4F6FB;
  --pf-radio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pf {
  margin: 0;
  background: var(--pf-fondo);
  color: var(--pf-tinta);
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.pf h1, .pf h2, .pf-marca, .pf-boton, .pf-etiqueta {
  font-family: "Baloo 2", "Nunito Sans", system-ui, sans-serif;
}

/* ---------- barra superior ---------- */
.pf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 4px solid var(--pf-amarillo);
}
.pf-marca {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
.pf-marca__premia { color: var(--pf-azul); }
.pf-marca__fans { color: var(--pf-verde); }
.pf-marca__neg {
  margin-left: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pf-tinta);
}
.pf-top__entrar {
  color: var(--pf-azul);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 4px;
}
.pf-top__entrar:hover { text-decoration: underline; }

/* ---------- contenido ---------- */
.pf-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: grid;
  gap: 24px;
}

.pf-hero h1 {
  margin: 6px 0 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
}
.pf-etiqueta {
  display: inline-block;
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--pf-verde);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.pf-sub { margin: 0 0 16px; color: var(--pf-tenue); font-size: 17px; }
.pf-precio { margin: 12px 0 0; font-size: 15px; color: var(--pf-tenue); }
.pf-precio strong { color: var(--pf-tinta); }

/* tarjeta de sellos (decorativa) */
.pf-sellos {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: var(--pf-radio);
  background: var(--pf-fondo-suave);
  width: max-content;
  max-width: 100%;
}
.pf-sello {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px dashed var(--pf-borde);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
}
.pf-sello--azul { background: var(--pf-azul); border: 3px solid var(--pf-azul); }
.pf-sello--verde { background: var(--pf-verde); border: 3px solid var(--pf-verde); }
.pf-sello--amarillo { background: var(--pf-amarillo); border: 3px solid var(--pf-amarillo); }
.pf-sello svg { width: 20px; height: 20px; }

.pf-puntos { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pf-puntos li { display: flex; gap: 10px; align-items: flex-start; }
.pf-puntos li::before {
  content: "";
  flex: 0 0 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--pf-amarillo);
}

/* ---------- formulario ---------- */
.pf-card {
  background: var(--pf-fondo);
  border: 1px solid var(--pf-borde);
  border-top: 6px solid var(--pf-azul);
  border-radius: var(--pf-radio);
  padding: 20px 16px 24px;
  box-shadow: 0 6px 24px rgba(31, 42, 68, 0.08);
}
.pf-card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; }
.pf-card__nota { margin: 0 0 16px; color: var(--pf-tenue); font-size: 15px; }

.pf-campo { margin-bottom: 16px; }
.pf-campo label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.pf-campo input[type="text"],
.pf-campo input[type="email"],
.pf-campo input[type="tel"],
.pf-campo select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--pf-borde);
  border-radius: 10px;
  background: #fff;
  color: var(--pf-tinta);
  font: inherit;
  font-size: 16px; /* evita el zoom de iOS */
}
.pf-campo select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--pf-tenue) 50%), linear-gradient(135deg, var(--pf-tenue) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.pf-campo input:focus, .pf-campo select:focus, .pf-check input:focus-visible + span, .pf-boton:focus-visible {
  outline: 3px solid rgba(73, 103, 175, 0.35);
  outline-offset: 1px;
  border-color: var(--pf-azul);
}
.pf-campo .pf-ayuda { margin: 4px 0 0; font-size: 14px; color: var(--pf-tenue); }
.pf-campo--mal input, .pf-campo--mal select { border-color: var(--pf-rojo); }
.pf-msg { display: none; margin: 4px 0 0; font-size: 14px; color: var(--pf-rojo); font-weight: 600; }
.pf-campo--mal .pf-msg { display: block; }

.pf-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 4px;
  cursor: pointer;
}
.pf-check input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--pf-azul);
}
.pf-check a { color: var(--pf-azul); font-weight: 700; }

.pf-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FDECEC;
  border-left: 6px solid var(--pf-rojo);
  color: #8E1515;
  font-weight: 600;
}

.pf-boton {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--pf-azul);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pf-boton:hover { background: var(--pf-azul-oscuro); }
.pf-boton[disabled] { opacity: 0.7; cursor: wait; }

/* campo trampa: fuera de la vista y del lector de pantalla */
.pf-trampa {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.pf-pie {
  padding: 16px;
  text-align: center;
  color: var(--pf-tenue);
  font-size: 14px;
  border-top: 1px solid var(--pf-borde);
}
.pf-pie a, .pf-aviso a { color: var(--pf-azul); font-weight: 700; }

/* ---------- exito ---------- */
.pf-exito {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.pf-exito__icono {
  width: 72px;
  height: 72px;
  margin: 8px auto 12px;
  border-radius: 50%;
  background: var(--pf-verde);
  display: grid;
  place-items: center;
}
.pf-exito__icono svg { width: 38px; height: 38px; }
.pf-exito h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
.pf-exito p { margin: 0 0 12px; font-size: 17px; color: var(--pf-tenue); }
.pf-exito .pf-aviso {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FDF5E0;
  border-left: 6px solid var(--pf-amarillo);
  color: var(--pf-tinta);
  font-size: 15px;
  text-align: left;
}

/* ---------- 2026-11-06: celular validado por SMS (Firebase) ---------- */
.pf [hidden] { display: none !important; }
.pf-info {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #EAF0FB;
  border-left: 6px solid var(--pf-azul);
  color: var(--pf-tinta);
  font-weight: 600;
}
.pf-error a { color: #8E1515; }
.pf-campo input.pf-codigo {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 8px;
  font-variant-numeric: tabular-nums;
}
.pf-acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 12px;
}
.pf-enlace {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--pf-azul);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.pf-enlace[disabled] { color: var(--pf-tenue); text-decoration: none; cursor: default; }
.pf-enlace:focus-visible { outline: 3px solid rgba(73, 103, 175, 0.35); outline-offset: 2px; }

/* ---------- tableta y escritorio ---------- */
@media (min-width: 600px) {
  .pf-main { padding: 32px 24px 48px; }
  .pf-card { padding: 28px 28px 32px; }
  .pf-hero h1 { font-size: 40px; }
}
@media (min-width: 900px) {
  .pf-main--dos {
    grid-template-columns: 1fr 440px;
    align-items: start;
    gap: 48px;
  }
  .pf-hero { padding-top: 24px; }
  .pf-hero h1 { font-size: 46px; }
}
