:root{--app-accent:#d7a64b;--app-accent-soft:#fff5df;--app-green:#244d3a;--app-surface:#f8faf6;--app-shadow:0 10px 30px rgba(31,53,42,.08)}
body{background:linear-gradient(145deg,#f3f5ef 0,#e9eee6 100%);min-height:100vh}.card,.banner{box-shadow:var(--app-shadow);border-color:#e1e7dd}.card{border-radius:20px}.banner{border-radius:20px;background:linear-gradient(135deg,#e3ecdc,#f7f7ed)}
aside{background:linear-gradient(180deg,#1c3e2e,#284d39);padding-top:26px}aside .foot{opacity:.55}.brand-logo{display:block;width:100%;height:62px;object-fit:cover;object-position:center;border-radius:12px;box-shadow:0 5px 16px rgba(0,0,0,.16)}.mobile-brand-logo{display:none}nav button{border-radius:13px;min-height:46px;display:flex;align-items:center;gap:10px}nav button.active{background:rgba(255,255,255,.14);box-shadow:inset 3px 0 0 var(--app-accent)}
header>button{border-radius:999px;box-shadow:0 6px 16px rgba(36,77,58,.16)}.quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 22px}.quick-action{display:flex;align-items:center;justify-content:flex-start;gap:10px;background:white;color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 5px 18px rgba(31,53,42,.06)}.quick-action:hover{background:#f8fbf5}.quick-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:var(--app-accent-soft);font-size:18px;flex:none}
.welcome-strip{margin-top:22px;background:linear-gradient(125deg,#284e3a,#3d674d);color:white;border:0}.welcome-strip small{color:#dce9dd}.welcome-strip .tag{background:rgba(255,255,255,.15);color:white}.welcome-strip button.secondary{background:white;color:var(--app-green)}
.compact-stats.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:14px 0 20px}.compact-stats .card{padding:16px;margin:0}.compact-stats .stat b{font-size:26px;margin-top:6px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 12px}.section-heading h2{margin:0}.owned-species-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.species-tile{position:relative;overflow:hidden;margin:0}.species-tile:before{content:'';position:absolute;inset:0 auto 0 0;width:5px;background:var(--app-accent)}.species-tile h3{margin:4px 0 5px}.species-tile .species-summary{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#657462;font-size:13px;line-height:1.55}
.species-search-hero{padding:20px;margin:24px 0 14px;background:white}.species-search-line{display:flex;gap:10px;align-items:end}.species-search-line label{flex:1;margin:0}.advanced-filters{margin:12px 0 0;border-top:1px solid var(--line)}.advanced-filters>summary{font-size:13px;color:#60725f}.catalog-prompt{grid-column:1/-1;background:rgba(255,255,255,.6);border:1px dashed #cfd8c9;border-radius:18px;padding:32px;text-align:center;color:#687866}
.wizard-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:14px 0 18px}.wizard-step{padding:9px 6px;border-radius:12px;background:#eef2e9;color:#687866;text-align:center;font-size:12px}.wizard-step.active{background:var(--app-green);color:#fff}.wizard-step.done{background:#dfead9;color:#315c45}.species-editor-section>summary{display:flex;align-items:center;justify-content:space-between}.species-editor-section>summary:after{content:'Abrir';font-size:11px;color:#70806d;font-weight:500}.species-editor-section[open]>summary:after{content:'Ocultar'}.editable-missing{position:relative}.editable-missing:before{content:'Completar';float:right;margin-top:-2px;padding:2px 7px;border-radius:999px;background:#fff1cf;color:#81591d;font-size:10px}
.registration-success{text-align:center;padding:8px}.success-eye{width:64px;height:64px;margin:4px auto 16px;display:block}.registration-success h2{margin-bottom:6px}.registration-success .actions{justify-content:center;margin-top:22px}
.species-registration-owned{background:#edf6f1;color:#176c52;border-color:#94c5ad;box-shadow:none}.catalog-registration-error{margin:10px 0 0}
.photo-editor{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;margin:15px 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f7f9f4}.photo-preview{width:84px;height:84px;border-radius:18px;object-fit:cover;background:#e8ede4;display:grid;place-items:center;color:#71806e;font-size:11px;text-align:center}.animal-photo{width:100%;height:220px;object-fit:cover;border-radius:16px;margin-bottom:15px}.technical-source{margin-top:24px;padding-top:8px;border-top:1px solid var(--line)}.technical-source>summary{color:#71806e;font-size:13px}.technical-source>h3{display:none}
.animal-species-finder{grid-column:1/-1;margin:2px 0 14px;padding:14px;border:1px solid #dce4d7;border-radius:16px;background:#f6f9f3}.finder-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.finder-heading small{color:#6e7e6b}.animal-species-finder label{margin-bottom:8px}.animal-species-finder .searchresult{padding:11px 12px;border-radius:12px}.finder-selected{display:block;margin-top:10px;padding:10px 12px;border-radius:12px;background:#e3efdd;color:#315c45;font-weight:600}
.animal-maintenance h3{margin:4px 0 0}.origin-legend{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}.maintenance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.maintenance-item{padding:12px;border-radius:14px;border:1px solid var(--line);background:#f8faf6;min-width:0}.maintenance-item.database{border-left:4px solid #63866c}.maintenance-item.user-animal,.maintenance-item.user-species{border-left:4px solid #d2a145;background:#fffaf0}.maintenance-item.missing{border-style:dashed;background:#fbfbf8}.maintenance-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.maintenance-title b{font-size:13px}.maintenance-item p{margin:8px 0 0;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.origin-badge{display:inline-block;flex:none;padding:3px 7px;border-radius:999px;background:#e3ece1;color:#365c42;font-size:10px;font-weight:700;line-height:1.3}.maintenance-item.user-animal .origin-badge,.maintenance-item.user-species .origin-badge,.origin-badge.user{background:#fff0cc;color:#795516}.maintenance-item.missing .origin-badge,.origin-badge.missing{background:#ecefeb;color:#667164}.maintenance-note{margin:14px 0 0}.maintenance-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.maintenance-edit-field{padding:12px;border:1px solid var(--line);border-radius:14px;background:#f9fbf7}.maintenance-edit-field.user-animal{border-color:#e3c37c;background:#fffaf0}.maintenance-edit-field textarea{min-height:80px}.maintenance-edit-field>small{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}.reset-inline{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:11px;color:#687866}
.more-menu{display:grid;grid-template-columns:1fr 1fr;gap:10px}.more-menu button{display:flex;align-items:center;gap:10px;text-align:left;background:#f4f7f1;color:var(--ink);border:1px solid var(--line);min-height:62px}.more-menu button span{font-size:20px}.bottom-safe{padding-bottom:env(safe-area-inset-bottom,0px)}
@media(max-width:900px){.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.owned-species-grid{grid-template-columns:1fr}.compact-stats.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.maintenance-grid,.maintenance-edit-grid{grid-template-columns:1fr}}
@media(max-width:600px){body{background:#f4f6f1}aside{position:fixed;top:auto;bottom:0;left:0;right:0;height:calc(67px + env(safe-area-inset-bottom,0px));z-index:30;padding:6px 8px env(safe-area-inset-bottom,0px);box-shadow:0 -8px 24px rgba(25,48,35,.14)}aside .brand,aside>small,aside>.foot{display:none}.mobile-brand-logo{display:block;width:150px;height:43px;object-fit:cover;object-position:center;border-radius:9px;margin-bottom:10px;box-shadow:0 3px 12px rgba(25,48,35,.08)}nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;padding:0;overflow:visible}nav button{display:flex;flex-direction:column;justify-content:center;gap:1px;padding:5px 2px;min-height:55px;font-size:10px;border-radius:12px;text-align:center;white-space:normal}nav button:before{font-size:19px;line-height:1.1}nav button[data-page="Inicio"]:before{content:'⌂'}nav button[data-page="Ejemplares"]:before{content:'◉'}nav button[data-page="Agenda"]:before{content:'✓'}nav button[data-page="Especies"]:before{content:'⌕'}nav button[data-page="Terrarios"]:before{content:'▤'}nav button[data-page="Más"]:before{content:'•••'}nav button.active{box-shadow:none;background:rgba(255,255,255,.14)}main{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}header{position:relative}header>button{position:fixed;right:15px;bottom:calc(78px + env(safe-area-inset-bottom,0px));z-index:25;width:52px;height:52px;padding:0;border-radius:50%;font-size:0;box-shadow:0 7px 22px rgba(24,59,41,.3)}header>button:after{content:'+';font-size:28px;line-height:1}.quick-actions{display:flex;overflow-x:auto;margin:14px -12px 18px;padding:0 12px 5px;scroll-snap-type:x mandatory}.quick-action{min-width:148px;scroll-snap-align:start;padding:11px}.welcome-strip{margin-top:10px}.compact-stats.stats{gap:8px}.compact-stats .card{padding:12px}.compact-stats .stat b{font-size:23px}.species-search-line{display:block}.species-search-line button{width:100%;margin-top:10px}.owned-species-grid{gap:10px}.wizard-steps{position:sticky;top:-18px;z-index:4;background:white;padding:10px 0}.wizard-step{font-size:10px}.photo-editor{grid-template-columns:68px 1fr}.photo-preview{width:68px;height:68px;border-radius:14px}.animal-photo{height:190px}.finder-heading{align-items:flex-start}.finder-heading button{flex:none;padding:9px 11px}.more-menu{grid-template-columns:1fr}.registration-success .actions button{flex-basis:100%}}
.animal-gallery-heading{display:flex;align-items:end;justify-content:space-between;margin:24px 0 14px}.animal-gallery-heading h2{margin:4px 0 0}.animal-gallery-search{position:relative;margin:0 0 16px}.animal-gallery-search>span{display:block;font-weight:700;margin-bottom:6px}.animal-gallery-search input{padding-right:95px;border-radius:14px}.animal-gallery-search>small{position:absolute;right:13px;bottom:13px;color:#70806d}.animal-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.animal-tile{position:relative;display:flex;align-items:flex-end;justify-content:flex-start;min-height:170px;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:white;color:var(--ink);box-shadow:var(--app-shadow);text-align:left}.animal-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}.animal-tile.has-photo:after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,rgba(12,28,19,.9))}.animal-tile>.animal-tile-content{position:relative;z-index:1;display:block;width:100%;padding:17px 18px;font-size:19px;font-weight:750}.animal-tile.has-photo{aspect-ratio:4/3;color:white}.animal-tile.has-photo:hover img{transform:scale(1.025)}.animal-tile.no-photo{background:linear-gradient(145deg,#fff,#eef3ea)}.animal-tile.no-photo>.animal-tile-content{color:var(--ink)}.care-badges{display:flex!important;gap:5px;flex-wrap:wrap;margin-top:9px;width:auto!important;padding:0!important}.care-badge{display:inline-block!important;width:auto!important;padding:4px 8px!important;border-radius:999px;font-size:10px!important;font-weight:750!important;line-height:1.25;background:rgba(255,255,255,.88);color:#315c45}.care-badge.urgent{background:#ffe5d9;color:#984027}.care-badge.upcoming{background:#e2efdc;color:#315d3e}.care-badge.neutral{background:#eef0ec;color:#667164}.has-photo .care-badge.upcoming{background:rgba(226,239,220,.94)}.has-photo .care-badge.neutral{background:rgba(255,255,255,.9)}.animal-back{margin:22px 0 14px}.animal-gallery-empty{margin-top:24px}
@media(max-width:900px){.animal-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.animal-gallery{gap:10px}.animal-tile{min-height:132px;border-radius:17px}.animal-tile.has-photo{aspect-ratio:1/1}.animal-tile>.animal-tile-content{padding:12px;font-size:16px}.animal-gallery-search input{padding-right:12px}.animal-gallery-search>small{position:static;display:block;margin-top:5px}.care-badges{margin-top:7px}.care-badge{font-size:9px!important;padding:4px 6px!important}.animal-back{margin:12px 0}}
@media(max-width:360px){.animal-gallery{grid-template-columns:1fr}.animal-tile.has-photo{aspect-ratio:4/3}}
.activity-fields{padding:14px;margin:4px 0 14px;border-radius:16px;background:#f4f7f1}.activity-estimate{padding:12px;border:1px solid #d8e4d2;border-radius:14px;background:#fff}.activity-estimate small{display:block;margin-top:-5px;color:var(--muted)}
.animal-followup{margin:0 0 22px}.followup-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:8px 0 12px}.followup-title h2{margin:4px 0 0}.carousel-arrows{display:flex;gap:7px}.carousel-arrows button{min-width:44px}.followup-track{display:flex;align-items:flex-start;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px max(4px,calc((100% - min(620px,88%))/2)) 15px;scroll-padding-inline:max(4px,calc((100% - min(620px,88%))/2));overscroll-behavior-inline:contain}.followup-track::-webkit-scrollbar{display:none}.followup-slide{flex:0 0 min(620px,88%);min-height:300px;scroll-snap-align:center;padding:20px;border-radius:22px;background:white;border:1px solid var(--line);box-shadow:0 12px 30px rgba(44,66,49,.1)}.followup-maintenance{max-height:min(64vh,590px);overflow-y:auto;overscroll-behavior:contain;background:linear-gradient(145deg,#fff,#f2f7ee)}.followup-today{background:linear-gradient(140deg,#f6faf1,#e4efdd)}.followup-slide h3{margin:5px 0 16px;font-size:23px}.slide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:sticky;top:-20px;z-index:2;padding:20px 0 10px;background:inherit}.followup-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:24px 0}.followup-kpis div,.floating-field{padding:12px;border-radius:14px;background:rgba(255,255,255,.82);border:1px solid #dde7d8}.followup-kpis small,.followup-kpis b,.floating-field small,.floating-field b{display:block}.followup-kpis b{margin-top:5px;font-size:19px}.floating-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.floating-field b{margin:5px 0 9px;font-size:13px;line-height:1.35}.followup-list>div{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.followup-list>div:last-child{border-bottom:0}.followup-list p{flex:1;margin:0;min-width:0}.followup-list b,.followup-list small{display:block}.followup-list small{margin-top:3px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-mark{width:10px;height:10px;flex:0 0 10px;border-radius:999px;background:var(--app-green)}.activity-mark.urgent{background:#c14435}.followup-dots{display:flex;justify-content:center;gap:7px;margin-top:1px}.followup-dots button{min-height:0;width:8px;height:8px;padding:0;border:0;border-radius:999px;background:#bcc9b9;transition:.2s}.followup-dots button.active{width:24px;background:var(--app-green)}.swipe-hint{display:block;text-align:center;margin-top:7px;color:var(--muted)}.animal-species-title,.animal-name-subtitle{display:block}.animal-name-subtitle{margin-top:4px;font-size:13px;font-weight:600;opacity:.82}.care-center-last{margin-top:24px}
@media(max-width:600px){.followup-title h2{font-size:20px}.carousel-arrows{display:none}.followup-track{margin:0;padding-left:6%;padding-right:6%;scroll-padding-inline:6%}.followup-slide{flex-basis:88%;min-height:285px;padding:17px}.followup-maintenance{max-height:62vh}.slide-heading{top:-17px;padding:17px 0 9px}.floating-fields{grid-template-columns:1fr}.followup-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.followup-kpis div{padding:9px}.followup-kpis b{font-size:15px}}
.title-brand-logo{display:inline-block;width:auto;height:1.85em;max-width:40vw;object-fit:contain;vertical-align:-.48em;margin:-.4em .03em -.35em}
@media(max-width:600px){.title-brand-logo{height:1.85em;max-width:40vw}}
.quick-fab-backdrop,.quick-fab-menu{display:none}
@media(max-width:600px){.quick-fab-backdrop{display:block;position:fixed;inset:0;z-index:24;background:rgba(20,45,32,.18);backdrop-filter:blur(2px)}.quick-fab-backdrop[hidden]{display:none}.quick-fab-menu{display:flex;position:fixed;right:17px;bottom:calc(143px + env(safe-area-inset-bottom,0px));z-index:27;flex-direction:column;align-items:flex-end;gap:6px;pointer-events:none}.quick-fab-menu button{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 11px 4px 6px;border-radius:999px;background:#fff;color:var(--ink);border:1px solid #dce5d8;box-shadow:0 7px 20px rgba(25,48,35,.16);opacity:0;transform:translate(24px,18px) scale(.82);transform-origin:right center;pointer-events:none;transition:opacity .18s ease,transform .22s ease}.quick-fab-menu.open{pointer-events:auto}.quick-fab-menu.open button{opacity:1;transform:translateX(calc(var(--fan) * -8px)) scale(1);pointer-events:auto;transition-delay:calc(var(--fan) * 28ms)}.quick-fab-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#edf3e9;color:var(--app-green);font-size:18px;font-weight:700}.quick-fab-menu b{font-size:12px;white-space:nowrap}.quick-fab-open{transform:rotate(45deg);background:#173d2a!important}.quick-fab-open:after{transform:rotate(-45deg)}header>button{transition:transform .22s ease,background .22s ease}}
.agenda-toolbar{margin-bottom:14px}.agenda-filter{padding:12px 16px;margin-bottom:14px}.agenda-filter label{margin:0}.agenda-groups{display:grid;gap:14px}.agenda-animal-group{padding:0;overflow:hidden}.agenda-animal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px;background:linear-gradient(140deg,#f8fbf5,#eaf2e5);border-bottom:1px solid var(--line)}.agenda-animal-heading h2{margin:4px 0 0;font-size:23px}.agenda-animal-heading p{margin:4px 0 0;color:var(--muted);font-size:15px;font-weight:650}.agenda-record-count{flex:none;padding:6px 10px;border-radius:999px;background:#dfeadb;color:#315b3d;font-size:11px;font-weight:800}.agenda-task-list{padding:0 18px}.agenda-task-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;align-items:center;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.agenda-task-row:last-child{border-bottom:0}.agenda-task-copy b,.agenda-task-copy small{display:block}.agenda-task-copy small{margin-top:4px;color:var(--muted);line-height:1.35}.agenda-task-actions{display:flex;gap:6px}.agenda-task-actions button{padding:8px 10px}.agenda-other-group .agenda-animal-heading{background:#f7f6ef}
@media(max-width:600px){.agenda-animal-heading{padding:15px}.agenda-animal-heading h2{font-size:20px}.agenda-task-list{padding:0 14px}.agenda-task-row{grid-template-columns:10px minmax(0,1fr) auto;gap:9px}.agenda-task-row>.tag{grid-column:2}.agenda-task-row>button,.agenda-task-actions{grid-column:3;grid-row:1/3}.agenda-task-row>button{padding:8px 9px}.agenda-task-actions{flex-direction:column}.agenda-record-count{font-size:10px;padding:5px 8px}}
.agenda-heading-actions{display:flex;flex-direction:column;align-items:flex-end;gap:9px}.agenda-register-primary{background:linear-gradient(135deg,var(--app-green),#3d674d);color:#fff;box-shadow:0 5px 14px rgba(36,77,58,.22);white-space:nowrap}.agenda-register-primary:hover{background:linear-gradient(135deg,#1c3e2e,#315c45)}.agenda-task-row{grid-template-columns:10px minmax(0,1fr) auto}.agenda-task-copy{min-width:0}.agenda-task-actions{align-items:center}.agenda-task-actions .agenda-complete{background:#315f47}.agenda-task-actions .agenda-delay{background:#eef1eb}.agenda-countdown{display:flex;align-items:center;gap:10px;margin-top:10px}.agenda-countdown>span{flex:0 0 auto;min-width:92px;font-size:12px;font-weight:750;color:#435646}.agenda-progress{height:9px;max-width:360px;flex:1;overflow:hidden;border-radius:999px;background:#e8ece5}.agenda-progress i{display:block;height:100%;border-radius:inherit;transition:width .25s ease,background .25s ease}.agenda-progress.green i{background:#4f8a62}.agenda-progress.orange i{background:#d58b2f}.agenda-progress.red i{background:#c84c3e}.agenda-progress.neutral i{background:#9da89d}.activity-mark.green{background:#4f8a62}.activity-mark.orange{background:#d58b2f}.activity-mark.red{background:#c84c3e}.activity-mark.neutral{background:#9da89d}.agenda-history-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid var(--line)}.agenda-history-row:last-child{border-bottom:0}.agenda-history-check{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dcebdd;color:#315f47;font-weight:900}.agenda-history-row b,.agenda-history-row small{display:block}.agenda-history-row small{margin-top:4px;color:var(--muted)}.agenda-history-group .agenda-animal-heading{background:linear-gradient(140deg,#f5f7f3,#e9eee6)}
@media(max-width:600px){.agenda-animal-heading{align-items:stretch}.agenda-heading-actions{align-items:flex-end}.agenda-register-primary{padding:9px 11px;font-size:12px}.agenda-task-row{grid-template-columns:10px minmax(0,1fr);align-items:start}.agenda-task-actions{grid-column:2;grid-row:auto;flex-direction:row;margin-top:2px}.agenda-task-actions button{flex:1}.agenda-countdown{display:block}.agenda-countdown>span{display:block;margin-bottom:6px}.agenda-progress{max-width:none}.agenda-record-count{align-self:flex-end}}
@media(max-width:600px){.quick-fab-menu{width:min(238px,calc(100vw - 34px));align-items:stretch}.quick-fab-menu button{width:100%;justify-content:flex-start;text-align:left}.quick-fab-menu.open button{transform:translateX(0) scale(1)}}
