:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203b35;background:#f5f6f1;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a8cbb7;outline-offset:2px}.top{height:72px;background:#173c36;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1180px)/2));gap:16px}.brand{display:flex;align-items:center;gap:12px;letter-spacing:.09em;font-size:13px}.brand small{display:block;letter-spacing:0;color:#b7d3c8;font-size:12px;margin-top:3px}.brandmark{width:38px;height:38px;border:1px solid #86ad9e;border-radius:12px;display:grid;place-items:center;font-size:22px}.net{font-size:12px;border:1px solid #70968a;border-radius:30px;padding:7px 11px;white-space:nowrap}.shell{max-width:1180px;margin:auto;padding:30px 22px 60px}.intro{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.eyebrow{font-size:11px;letter-spacing:.17em;color:#678c7e;font-weight:800;margin:0 0 10px}.intro h1{font-family:Georgia,serif;font-weight:400;letter-spacing:-.04em;font-size:clamp(31px,4vw,48px);margin:0 0 10px}.intro p:not(.eyebrow){color:#6a7c75;margin:0;line-height:1.5}.intro-actions{display:flex;gap:9px;flex-wrap:wrap}button.primary,.filebtn{border:1px solid #173c36;background:#173c36;color:#fff;border-radius:11px;padding:12px 17px;font-weight:650;display:inline-block;text-align:center}button.secondary{border:1px solid #cbd8d0;background:#fff;color:#25463c;border-radius:11px;padding:12px 17px;font-weight:650}.notice{background:#e8efe9;border:1px solid #d2dfd6;border-radius:12px;color:#536f60;padding:13px 16px;font-size:13px;margin-bottom:24px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:28px}.metric{background:white;border:1px solid #e4e9e1;border-radius:16px;padding:18px 20px}.metric strong{display:block;font-family:Georgia,serif;font-size:36px;font-weight:400}.metric span{color:#77877d;font-size:12px}.tabs{display:flex;gap:5px;border-bottom:1px solid #d8e0d8;margin-bottom:22px;overflow-x:auto}.tabs button{white-space:nowrap;background:none;border:0;padding:14px 17px;color:#72827a;font-weight:600}.tabs button.active{color:#173c36;border-bottom:3px solid #173c36}.hidden{display:none!important}.toolbar{display:flex;gap:12px;margin-bottom:20px}.toolbar input,.toolbar select{background:white;border:1px solid #dbe3dc;border-radius:11px;padding:13px;min-width:0}.toolbar input{flex:1}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.catcard{background:white;border:1px solid #e3e9e2;border-radius:16px;overflow:hidden;text-align:left;padding:0;box-shadow:0 2px 7px #173c3608;transition:transform .12s}.catcard:hover{transform:translateY(-2px)}.catcard img{width:100%;height:210px;object-fit:cover;display:block;background:#d8e0d8}.catcontent{padding:15px}.catcontent h3{margin:0;font-size:18px}.catcontent small{color:#85948b;font-size:11px}.catmeta{display:flex;align-items:center;justify-content:space-between;margin:7px 0 13px;font-size:12px;color:#74857c}.pills{display:flex;gap:5px;flex-wrap:wrap}.pill{border-radius:7px;padding:5px 7px;font-size:10px;background:#f0f3ef;color:#61786c}.pill.no{background:#fff0e8;color:#a35b3c}.pill.si{background:#e8f3eb;color:#326b4d}.pill.ver{background:#f1f1ee;color:#777}.section-title h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:0}.section-title p{color:#718179;line-height:1.5;margin:7px 0 20px}.taskfilters{margin:0 0 14px;color:#60766a;font-size:14px}.tablewrap{overflow-x:auto;background:white;border:1px solid #e0e6df;border-radius:14px}table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;padding:14px;border-bottom:1px solid #e9ede8;font-size:13px}th{color:#687f71;background:#f8faf7;font-size:11px;text-transform:uppercase;letter-spacing:.04em}tr:last-child td{border-bottom:0}.tablelink{border:0;background:none;color:#235a48;font-weight:750;text-align:left;padding:0}.status{font-size:12px}.status.si{color:#28764b}.status.no{color:#b35e37}.status.ver{color:#8d8d83}.settingsgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.panel{background:#fff;border:1px solid #e0e6df;border-radius:16px;padding:22px}.panel h3{margin:0 0 9px}.panel p{font-size:14px;line-height:1.6;color:#6b7b72}.panel select{width:100%;padding:12px;border:1px solid #d9e1d8;border-radius:9px;margin-bottom:10px}.muted{font-size:12px!important}#historyList .historyitem,.eventsitem{padding:15px;background:#fff;border:1px solid #e3e9e2;border-radius:12px;margin-bottom:9px;font-size:14px}footer{margin-top:45px;font-size:12px;color:#87958c}dialog{width:min(760px,calc(100vw - 20px));max-height:94dvh;padding:0;border:0;border-radius:18px;box-shadow:0 22px 100px #122f2866}dialog::backdrop{background:#102a26a8}#catForm{display:flex;flex-direction:column;max-height:94dvh}.modalhead,.modalfoot{padding:18px 23px;display:flex;align-items:center;justify-content:space-between;background:#fff}.modalhead{border-bottom:1px solid #e7ece6}.modalhead h2{margin:0;font-family:Georgia,serif;font-size:27px;font-weight:400}.iconbtn{border:0;background:#f1f4f0;border-radius:9px;padding:10px}.modalbody{overflow:auto;padding:22px 23px}.photoedit{display:flex;align-items:center;gap:15px;margin-bottom:18px}.photoedit img{width:100px;height:100px;object-fit:cover;border-radius:13px}.fields,.eventfields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fields label,.eventfields label{font-size:12px;color:#5c7165;font-weight:650;display:flex;flex-direction:column;gap:6px}.fields input,.fields select,.fields textarea,.eventfields input,.eventfields select,.eventfields textarea{border:1px solid #d6dfd5;border-radius:9px;padding:11px;width:100%;background:#fff;color:#213d32}.wide{grid-column:1/-1}.eventbox{margin-top:22px;padding:16px;border-radius:12px;background:#f1f5f0}.eventbox h3{margin:0 0 12px;font-size:16px}.modalfoot{border-top:1px solid #e7ece6;justify-content:flex-end;gap:9px}.eventsitem{margin-top:10px}.empty{padding:25px;color:#718179;text-align:center}@media(max-width:900px){.cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.shell{padding:24px 14px 50px}.top{padding:0 14px}.intro{display:block}.intro-actions{margin-top:20px}.metrics{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catcard img{height:170px}.catcontent{padding:12px}.catcontent h3{font-size:16px}.toolbar{flex-direction:column}.settingsgrid{grid-template-columns:1fr}.fields,.eventfields{grid-template-columns:1fr}.wide{grid-column:auto}.brand{font-size:11px}.net{font-size:10px}.tabs button{padding:12px}.modalbody{padding:16px}.photoedit{flex-wrap:wrap}}@media print{header,.intro-actions,.tabs,.toolbar,.notice,.metrics,footer{display:none!important}.shell{padding:0}.cards{grid-template-columns:repeat(3,1fr)}}

