@font-face{font-family:system-local;src:local("Segoe UI")}*{box-sizing:border-box}body{margin:0;background:#f7f8f4;color:#223b35;font-family:system-local,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #cf8139;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2{letter-spacing:-1.4px;line-height:1.13}h1{font-size:43px;font-weight:600;margin-bottom:12px}h2{font-size:29px;font-weight:600}h3{font-size:18px}p{color:#6a7770}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.eyebrow{font-size:10px;font-weight:750;letter-spacing:2px;color:#77867d}.brand{display:flex;align-items:center;font-size:25px;letter-spacing:-1px;font-weight:650;white-space:nowrap}.brand-icon{display:grid;place-items:center;width:34px;height:36px;border:1.5px solid currentColor;border-top:6px solid currentColor;border-radius:8px;font-size:15px;margin-right:11px;letter-spacing:0}.brand-dot{color:#d4a15a}.topbar{height:87px;border-bottom:1px solid #e1e7df;padding:0 max(5%,calc((100vw - 1240px)/2));display:flex;justify-content:space-between;align-items:center;background:#fffefa}.top-actions,.calendar-controls,.button-row{display:flex;align-items:center;gap:10px}.primary{background:#1e5046;color:white;border:0;border-radius:12px;padding:14px 22px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:48px}.primary:hover{background:#123f35}.primary b{font-size:22px;font-weight:400}.quiet{border:1px solid #dce3d9;background:transparent;color:#395149;border-radius:9px;padding:9px 14px;min-height:42px}.quiet:hover{background:#edf1e9}.avatar{border:0;border-radius:50%;background:#e6ecdf;color:#365346;width:40px;height:40px;font-size:18px}.text-button{border:0;background:none;color:#386554;padding:10px 0;font-size:13px;font-weight:600}.workspace{max-width:1240px;margin:auto;padding:42px 34px 20px}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.welcome .eyebrow{margin-bottom:13px}.welcome p:last-child{font-size:14px;margin:0}.agenda-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:34px}.calendar-card{background:#fffefa;border:1px solid #e1e7db;border-radius:20px;overflow:hidden;align-self:start}.calendar-head{padding:28px 28px 20px;display:flex;justify-content:space-between;align-items:center}.calendar-head h2{margin:5px 0 0;text-transform:capitalize}.icon-button{height:40px;width:35px;background:transparent;border:0;font-size:28px;color:#405a50;border-radius:8px}.icon-button:hover{background:#edf1e9}.weekdays,.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 20px}.weekdays{margin-bottom:5px}.weekdays span{text-align:center;padding:8px;color:#8c958e;font-size:11px;font-weight:700}.calendar{gap:3px;min-height:375px;align-content:start}.day{border:0;background:transparent;position:relative;min-width:0;height:65px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#35493f;font-size:15px}.day:hover{background:#f0f3ec}.day.outside{color:#b6beb4}.day.has-pending{background:#e0eddb;color:#274e35}.day.has-pending:hover{background:#d3e4cc}.day.all-completed{color:#879185}.day .completed-mark{font-size:10px;color:#879185;line-height:8px}.day.today .day-number{border-bottom:2px solid #b78745}.day.selected{box-shadow:inset 0 0 0 2px #204f43}.day.selected .day-number{font-weight:700}.dots{display:flex;gap:3px;height:5px}.dot{width:6px;height:6px;display:inline-block;border-radius:50%;flex-shrink:0}.blue{--event-color:#658caf}.purple{--event-color:#9b82af}.orange{--event-color:#ce954f}.teal{--event-color:#5c917e}.pink{--event-color:#bf829a}.slate{--event-color:#7d888c}.dot{background:var(--event-color)}.legend{display:flex;gap:16px;flex-wrap:wrap;padding:16px 28px 24px;font-size:11px;color:#7b867c}.legend span{display:flex;align-items:center;gap:6px}.calendar-foot{border-top:1px solid #e8ecdf;background:#fbfcf7;display:flex;justify-content:space-between;gap:10px;padding:14px 26px;font-size:10px;color:#89917e}.day-panel{padding:24px 0}.day-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.day-heading h2{margin:0}.day-heading .eyebrow{margin:0 0 8px}.count-badge{background:#e8eedf;color:#63815a;font-size:13px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%}.event-card{border:1px solid #e0e5da;background:#fffefa;border-radius:13px;padding:18px;margin-bottom:12px;display:flex;gap:14px;align-items:flex-start;position:relative;overflow:hidden}.event-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--event-color)}.event-time{font-size:15px;min-width:42px;font-weight:650;padding-top:2px}.event-main{flex:1;min-width:0}.event-main h3{font-size:15px;margin:0 0 6px;line-height:1.4;overflow-wrap:anywhere}.event-main p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.type-tag{font-size:10px;letter-spacing:.4px;color:#778278}.event-edit{background:none;border:0;padding:0;text-align:left;color:inherit;width:100%}.complete-button{width:24px;height:24px;min-width:24px;border:1px solid #d4ddd1;background:transparent;color:#547a57;border-radius:50%;padding:0;font-size:13px}.event-card.done{opacity:.62}.done h3{text-decoration:line-through}.empty-day{text-align:center;padding:33px 16px;border:1px dashed #d9e1d3;border-radius:14px;background:#f3f6ee}.empty-day .empty-symbol{font-size:31px;color:#9ba88c;margin-bottom:10px}.empty-day h3{font-size:16px;margin:0 0 8px}.empty-day p{font-size:13px;margin:0}.add-day{width:100%;border:1px dashed #cbd7c5;background:transparent;color:#648052;padding:14px;border-radius:10px;margin-top:4px;font-size:12px}.upcoming{margin-top:30px;padding-top:23px;border-top:1px solid #e0e5da}.upcoming-item{display:flex;gap:14px;padding:10px 0;width:100%;text-align:left;background:transparent;border:0;color:inherit}.upcoming-date{font-size:10px;text-align:center;min-width:34px;color:#88917d;text-transform:uppercase}.upcoming-date strong{font-size:20px;display:block;color:#52704f;font-weight:500;line-height:1.1}.upcoming-item p{font-size:11px;margin:3px 0 0}.upcoming-item b{font-size:12px;font-weight:600}.page-footer{display:flex;justify-content:space-between;color:#99a190;font-size:9px;letter-spacing:1px;border-top:1px solid #e2e6db;margin-top:30px;padding-top:16px;gap:10px}.reminder-banner{padding:12px 16px;border:1px solid #e6ddc5;background:#fbf7ed;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:12px;color:#826d45;margin-bottom:23px}.reminder-banner .text-button{white-space:nowrap}.access{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.access-story{padding:45px 12%;background:#1c493e;color:#f3f1e6;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh}.access-story .eyebrow{color:#b0c0a6}.access-story h1{font-size:58px;margin-top:20px}.access-story p{color:#c0cfc1;font-size:15px}.access-story small{font-size:9px;letter-spacing:2px;color:#9db19d}.story-calendar{border:1px solid #7a9580;border-radius:16px;transform:rotate(-5deg);padding:24px;margin:32px 5px;width:240px;background:#f1eedc;color:#2c5444}.story-calendar span{font-size:9px;letter-spacing:2px}.story-calendar strong{font-size:23px;font-weight:500;line-height:1.3;display:block;margin:12px 0 20px}.story-calendar div{color:#c99956;font-size:20px}.access-form{display:flex;align-items:center;justify-content:center;padding:40px 25px;background:#fcfcf7}.access-inner{width:360px;max-width:100%}.access-inner h2{font-size:32px;margin:12px 0}.access-inner>p{font-size:13px}label{display:block;font-size:12px;font-weight:600;color:#526456;margin:16px 0}label small{font-weight:400;color:#969d8f;margin-left:4px}input,select,textarea{display:block;width:100%;background:#fffefa;border:1px solid #d7dfd0;border-radius:8px;padding:11px 12px;color:#2f4638;margin-top:6px;min-height:45px;font-size:16px}input:focus,select:focus,textarea:focus{outline:2px solid #a9c3ac;outline-offset:1px}textarea{resize:vertical}.wide{width:100%;margin-top:8px;justify-content:space-between}.privacy-note{margin-top:30px;border-top:1px solid #e0e5d7;padding-top:20px;font-size:11px!important;color:#96a18c!important}.error{color:#a23e33;font-size:13px;margin:12px 0}.error:empty{display:none}.loading{padding:60px;text-align:center;color:#567153}dialog{border:1px solid #dbe2d2;border-radius:20px;padding:26px 30px;width:min(530px,calc(100% - 28px));max-height:90dvh;overflow:auto;background:#fffefa;color:#2a4637;box-shadow:0 30px 100px #173b3226}dialog::backdrop{background:#16352d88;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.close{background:transparent;border:0;color:#7b8976;font-size:28px;line-height:1;width:35px;height:35px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-row label{min-width:0;margin-top:0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;border-top:1px solid #e6eadf;padding-top:20px;margin-top:20px}.danger{color:#a14a40;border:0;background:transparent;font-size:12px;margin-right:auto;padding:10px}.dialog-actions .quiet{font-size:11px}.field-note{font-size:11px;color:#8b8967;margin-top:-6px}small{color:#8b9680;font-size:11px}.settings-section{border-top:1px solid #e3e8da;padding-top:20px;margin-top:22px}.settings-section p{font-size:13px}.instruction{background:#f2f5ea;border-radius:10px;padding:14px;font-size:12px}.instruction p{font-size:12px;margin:5px 0 0}.settings-section .button-row{flex-wrap:wrap;margin:15px 0 20px}.settings-section .primary{font-size:12px;padding:10px 15px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#1e4c40;color:white;border-radius:12px;padding:14px 22px;box-shadow:0 8px 40px #12372f26;font-size:13px;z-index:100;max-width:90%;text-align:center}.user-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5eadd;padding:12px 0;gap:10px}.user-row b{font-size:13px}.user-row small{display:block}.user-row .quiet{font-size:12px}#user-form-title{margin-top:25px}
@media(min-width:1400px){.workspace{padding-top:55px}.calendar{min-height:420px}.day{height:72px}}
@media(max-width:900px){.workspace{padding:28px 20px}.agenda-layout{gap:22px;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}.calendar-head{padding:20px 18px}.calendar-head h2{font-size:24px}.calendar-controls{gap:3px}.weekdays,.calendar{padding:0 10px}.day{height:55px}.calendar{min-height:340px}.legend{padding:16px;gap:12px}.calendar-foot{padding:13px}.calendar-foot span:last-child{display:none}.welcome h1{font-size:34px}.topbar{padding:0 25px}.access-story h1{font-size:43px}}
@media(max-width:680px){.topbar{height:73px;padding:0 20px}.brand{font-size:22px}.brand-icon{width:28px;height:31px;font-size:12px}.top-actions{gap:8px}.top-actions .quiet{padding:6px;border:0;font-size:11px;min-height:40px}.avatar{height:32px;width:32px}.workspace{padding:26px 17px 25px}.welcome{align-items:flex-start;gap:12px;margin-bottom:20px}.welcome h1{font-size:29px;letter-spacing:-1px}.welcome .eyebrow{font-size:8px;letter-spacing:1.3px}.welcome p:last-child{font-size:12px;max-width:220px}.welcome .primary{font-size:11px;padding:9px 13px;gap:5px;white-space:nowrap;min-height:43px;margin-top:26px}.welcome .primary b{font-size:18px}.agenda-layout{grid-template-columns:1fr;gap:0}.calendar-card{border-radius:16px}.calendar-head{padding:20px}.calendar-head h2{font-size:25px}.calendar{min-height:0;padding-bottom:10px;gap:2px}.day{height:49px;font-size:14px;gap:5px}.weekdays span{font-size:10px;padding:4px}.legend{font-size:10px;padding:10px 18px 18px;justify-content:space-between;gap:6px}.calendar-foot{font-size:9px}.day-panel{padding:28px 0 0}.day-heading h2{font-size:27px}.day-heading{margin-bottom:18px}.event-card{padding:17px 18px}.reminder-banner{align-items:flex-start;flex-direction:column;gap:0;padding:10px 13px;font-size:11px}.reminder-banner .text-button{padding:5px 0}.page-footer{font-size:8px}.page-footer span:last-child{display:none}.access{display:block}.access-story{min-height:0;padding:24px;display:block}.access-story>div,.access-story>small{display:none}.access-form{padding:35px 25px;min-height:calc(100dvh - 85px)}dialog{padding:20px;max-height:94dvh}.form-row{gap:10px}.dialog-actions .primary{padding:12px 18px}.toast{bottom:calc(20px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.calendar-status-legend{display:flex;flex-wrap:wrap;gap:8px 18px;padding:0 20px 16px;font-size:10px;color:#697565}.calendar-status-legend span{display:inline-flex;align-items:center;gap:6px}.status-sample{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:4px;font-style:normal}.status-pending{background:#e0eddb}.status-completed{color:#879185}.status-selected{box-shadow:inset 0 0 0 2px #204f43}

/* Contraste del calendario: cabeceras azules y domingos rojos. */
.topbar{background:#174ea6;color:#fff;border-bottom:2px solid #0f3d88}
.topbar .brand-dot{color:#fff}
.topbar .quiet{color:#fff;border-color:#83a7dc}
.topbar .quiet:hover{background:#103c83}
.topbar .avatar{background:#fff;color:#174ea6}
.topbar button:focus-visible,.topbar a:focus-visible{outline-color:#ffe082}
.calendar-card{border:3px solid #155abd;background:#fff}
.calendar-head{background:#fff;color:#174ea6;padding-bottom:24px}
.calendar-head .eyebrow{color:#174ea6}
.calendar-head .quiet,.calendar-head .icon-button{color:#174ea6;border-color:#83a7dc}
.calendar-head .quiet:hover,.calendar-head .icon-button:hover{background:#e8f0fe}
.calendar-head button:focus-visible{outline-color:#174ea6}
.weekdays{background:#155abd;gap:3px;margin-bottom:8px}
.weekdays span{color:#fff;font-weight:800;font-size:13px;padding-top:10px;padding-bottom:10px}
.day-number,.day.selected .day-number{font-weight:800}
.day{color:#243746}
.day.outside{color:#687787}
.day.has-pending{background:#c8e6c9;color:#1b4d2a}
.day.has-pending:hover{background:#b5dcb7}
.status-pending{background:#c8e6c9}
.day:nth-child(7n) .day-number{color:#c40000}
.day.all-completed .day-number{color:#687787}
.day.all-completed:nth-child(7n) .day-number{color:#c40000}
.calendar-status-legend,.legend{color:#49594f}

/* Textos legibles, tarjetas verdes e indicadores intensos. */
body{color:#1d3026;font-weight:500}
h1,h2,h3{font-weight:700}
p{color:#384b40}
.eyebrow{color:#405b47;font-weight:800}
label{color:#293f30;font-weight:700}
small,label small,.field-note{color:#4c5b42;font-weight:500}
input::placeholder,textarea::placeholder{color:#596557;opacity:1}
.access-inner>p{color:#384b40}
.privacy-note{color:#526047!important}
.calendar-head .eyebrow{color:#174ea6}
.legend,.calendar-status-legend{color:#304635;font-size:12px;font-weight:650}
.calendar-foot{color:#405039;font-size:11px;font-weight:600}
.page-footer{color:#46553c;font-size:10px;font-weight:650}
.blue{--event-color:#155bd7}
.purple{--event-color:#782bd4}
.orange{--event-color:#b95100}
.teal{--event-color:#138149}
.pink{--event-color:#c3296b}
.slate{--event-color:#475569}
.dot{width:8px;height:8px}
.dots{height:14px;align-items:center;justify-content:center;gap:4px}
.type-tag{color:#354a3a;font-size:11px;font-weight:800;display:inline-flex;align-items:center;gap:6px}
.type-tag::before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--event-color);flex-shrink:0}
.event-card{border:2px solid #208043;background:#fff}
.event-card:before{width:5px}
.event-time{color:#173e26;font-weight:800}
.event-main h3{color:#1c3525;font-weight:750;font-size:16px}
.event-main p{color:#354b3b;font-size:13px;font-weight:550}
.event-card.done{opacity:1;background:#f3faf3}
.done h3{text-decoration-thickness:2px;text-decoration-color:#176b36}
.complete-button{width:32px;height:32px;min-width:32px;border:2px solid #176b36;background:#fff;color:#176b36;display:grid;place-items:center;font-size:21px;font-weight:900;line-height:1}
.complete-button:hover{background:#e0f0e2}
.event-card.done .complete-button{background:#176b36;color:#fff;border-color:#10572b}
.event-card.done .complete-button:hover{background:#10572b}
.day .completed-mark{font-size:15px;font-weight:900;color:#176b36;line-height:14px}
.status-completed{color:#176b36;font-weight:900;font-size:15px}
.day.all-completed .day-number{color:#435741}
.day.all-completed:nth-child(7n) .day-number{color:#c40000}
.count-badge{background:#d3ecd7;color:#155d2e;font-weight:800}
.add-day{border:2px dashed #208043;color:#176b36;font-weight:700}
.upcoming-item{border:2px solid #208043;border-radius:11px;background:#fff;padding:12px;margin-bottom:10px}
.upcoming-item:hover{background:#edf7ed}
.upcoming-date{color:#3d573d;font-weight:700}
.upcoming-date strong{color:#176b36;font-weight:800}
.upcoming-item b{color:#203a28;font-size:13px;font-weight:750}
.upcoming-item p{color:#40513d;font-size:12px;font-weight:550}
.empty-day{border-color:#438353}
.empty-day .empty-symbol{color:#2e7440}
@media(max-width:680px){.welcome .eyebrow{font-size:10px}.legend,.calendar-status-legend{font-size:11px}.calendar-foot{font-size:10px}.page-footer{font-size:9px}}

/* Un círculo por cita pendiente; las filas crecen si hay muchas citas. */
.calendar .day{height:auto;min-height:65px;padding:8px 3px}
.calendar .dots{height:auto;min-height:14px;max-width:100%;flex-wrap:wrap;gap:3px;padding:0 2px}
@media(min-width:1400px){.calendar .day{min-height:72px}}
@media(max-width:900px){.calendar .day{min-height:55px}}
@media(max-width:680px){.calendar .day{min-height:49px}}
