/* 🐾 Onboarding del Pet Parent — hoja de estilos PROPIA (Brand Book Petia 2026 v2). Solo la usan las pantallas del onboarding (registro, verificación de correo, los tres pasos, el modal de bienvenida): el resto del sitio sigue con los
   colores `woofx-*` y no se toca. Todo vive bajo el prefijo `pob-` y las variables `--petia-*`, así no choca con Tailwind (que las pantallas cargan para el aviso emergente y el recortador de fotos) ni con ninguna otra página. */

:root {
    --petia-primary: #6E49F6;            /* botón principal, enlaces, foco, selección */
    --petia-primary-hover: #5A36E0;      /* hover del botón y texto de acento sobre lavanda (5.7:1) */
    --petia-primary-disabled: #C9B8FF;   /* botón deshabilitado */
    --petia-brand: #B89CFF;              /* decorativo: nunca texto */
    --petia-surface-tint: #EDE7FF;       /* fondo de auth, cajas informativas, halo de foco */
    --petia-accent-soft: #FFDDE7;        /* avatares de mascota, fundido del panel */
    --petia-panel-gradient: linear-gradient(170deg, #EDE7FF 0%, #EDE7FF 55%, #FFDDE7 100%);
    --petia-surface: #FCFBFF;            /* fondo de página */
    --petia-card: #FFFFFF;
    --petia-selected: #F7F4FF;           /* fondo de una tarjeta o chip seleccionado */
    --petia-text: #151A37;
    --petia-text-muted: #5C6078;         /* subtítulos y ayudas (6.2:1 sobre blanco) */
    --petia-placeholder: #8F90A6;
    --petia-border: #E6E2F3;
    --petia-error: #E5484D;              /* bordes y avisos (3.9:1) */
    --petia-error-text: #C8242B;         /* texto del mensaje de error: 5.6:1 sobre blanco (AA) */
    --petia-success: #2E9E6A;
    --petia-radius: 14px;
    --petia-radius-lg: 16px;
    --petia-radius-xl: 24px;
    --petia-sombra-tarjeta: 0 10px 30px rgba(21, 26, 55, .06);
    --petia-sombra-modal: 0 20px 50px rgba(21, 26, 55, .12);
    --petia-fuente-titulo: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --petia-fuente: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.pob-body { margin: 0; background: var(--petia-surface); color: var(--petia-text); font-family: var(--petia-fuente); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; min-height: 100vh; }
.pob-body *, .pob-body *::before, .pob-body *::after { box-sizing: border-box; }
.pob-body [hidden] { display: none !important; }
:where(.pob-body) a { color: var(--petia-primary); text-decoration: underline; text-underline-offset: 2px; }
:where(.pob-body) a:hover { color: var(--petia-primary-hover); }
:where(.pob-body) button, :where(.pob-body) input, :where(.pob-body) select { font-family: inherit; font-size: inherit; color: inherit; }
:where(.pob-body) h1, :where(.pob-body) h2, :where(.pob-body) h3 { font-family: var(--petia-fuente-titulo); font-weight: 600; color: var(--petia-text); margin: 0; }
:where(.pob-body) p { margin: 0; }
:where(.pob-body) ol, :where(.pob-body) ul { margin: 0; padding: 0; list-style: none; }
.pob-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pob-body :focus-visible { outline: 3px solid var(--petia-primary); outline-offset: 2px; }
/* los campos de texto ya tienen su propio anillo de foco (borde y halo): sin doble contorno */
.pob-body .pob-input:focus-visible, .pob-body .pob-select:focus-visible, .pob-body .pob-combo-entrada:focus-visible, .pob-body .pob-grupo input:focus-visible, .pob-body .pob-grupo select:focus-visible { outline: none; }

/* ───────────── Botones ───────────── */
.pob-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 24px; border: 0; border-radius: var(--petia-radius); background: var(--petia-primary); color: #fff; font-weight: 600; font-size: 17px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background-color .15s ease-out; }
.pob-btn:hover { background: var(--petia-primary-hover); color: #fff; }
.pob-btn:disabled, .pob-btn[aria-disabled="true"], .pob-btn[aria-disabled="true"]:hover { background: var(--petia-primary-disabled); color: #fff; cursor: not-allowed; }   /* aria-disabled: se ve apagado pero se puede pulsar (explica qué falta) */
.pob-btn-sec { background: #fff; color: var(--petia-text); border: 1px solid var(--petia-border); }
.pob-btn-sec:hover { background: var(--petia-selected); color: var(--petia-text); }
.pob-btn-sec:disabled, .pob-btn-sec[aria-disabled="true"], .pob-btn-sec[aria-disabled="true"]:hover { background: #fff; color: var(--petia-placeholder); border-color: var(--petia-border); }
.pob-btn[data-cargando="1"] { cursor: progress; }
.pob-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: pob-giro .7s linear infinite; flex: none; }
.pob-btn-sec .pob-spinner { border-color: var(--petia-border); border-top-color: var(--petia-primary); }
@keyframes pob-giro { to { transform: rotate(360deg); } }
.pob-enlace { display: inline; padding: 0; border: 0; background: none; color: var(--petia-primary); font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pob-enlace:hover { color: var(--petia-primary-hover); }
.pob-enlace-tenue { color: var(--petia-text); font-weight: 600; text-decoration: none; }
.pob-enlace-tenue:hover { color: var(--petia-primary-hover); text-decoration: underline; }

/* ───────────── Formulario ───────────── */
.pob-campo { margin: 0 0 20px 0; }
.pob-etiqueta { display: block; margin: 0 0 8px 0; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--petia-text); }
.pob-etiqueta-op { font-weight: 400; color: var(--petia-text-muted); }
.pob-input, .pob-select { display: block; width: 100%; height: 56px; padding: 0 20px; border: 1px solid var(--petia-border); border-radius: var(--petia-radius); background: #fff; color: var(--petia-text); font-size: 16px; line-height: 1.2; outline: none; transition: border-color .15s, box-shadow .15s; }
.pob-input::placeholder { color: var(--petia-placeholder); opacity: 1; }
.pob-input:focus, .pob-select:focus, .pob-combo-entrada:focus { border-color: var(--petia-primary); box-shadow: 0 0 0 .5px var(--petia-primary), 0 0 0 3px var(--petia-surface-tint); }
.pob-input[aria-invalid="true"], .pob-select[aria-invalid="true"], .pob-grupo[data-error="1"], .pob-combo-entrada[aria-invalid="true"] { border-color: var(--petia-error); }
.pob-input[aria-invalid="true"]:focus, .pob-select[aria-invalid="true"]:focus { box-shadow: 0 0 0 .5px var(--petia-error), 0 0 0 3px rgba(229, 72, 77, .15); }
.pob-input[data-valido="1"], .pob-grupo[data-valido="1"] { border-color: var(--petia-success); }
.pob-input[data-valido="1"]:not(:focus) { padding-right: 48px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232E9E6A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") no-repeat right 18px center; }
.pob-input[type="date"][data-valido="1"]:not(:focus) { padding-right: 20px; background-image: none; }
.pob-input[disabled], .pob-select[disabled] { background: var(--petia-selected); color: var(--petia-text-muted); cursor: not-allowed; }
.pob-select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C6078' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 18px center; }
.pob-select:invalid, .pob-select[data-vacio="1"] { color: var(--petia-placeholder); }
.pob-select option { color: var(--petia-text); }
.pob-input[type="date"] { min-height: 56px; }
.pob-ayuda-campo { margin: 8px 0 0 0; font-size: 13px; line-height: 1.45; color: var(--petia-text-muted); display: flex; gap: 6px; align-items: flex-start; }
.pob-ayuda-campo svg { flex: none; margin-top: 2px; }
.pob-error-msg { margin: 8px 0 0 0; font-size: 13px; line-height: 1.45; color: var(--petia-error-text); }
.pob-error-msg:empty { display: none; }
.pob-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pob-fila > .pob-campo, .pob-fila > div { min-width: 0; }
.pob-fila-raza { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.pob-clave { position: relative; }
.pob-clave .pob-input { padding-right: 52px; }
.pob-ojo { position: absolute; top: 0; right: 0; width: 52px; height: 56px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--petia-placeholder); cursor: pointer; border-radius: var(--petia-radius); }
.pob-ojo:hover { color: var(--petia-text-muted); }
/* el componente compartido ver-contrasena.js (el que usa el resto del sitio) dentro de un campo del onboarding */
.pob-body input[data-ver-contrasena-listo] + button { color: var(--petia-placeholder); }
.pob-body input[data-ver-contrasena-listo] + button:hover { color: var(--petia-text-muted); }
.pob-body input[data-ver-contrasena-listo] { padding-right: 52px !important; }

/* grupo unido: tipo de documento + número, prefijo + WhatsApp */
.pob-grupo { display: flex; align-items: stretch; height: 56px; border: 1px solid var(--petia-border); border-radius: var(--petia-radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.pob-grupo:focus-within { border-color: var(--petia-primary); box-shadow: 0 0 0 .5px var(--petia-primary), 0 0 0 3px var(--petia-surface-tint); }
.pob-grupo[data-error="1"]:focus-within { border-color: var(--petia-error); box-shadow: 0 0 0 .5px var(--petia-error), 0 0 0 3px rgba(229, 72, 77, .15); }
.pob-grupo .pob-input, .pob-grupo .pob-select { border: 0; border-radius: 0; height: 100%; box-shadow: none !important; background-color: transparent; }
.pob-grupo > :first-child { border-radius: var(--petia-radius) 0 0 var(--petia-radius); border-right: 1px solid var(--petia-border) !important; flex: none; }
.pob-grupo > :last-child { border-radius: 0 var(--petia-radius) var(--petia-radius) 0; flex: 1; min-width: 0; }
.pob-grupo .pob-select { width: 190px; }
.pob-prefijo { position: relative; flex: none; width: 128px; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 14px 0 16px; font-size: 16px; white-space: nowrap; cursor: pointer; }
.pob-prefijo select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.pob-prefijo:focus-within { outline: 3px solid var(--petia-primary); outline-offset: -3px; border-radius: var(--petia-radius) 0 0 var(--petia-radius); }
.pob-prefijo-texto { overflow: hidden; text-overflow: ellipsis; }
.pob-bandera { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; margin-right: 6px; }

/* casilla y interruptor */
.pob-casilla { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 16px; line-height: 1.5; }
.pob-casilla input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0 0; border: 1.5px solid #B9B5CF; border-radius: 7px; background: #fff; cursor: pointer; display: grid; place-content: center; transition: background-color .12s, border-color .12s; }
.pob-casilla input:checked { background: var(--petia-primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") no-repeat center; border-color: var(--petia-primary); }
.pob-casilla input:focus-visible { outline: 3px solid var(--petia-primary); outline-offset: 2px; }
.pob-casilla-op { color: var(--petia-text); }
.pob-casilla-op .pob-etiqueta-op { margin-left: 2px; }
.pob-tarjeta-interruptor { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--petia-border); border-radius: var(--petia-radius-lg); background: var(--petia-selected); cursor: pointer; }
.pob-tarjeta-interruptor .pob-ti-icono { flex: none; color: var(--petia-text); }
.pob-tarjeta-interruptor .pob-ti-texto { flex: 1; min-width: 0; }
.pob-tarjeta-interruptor .pob-ti-titulo { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
.pob-tarjeta-interruptor .pob-ti-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--petia-text-muted); }
.pob-interruptor { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 0; border-radius: 16px; background: #C8C5D8; cursor: pointer; transition: background-color .15s; }
.pob-interruptor::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(21, 26, 55, .3); transition: transform .15s; }
.pob-interruptor:checked { background: var(--petia-primary); }
.pob-interruptor:checked::after { transform: translateX(20px); }
.pob-interruptor:focus-visible { outline: 3px solid var(--petia-primary); outline-offset: 3px; }

/* fichas (chips) de selección única: radios nativos, así el teclado funciona solo (flechas dentro del grupo) */
.pob-chips { display: grid; gap: 12px; grid-auto-flow: column; grid-auto-columns: 1fr; border: 0; padding: 0; margin: 0; min-width: 0; }
.pob-chips legend { padding: 0; }
.pob-chip { position: relative; }
.pob-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pob-chip > span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 12px; border: 1px solid var(--petia-border); border-radius: var(--petia-radius); background: #fff; font-weight: 600; font-size: 16px; text-align: center; transition: border-color .12s, background-color .12s; }
.pob-chip input:checked + span { border: 2px solid var(--petia-primary); background: var(--petia-selected); color: var(--petia-primary-hover); }
.pob-chip input:focus-visible + span { outline: 3px solid var(--petia-primary); outline-offset: 2px; }
.pob-chip:hover input:not(:checked) + span { border-color: #CFC8EC; }
.pob-chips-error .pob-chip > span { border-color: var(--petia-error); }

/* tarjetas seleccionables (perfil) */
.pob-tarjetas { display: grid; gap: 16px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pob-opcion { position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--petia-border); border-radius: var(--petia-radius-lg); background: #fff; cursor: pointer; transition: border-color .12s, background-color .12s; }
.pob-opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.pob-opcion:hover { border-color: #CFC8EC; }
.pob-opcion-icono { flex: none; width: 56px; height: 56px; border-radius: var(--petia-radius); background: var(--petia-surface-tint); display: grid; place-items: center; color: var(--petia-primary); }
.pob-opcion-texto { flex: 1; min-width: 0; }
.pob-opcion-titulo { display: block; font-weight: 600; font-size: 18px; line-height: 1.3; }
.pob-opcion-desc { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: var(--petia-text-muted); }
.pob-opcion-check { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--petia-primary); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity .12s, transform .12s; }
/* `data-sel` lo pone la pantalla al elegir (respaldo para navegadores sin :has) */
.pob-opcion[data-sel="1"], .pob-opcion:has(input:checked) { border: 2px solid var(--petia-primary); background: var(--petia-selected); padding: 21px 23px; }
.pob-opcion[data-sel="1"] .pob-opcion-check, .pob-opcion:has(input:checked) .pob-opcion-check { opacity: 1; transform: none; }
.pob-opcion:has(input:focus-visible) { outline: 3px solid var(--petia-primary); outline-offset: 2px; }

/* ───────────── Combo con búsqueda (país, raza, clínica) ───────────── */
.pob-combo { position: relative; }
.pob-combo-entrada { width: 100%; height: 56px; padding: 0 48px 0 20px; border: 1px solid var(--petia-border); border-radius: var(--petia-radius); background: #fff; color: var(--petia-text); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; text-overflow: ellipsis; }
.pob-combo-entrada::placeholder { color: var(--petia-placeholder); opacity: 1; }
.pob-combo-flecha { position: absolute; top: 0; right: 0; width: 48px; height: 56px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--petia-text-muted); cursor: pointer; border-radius: var(--petia-radius); }
.pob-combo-lista { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; overflow-x: hidden; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--petia-border); border-radius: var(--petia-radius-lg); box-shadow: 0 14px 34px rgba(21, 26, 55, .14); }
.pob-combo-opcion { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; cursor: pointer; font-size: 16px; line-height: 1.3; }
.pob-combo-opcion > span { min-width: 0; overflow-wrap: anywhere; }   /* un nombre larguísimo (una raza o una clínica) se parte en vez de ensanchar la lista */
.pob-combo-opcion small { display: block; color: var(--petia-text-muted); font-size: 13px; margin-top: 1px; }
.pob-combo-opcion[aria-selected="true"] { font-weight: 600; }
.pob-combo-opcion[data-activa="1"], .pob-combo-opcion:hover { background: var(--petia-surface-tint); }
.pob-combo-vacio { padding: 14px; font-size: 14px; color: var(--petia-text-muted); }
.pob-combo-accion { color: var(--petia-primary-hover); font-weight: 600; border-top: 1px solid var(--petia-border); border-radius: 0 0 10px 10px; margin-top: 4px; padding-top: 14px; }
.pob-combo-bloqueado .pob-combo-entrada { background: var(--petia-selected); color: var(--petia-text); padding-right: 20px; cursor: not-allowed; }

/* ───────────── Modal ───────────── */
.pob-velo { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(21, 26, 55, .45); overflow-y: auto; animation: pob-aparece .2s ease-out; }
.pob-modal { position: relative; width: 100%; max-width: 520px; margin: auto; padding: 36px 40px 32px 40px; border-radius: var(--petia-radius-xl); background: #fff; box-shadow: var(--petia-sombra-modal); animation: pob-sube .2s ease-out; }
.pob-modal:focus { outline: none; }   /* el diálogo recibe el foco al abrirse (para que se lea su título), sin contorno */
.pob-modal h2 { font-size: 28px; line-height: 1.25; text-align: center; }
.pob-modal-cierre { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--petia-placeholder); cursor: pointer; }
.pob-modal-cierre:hover { background: var(--petia-selected); color: var(--petia-text-muted); }
.pob-circulo-icono { width: 104px; height: 104px; margin: 22px auto 18px auto; border-radius: 50%; background: var(--petia-surface-tint); display: grid; place-items: center; color: var(--petia-primary); }
.pob-modal-texto { text-align: center; color: var(--petia-text-muted); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.pob-modal-texto strong { color: var(--petia-text); }
.pob-pasos { margin: 22px 0 16px 0; padding: 20px 24px; border-radius: var(--petia-radius-lg); background: var(--petia-surface-tint); }
.pob-pasos-titulo { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 0; font-weight: 600; font-size: 17px; color: var(--petia-primary-hover); }
.pob-pasos ol { counter-reset: paso; }
.pob-pasos li { counter-increment: paso; margin: 4px 0; font-size: 16px; line-height: 1.5; }
.pob-pasos li::before { content: counter(paso) '. '; }
.pob-modal-aviso { margin: 0 0 16px 0; text-align: center; font-size: 15px; color: var(--petia-text-muted); }
.pob-modal-aviso:empty { margin: 0; }   /* la región de avisos vive vacía (para que se anuncie lo que se escriba en ella) y entonces no ocupa lugar */
.pob-espera { margin: 10px 0 0 0; text-align: center; font-size: 14px; color: var(--petia-text-muted); min-height: 20px; }
.pob-modal-pie { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 16px; }
.pob-modal-pie .pob-punto { color: var(--petia-text); }
@keyframes pob-aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes pob-sube { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ───────────── Pantallas de acceso (registro y verificación del correo) ───────────── */
.pob-auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 16px 0 16px; overflow-x: hidden; }
.pob-auth::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 520px; background: var(--petia-surface-tint); z-index: 0; }
.pob-auth-tarjeta { position: relative; z-index: 1; width: 100%; max-width: 580px; padding: 44px 48px 40px 48px; border-radius: var(--petia-radius-xl); background: #fff; box-shadow: var(--petia-sombra-tarjeta); animation: pob-sube .2s ease-out; }
.pob-logo { display: flex; justify-content: center; padding-bottom: 22px; border-bottom: 1px solid var(--petia-border); margin-bottom: 30px; }
.pob-logo img { display: block; height: 52px; width: auto; max-width: 100%; }
.pob-titulo:focus { outline: none; }
.pob-titulo { font-size: 34px; line-height: 1.2; letter-spacing: -.01em; }
.pob-subtitulo { margin: 8px 0 28px 0; font-size: 17px; line-height: 1.5; color: var(--petia-text-muted); }
.pob-separador { display: flex; align-items: center; gap: 16px; margin: 22px 0; color: var(--petia-text-muted); font-size: 15px; }
.pob-separador::before, .pob-separador::after { content: ''; flex: 1; height: 1px; background: var(--petia-border); }
.pob-pie-tarjeta { margin-top: 26px; text-align: center; font-size: 16px; color: var(--petia-text-muted); }
.pob-auth-pie { position: relative; z-index: 1; margin-top: auto; padding: 72px 0 40px 0; text-align: center; }
.pob-auth-pie .pob-tagline { font-family: var(--petia-fuente-titulo); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--petia-text); }
.pob-auth-pie p + p { margin-top: 14px; font-size: 15px; color: var(--petia-text-muted); }
.pob-invitacion { margin: 0 0 22px 0; padding: 14px 18px; border-radius: var(--petia-radius); background: var(--petia-surface-tint); font-size: 16px; text-align: center; }
.pob-idioma { position: absolute; z-index: 5; top: 16px; right: 16px; }
.pob-idioma-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--petia-border); border-radius: 22px; background: #fff; color: var(--petia-text-muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.pob-idioma-btn:hover { background: var(--petia-selected); }
.pob-g { width: 22px; height: 22px; flex: none; }
.pob-centro { text-align: center; }
.pob-estado-icono { width: 84px; height: 84px; margin: 6px auto 18px auto; border-radius: 50%; display: grid; place-items: center; background: var(--petia-surface-tint); color: var(--petia-primary); }
.pob-estado-icono[data-tipo="error"] { background: #FDECEC; color: var(--petia-error-text); }
.pob-estado-icono[data-tipo="ok"] { background: #E5F6EE; color: var(--petia-success); }
.pob-auth-tarjeta .pob-btn + .pob-btn, .pob-auth-tarjeta .pob-btn + .pob-pie-tarjeta { margin-top: 14px; }

/* ───────────── Asistente (wizard) ───────────── */
.pob-shell { display: grid; grid-template-columns: 540px minmax(0, 1fr); min-height: 100vh; }
.pob-panel { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 56px 56px 48px 56px; background: var(--petia-panel-gradient); color: var(--petia-text); }
.pob-panel-isotipo { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(110, 73, 246, .12); display: grid; place-items: center; overflow: hidden; margin-bottom: 40px; }
.pob-panel-isotipo img { width: 42px; height: 42px; display: block; }
.pob-panel-titulo { font-size: 40px; line-height: 1.18; letter-spacing: -.015em; max-width: 440px; }
.pob-panel-texto { margin-top: 18px; max-width: 420px; font-size: 18px; line-height: 1.55; color: var(--petia-text-muted); }
.pob-panel-tarjetas { margin-top: 36px; max-width: 430px; }
.pob-panel-tarjeta { padding: 16px 20px; border-radius: var(--petia-radius-lg); background: #fff; box-shadow: var(--petia-sombra-tarjeta); animation: pob-sube .25s ease-out both; }
.pob-panel-tarjeta + .pob-panel-tarjeta { margin: 14px 0 0 36px; animation-delay: .08s; }
.pob-ojito { margin: 0 0 8px 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--petia-text-muted); }
.pob-pt-fila { display: flex; align-items: center; gap: 14px; }
.pob-pt-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--petia-surface-tint); display: grid; place-items: center; color: var(--petia-primary); }
.pob-pt-avatar[data-tono="rosa"] { background: var(--petia-accent-soft); color: var(--petia-primary); }
.pob-pt-nombre { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.pob-pt-detalle { display: block; font-size: 14px; color: var(--petia-text-muted); overflow-wrap: anywhere; }
.pob-pt-grande { margin-top: 8px; font-family: var(--petia-fuente-titulo); font-weight: 600; font-size: 24px; line-height: 1.2; }
.pob-main { position: relative; min-width: 0; padding: 0 32px 64px 32px; }
.pob-barra { position: absolute; z-index: 5; top: 14px; right: 44px; display: flex; align-items: center; gap: 20px; }
.pob-ayuda { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }
.pob-col { width: 100%; max-width: 640px; margin: 0 auto; padding-top: 112px; }
.pob-vista { animation: pob-entrada .2s ease-out; }
@keyframes pob-entrada { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pob-volver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 6px -6px; padding: 0 6px; border: 0; background: none; color: var(--petia-text); font-size: 16px; font-weight: 500; cursor: pointer; border-radius: 10px; }
.pob-volver:hover { color: var(--petia-primary-hover); }
.pob-progreso { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 10px 0; font-size: 15px; color: var(--petia-text-muted); }
.pob-progreso strong { color: var(--petia-primary); font-weight: 600; }
.pob-stepper { display: flex; align-items: center; gap: 12px; margin: 0 0 32px 0; }
.pob-paso { display: flex; align-items: center; gap: 10px; flex: none; font-size: 15px; color: var(--petia-text-muted); }
.pob-paso-circulo { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--petia-border); background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--petia-text-muted); flex: none; }
.pob-paso[data-estado="activo"] { color: var(--petia-primary-hover); font-weight: 600; }
.pob-paso[data-estado="activo"] .pob-paso-circulo { border: 2px solid var(--petia-primary); color: var(--petia-primary); box-shadow: 0 0 0 4px var(--petia-surface-tint); }
.pob-paso[data-estado="hecho"] { color: var(--petia-primary-hover); font-weight: 600; }
.pob-paso[data-estado="hecho"] .pob-paso-circulo { background: var(--petia-primary); border-color: var(--petia-primary); color: #fff; }
.pob-linea { flex: 1; height: 1px; background: var(--petia-border); min-width: 12px; }
.pob-linea[data-hecha="1"] { background: var(--petia-primary); height: 2px; }
.pob-vista-titulo { font-size: 36px; line-height: 1.2; letter-spacing: -.01em; }
.pob-vista-sub { margin: 10px 0 28px 0; font-size: 17px; line-height: 1.5; color: var(--petia-text-muted); }
.pob-nota-pie { margin-top: 20px; text-align: center; font-size: 15px; color: var(--petia-text-muted); }
.pob-aviso { margin: 0 0 22px 0; padding: 16px 20px; border-radius: var(--petia-radius); background: var(--petia-surface-tint); font-size: 15px; line-height: 1.5; }
.pob-aviso[data-tipo="error"] { background: #FDECEC; color: var(--petia-error-text); }
.pob-reintentar { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* foto de la mascota */
.pob-mascota-cabeza { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.pob-foto { position: relative; flex: none; width: 96px; height: 96px; margin-top: 28px; border-radius: 50%; border: 1.5px dashed var(--petia-brand); background: var(--petia-selected); color: var(--petia-primary-hover); font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; display: grid; place-items: center; overflow: hidden; padding: 0; }
.pob-foto:hover { background: var(--petia-surface-tint); }
.pob-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pob-foto-quitar { margin: 6px 0 0 0; }
.pob-mascota-cabeza .pob-campo { flex: 1; min-width: 0; margin: 0; }
.pob-tarjeta-previa { display: flex; align-items: center; gap: 16px; }
.pob-avatar-mascota { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--petia-accent-soft); color: var(--petia-primary); display: grid; place-items: center; overflow: hidden; }
.pob-avatar-mascota img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pob-enlace-edad { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; font-size: 14px; }
.pob-edad-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pob-sub-campos { margin-top: 14px; padding: 18px; border-radius: var(--petia-radius); background: var(--petia-selected); border: 1px solid var(--petia-border); }
.pob-sub-campos .pob-campo:last-child { margin-bottom: 0; }
.pob-encontrada { margin: 0 0 22px 0; padding: 20px 22px; border-radius: var(--petia-radius-lg); border: 2px solid var(--petia-primary); background: var(--petia-selected); }
.pob-encontrada h2 { margin-bottom: 18px; font-size: 20px; line-height: 1.3; }
.pob-encontrada .pob-ayuda-campo { margin: -8px 0 18px 0; }
.pob-encontrada ul { margin: 12px 0 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pob-encontrada li { padding: 6px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--petia-border); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.pob-encontrada li small { font-weight: 400; color: var(--petia-text-muted); margin-left: 6px; }
.pob-encontrada .pob-btn + .pob-btn { margin-top: 10px; }

/* ───────────── Bienvenida (modal sobre la ficha) ───────────── */
.pob-bienvenida h2 { color: var(--petia-primary); font-size: 30px; }
.pob-bienvenida .pob-modal-texto { margin-top: 8px; }
.pob-bienvenida-isotipo { width: 96px; height: 96px; margin: 8px auto 12px auto; border-radius: 50%; background: var(--petia-surface-tint); display: grid; place-items: center; animation: pob-escala .25s ease-out; }
.pob-bienvenida-isotipo img { width: 62px; height: 62px; display: block; }
@keyframes pob-escala { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
.pob-beneficios { margin: 24px 0 26px 0; display: grid; gap: 16px; }
.pob-beneficio { display: flex; gap: 16px; align-items: flex-start; }
.pob-beneficio-icono { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--petia-selected); color: var(--petia-primary); }
.pob-beneficio-titulo { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.pob-beneficio-desc { display: block; font-size: 15px; line-height: 1.45; color: var(--petia-text-muted); }
.pob-beneficio .pob-enlace { text-align: left; }
.pob-bienvenida-acciones { display: grid; gap: 6px; }
.pob-bienvenida-acciones .pob-enlace { justify-self: center; min-height: 44px; font-size: 17px; }

/* ───────────── Móvil: el panel se vuelve una cabecera de 120 px y todo cabe desde 360 px ───────────── */
@media (max-width: 767px) {
    .pob-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .pob-panel { position: relative; height: auto; overflow: visible; display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 16px 20px; }
    .pob-panel-isotipo { width: 52px; height: 52px; margin: 0; }
    .pob-panel-isotipo img { width: 34px; height: 34px; }
    .pob-panel-titulo { font-size: 21px; line-height: 1.25; max-width: none; }
    .pob-panel-texto, .pob-panel-tarjetas { display: none; }
    .pob-main { padding: 0 20px 48px 20px; }
    .pob-col { padding-top: 20px; }
    .pob-barra { position: static; justify-content: flex-end; gap: 16px; padding: 12px 0 0 0; }
    .pob-vista-titulo { font-size: 28px; }
    .pob-vista-sub { margin-bottom: 22px; font-size: 16px; }
    .pob-auth { padding-top: 64px; }
    .pob-auth-tarjeta { padding: 32px 22px 30px 22px; }
    .pob-titulo { font-size: 28px; }
    .pob-modal { padding: 30px 22px 26px 22px; }
    .pob-modal h2 { font-size: 24px; }
    .pob-paso-etiqueta { display: none; }
    .pob-paso[data-estado="activo"] .pob-paso-etiqueta { display: inline; }
    .pob-stepper { gap: 8px; }
}
@media (max-width: 559px) {
    .pob-fila { grid-template-columns: 1fr; gap: 0; }
    .pob-grupo .pob-select { width: 128px; padding-left: 14px; padding-right: 36px; background-position: right 10px center; }
    .pob-prefijo { width: 112px; padding: 0 10px 0 12px; }
    .pob-chips { gap: 8px; }
    .pob-chip > span { padding: 0 6px; font-size: 15px; gap: 5px; }
    .pob-mascota-cabeza { flex-direction: column; align-items: stretch; gap: 0; }
    .pob-foto { margin: 0 auto 18px auto; }
    .pob-auth-pie .pob-tagline { font-size: 19px; }
    .pob-ayuda-campo { font-size: 13px; }
    .pob-opcion { padding: 18px 16px; gap: 14px; }
    .pob-opcion[data-sel="1"], .pob-opcion:has(input:checked) { padding: 17px 15px; }
    .pob-tarjeta-interruptor { padding: 16px; gap: 12px; }
    .pob-modal-pie { flex-direction: column; gap: 2px; }   /* «Cambiar correo · Contactar soporte» en una sola columna: sin el punto huérfano al final de una línea */
    .pob-modal-pie .pob-punto { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pob-body *, .pob-body *::before, .pob-body *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .pob-spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
}