/* Mis Gastitos v1.3 — galería y fichas públicas de solo lectura */
.top a.brand{color:inherit;text-decoration:none;letter-spacing:0}
.top a.brand strong{font-family:Georgia,"Times New Roman",serif;font-size:22px;letter-spacing:-.02em;font-weight:500}
.header-logo{border-radius:50%;object-fit:cover;flex-shrink:0}
.header-actions{display:flex;align-items:center;gap:13px}
.panel-switch{color:#e6f4ec;border:1px solid #78988b;padding:9px 14px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap}
.panel-switch:hover{background:#285246}
body.public-page{color:#22463b;background:#f7f6f0}
.public-header{background:#fbfaf5;border-bottom:1px solid #e4e9dd;position:sticky;top:0;z-index:6}
.header-inner{width:min(1240px,100%);margin:auto;padding:11px 22px;display:flex;align-items:center;gap:24px;justify-content:space-between}
.public-brand{display:flex;align-items:center;gap:13px;color:#22463b;text-decoration:none;min-width:0}
.public-brand img{border-radius:50%;flex:none;object-fit:cover}
.public-brand strong{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.04em;font-size:31px;white-space:nowrap}
.switch-btn{background:#22463b;color:#fff;padding:12px 17px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:650;white-space:nowrap}
.switch-btn:hover{background:#356250}
.public-banner{max-width:1240px;margin:25px auto 0;padding:0 22px}
.public-banner img{display:block;width:100%;height:clamp(230px,26vw,340px);object-fit:cover;object-position:60% 57%;border-radius:18px}
.public-section{max-width:1240px;margin:0 auto;padding:39px 22px 65px}
.public-section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:22px}
.public-section-head h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,43px);font-weight:400;margin:0;letter-spacing:-.03em}
.public-filter label{display:block;font-size:12px;font-weight:650;margin-bottom:7px}
.public-filter select{border:1px solid #d6e0d3;background:#fff;padding:11px 15px;border-radius:10px;min-width:205px}
.public-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.public-cat{border:1px solid #e4e9e0;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 9px #173c3607}
.public-cat img{width:100%;height:226px;object-fit:cover;display:block}
.public-cat-body{padding:15px 17px}
.public-cat-body small{color:#8d9b8d;font-size:11px}
.public-cat-body h3{font-family:Georgia,"Times New Roman",serif;font-size:21px;font-weight:500;margin:5px 0}
.public-cat-body p{margin:0;color:#788779;font-size:13px}
.public-footer{border-top:1px solid #e0e6db;padding:24px max(22px,calc((100vw - 1196px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:12px;color:#6b7e70}
.public-footer>a{color:#245843;font-size:13px;text-decoration:none;font-weight:650}
@media(max-width:900px){.public-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){
.header-inner{padding:10px 13px;gap:8px}.public-brand{gap:8px}.public-brand img{width:42px;height:42px}.public-brand strong{font-size:23px}
.switch-btn{padding:10px 9px;font-size:11px}
.public-banner{margin:12px auto 0;padding:0 13px}
.public-banner img{height:260px;max-height:none;aspect-ratio:auto;object-position:69% 67%;border-radius:15px}
.public-section{padding:32px 13px 45px}.public-section-head{align-items:start;flex-direction:column;gap:17px}
.public-filter select{min-width:0;width:100%}.public-filter{width:100%}
.public-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-cat img{height:170px}.public-cat-body{padding:12px}.public-cat-body h3{font-size:19px}
.public-footer{padding:20px 13px}.public-footer>a{font-size:11px}
.top{height:auto;min-height:70px}.header-actions{gap:5px}.panel-switch{font-size:11px;padding:7px}.net{font-size:10px;padding:7px}.top .brand small{font-size:10px}
.top a.brand strong{font-size:17px}
}
@media print{.public-header,.switch-btn,.public-footer,.public-filter{display:none!important}.public-grid{grid-template-columns:repeat(4,1fr)}.public-banner img{max-height:350px}}

/* v1.3 — tarjetas de consulta y detalles públicos */
button.public-cat{appearance:none;font:inherit;color:inherit;width:100%;min-width:0;text-align:left;cursor:pointer;display:block;padding:0;transition:transform .14s,box-shadow .14s}
button.public-cat:hover{transform:translateY(-3px);box-shadow:0 8px 26px #173c3619}
button.public-cat:focus-visible{outline:3px solid #517f68;outline-offset:3px}
.public-cat-link{display:inline-flex;gap:8px;align-items:center;margin-top:12px;font-size:12px;font-weight:700;color:#255742}
.public-detail-dialog{color:#203b35;width:min(740px,calc(100vw - 24px));max-height:min(90dvh,980px);overflow:hidden;padding:0;border-radius:19px;border:1px solid #e5eade;box-shadow:0 26px 100px #162e2966}
.public-detail-dialog::backdrop{background:#142a2699}
.public-detail-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 27px 18px;background:#fff;border-bottom:1px solid #e6ebe5}
.public-detail-kicker,.public-detail-eyebrow{font-size:11px;letter-spacing:.16em;color:#608271;font-weight:800}
.public-detail-header h2{font-family:Georgia,'Times New Roman',serif;font-size:32px;font-weight:400;margin:6px 0 0;letter-spacing:-.03em}
.public-detail-close{border:0;background:#f1f4ee;border-radius:12px;width:42px;height:42px;color:#234b3c;font-size:25px;flex-shrink:0;display:grid;place-items:center}
.public-detail-body{padding:22px 27px;overflow-y:auto;max-height:calc(90dvh - 160px);overscroll-behavior:contain}
.public-detail-lead{display:flex;align-items:center;gap:20px}
.public-detail-lead img{width:150px;height:150px;object-fit:cover;border-radius:15px;background:#e8ece4}
.public-detail-category{font-family:Georgia,serif;font-size:20px;margin:8px 0 5px}
.public-detail-muted{font-size:12px;line-height:1.55;color:#708476;margin:8px 0 0}
.public-detail-section{margin-top:22px;border-top:1px solid #e5eadf;padding-top:20px}
.public-detail-section h3{font-family:Georgia,'Times New Roman',serif;font-size:21px;font-weight:400;margin:0 0 15px}
.public-detail-fields{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.public-detail-field{background:#f6f8f4;border:1px solid #e9eee6;border-radius:11px;padding:12px 14px;overflow-wrap:anywhere}
.public-detail-field dt{font-size:11px;color:#708576;font-weight:650;margin-bottom:5px}
.public-detail-field dd{margin:0;font-size:14px;line-height:1.45;font-weight:600;color:#244a3a}
.public-detail-notes{font-size:14px;line-height:1.65;color:#344b3d;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.public-detail-events{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.public-detail-events li{padding:12px 14px;border-radius:11px;background:#f6f8f4;border:1px solid #e9eee6}
.public-detail-events strong{font-size:13px}.public-detail-events time{display:block;color:#728677;font-size:12px;margin-top:3px}
.public-detail-events p{font-size:13px;line-height:1.6;margin:6px 0 0;overflow-wrap:anywhere}
.public-detail-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 27px;border-top:1px solid #e6ebe5;background:#fff}
.public-detail-footer span{font-size:12px;color:#728576}
.public-detail-footer button{border:1px solid #cadace;background:#22463b;color:#fff;border-radius:9px;padding:10px 19px;font-size:13px;font-weight:700}
@media(max-width:650px){
 .public-banner{margin-top:14px}
 .public-banner img{height:clamp(185px,51vw,240px);object-position:67% 55%;border-radius:13px}
 .public-detail-header{padding:17px 18px 13px}
 .public-detail-header h2{font-size:27px}
 .public-detail-body{padding:16px 18px;max-height:calc(90dvh - 135px)}
 .public-detail-lead img{width:105px;height:110px}
 .public-detail-fields{grid-template-columns:1fr;gap:8px}
 .public-detail-section{margin-top:17px;padding-top:15px}
 .public-detail-footer{padding:12px 18px}
}
@media print{.public-detail-dialog:not([open]){display:none!important}}

/* Mis Gastitos v1.3.1 — créditos y enlaces del pie de página */
.public-footer,.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.footer-credits{display:flex;flex-direction:column;gap:5px;line-height:1.45}
.footer-credits strong{font-family:Georgia,"Times New Roman",serif;font-size:16px;font-weight:500;color:#22463b}
.footer-credits span{font-size:12px;color:#718276}
.footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px}
.footer-links a{font-size:12px;font-weight:650;color:#245843;text-decoration:none;text-underline-offset:4px}
.footer-links a:hover{text-decoration:underline}
.panel-footer{padding:24px 0;border-top:1px solid #dce7dc;margin-top:42px}
@media(max-width:650px){.public-footer,.panel-footer{align-items:flex-start;flex-direction:column;gap:15px}.footer-links{gap:10px 17px}}
@media print{.panel-footer{display:none!important}}


/* Mis Gastitos v1.3.2 — pie de página mejorado */
.public-footer{margin-top:56px;border-top:1px solid #d8e5dc;background:linear-gradient(180deg,#22463b 0%,#173c36 100%);padding:26px max(22px,calc((100vw - 1196px)/2));display:flex;justify-content:space-between;align-items:center;gap:22px;color:#dbe7e0;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.panel-footer{margin-top:44px;padding:22px 24px;border:1px solid #d8e5dc;border-radius:18px;background:linear-gradient(180deg,#edf3ef 0%,#e5eee7 100%)}
.public-footer .footer-credits strong,.panel-footer .footer-credits strong{font-family:Georgia,"Times New Roman",serif;font-size:17px;font-weight:600;letter-spacing:-.01em}
.public-footer .footer-credits strong{color:#fff}
.panel-footer .footer-credits strong{color:#173c36}
.public-footer .footer-credits span{color:#c9d9d1}
.panel-footer .footer-credits span{color:#61776a}
.public-footer .footer-links,.panel-footer .footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.footer-pill{display:inline-flex;align-items:center;gap:9px;padding:10px 14px;border-radius:999px;text-decoration:none;font-size:12px;font-weight:700;line-height:1;color:inherit;transition:transform .12s ease,background .12s ease,border-color .12s ease,color .12s ease}
.footer-pill:hover{transform:translateY(-1px)}
.public-footer .footer-pill{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);color:#fff}
.public-footer .footer-pill:hover{background:rgba(255,255,255,.16)}
.public-footer .footer-pill-outline{background:#f3b56d;color:#173c36;border-color:#f3b56d}
.public-footer .footer-pill-outline:hover{background:#f7c07f}
.panel-footer .footer-pill{background:#fff;border:1px solid #cfddd2;color:#22463b;box-shadow:0 1px 2px rgba(23,60,54,.04)}
.panel-footer .footer-pill:hover{background:#f8fbf8;border-color:#bfd2c5}
.panel-footer .footer-pill-outline{background:#173c36;color:#fff;border-color:#173c36}
.panel-footer .footer-pill-outline:hover{background:#22463b}
.footer-link-icon{width:16px;height:16px;display:block;flex:0 0 16px}
@media(max-width:650px){.public-footer,.panel-footer{align-items:flex-start;flex-direction:column;gap:16px}.public-footer{padding:22px 14px}.panel-footer{padding:18px}.public-footer .footer-links,.panel-footer .footer-links{width:100%}.footer-pill{justify-content:center}}
