/* Estilos propios, acotados a .pet-app y .pet-public para no alterar el tema ni otras páginas. */
.pet-app, .pet-public { --pet-primary: #0b4f8a; --pet-primary-dark: #083a66; --pet-ink: #0f172a; --pet-muted: #475569; --pet-line: #cbd5e1; --pet-soft: #f1f5f9; --pet-ok: #166534; --pet-ok-bg: #dcfce7; --pet-wait: #854d0e; --pet-wait-bg: #fef3c7; --pet-bad: #991b1b; --pet-bad-bg: #fee2e2; --pet-info-bg: #dbeafe; color: var(--pet-ink); font-size: 16px; line-height: 1.55; box-sizing: border-box; }
.pet-app *, .pet-public * { box-sizing: border-box; }
.pet-app h2, .pet-app h3, .pet-app h4 { color: var(--pet-ink); line-height: 1.25; margin: 0 0 .6em; }
.pet-app h3 { font-size: 1.35rem; margin-top: .2em; }
.pet-app .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pet-app a { color: var(--pet-primary); text-underline-offset: 2px; }
.pet-app :focus-visible, .pet-public :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

.pet-header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 18px 20px; background: var(--pet-primary); color: #fff; border-radius: 10px 10px 0 0; }
.pet-header h2 { color: #fff; margin: 0; }
.pet-eyebrow { margin: 0 0 2px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.pet-header .pet-muted { color: #dbeafe; margin: 4px 0 0; }
.pet-nav { background: var(--pet-primary-dark); border-radius: 0 0 10px 10px; margin-bottom: 18px; }
.pet-nav ul, .pet-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.pet-nav a { display: block; padding: 12px 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.pet-nav a:hover { background: rgba(255,255,255,.14); }
.pet-nav a[aria-current="page"] { background: #fff; color: var(--pet-primary-dark); }
.pet-nav a:focus-visible { outline-color: #fff; outline-offset: -3px; }
.pet-tabs { margin: 8px 0 16px; border-bottom: 2px solid var(--pet-line); }
.pet-tabs a { display: block; padding: 8px 14px; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pet-tabs a[aria-current="page"] { border-bottom-color: var(--pet-primary); color: var(--pet-ink); }

.pet-main { padding: 4px 2px 24px; }
.pet-box { background: #fff; border: 1px solid var(--pet-line); border-radius: 10px; padding: 18px 20px; margin: 0 0 16px; }
.pet-login { max-width: 460px; margin: 0 auto; }
.pet-login label { display: block; font-weight: 600; margin-bottom: 4px; }
.pet-login input[type=text], .pet-login input[type=password] { width: 100%; padding: 10px; border: 1px solid #64748b; border-radius: 6px; font-size: 1rem; }
.pet-login .login-submit input { background: var(--pet-primary); color: #fff; border: 0; padding: 10px 20px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.pet-login p { margin: 0 0 12px; }
.pet-muted, .pet-help { color: var(--pet-muted); font-size: .9rem; }
.pet-help { margin: 4px 0 0; }
.pet-empty { padding: 18px; background: var(--pet-soft); border-radius: 8px; color: var(--pet-muted); }
.pet-status { padding: 12px 16px; background: var(--pet-soft); border-radius: 8px; margin-bottom: 16px; }

.pet-alert { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; border: 1px solid; }
.pet-alert ul { margin: 6px 0 0 18px; padding: 0; }
.pet-alert--success { background: var(--pet-ok-bg); border-color: #86efac; color: #14532d; }
.pet-alert--error { background: var(--pet-bad-bg); border-color: #fca5a5; color: #7f1d1d; }
.pet-alert--warn { background: var(--pet-wait-bg); border-color: #fcd34d; color: #713f12; }

.pet-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--pet-soft); color: var(--pet-ink); border: 1px solid var(--pet-line); }
.pet-badge--ok { background: var(--pet-ok-bg); color: var(--pet-ok); border-color: #86efac; }
.pet-badge--wait { background: var(--pet-wait-bg); color: var(--pet-wait); border-color: #fcd34d; }
.pet-badge--warn { background: #ffedd5; color: #9a3412; border-color: #fdba74; }
.pet-badge--bad { background: var(--pet-bad-bg); color: var(--pet-bad); border-color: #fca5a5; }
.pet-badge--draft { background: var(--pet-soft); color: var(--pet-muted); }
.pet-badge--demo { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }

.pet-form fieldset { border: 1px solid var(--pet-line); border-radius: 10px; padding: 14px 18px 8px; margin: 0 0 16px; background: #fff; }
.pet-form legend { font-weight: 700; padding: 0 8px; }
.pet-field { margin: 0 0 14px; }
.pet-field label, .pet-label { display: block; font-weight: 600; margin-bottom: 4px; }
.pet-req { color: #b91c1c; }
.pet-field input[type=text], .pet-field input[type=email], .pet-field input[type=url], .pet-field input[type=tel], .pet-field input[type=date], .pet-field input[type=time], .pet-field input[type=number], .pet-field input[type=password], .pet-field select, .pet-field textarea { width: 100%; max-width: 100%; padding: 9px 11px; border: 1px solid #64748b; border-radius: 6px; background: #fff; font: inherit; color: var(--pet-ink); }
.pet-field input[readonly] { background: var(--pet-soft); color: var(--pet-muted); }
.pet-field input[type=file] { max-width: 100%; }
.pet-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.pet-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; padding-bottom: 10px; }
.pet-checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.pet-current { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.pet-thumb { max-width: 220px; height: auto; border-radius: 6px; border: 1px solid var(--pet-line); }
.pet-gallery-edit { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.pet-gallery-edit img { width: 110px; height: auto; }
.pet-gallery-edit li { font-size: .85rem; }
.pet-calc { background: var(--pet-soft); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; }
.pet-calc output { display: block; padding: 9px 0; font-weight: 700; }

.pet-btn { display: inline-block; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--pet-primary); background: #fff; color: var(--pet-primary); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.pet-btn:hover { background: var(--pet-info-bg); }
.pet-btn--primary { background: var(--pet-primary); color: #fff; }
.pet-btn--primary:hover { background: var(--pet-primary-dark); }
.pet-btn--ghost { border-color: var(--pet-line); color: var(--pet-muted); }
.pet-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pet-link-btn { background: none; border: 0; padding: 0; color: #b91c1c; text-decoration: underline; cursor: pointer; font: inherit; }
.pet-inline { display: inline; margin: 0; }

.pet-table-wrap { overflow-x: auto; }
.pet-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pet-table th, .pet-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pet-line); vertical-align: top; }
.pet-table thead th { background: var(--pet-soft); }
.pet-table tbody th { font-weight: 600; }
.pet-actions { white-space: nowrap; }
.pet-actions a { margin-right: 12px; }
.pet-item { padding: 14px 0; border-bottom: 1px solid var(--pet-line); }
.pet-item h4 { margin-bottom: 2px; }
.pet-links { padding-left: 18px; }
.pet-dl dt { font-weight: 700; margin-top: 10px; }
.pet-dl dd { margin: 0; }
.pet-log { padding-left: 20px; }
.pet-note { color: var(--pet-muted); }

/* Parte pública (directorio y agenda) */
.pet-public .pet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pet-card { border: 1px solid var(--pet-line); border-radius: 10px; overflow: hidden; background: #fff; }
.pet-card__img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pet-card__body { padding: 14px 16px 18px; }
.pet-card__type { margin: 0 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--pet-muted); font-weight: 700; }
.pet-card h3 { margin: 0 0 8px; }
.pet-meta { list-style: none; padding: 0; margin: 8px 0; font-size: .92rem; }
.pet-gallery { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.pet-gallery img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.pet-contents { border-top: 1px solid var(--pet-line); margin-top: 12px; padding-top: 8px; }

@media (max-width: 640px) {
	.pet-nav ul { flex-direction: column; }
	.pet-header { padding: 14px; }
	.pet-actions { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .pet-app * { transition: none !important; } }
