.hg-card{border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.06);margin:14px 0;}
.hg-header{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;background:#fafafa;border-bottom:1px solid #eee;}
.hg-meta{display:flex;justify-content:space-between;gap:12px;padding:12px 16px;font-size:14px;color:#555;}
#hg-map{width:100%;}
.hg-paw-marker{background:transparent;border:0;}
.hg-login-box{max-width:560px;margin:30px auto;padding:34px;border:1px solid #ffd1cc;border-radius:22px;text-align:center;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.06);}
.hg-login-box h2,.hg-panel h2{margin:8px 0;color:#242424}.hg-login-box p{color:#666}.hg-login-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:18px}.hg-button{display:inline-block;border:0;border-radius:999px;background:#ff6b5f;color:#fff!important;padding:12px 22px;text-decoration:none;cursor:pointer;font-weight:700}.hg-button.secondary{background:#fff;color:#ff6b5f!important;border:1px solid #ff6b5f}.hg-paw-big{font-size:44px;line-height:1}.hg-panel{max-width:1120px;margin:0 auto 30px}.hg-panel-hero{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px;border-radius:24px;background:linear-gradient(135deg,#fff7f5,#fff);border:1px solid #ffd9d5;margin-bottom:16px}.hg-badge{display:inline-block;background:#ffe5e2;color:#e55348;border-radius:999px;padding:6px 12px;font-size:13px;font-weight:700}.hg-pet-summary{min-width:210px;background:#fff;border:1px solid #ffe0dc;border-radius:18px;padding:16px;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.05)}.hg-pet-summary span{display:block;color:#666;font-size:13px;margin-top:4px}.hg-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #eee;margin:16px 0}.hg-tabs button{border:0;background:#f7f7f7;padding:12px 16px;border-radius:12px 12px 0 0;cursor:pointer;font-weight:700;color:#333}.hg-tabs button.active{background:#ff6b5f;color:#fff}.hg-tab-content{display:none}.hg-tab-content.active{display:block}.hg-empty{padding:22px}.hg-form-card{padding:22px}.hg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.hg-form-card label{display:block;font-weight:700;color:#333;margin-bottom:12px}.hg-form-card input,.hg-form-card select,.hg-form-card textarea{width:100%;margin-top:6px;border:1px solid #ddd;border-radius:10px;padding:10px}.hg-notice{background:#ecfff3;border:1px solid #b7efc5;color:#216e39;padding:12px 16px;border-radius:12px;margin:12px 0}.hg-info-list{padding:22px}@media(max-width:760px){.hg-panel-hero{display:block}.hg-grid{grid-template-columns:1fr}.hg-meta,.hg-header{display:block}.hg-tabs button{flex:1 1 auto}}
.hg-safe-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px;align-items:start}.hg-safe-controls{background:#fff7f5;border:1px solid #ffe0dc;border-radius:16px;padding:16px}.hg-safe-controls label{display:block;margin-bottom:14px;font-weight:700}.hg-safe-controls input[type="number"]{width:100%;margin-top:6px;border:1px solid #ddd;border-radius:10px;padding:10px}.hg-help{font-size:13px;color:#666}.hg-error{background:#fff1f0;border:1px solid #ffccc7;color:#a8071a;padding:12px 16px;border-radius:12px;margin:12px 0}@media(max-width:760px){.hg-safe-layout{grid-template-columns:1fr}}

.hg-safe-center-marker { background: transparent; border: none; }
.hg-safe-center-dot { width: 22px; height: 22px; border-radius: 50%; background: #ff6b5f; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.hg-paw-marker{background:transparent!important;border:0!important;z-index:10000!important;}
.hg-paw-pin{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:3px solid #ff6b5f;box-shadow:0 4px 14px rgba(0,0,0,.25);font-size:25px;line-height:1;}
.hg-paw-pin span{display:block;transform:rotate(-15deg);}
.hg-zone-list{margin-top:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.hg-zone-chip{border:1px solid #ffd1cb;background:#fff7f5;border-radius:999px;padding:8px 12px;cursor:pointer;font-weight:700;color:#444}.hg-muted{color:#777;font-size:13px}.hg-mini-status{margin-top:12px;border-radius:12px;padding:10px 12px;font-weight:700;font-size:13px}.hg-mini-status.inside{background:#ecfff3;border:1px solid #b7efc5;color:#216e39}.hg-mini-status.outside{background:#fff1f0;border:1px solid #ffccc7;color:#a8071a}.hg-history-table-wrap{margin-top:14px;overflow:auto}.hg-history-table{width:100%;border-collapse:collapse;font-size:14px}.hg-history-table th,.hg-history-table td{padding:10px;border-bottom:1px solid #eee;text-align:left}.hg-history-table th{background:#fafafa;font-weight:700}.hg-safe-controls input[type="text"]{width:100%;margin-top:6px;border:1px solid #ddd;border-radius:10px;padding:10px}.hg-safe-controls .hg-button.secondary{margin-top:10px;text-align:center}
.hg-zone-chip.active{background:#ff6b61;color:#fff;border-color:#ff6b61;box-shadow:0 6px 18px rgba(255,107,97,.22)}
#hg-save-safe-zone:disabled{opacity:.65;cursor:wait}
.hg-emergency-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.hg-qr-box{background:#fff7f5;border:1px solid #ffe0dc;border-radius:18px;padding:18px;text-align:center}.hg-qr-box img{display:block;max-width:100%;height:auto;margin:14px auto;border-radius:14px;background:#fff;padding:10px;border:1px solid #eee}.hg-public-url input{font-size:12px;color:#666;background:#fff}.hg-checkline{display:flex!important;align-items:center;gap:8px;margin-top:28px}.hg-checkline input{width:auto!important;margin:0!important}.hg-public-profile-body{background:#fff7f5;margin:0;font-family:Arial,sans-serif;color:#242424}.hg-public-profile{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.hg-public-card{width:min(720px,100%);background:#fff;border:1px solid #ffd1cc;border-radius:28px;box-shadow:0 14px 40px rgba(0,0,0,.08);overflow:hidden}.hg-public-header{text-align:center;background:linear-gradient(135deg,#ff6b5f,#ff8378);color:#fff;padding:30px 22px}.hg-public-header h1{margin:8px 0 4px;font-size:34px;color:#fff}.hg-public-header p,.hg-public-header span{margin:0;color:#fff}.hg-public-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:22px}.hg-public-grid div,.hg-public-note,.hg-public-details{background:#fff7f5;border:1px solid #ffe0dc;border-radius:16px;padding:14px}.hg-public-grid strong{display:block;color:#666;font-size:13px}.hg-public-grid span{display:block;font-weight:700;margin-top:4px}.hg-public-note{margin:0 22px 18px;line-height:1.5}.hg-public-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;padding:0 22px 18px}.hg-public-details{margin:0 22px 18px}.hg-public-details p{margin:6px 0}.hg-public-footer{text-align:center;color:#666;padding:0 22px 24px}@media(max-width:760px){.hg-emergency-layout{grid-template-columns:1fr}.hg-public-grid{grid-template-columns:1fr}.hg-public-profile{padding:12px}.hg-public-header h1{font-size:28px}}

/* v0.5.8 - Ficha pública inteligente */
.hg-lost-mode { background:#fff1ef; border-radius:12px; padding:10px 12px; }
.hg-scan-log { margin-top:22px; }
.hg-scan-log h4 { margin:0 0 12px; }
.hg-public-profile-body { background:#f7f4f2; margin:0; font-family:Arial, Helvetica, sans-serif; color:#2b2b2b; }
.hg-public-profile { max-width:760px; margin:0 auto; padding:24px 14px; }
.hg-public-card { background:#fff; border:1px solid #ffd1cb; border-radius:24px; overflow:hidden; box-shadow:0 12px 34px rgba(0,0,0,.07); }
.hg-public-card.is-lost { border-color:#ff6b61; }
.hg-public-header { background:linear-gradient(135deg,#ff6b61,#ff8f86); color:#fff; text-align:center; padding:30px 22px; }
.hg-public-header h1 { color:#fff; margin:8px 0 4px; font-size:34px; }
.hg-public-header p { margin:0; opacity:.95; }
.hg-lost-banner { margin:18px auto 0; max-width:520px; background:#fff; color:#d82218; border-radius:16px; padding:12px 16px; font-weight:700; }
.hg-public-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; padding:22px; }
.hg-public-grid div { background:#fff7f5; border:1px solid #ffd9d4; border-radius:14px; padding:12px; }
.hg-public-grid strong { display:block; color:#666; font-size:13px; margin-bottom:4px; }
.hg-public-grid span { font-weight:700; }
.hg-public-section { margin:0 22px 22px; padding:18px; border:1px solid #ffd1cb; border-radius:18px; background:#fffaf9; }
.hg-public-section h2, .hg-found-box h2 { margin:0 0 12px; font-size:20px; }
.hg-gps-status { display:inline-flex; margin:0 0 12px; padding:8px 12px; border-radius:999px; font-weight:700; font-size:14px; }
.hg-gps-status.online { background:#e9fff0; color:#117c2f; }
.hg-gps-status.offline { background:#fff1ef; color:#b5261e; }
#hg-public-map { height:280px; border-radius:16px; overflow:hidden; margin:8px 0 12px; border:1px solid #eee; }
.hg-public-location-meta { display:flex; gap:10px; flex-wrap:wrap; color:#555; margin:0 0 14px; font-size:14px; }
.hg-public-note { margin:0 22px 22px; padding:16px; border-left:5px solid #ff6b61; background:#fff7f5; border-radius:14px; line-height:1.6; }
.hg-public-actions { padding:0 22px 22px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.hg-found-box { margin:0 22px 22px; padding:18px; border:1px solid #ffd1cb; border-radius:18px; background:#fff; }
.hg-found-box form label { display:block; font-weight:700; margin:0 0 12px; }
.hg-found-box input, .hg-found-box textarea { width:100%; border:1px solid #ddd; border-radius:12px; padding:12px; margin-top:6px; box-sizing:border-box; }
.hg-public-details { margin:0 22px 22px; color:#444; }
.hg-public-footer { background:#fafafa; border-top:1px solid #eee; padding:16px 22px; text-align:center; color:#777; margin:0; }
@media (max-width:700px){ .hg-public-grid{grid-template-columns:repeat(2,1fr);} .hg-public-header h1{font-size:28px;} }
.hg-button.danger{background:#fff;color:#ff6b5f!important;border:1px solid #ffb3ad;margin-top:10px;box-shadow:none}
.hg-button.danger:hover{background:#fff5f4}
.hg-button.danger:disabled{opacity:.55;cursor:not-allowed}


/* v0.6.0 - Cabecera con acciones rápidas y cerrar sesión */
.hg-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.hg-mini-link{display:inline-flex;align-items:center;gap:6px;border:1px solid #ffd1cb;background:#fff;color:#444!important;border-radius:999px;padding:8px 12px;text-decoration:none;font-size:13px;font-weight:700;cursor:pointer;line-height:1.2}
button.hg-mini-link{font-family:inherit}
.hg-mini-link:hover{background:#fff5f4;color:#ff6b5f!important}
.hg-logout-button{display:inline-flex;align-items:center;justify-content:center;margin-top:12px;border:1px solid #ff6b5f;background:#ff6b5f;color:#fff!important;border-radius:999px;padding:10px 14px;text-decoration:none;font-size:13px;font-weight:700}
.hg-logout-button:hover{filter:brightness(.96);color:#fff!important}
@media(max-width:760px){.hg-quick-actions{justify-content:flex-start}.hg-mini-link{flex:1 1 auto;justify-content:center}.hg-logout-button{width:100%}}

/* Huellarte Guardian v0.6.1 - navegación única tipo app */
.hg-app-nav{display:grid;grid-template-columns:repeat(7,minmax(92px,1fr));gap:10px;margin-top:18px;max-width:850px}
.hg-nav-card{border:1px solid #ffd1cb;background:#fff;color:#2b2b2b;border-radius:16px;padding:12px 10px;cursor:pointer;font-family:inherit;font-weight:800;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.04);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease;min-height:78px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;line-height:1.15}
.hg-nav-card span{font-size:22px;line-height:1}.hg-nav-card strong{font-size:13px}.hg-nav-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(255,107,95,.16);border-color:#ff8b82}.hg-nav-card.active{background:#ff6b5f;color:#fff;border-color:#ff6b5f;box-shadow:0 12px 28px rgba(255,107,95,.24)}
.hg-panel-hero{margin-bottom:20px}.hg-tab-content{margin-top:0}.hg-pet-summary .hg-logout-button{margin-top:16px}
@media(max-width:980px){.hg-app-nav{grid-template-columns:repeat(4,minmax(92px,1fr));max-width:100%}.hg-panel-hero{align-items:flex-start}}
@media(max-width:760px){.hg-app-nav{display:flex;overflow-x:auto;gap:10px;padding-bottom:8px;margin-right:-8px;scroll-snap-type:x mandatory}.hg-nav-card{min-width:112px;scroll-snap-align:start}.hg-panel-hero{padding:18px}.hg-pet-summary{margin-top:18px}.hg-pet-summary .hg-logout-button{width:100%}}

/* v0.6.2 - Guardian IA */
.hg-app-nav{grid-template-columns:repeat(8,minmax(92px,1fr));max-width:960px}
.hg-ai-card{overflow:hidden}.hg-ai-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.hg-ai-header h3{margin:8px 0 6px}.hg-ai-header p{margin:0;color:#555}.hg-ai-status{border-radius:999px;padding:10px 14px;font-weight:800;white-space:nowrap}.hg-ai-status.active{background:#ff6b5f;color:#fff}.hg-ai-status.standby{background:#fff7e6;color:#9a6b00;border:1px solid #ffe0a3}.hg-ai-warning{background:#fff7e6;border:1px solid #ffe0a3;border-radius:16px;padding:14px 16px;margin:14px 0;color:#5c4300}.hg-ai-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.hg-ai-metric{background:#fff7f5;border:1px solid #ffd1cb;border-radius:16px;padding:14px}.hg-ai-metric strong{display:block;color:#666;font-size:13px;margin-bottom:6px}.hg-ai-metric span{font-weight:800;color:#222}.hg-ai-recommendations{background:#fff;border:1px solid #eee;border-radius:18px;padding:18px;margin-top:16px}.hg-ai-recommendations h4{margin:0 0 12px}.hg-ai-recommendations li{margin:0 0 10px;line-height:1.5}.hg-ai-card.is-active{border-color:#ff6b5f;box-shadow:0 12px 30px rgba(255,107,95,.10)}
@media(max-width:980px){.hg-app-nav{grid-template-columns:repeat(4,minmax(92px,1fr));max-width:100%}.hg-ai-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hg-ai-header{display:block}.hg-ai-status{display:inline-flex;margin-top:12px}.hg-ai-grid{grid-template-columns:1fr}}

/* v0.6.3 - Guardian IA Motor de análisis */
.hg-ai-clarity{background:#eef8ff;border:1px solid #bee5ff;color:#214a63;border-radius:16px;padding:14px 16px;margin:14px 0;line-height:1.55}
.hg-ai-grid-wide{grid-template-columns:repeat(4,minmax(0,1fr))}
.hg-ai-metric small{display:block;margin-top:5px;color:#777;font-size:12px;font-weight:600;line-height:1.35}
.hg-ai-plan{margin:16px 0;background:#fff7f5;border:1px solid #ffd1cb;border-radius:16px;padding:0;overflow:hidden}
.hg-ai-plan summary{cursor:pointer;font-weight:800;padding:14px 16px;list-style:none;color:#333}
.hg-ai-plan summary::-webkit-details-marker{display:none}
.hg-ai-plan summary:after{content:'+';float:right;font-size:18px;color:#ff6b5f}
.hg-ai-plan[open] summary:after{content:'−'}
.hg-ai-plan div{padding:0 18px 16px}.hg-ai-plan p{margin-top:0}
@media(max-width:1100px){.hg-ai-grid-wide{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.hg-ai-grid-wide{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.hg-ai-grid-wide{grid-template-columns:1fr}}

/* v0.6.4 - Guardian IA mapa de calor y rutas frecuentes */
.hg-ai-patterns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);gap:16px;margin:18px 0}
.hg-ai-pattern-map-wrap,.hg-ai-pattern-box{background:#fff;border:1px solid #eee;border-radius:18px;padding:18px}
.hg-ai-pattern-map-wrap h4,.hg-ai-pattern-box h5{margin:0 0 8px}.hg-ai-pattern-map-wrap p{margin:0 0 14px;color:#555;line-height:1.5}
.hg-ai-heatmap{height:360px;border:1px solid #eee;border-radius:16px;overflow:hidden;background:#fff7f5}
.hg-ai-pattern-side{display:grid;gap:14px}.hg-ai-pattern-box ol{margin:0;padding-left:20px}.hg-ai-pattern-box li{margin:0 0 10px;line-height:1.35}.hg-ai-pattern-box span{color:#666;font-size:13px}.hg-empty-map{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:#666;background:#fff7f5}
@media(max-width:980px){.hg-ai-patterns{grid-template-columns:1fr}.hg-ai-heatmap{height:320px}}
@media(max-width:760px){.hg-ai-heatmap{height:280px}.hg-ai-pattern-map-wrap,.hg-ai-pattern-box{padding:14px}}
.hg-ai-plan-final{background:#fff;border:1px solid #eee;border-radius:18px;padding:18px;margin-top:16px}
.hg-ai-plan-final h4{margin:0 0 10px}
.hg-ai-plan-intro{background:#f4fbff;border:1px solid #bfe6ff;border-radius:14px;padding:12px 14px;margin:0 0 14px;color:#23506a;line-height:1.5}
.hg-ai-summary-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0 18px}
.hg-ai-summary-strip div{background:#fff7f5;border:1px solid #ffd1cb;border-radius:14px;padding:12px}
.hg-ai-summary-strip strong{display:block;font-size:12px;color:#666;margin-bottom:5px}
.hg-ai-summary-strip span{font-weight:800;color:#222}
.hg-ai-final-steps{margin:0 0 16px 20px;padding:0}
.hg-ai-final-steps li{margin:0 0 12px;line-height:1.55}
.hg-ai-actions{margin-top:18px}
@media(max-width:900px){.hg-ai-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.hg-ai-summary-strip{grid-template-columns:1fr}}

/* Guardian IA accordion plan */
.hg-ai-plan-accordion{display:flex;flex-direction:column;gap:10px;margin:0 0 18px}
.hg-ai-plan-accordion details{background:#fff;border:1px solid #ffd1cb;border-radius:14px;overflow:hidden}
.hg-ai-plan-accordion summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;padding:14px 16px;font-weight:700;color:#222}
.hg-ai-plan-accordion summary::-webkit-details-marker{display:none}
.hg-ai-plan-accordion summary:after{content:'+';margin-left:auto;color:#ff6b5f;font-weight:900;font-size:18px;line-height:1}
.hg-ai-plan-accordion details[open] summary:after{content:'−'}
.hg-ai-step-number{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:999px;background:#ff6b5f;color:#fff;font-weight:800;font-size:13px;flex:0 0 auto}
.hg-ai-step-body{padding:0 16px 16px 54px;color:#555;line-height:1.55}
@media(max-width:600px){.hg-ai-plan-accordion summary{padding:13px 12px;align-items:flex-start}.hg-ai-step-number{min-width:26px;height:26px}.hg-ai-step-body{padding:0 12px 14px 48px}.hg-ai-plan-intro{font-size:14px}}

/* v0.6.8 - Control de funciones por pack Guardian */
.hg-pack-pill{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:8px 12px;border:1px solid #ffd1cb;background:#fff7f5;border-radius:999px;color:#555;font-size:13px;font-weight:700}
.hg-pack-pill strong{color:#ff6b5f}
.hg-nav-card.is-locked{opacity:.58;cursor:not-allowed;background:#fff;color:#777;border-style:dashed;box-shadow:none;transform:none!important}
.hg-nav-card.is-locked em{font-style:normal;font-size:13px;margin-top:2px;color:#ff6b5f}
.hg-locked-feature{text-align:center;padding:34px 22px}
.hg-locked-feature .hg-lock-icon{font-size:38px;margin-bottom:10px}
.hg-locked-feature h3{margin:0 0 10px}.hg-locked-feature p{max-width:560px;margin:0 auto 18px;color:#555;line-height:1.55}
.hg-upgrade-note{margin:10px 0;padding:12px 14px;border:1px dashed #ffc0bb;background:#fff7f5;color:#7a3b35;border-radius:14px;font-size:13px;font-weight:700;line-height:1.45}
@media(max-width:760px){.hg-pack-pill{font-size:12px}.hg-locked-feature{padding:24px 16px}}

/* v0.6.9 - Modal de actualización para funciones bloqueadas */
.hg-nav-card.is-locked{opacity:1;cursor:pointer;background:#fff;color:#444;border-style:dashed;position:relative}
.hg-nav-card.is-locked:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(255,107,95,.16)}
.hg-nav-card.is-locked small{display:block;font-size:10px;color:#ff6b5f;margin-top:2px;font-weight:800}
.hg-upgrade-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:18px}
.hg-upgrade-modal.is-open{display:flex}
.hg-upgrade-backdrop{position:absolute;inset:0;background:rgba(23,17,17,.45);backdrop-filter:blur(3px)}
.hg-upgrade-box{position:relative;width:min(460px,100%);background:#fff;border:1px solid #ffd1cb;border-radius:26px;padding:30px 24px;text-align:center;box-shadow:0 24px 70px rgba(0,0,0,.22)}
.hg-upgrade-close{position:absolute;top:12px;right:14px;border:0;background:#fff2ef;color:#ff6b5f;border-radius:999px;width:34px;height:34px;font-size:22px;line-height:1;cursor:pointer}
.hg-upgrade-box .hg-lock-icon{font-size:42px;margin-bottom:8px}
.hg-upgrade-box h3{margin:0 0 8px;font-size:24px;color:#222}
.hg-upgrade-box p{margin:0 auto 16px;color:#555;line-height:1.5;max-width:360px}
.hg-upgrade-list{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:8px;text-align:left;color:#444}
.hg-upgrade-list li{background:#fff7f5;border:1px solid #ffe1dd;border-radius:14px;padding:10px 12px}
.hg-upgrade-list li:before{content:'✓';font-weight:900;color:#ff6b5f;margin-right:8px}
@media(max-width:520px){.hg-upgrade-box{border-radius:20px;padding:24px 16px}.hg-upgrade-box h3{font-size:21px}.hg-upgrade-list li{font-size:14px}}
.hg-nav-card.is-locked:hover{transform:translateY(-2px)!important}

/* Subscription status notices */
.hg-notice{margin:16px 0;padding:14px 16px;border-radius:14px;border:1px solid #ffd1cb;background:#fff7f5;color:#444;line-height:1.45}
.hg-notice a{font-weight:800;color:#ff6b5f;text-decoration:underline}
.hg-notice.success{border-color:#a7f3c1;background:#eafff0;color:#0a6b2d}
.hg-notice.warning{border-color:#ffd98a;background:#fff8e5;color:#7a4b00}
.hg-notice.error{border-color:#ffb4ad;background:#fff1ef;color:#8a1f15}
.hg-notice.info{border-color:#b7dbff;background:#eef8ff;color:#064b76}


/* v1.0.27 - Controles Family alineados y actualización inmediata del selector */
.hg-family-pet-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin-top:10px}
.hg-family-pet-selector{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:0}
.hg-family-pet-selector label{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0}
.hg-family-pet-selector select{min-height:42px}
.hg-delete-pet-form{margin:0}
.hg-delete-pet-form .hg-button{margin:0}
@media(max-width:760px){
  .hg-family-pet-controls{align-items:stretch;gap:8px}
  .hg-family-pet-selector{width:100%;align-items:stretch}
  .hg-family-pet-selector label{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .hg-family-pet-selector select{width:100%;min-width:0}
  .hg-family-pet-selector .hg-button,.hg-delete-pet-form,.hg-delete-pet-form .hg-button{width:100%}
  .hg-family-pet-selector .hg-button,.hg-delete-pet-form .hg-button{text-align:center;justify-content:center}
}
@media(max-width:480px){
  .hg-family-pet-selector label{grid-template-columns:1fr}
}

.hg-gps-metrics{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:10px;padding:14px 16px;background:#fff;border-top:1px solid #eee}.hg-gps-metrics>div{padding:10px 12px;border:1px solid #f0e4e2;border-radius:12px;background:#fffaf9}.hg-gps-metrics small{display:block;color:#777;font-size:12px;margin-bottom:4px}.hg-gps-metrics strong{display:block;color:#332b2a;font-size:14px;overflow-wrap:anywhere}.hg-gps-metric-wide{grid-column:span 5}@media(max-width:760px){.hg-gps-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hg-gps-metric-wide{grid-column:span 2}}

/* v1.9.0 - Módulo de salud basado en actividad GPS */
.hg-health-module{display:grid;gap:16px}.hg-health-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff8f6,#f4fbff)}.hg-health-hero h3{margin:5px 0 8px}.hg-health-hero p{margin:0;max-width:720px;color:#555;line-height:1.55}.hg-health-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#ff6b5f}.hg-health-score{min-width:132px;height:132px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:10px solid #e8eef2;background:#fff;text-align:center}.hg-health-score span{font-size:28px;font-weight:900}.hg-health-score small{max-width:90px;color:#666;line-height:1.2}.hg-health-score.low{border-color:#ffd08a}.hg-health-score.balanced{border-color:#9be3b0}.hg-health-score.high{border-color:#ffb4ad}.hg-health-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.hg-health-metrics>div{background:#fff;border:1px solid #f0dfdc;border-radius:16px;padding:15px}.hg-health-metrics span{font-size:21px;float:left;margin-right:9px}.hg-health-metrics small{display:block;color:#777}.hg-health-metrics strong{display:block;margin-top:4px;font-size:18px}.hg-health-progress-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.hg-health-status{padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#eef3f6}.hg-health-status.low{background:#fff4df;color:#805000}.hg-health-status.balanced{background:#eaffef;color:#176b32}.hg-health-status.high{background:#fff0ee;color:#9a2d22}.hg-health-progress{height:13px;background:#edf1f3;border-radius:999px;overflow:hidden;margin:13px 0}.hg-health-progress i{display:block;height:100%;background:linear-gradient(90deg,#ff8a7f,#ff5e55);border-radius:999px}.hg-health-progress-card p{margin:0;color:#555;line-height:1.55}.hg-health-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.7fr);gap:16px}.hg-health-layout h4{margin-top:0}.hg-health-chart{height:220px;display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end;padding-top:14px}.hg-health-day{text-align:center;min-width:0}.hg-health-bar-wrap{height:150px;border-radius:9px;background:#f4f1f0;display:flex;align-items:flex-end;overflow:hidden;margin-bottom:7px}.hg-health-bar-wrap i{display:block;width:100%;background:linear-gradient(180deg,#ff8a7f,#ff6258);border-radius:8px 8px 0 0}.hg-health-day strong{display:block;font-size:12px}.hg-health-day small{display:block;color:#777;font-size:11px;margin-top:3px}.hg-health-quality{font-size:12px;color:#777;margin:14px 0 0}.hg-health-guide{display:grid;gap:11px}.hg-health-advice{display:flex;gap:11px;padding:11px;border:1px solid #f1e4e1;border-radius:14px;background:#fffaf9}.hg-health-advice>span{font-size:23px}.hg-health-advice strong{display:block}.hg-health-advice p{margin:4px 0 0;color:#666;font-size:13px;line-height:1.45}.hg-health-disclaimer{padding:15px 17px;border:1px solid #b9dfff;background:#eef8ff;color:#184d6b;border-radius:14px;line-height:1.55}.hg-health-disclaimer strong{display:block;margin-bottom:3px}@media(max-width:900px){.hg-health-layout{grid-template-columns:1fr}.hg-health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.hg-health-hero{align-items:flex-start;flex-direction:column}.hg-health-score{width:104px;height:104px;min-width:104px;border-width:8px}.hg-health-metrics{grid-template-columns:1fr 1fr}.hg-health-chart{gap:5px}.hg-health-bar-wrap{height:120px}.hg-health-day strong{font-size:10px}}
.hg-health-goal-metric{position:relative}.hg-health-edit-goal{margin-top:7px;padding:4px 10px;border:1px solid #ff9d95;border-radius:999px;background:#fff;color:#d64f45;font-size:12px;font-weight:700;cursor:pointer}.hg-paw-icon{font-size:24px!important;line-height:1}.hg-health-save-notice{padding:12px 15px;border-radius:12px;font-weight:700}.hg-health-save-notice.success{background:#eaffef;color:#176b32;border:1px solid #a9dfb8}.hg-health-save-notice.error{background:#fff0ee;color:#9a2d22;border:1px solid #ffc0ba}.hg-health-goal-editor{display:grid;gap:14px}.hg-health-goal-editor[hidden]{display:none}.hg-health-goal-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.hg-health-goal-editor-head h4{margin:0 0 5px}.hg-health-goal-editor-head p{margin:0;color:#666}.hg-health-goal-badge{padding:7px 11px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.hg-health-goal-badge.good{background:#eaffef;color:#176b32}.hg-health-goal-badge.warning{background:#fff4df;color:#805000}.hg-health-goal-badge.danger{background:#fff0ee;color:#9a2d22}.hg-health-goal-form{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.4fr) auto auto;gap:12px;align-items:end}.hg-health-goal-form label{display:grid;gap:6px;font-weight:700}.hg-health-goal-input{display:flex;align-items:center;border:1px solid #e7d8d5;border-radius:12px;background:#fff;overflow:hidden}.hg-health-goal-input input{width:100%;border:0!important;box-shadow:none!important;padding:11px 12px!important;background:transparent!important}.hg-health-goal-input b{padding:0 12px;color:#666}.hg-health-recommendation{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:#f7fbff;border:1px solid #d7eaf8}.hg-health-recommendation span{font-size:12px;color:#44738e}.hg-health-recommendation strong{font-size:17px}.hg-health-recommendation small{color:#666;line-height:1.35}.hg-btn-light{background:#fff!important;color:#d64f45!important;border:1px solid #ff9d95!important}.hg-health-goal-warning{padding:13px 15px;border-radius:12px}.hg-health-goal-warning p{margin:5px 0 0;line-height:1.5}.hg-health-goal-warning.warning{background:#fff9e9;border:1px solid #f2d48b;color:#765200}.hg-health-goal-warning.danger{background:#fff1ef;border:1px solid #ffb9b2;color:#8d2d24}.hg-health-weekly p{margin:0;color:#555;line-height:1.5}.hg-health-score span{line-height:1}.hg-health-score small{margin-top:5px}.hg-health-score.neutral{border-color:#e8eef2}
@media(max-width:1050px){.hg-health-goal-form{grid-template-columns:1fr 1fr}.hg-health-goal-form .hg-btn{width:100%}}
@media(max-width:650px){.hg-health-goal-editor-head{flex-direction:column}.hg-health-goal-form{grid-template-columns:1fr}.hg-health-goal-badge{white-space:normal}.hg-health-metrics>div{padding:13px}.hg-health-metrics strong{font-size:16px}}

/* Salud personalizada v1.9.2 */
.hg-health-profile-fields{margin:20px 0;padding:18px;border:1px solid #f1d3cf;border-radius:16px;background:#fffafa}
.hg-health-profile-fields legend{padding:0 8px;font-weight:700;color:#3c3540}
.hg-health-condition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 16px}
.hg-health-check{display:flex!important;align-items:flex-start;gap:8px;padding:10px 12px;border:1px solid #f0dedb;border-radius:12px;background:#fff;font-weight:500!important}
.hg-health-check input{width:auto!important;margin-top:3px}
.hg-health-profile-summary{margin:16px 0}
.hg-health-profile-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.hg-health-profile-head h4{margin:4px 0 0}
.hg-health-confidence{text-align:right;padding:10px 14px;border-radius:14px;background:#f1f8f5;min-width:150px}
.hg-health-confidence strong,.hg-health-confidence small{display:block}
.hg-health-confidence small{margin-top:3px;color:#6b6b73}
.hg-health-profile-chips{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.hg-health-profile-chips span{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border:1px solid #eee0dd;border-radius:12px;background:#fff}
.hg-health-profile-chips small{color:#777;font-size:12px}
.hg-health-profile-summary>p{margin:12px 0}
@media(max-width:700px){.hg-health-condition-grid{grid-template-columns:1fr}.hg-health-profile-head{flex-direction:column}.hg-health-confidence{text-align:left;width:100%}}

/* Coach de Salud 1.10 */
.hg-health-coach{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;border:1px solid #cfe9da!important;background:linear-gradient(135deg,#f4fff8,#fff9f7);margin:18px 0}
.hg-health-coach-icon{width:58px;height:58px;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:30px;background:#e6f8ed}
.hg-health-coach-main h4{margin:3px 0 7px;font-size:20px}.hg-health-coach-main p{margin:0 0 10px}
.hg-health-coach-reasons{display:flex;flex-wrap:wrap;gap:7px}.hg-health-coach-reasons span{font-size:12px;padding:6px 9px;border-radius:999px;background:#fff;border:1px solid #e2e8e5}
.hg-health-coach-target{text-align:center;min-width:135px;padding:14px;border-radius:18px;background:#fff;border:1px solid #dbece2}.hg-health-coach-target small,.hg-health-coach-target em{display:block}.hg-health-coach-target strong{display:block;font-size:25px;color:#126b42}.hg-health-coach-target em{font-size:11px;font-style:normal;color:#6d7771}
@media(max-width:720px){.hg-health-coach{grid-template-columns:auto 1fr}.hg-health-coach-target{grid-column:1/-1}.hg-health-coach-reasons{display:grid}}

/* v2.0.1 - Selector de idioma alineado a la derecha */
.hg-panel-hero > div:first-child{flex:1;min-width:0}
.hg-language-selector{float:right;display:inline-flex;align-items:center;margin:0 0 12px 18px}
.hg-language-selector label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;white-space:nowrap}
.hg-language-selector select{padding:7px 30px 7px 10px;border:1px solid #f1c9c4;border-radius:8px;background:#fff;min-width:132px}
@media(max-width:760px){.hg-language-selector{float:none;display:flex;width:100%;justify-content:flex-end;margin:0 0 12px}.hg-language-selector label{width:auto}.hg-language-selector select{min-width:140px}}

/* v2.3.5 - Cupones personales vinculados al email de WooCommerce */
.hg-user-coupons{margin:16px 0;padding:20px;border:1px solid #ffd6d1;border-radius:20px;background:linear-gradient(135deg,#fff8f6,#fff);box-shadow:0 8px 24px rgba(0,0,0,.04)}
.hg-user-coupons-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}.hg-user-coupons-icon{width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#ffe8e4;font-size:23px}.hg-user-coupons-kicker{display:block;color:#d9574d;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.hg-user-coupons-head h3{margin:2px 0 0;font-size:19px;color:#2b2b2b}.hg-user-coupons-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hg-user-coupon{display:flex;justify-content:space-between;gap:18px;min-width:0;padding:16px;border:1px dashed #ffaaa2;border-radius:16px;background:#fff}.hg-user-coupon-main{min-width:0}.hg-user-coupon-label{display:block;color:#777;font-size:12px;font-weight:700}.hg-user-coupon-code{display:block;margin:4px 0 5px;color:#c7473e;font-size:21px;line-height:1.2;letter-spacing:.04em;overflow-wrap:anywhere}.hg-user-coupon-benefit{display:block;color:#333;font-size:14px;font-weight:800}.hg-user-coupon-meta{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:145px;font-size:12px;color:#666}.hg-user-coupon-meta span{display:block;line-height:1.35}.hg-user-coupon-meta b{display:block;color:#444;font-size:11px}
@media(max-width:760px){.hg-user-coupons{padding:15px;border-radius:17px}.hg-user-coupons-grid{grid-template-columns:1fr}.hg-user-coupon{display:block;padding:15px}.hg-user-coupon-code{font-size:20px}.hg-user-coupon-meta{min-width:0;margin-top:12px;padding-top:11px;border-top:1px solid #f3e4e2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}}
@media(max-width:480px){.hg-user-coupons-head{align-items:flex-start}.hg-user-coupons-head h3{font-size:17px}.hg-user-coupon-meta{grid-template-columns:1fr}.hg-user-coupon-code{font-size:19px}}
