.cct-app{--cct-burgundy:#641f32;--cct-ink:#242326;--cct-muted:#77747a;--cct-paper:#f7f5f1;--cct-line:#e8e3dc;max-width:900px;margin:28px auto;padding:clamp(16px,3vw,30px);background:#fff;color:var(--cct-ink);border:1px solid var(--cct-line);border-radius:22px;box-shadow:0 14px 45px rgba(35,25,28,.06);font-family:Arial,sans-serif;box-sizing:border-box}
.cct-app *{box-sizing:border-box}.cct-header{display:flex;gap:17px;align-items:center;padding:8px 0 25px;border-bottom:1px solid var(--cct-line)}.cct-mark{width:76px;height:76px;flex:0 0 76px;border-radius:50%;display:grid;place-items:center;background:var(--cct-ink);color:#fff;font-weight:700;letter-spacing:2px;border:4px solid #d6b8a1;outline:1px solid var(--cct-ink)}.cct-eyebrow{margin:0 0 5px;color:var(--cct-burgundy);font-size:10px;font-weight:700;letter-spacing:1.7px}.cct-header h2{font:700 clamp(23px,4vw,31px)/1.1 Georgia,serif;margin:0}.cct-subtitle{margin:7px 0 0;color:var(--cct-muted);font-size:13px}.cct-tabs{display:flex;gap:8px;padding:17px 0 22px}.cct-tabs button{border:0;background:transparent;padding:10px 15px;border-radius:999px;color:#777;font:600 13px Arial,sans-serif;cursor:pointer}.cct-tabs button.is-active{background:#f2e9e8;color:var(--cct-burgundy)}.cct-panel{display:none}.cct-panel.is-active{display:block}.cct-panel-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:17px}.cct-panel-heading h3,.cct-info-card h3{font:700 24px Georgia,serif;margin:0}.cct-refresh{border:1px solid var(--cct-line);border-radius:999px;background:#fff;padding:9px 13px;font:600 12px Arial,sans-serif;color:var(--cct-ink);cursor:pointer}.cct-shifts{display:grid;gap:12px}.cct-shift-card{display:grid;grid-template-columns:minmax(135px,.8fr) 1.5fr;border:1px solid var(--cct-line);border-radius:15px;overflow:hidden;background:#fff}.cct-shift-date{background:var(--cct-paper);padding:18px;display:flex;flex-direction:column;justify-content:center;gap:8px;color:#625d60;font-size:12px;text-transform:capitalize}.cct-shift-date strong{font-size:15px;color:var(--cct-ink);white-space:nowrap}.cct-shift-content{padding:17px 19px}.cct-shift-content h4{font:700 18px Georgia,serif;margin:0 0 5px}.cct-location,.cct-notes{font-size:12px;color:var(--cct-muted);margin:5px 0}.cct-shift-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.cct-status{font-size:11px;font-weight:700;color:#477452;background:#edf4ed;border-radius:999px;padding:7px 10px}.cct-status.is-full{color:#8b5353;background:#f7eeee}.cct-button{border:1px solid var(--cct-line);background:#fff;border-radius:999px;padding:10px 16px;font:600 12px Arial,sans-serif;cursor:pointer;color:var(--cct-ink)}.cct-button-primary{background:var(--cct-burgundy);border-color:var(--cct-burgundy);color:#fff}.cct-button:disabled{opacity:.55;cursor:not-allowed}.cct-muted,.cct-empty,.cct-error{color:var(--cct-muted);font-size:13px}.cct-empty-state{text-align:center;padding:38px 15px;background:var(--cct-paper);border-radius:15px}.cct-empty-state span{font-size:30px;color:var(--cct-burgundy)}.cct-empty-state h4{font:700 20px Georgia,serif;margin:8px 0}.cct-empty-state p{font-size:13px;color:var(--cct-muted)}.cct-info-card{background:var(--cct-paper);border-radius:16px;padding:22px}.cct-info-card ol{padding-left:20px;line-height:1.8;font-size:13px}.cct-info-card p{font-size:13px;line-height:1.65;color:#625d60}.cct-footer-note{text-align:center;color:#aaa;font-size:10px;letter-spacing:.5px;margin:24px 0 0}.cct-modal{display:none;position:fixed;inset:0;z-index:99999;align-items:center;justify-content:center;padding:16px}.cct-modal.is-open{display:flex}.cct-modal-backdrop{position:absolute;inset:0;background:rgba(20,15,17,.62)}.cct-modal-dialog{position:relative;z-index:1;background:#fff;width:min(100%,470px);max-height:90vh;overflow:auto;border-radius:20px;padding:27px;box-shadow:0 20px 70px rgba(0,0,0,.2)}.cct-modal-dialog h3{font:700 25px Georgia,serif;margin:0 0 7px}.cct-modal-close{position:absolute;right:16px;top:13px;border:0;background:transparent;font-size:28px;color:#777;cursor:pointer}.cct-modal form>label{display:block;font-size:12px;font-weight:600;margin:16px 0}.cct-modal input[type=text],.cct-modal input[type=tel]{display:block;width:100%;margin-top:7px;border:1px solid var(--cct-line);border-radius:9px;padding:12px;font:14px Arial,sans-serif}.cct-consent{display:flex!important;align-items:flex-start;gap:9px;font-weight:400!important;line-height:1.5}.cct-consent input{margin-top:3px}.cct-consent span{font-size:11px;color:#666}.cct-consent a{color:var(--cct-burgundy)}.cct-modal form>.cct-button{width:100%;margin-top:8px}.cct-form-message{font-size:12px}.cct-form-message.is-success{color:#327044}.cct-form-message.is-error{color:#a12c36}.cct-honeypot{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
@media(max-width:600px){.cct-app{margin:12px auto;padding:17px;border-radius:16px}.cct-header{gap:13px}.cct-mark{width:64px;height:64px;flex-basis:64px}.cct-shift-card{grid-template-columns:1fr}.cct-shift-date{padding:13px 16px;gap:5px}.cct-shift-content{padding:15px 16px}.cct-shift-bottom{align-items:flex-start;flex-direction:column}.cct-shift-bottom .cct-button{width:100%}.cct-panel-heading h3{font-size:21px}.cct-modal-dialog{padding:23px 19px}}

.cct-schedule-card{margin-bottom:14px;border:1px solid #e8e3dc}.cct-schedule-card ul{padding-left:20px;line-height:1.8;font-size:13px;color:#625d60}

.cct-participants{margin:12px 0;padding:10px 12px;background:#f7f5f1;border-radius:12px}.cct-participants-label{font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#641f32}.cct-participants ul{margin:6px 0 0;padding-left:18px}.cct-participants li{margin:3px 0}.cct-participants-empty{font-size:.88rem;color:#777;margin:10px 0}

/* Calendario mensual y gestión personal de reservas – v0.1.6 */
.cct-calendar{background:#fff;border:1px solid #e8e1dc;border-radius:16px;padding:14px;margin:0 0 18px;}
.cct-calendar-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.cct-calendar-head h4{margin:0;font-size:1.05rem;text-transform:capitalize;color:#641f32;}
.cct-calendar-head button{border:0;background:#f7f3f1;color:#641f32;border-radius:9px;width:36px;height:36px;font-size:25px;line-height:1;cursor:pointer;}
.cct-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;}
.cct-weekdays{margin-bottom:6px;}
.cct-weekdays span{text-align:center;color:#817a76;font-size:.78rem;font-weight:700;padding:5px 0;}
.cct-day{position:relative;min-height:39px;border:1px solid #eee8e4;border-radius:9px;background:#faf9f7;color:#332d2a;font:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;}
.cct-day.is-empty{visibility:hidden;}
.cct-day.is-outside{opacity:.28;cursor:default;}
.cct-day.is-closed{background:#eeeef0;color:#969398;text-decoration:line-through;cursor:not-allowed;}
.cct-day.is-selected{background:#641f32;color:#fff;border-color:#641f32;font-weight:700;}
.cct-day i{position:absolute;width:5px;height:5px;border-radius:50%;background:#a9a09a;bottom:4px;}
.cct-day.is-selected i{background:#fff;}
.cct-selected-date{font-size:1rem;color:#641f32;margin:14px 0 10px;}
.cct-my-reservations{margin-top:22px;border-top:1px solid #eee6e1;padding-top:16px;}
.cct-my-reservations h3{margin:0 0 10px;color:#641f32;}
.cct-my-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e9e1dc;border-radius:12px;margin:8px 0;background:#fff;}
.cct-my-item p{margin:4px 0 0;color:#706965;font-size:.88rem;}
.cct-button-cancel{background:#fff!important;color:#8a263d!important;border:1px solid #c9a7af!important;white-space:nowrap;}
@media(max-width:480px){.cct-calendar{padding:10px}.cct-day{min-height:35px;font-size:.9rem}.cct-my-item{align-items:flex-start;flex-direction:column}.cct-button-cancel{width:100%}}

.cct-app-actions{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 2px}.cct-app-actions [hidden]{display:none!important}.cct-button-whatsapp{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#eef6ef;border-color:#cfe2d1;color:#245b32}.cct-app-actions .cct-button{min-height:40px}

/* Ajuste de anchura y adaptación visual – v0.1.6.2 */
.cct-app{width:100%;max-width:780px;margin:18px auto;padding:clamp(12px,2.4vw,24px);overflow:hidden}
.cct-mark{overflow:hidden;background:#fff;border:0;outline:0;box-shadow:none}
.cct-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:50%}
.cct-header{min-width:0}
.cct-header>div:last-child{min-width:0}
.cct-header h2{overflow-wrap:anywhere}
.cct-shift-card{min-width:0}
.cct-shift-content,.cct-shift-date{min-width:0}
.cct-app-actions .cct-button{max-width:100%;white-space:normal;text-align:center}
@media(max-width:600px){
 .cct-app{width:100%;max-width:100%;margin:0 auto;padding:12px;border-radius:12px;border-left:0;border-right:0;box-shadow:none}
 .cct-header{gap:10px;padding:4px 0 16px}
 .cct-mark{width:64px;height:64px;flex:0 0 64px}
 .cct-header h2{font-size:clamp(19px,5vw,25px)}
 .cct-subtitle{font-size:12px}
 .cct-tabs{padding:12px 0 16px}
 .cct-panel-heading{align-items:center}
 .cct-calendar{padding:10px}
 .cct-calendar-grid{gap:3px}
 .cct-day{min-height:38px;border-radius:8px}
 .cct-shift-card{grid-template-columns:1fr}
 .cct-shift-date{padding:10px 12px}
 .cct-shift-content{padding:12px}
 .cct-shift-bottom{flex-direction:row;align-items:center;flex-wrap:wrap}
 .cct-shift-bottom .cct-button{width:auto;flex:1}
}

/* Ventana de bienvenida: aparece una sola vez por navegador. */
.cct-welcome-modal{z-index:100001}.cct-welcome-modal .cct-modal-dialog{width:min(100%,560px);padding:clamp(22px,4vw,32px)}.cct-welcome-modal .cct-modal-dialog h3{margin:0 0 15px}.cct-welcome-steps{padding-left:22px;margin:0 0 15px;display:grid;gap:11px;font-size:13px;line-height:1.55;color:#514b4d}.cct-welcome-steps strong{color:#242326}.cct-welcome-note{font-size:12px;line-height:1.6;color:#625d60;background:#f7f5f1;border-radius:12px;padding:13px 15px;margin:0 0 16px}.cct-welcome-accept{width:100%;min-height:44px}
.cct-install-instructions{font-size:13px;line-height:1.7;color:#514b4e}.cct-install-instructions p{margin:10px 0}.cct-install-instructions ol{padding-left:22px;margin:10px 0}.cct-install-instructions li{margin:7px 0}.cct-install-instructions strong{color:#641f32}


/* Corrección de desbordamiento de textos en tarjetas de turnos – 1.0.4 */
.cct-shift-card{grid-template-columns:minmax(0,1fr) minmax(0,1.65fr)}
.cct-shift-date,.cct-shift-content{min-width:0;max-width:100%}
.cct-shift-date strong{white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.35}
.cct-shift-content h4{white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.3}
.cct-shift-bottom{min-width:0;flex-wrap:wrap}
.cct-status{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.cct-shift-bottom .cct-button{flex:0 0 auto;max-width:100%;white-space:normal}
@media(max-width:760px){.cct-shift-card{grid-template-columns:1fr}.cct-shift-date strong{white-space:normal}}

/* Ocultar el acceso de instalación cuando la PWA ya está instalada. */
#cct-install-app[hidden]{display:none!important}


/* Mejora de legibilidad general – 1.0.12 */
.cct-eyebrow{font-size:12px;letter-spacing:1.4px}
.cct-subtitle{font-size:15px;line-height:1.5}
.cct-tabs button{font-size:15px;padding:11px 16px}
.cct-panel-heading h3,.cct-info-card h3{font-size:26px}
.cct-refresh{font-size:14px;padding:10px 15px}
.cct-shift-date{font-size:14px;line-height:1.5}
.cct-shift-date strong{font-size:16px;line-height:1.4}
.cct-shift-content h4{font-size:20px;line-height:1.35}
.cct-location,.cct-notes{font-size:14px;line-height:1.5}
.cct-status{font-size:13px;line-height:1.4;padding:8px 12px}
.cct-button{font-size:14px;padding:11px 18px;min-height:42px}
.cct-muted,.cct-empty,.cct-error{font-size:15px;line-height:1.55}
.cct-empty-state h4{font-size:22px}
.cct-empty-state p{font-size:15px;line-height:1.55}
.cct-info-card ol{font-size:15px;line-height:1.75}
.cct-info-card p{font-size:15px;line-height:1.65}
.cct-modal-dialog h3{font-size:27px}
.cct-modal form>label{font-size:14px;line-height:1.5}
.cct-modal input[type=text],.cct-modal input[type=tel]{font-size:16px;min-height:46px}
.cct-consent span{font-size:13px;line-height:1.55}
.cct-form-message{font-size:14px;line-height:1.5}
.cct-footer-note{font-size:11px}
.cct-schedule-card ul{font-size:15px;line-height:1.75}
.cct-participants-label{font-size:13px}
.cct-participants li{font-size:15px;line-height:1.5}
.cct-participants-empty{font-size:14px;line-height:1.5}
.cct-calendar-head h4{font-size:1.15rem}
.cct-weekdays span{font-size:.9rem}
.cct-day{font-size:1rem}
.cct-selected-date{font-size:1.1rem}
.cct-my-reservations h3{font-size:1.35rem}
.cct-my-item{font-size:15px;line-height:1.5}
.cct-my-item p{font-size:14px;line-height:1.5}
.cct-welcome-steps{font-size:15px;line-height:1.65}
.cct-welcome-note{font-size:14px;line-height:1.65}
.cct-install-instructions{font-size:15px;line-height:1.7}
@media(max-width:600px){
 .cct-header h2{font-size:clamp(21px,5.4vw,27px)}
 .cct-subtitle{font-size:14px}
 .cct-tabs button{font-size:14px;padding:10px 13px}
 .cct-panel-heading h3{font-size:23px}
 .cct-shift-date{font-size:14px}
 .cct-shift-date strong{font-size:16px}
 .cct-shift-content h4{font-size:19px}
 .cct-location,.cct-notes{font-size:14px}
 .cct-status{font-size:13px}
 .cct-button{font-size:14px;min-height:44px}
 .cct-day{font-size:.95rem;min-height:40px}
 .cct-weekdays span{font-size:.82rem}
 .cct-my-item{font-size:15px}
 .cct-my-item p{font-size:14px}
 .cct-footer-note{font-size:11px}
}
