:root{
  --green-deep:#1b4d38;
  --green-mid:#2f7d57;
  --green-soft:#4f9c74;
  --sage:#dceee3;
  --sage-light:#eef8f1;
  --cream:#fbfaf6;
  --gold:#c99a4a;
  --gold-soft:#f1ddb3;
  --text:#26312c;
  --text-light:#5f6f67;
  --difficult:#c97b63;
  --shadow: 0 4px 20px rgba(27,77,56,0.08);
  --shadow-lg: 0 12px 36px rgba(27,77,56,0.14);
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(79,156,116,0.10), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(201,154,74,0.10), transparent 40%),
    linear-gradient(180deg, var(--cream) 0%, var(--sage-light) 100%);
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:'Lora',serif; color:var(--green-deep); margin:0;}
.wrap{max-width:880px; margin:0 auto; padding:28px 20px 80px;}
.hidden{display:none !important;}

/* ============ AUTH SCREEN ============ */
.auth-wrap{
  max-width:420px; margin:8vh auto; padding:0 20px;
}
.auth-logo{text-align:center; margin-bottom:18px;}
.auth-logo .emoji{font-size:34px;}
.auth-logo h1{font-size:22px; margin-top:6px;}
.auth-logo p{color:var(--text-light); font-size:13.5px; margin-top:6px;}
.auth-card{
  background:#fff; border-radius:20px; padding:28px 26px; box-shadow:var(--shadow-lg);
  border:1px solid rgba(27,77,56,0.06);
}
.auth-toggle{
  display:flex; background:var(--sage); border-radius:12px; padding:4px; margin-bottom:22px;
}
.auth-toggle button{
  flex:1; border:none; background:transparent; padding:9px; border-radius:9px; font-weight:600;
  font-size:13.5px; color:var(--green-deep); cursor:pointer; transition:all .15s ease;
}
.auth-toggle button.active{background:var(--green-deep); color:#fff;}
.auth-field{margin-bottom:16px;}
.auth-field label{
  display:block; font-size:13px; font-weight:600; color:var(--green-deep); margin-bottom:6px;
}
.auth-field input{
  width:100%; font-family:'Inter',sans-serif; font-size:14.5px; color:var(--text);
  border:1.5px solid var(--sage); border-radius:12px; padding:11px 14px;
  background:var(--sage-light); transition:border-color .15s ease;
}
.auth-field input:focus{outline:none; border-color:var(--green-soft); background:#fff;}
.auth-hint{font-size:12px; color:var(--text-light); margin-top:5px;}
.auth-error{
  background:#fdeceb; border:1px solid #f3c8c1; color:#9a3d2f; font-size:13px;
  border-radius:10px; padding:10px 12px; margin-bottom:14px; display:none;
}
.auth-error.show{display:block;}
.auth-submit{
  width:100%; background:var(--green-deep); color:#fff; border:none; border-radius:12px;
  padding:12px; font-weight:700; font-size:14.5px; cursor:pointer; transition:all .15s ease;
}
.auth-submit:hover{background:var(--green-mid);}
.auth-submit:disabled{opacity:.6; cursor:not-allowed;}
.auth-footer-note{
  text-align:center; color:var(--text-light); font-size:11.5px; margin-top:18px; line-height:1.6;
}
.auth-link-btn{
  display:block; width:100%; text-align:center; background:none; border:none; cursor:pointer;
  color:var(--green-mid); font-size:13px; font-weight:600; margin-top:14px; padding:4px;
}
.auth-link-btn:hover{text-decoration:underline; color:var(--green-deep);}
.auth-intro{font-size:13.5px; color:var(--text-light); margin:0 0 18px; line-height:1.55;}
.auth-success{
  background:#eaf6ee; border:1px solid #bfe3cc; color:#1b4d38; font-size:13px;
  border-radius:10px; padding:10px 12px; margin-bottom:14px; display:none; line-height:1.5;
}
.auth-success.show{display:block;}
.auth-dev-note{
  background:var(--gold-soft); border:1px solid #e3c374; color:#6b4f1f; font-size:12px;
  border-radius:10px; padding:9px 11px; margin-top:10px; line-height:1.5; word-break:break-all; display:none;
}
.auth-dev-note.show{display:block;}

/* HEADER */
.header{text-align:center; margin-bottom:8px; position:relative;}
.header .eyebrow{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--green-mid); font-weight:600; margin-bottom:10px;
}
.header h1{font-size:clamp(26px,4vw,36px); font-weight:700; line-height:1.2;}
.header p{color:var(--text-light); font-size:15px; margin-top:8px;}

.user-bar{
  display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:18px; flex-wrap:wrap;
}
.user-badge{
  background:#fff; border:1.5px solid var(--sage); border-radius:30px; padding:6px 14px 6px 8px;
  display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:var(--green-deep);
  box-shadow:var(--shadow);
}
.user-badge .avatar{
  width:24px; height:24px; border-radius:50%; background:var(--green-deep); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700;
}
.logout-btn{
  background:none; border:1.5px solid var(--sage); color:var(--text-light); font-size:12.5px;
  font-weight:600; padding:6px 14px; border-radius:30px; cursor:pointer; transition:all .15s ease;
}
.logout-btn:hover{border-color:var(--difficult); color:var(--difficult);}

/* PROGRESS RIBBON */
.progress-ribbon{
  margin:10px 0 18px; display:flex; align-items:center; justify-content:center; gap:14px;
}
.progress-ribbon .count{
  font-family:'Lora',serif; font-weight:700; font-size:22px; color:var(--green-deep);
}
.progress-track{
  flex:1; max-width:280px; height:8px; background:var(--sage); border-radius:8px; overflow:hidden;
}
.progress-fill{
  height:100%; background:linear-gradient(90deg, var(--green-soft), var(--gold)); border-radius:8px;
  transition:width .5s ease;
}

.sync-note{
  text-align:center; font-size:12px; color:var(--text-light); margin:-6px 0 18px; line-height:1.6;
}

/* TABS */
.tabs{
  display:flex; gap:6px; background:var(--sage); border-radius:14px; padding:5px;
  margin:0 auto 28px; max-width:640px; flex-wrap:wrap;
}
.tab-btn{
  flex:1; min-width:130px; border:none; background:transparent; padding:11px 8px; border-radius:10px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:13px; color:var(--green-deep);
  cursor:pointer; transition:all .2s ease; letter-spacing:0.01em;
}
.tab-btn.active{background:var(--green-deep); color:#fff; box-shadow:var(--shadow);}
.tab-btn:not(.active):hover{background:rgba(255,255,255,0.6);}

.view{display:none;}
.view.active{display:block; animation:fadeIn .35s ease;}
@keyframes fadeIn{from{opacity:0; transform:translateY(6px);} to{opacity:1; transform:translateY(0);}}

/* GRATITUDE PATH */
.path-card{
  background:#fff; border-radius:20px; padding:22px 20px 18px; box-shadow:var(--shadow);
  margin-bottom:24px; border:1px solid rgba(27,77,56,0.06);
}
.week-block{margin-bottom:14px;}
.week-block:last-child{margin-bottom:0;}
.week-label{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--green-mid); margin-bottom:8px; display:flex; align-items:center; gap:8px;
}
.week-label::after{content:""; flex:1; height:1px; background:var(--sage);}
.vine-row{display:flex; align-items:center; gap:4px; flex-wrap:nowrap; overflow-x:auto; padding:4px 2px;}
.leaf-btn{
  position:relative; flex:0 0 auto; width:38px; height:38px; border-radius:50%;
  border:2px solid var(--sage); background:var(--sage-light); color:var(--green-mid);
  font-family:'Inter',sans-serif; font-weight:700; font-size:13px;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:all .2s ease;
}
.leaf-btn .stem{position:absolute; top:50%; right:-8px; width:8px; height:2px; background:var(--sage); transform:translateY(-50%);}
.leaf-btn:last-child .stem{display:none;}
.leaf-btn.filled{background:var(--green-mid); border-color:var(--green-mid); color:#fff;}
.leaf-btn.filled .stem{background:var(--green-soft);}
.leaf-btn.today{background:var(--green-mid); border-color:var(--green-mid); color:#fff;}
.leaf-btn.today .stem{background:var(--green-soft);}
.leaf-btn.current{border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-soft);}
.leaf-btn:hover{transform:translateY(-2px);}
.week-reflect-link{
  margin-top:10px; font-size:13px; font-weight:600; color:var(--gold); background:none; border:none;
  cursor:pointer; padding:0; display:inline-flex; align-items:center; gap:5px;
}
.week-reflect-link:hover{text-decoration:underline;}

/* CARD / FORM */
.card{
  background:#fff; border-radius:20px; padding:26px 24px; box-shadow:var(--shadow);
  border:1px solid rgba(27,77,56,0.06); margin-bottom:20px;
}
.card-head{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:4px; flex-wrap:wrap;}
.card-head h2{font-size:21px;}
.save-status{font-size:12.5px; color:var(--text-light); display:flex; align-items:center; gap:5px; min-height:18px;}
.save-status.saved{color:var(--green-mid); font-weight:600;}
.save-status.saving{color:var(--gold);}
.card-sub{color:var(--text-light); font-size:14px; margin:6px 0 20px;}

.mood-row{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:22px;}
.mood-chip{
  border:1.5px solid var(--sage); background:var(--sage-light); border-radius:30px; padding:8px 16px;
  font-size:13.5px; font-weight:600; color:var(--text); cursor:pointer; transition:all .15s ease;
  display:flex; align-items:center; gap:6px;
}
.mood-chip.selected{background:var(--green-deep); border-color:var(--green-deep); color:#fff;}
.mood-chip:hover:not(.selected){border-color:var(--green-soft);}

.field-group{margin-bottom:22px;}
.field-group:last-child{margin-bottom:0;}
.field-label{
  display:flex; align-items:center; gap:9px; font-family:'Lora',serif; font-weight:600;
  font-size:16px; color:var(--green-deep); margin-bottom:6px;
}
.field-num{
  width:24px; height:24px; border-radius:50%; background:var(--sage); color:var(--green-deep);
  font-family:'Inter',sans-serif; font-size:12px; font-weight:700; display:flex; align-items:center;
  justify-content:center; flex:0 0 auto;
}
.field-hint{font-size:13px; color:var(--text-light); margin:0 0 10px 33px;}
textarea, input[type=text]{
  width:100%; font-family:'Inter',sans-serif; font-size:14.5px; color:var(--text);
  border:1.5px solid var(--sage); border-radius:12px; padding:11px 14px; resize:vertical;
  background:var(--sage-light); transition:border-color .15s ease;
}
textarea{min-height:54px; line-height:1.5;}
textarea:focus, input[type=text]:focus{outline:none; border-color:var(--green-soft); background:#fff;}
.three-things textarea{min-height:42px;}
.three-things .field-group > div{display:flex; flex-direction:column; gap:8px;}

.two-col{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width:560px){.two-col{grid-template-columns:1fr;}}

.btn-row{display:flex; justify-content:flex-end; margin-top:6px;}
.btn{
  border:none; border-radius:12px; padding:11px 22px; font-weight:600; font-size:14px;
  cursor:pointer; font-family:'Inter',sans-serif; transition:all .15s ease;
}
.btn-primary{background:var(--green-deep); color:#fff;}
.btn-primary:hover{background:var(--green-mid);}
.btn-ghost{background:transparent; color:var(--text-light); border:1.5px solid var(--sage);}
.btn-ghost:hover{border-color:var(--green-soft); color:var(--green-deep);}

/* WEEK SELECTOR PILLS */
.week-pills{display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap;}
.week-pill{
  flex:1; min-width:90px; text-align:center; padding:10px; border-radius:12px; border:1.5px solid var(--sage);
  background:var(--sage-light); cursor:pointer; font-weight:600; font-size:13.5px; color:var(--text);
  transition:all .15s ease;
}
.week-pill.active{background:var(--green-deep); border-color:var(--green-deep); color:#fff;}
.week-pill .sub{display:block; font-size:11px; font-weight:500; opacity:.85; margin-top:2px;}

/* COMMITMENT VIEW */
.commit-banner{
  background:linear-gradient(135deg, var(--green-deep), var(--green-mid)); color:#fff;
  border-radius:20px; padding:24px 26px; margin-bottom:20px; box-shadow:var(--shadow-lg);
}
.commit-banner h2{color:#fff; font-size:20px; margin-bottom:6px;}
.commit-banner p{margin:0; font-size:14px; opacity:.92; line-height:1.55;}
.sign-row{display:grid; grid-template-columns:2fr 1fr; gap:14px; align-items:end;}
@media (max-width:560px){.sign-row{grid-template-columns:1fr;}}
.closing-note{
  margin-top:24px; background:var(--gold-soft); border-radius:16px; padding:18px 20px;
  font-family:'Lora',serif; font-style:italic; color:var(--green-deep); font-size:15px; text-align:center;
  line-height:1.6;
}

.footer-note{
  text-align:center; color:var(--text-light); font-size:12.5px; margin-top:30px; line-height:1.7;
}
.reset-link{
  background:none; border:none; color:var(--text-light); font-size:12px; text-decoration:underline;
  cursor:pointer; margin-top:10px;
}

/* RESUMEN / CALENDARIO */
.summary-week-title{
  font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:0.07em;
  color:var(--green-mid); margin:18px 0 10px; display:flex; align-items:center; gap:8px;
}
.summary-week-title:first-child{margin-top:0;}
.summary-week-title::after{content:""; flex:1; height:1px; background:var(--sage);}
.summary-grid{
  display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; margin-bottom:6px;
}
@media (max-width:680px){.summary-grid{grid-template-columns:repeat(4, 1fr);}}
@media (max-width:420px){.summary-grid{grid-template-columns:repeat(3, 1fr);}}
.summary-card{
  background:var(--sage-light); border:1.5px solid var(--sage); border-radius:12px; padding:9px 7px;
  cursor:pointer; transition:all .15s ease; text-align:left; min-height:74px;
  display:flex; flex-direction:column; gap:3px;
}
.summary-card:hover{border-color:var(--green-soft); transform:translateY(-2px);}
.summary-card.filled{background:#fff; border-color:var(--green-soft);}
.summary-card .sc-day{font-family:'Lora',serif; font-weight:700; font-size:13px; color:var(--green-deep);}
.summary-card .sc-mood{font-size:15px;}
.summary-card .sc-snippet{
  font-size:10.5px; color:var(--text-light); line-height:1.3; overflow:hidden; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.summary-card.empty .sc-snippet{font-style:italic; opacity:.7;}

.reflect-summary-row{display:flex; flex-direction:column; gap:10px; margin-top:6px;}
.reflect-summary-card{
  border:1.5px solid var(--sage); border-radius:14px; padding:13px 16px; cursor:pointer;
  transition:all .15s ease; background:var(--sage-light);
}
.reflect-summary-card:hover{border-color:var(--green-soft);}
.reflect-summary-card.filled{background:#fff;}
.reflect-summary-card .rs-head{display:flex; justify-content:space-between; align-items:center; font-weight:700; color:var(--green-deep); font-size:13.5px;}
.reflect-summary-card .rs-quote{font-size:13px; color:var(--text-light); font-style:italic; margin-top:4px;}

.export-card{
  background:linear-gradient(135deg, var(--green-deep), var(--green-mid)); color:#fff;
  border-radius:20px; padding:22px 24px; margin-top:22px; box-shadow:var(--shadow-lg);
}
.export-card h3{color:#fff; font-size:17px; margin-bottom:6px;}
.export-card p{margin:0 0 14px; font-size:13.5px; opacity:.92; line-height:1.55;}
.export-options{display:flex; align-items:center; gap:8px; margin-bottom:14px; font-size:13px;}
.export-options input{accent-color:var(--gold);}
.btn-export{
  background:#fff; color:var(--green-deep); border:none; border-radius:12px; padding:11px 22px;
  font-weight:700; font-size:14px; cursor:pointer; transition:all .15s ease;
}
.btn-export:hover{background:var(--gold-soft);}
.btn-export:disabled{opacity:.6; cursor:not-allowed;}
.export-status{font-size:12.5px; margin-top:10px; opacity:.92;}

/* NOTAS */
.note-input-row{display:flex; flex-direction:column; gap:10px;}
.note-list{display:flex; flex-direction:column; gap:12px; margin-top:22px;}
.note-item{
  background:var(--sage-light); border:1.5px solid var(--sage); border-radius:14px;
  padding:14px 16px; position:relative;
}
.note-item .note-date{
  font-size:11.5px; color:var(--green-mid); font-weight:700; text-transform:uppercase;
  letter-spacing:0.04em; margin-bottom:6px; display:block;
}
.note-item .note-text{
  font-size:14px; color:var(--text); line-height:1.55; white-space:pre-wrap; margin:0; padding-right:28px;
}
.note-delete{
  position:absolute; top:12px; right:12px; background:none; border:none; cursor:pointer;
  color:var(--text-light); font-size:15px; line-height:1; padding:2px 4px; border-radius:6px;
  transition:all .15s ease;
}
.note-delete:hover{color:var(--difficult); background:rgba(201,123,99,0.12);}
.notes-empty{text-align:center; color:var(--text-light); font-size:13.5px; padding:24px 0; font-style:italic;}

/* HISTÓRICO */
.history-form{
  display:flex; align-items:end; gap:14px; flex-wrap:wrap; margin-bottom:6px;
}
.history-field{display:flex; flex-direction:column; gap:6px; min-width:140px;}
.history-field label{font-size:13px; font-weight:600; color:var(--green-deep);}
.history-field input, .history-field select{
  font-family:'Inter',sans-serif; font-size:14.5px; color:var(--text);
  border:1.5px solid var(--sage); border-radius:12px; padding:10px 12px;
  background:var(--sage-light);
}
.history-field input:focus, .history-field select:focus{outline:none; border-color:var(--green-soft); background:#fff;}
.history-status{font-size:13px; color:var(--text-light); margin-top:12px; min-height:18px;}
.history-status.error{color:var(--difficult); font-weight:600;}

.history-subtitle{
  font-size:15px; color:var(--green-deep); margin:24px 0 10px; font-family:'Lora',serif; font-weight:600;
}
.history-subtitle:first-of-type{margin-top:6px;}
.history-table-wrap{overflow-x:auto; border:1px solid var(--sage); border-radius:14px;}
.history-table{
  width:100%; border-collapse:collapse; font-size:13px; min-width:760px;
}
.history-table th{
  background:var(--green-deep); color:#fff; text-align:left; padding:10px 12px;
  font-weight:600; font-size:12.5px; white-space:nowrap;
}
.history-table td{
  padding:10px 12px; border-bottom:1px solid var(--sage); vertical-align:top; color:var(--text);
  max-width:220px;
}
.history-table tbody tr:nth-child(even){background:var(--sage-light);}
.history-table tbody tr:last-child td{border-bottom:none;}
.history-table td.empty-cell{color:var(--text-light); font-style:italic;}
.history-empty{
  text-align:center; color:var(--text-light); font-size:13.5px; padding:16px; font-style:italic;
}

/* BANNERS DE IMAGEN POR PESTAÑA */
.tab-banner{
  width:100%; height:200px; border-radius:20px; overflow:hidden; margin-bottom:20px;
  box-shadow:var(--shadow); position:relative;
}
.tab-banner img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.tab-banner::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(27,77,56,0) 55%, rgba(27,77,56,0.18) 100%);
}
@media (max-width:560px){.tab-banner{height:150px;}}

.loading-screen{
  display:flex; align-items:center; justify-content:center; min-height:60vh; color:var(--text-light);
  font-size:14px;
}

/* TOAST DE CONFIRMACIÓN */
.role-pill{
  background:var(--gold); color:#fff; font-size:10.5px; font-weight:700; text-transform:uppercase;
  letter-spacing:0.06em; padding:3px 9px; border-radius:30px; margin-left:4px;
}

/* MODALES */
.modal-overlay{
  position:fixed; inset:0; background:rgba(20,40,30,0.55); z-index:2000;
  display:flex; align-items:center; justify-content:center; padding:20px;
  backdrop-filter:blur(2px);
}
.modal-card{
  background:#fff; border-radius:20px; padding:28px 26px; max-width:440px; width:100%;
  max-height:88vh; overflow-y:auto; box-shadow:var(--shadow-lg); position:relative;
}
.modal-card-wide{max-width:920px;}
.modal-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;}
.modal-head h3{font-size:19px;}
.modal-close{
  background:var(--sage-light); border:none; width:32px; height:32px; border-radius:50%;
  font-size:15px; color:var(--text-light); cursor:pointer; transition:all .15s ease; flex:0 0 auto;
}
.modal-close:hover{background:var(--sage); color:var(--green-deep);}

.admin-create-card{
  background:var(--sage-light); border-radius:16px; padding:20px; margin-bottom:24px;
}
.admin-create-card h4{font-size:15px; color:var(--green-deep); margin-bottom:12px;}
.admin-create-form{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.admin-create-form .auth-field:last-of-type{grid-column:1 / -1;}
.admin-create-form .auth-submit{grid-column:1 / -1;}
@media (max-width:560px){ .admin-create-form{grid-template-columns:1fr;} }

.password-with-action{display:flex; gap:8px;}
.password-with-action input{flex:1;}
.mini-btn{
  background:var(--green-deep); color:#fff; border:none; border-radius:10px; padding:0 14px;
  font-size:12.5px; font-weight:600; cursor:pointer; white-space:nowrap; transition:all .15s ease;
}
.mini-btn:hover{background:var(--green-mid);}

.admin-table-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.admin-table-head h4{font-size:15px; color:var(--green-deep);}

.reset-pwd-row{display:flex; gap:6px; align-items:center;}
.reset-pwd-row input{
  width:120px; font-size:12px; padding:6px 8px; border-radius:8px; border:1.5px solid var(--sage);
}
.reset-pwd-row .mini-btn{padding:5px 10px; font-size:11.5px;}

.backup-form .field-group{margin-bottom:20px;}
.backup-toggle-row{
  display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--green-deep);
  margin-bottom:22px; cursor:pointer;
}
.backup-toggle-row input{width:18px; height:18px; accent-color:var(--green-deep); cursor:pointer;}
.backup-status-box{
  margin-top:20px; padding:16px 18px; border-radius:14px; background:var(--sage-light);
  border:1px solid var(--sage); font-size:13.5px; color:var(--text); display:none;
}
.backup-status-box.show{display:block;}
.backup-status-box.status-enviado{background:#eaf6ee; border-color:#bfe3cc;}
.backup-status-box.status-error{background:#fdeceb; border-color:#f3c8c1;}
.backup-status-box strong{color:var(--green-deep);}

.toast-container{
  position:fixed; left:0; right:0; bottom:24px; display:flex; flex-direction:column;
  align-items:center; gap:10px; pointer-events:none; z-index:9999;
}
.toast{
  display:flex; align-items:center; gap:10px; background:var(--green-deep); color:#fff;
  padding:13px 20px; border-radius:14px; box-shadow:var(--shadow-lg); font-size:14px; font-weight:600;
  max-width:90vw; opacity:0; transform:translateY(14px); transition:opacity .25s ease, transform .25s ease;
  pointer-events:auto;
}
.toast.show{opacity:1; transform:translateY(0);}
.toast.error{background:var(--difficult);}
.toast .toast-icon{font-size:16px; line-height:1;}
@media (max-width:480px){
  .toast{font-size:13px; padding:11px 16px;}
}

/* CALIFICACIONES 1-10 (Reflexión semanal) */
.rating-rows{display:flex; flex-direction:column; gap:16px; margin-top:8px;}
.rating-row{display:flex; flex-direction:column; gap:8px;}
.rating-row-head{display:flex; justify-content:space-between; align-items:baseline; font-size:13.5px;}
.rating-row-head .rating-name{font-weight:600; color:var(--green-deep);}
.rating-row-head .rating-value{
  font-family:'Lora',serif; font-weight:700; color:var(--gold); min-width:48px; text-align:right;
}
.rating-row input[type=range]{
  width:100%; accent-color:var(--green-mid); height:6px; cursor:pointer;
}
.rating-row .rating-clear{
  background:none; border:none; color:var(--text-light); font-size:11.5px; text-decoration:underline;
  cursor:pointer; align-self:flex-end; padding:0;
}

/* BIBLIOTECA DE REFLEXIONES */
.word-chip-row{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 6px;}
.word-chip{
  background:var(--sage-light); border:1.5px solid var(--sage); border-radius:30px;
  padding:7px 14px; font-size:13px; font-weight:600; color:var(--green-deep);
  display:inline-flex; align-items:center; gap:6px;
}
.word-chip .wc-count{
  background:var(--green-mid); color:#fff; font-size:11px; font-weight:700; border-radius:50%;
  width:20px; height:20px; display:flex; align-items:center; justify-content:center;
}
.word-chip.size-lg{font-size:15.5px; padding:9px 16px;}
.word-chip.size-md{font-size:13.5px;}
.word-chip.size-sm{font-size:12px; opacity:.85;}

.repeat-list{display:flex; flex-direction:column; gap:8px; margin:10px 0 6px;}
.repeat-item{
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  background:var(--sage-light); border:1.5px solid var(--sage); border-radius:12px; padding:10px 14px;
  font-size:13.5px; color:var(--text);
}
.repeat-item .ri-badge{
  background:var(--gold); color:#fff; font-size:11.5px; font-weight:700; border-radius:30px;
  padding:3px 10px; flex:0 0 auto; white-space:nowrap;
}

.learning-list{display:flex; flex-direction:column; gap:8px; margin:10px 0 6px;}
.learning-item{
  background:var(--sage-light); border-left:3px solid var(--green-mid); border-radius:0 12px 12px 0;
  padding:9px 14px; font-size:13.5px; color:var(--text);
}
.learning-item .li-day{font-weight:700; color:var(--green-deep); margin-right:6px;}

/* RINCÓN DE ORACIÓN Y FE */
.faith-card{border-top:3px solid var(--gold-soft);}

/* INSPIRACIÓN DEL DÍA */
.inspiration-hero{
  position:relative; width:100%; height:280px; border-radius:24px; overflow:hidden;
  margin-bottom:24px; box-shadow:var(--shadow-lg);
}
.inspiration-hero img{width:100%; height:100%; object-fit:cover; display:block;}
.inspiration-hero-overlay{
  position:absolute; inset:0; display:flex; flex-direction:column; justify-content:flex-end;
  padding:24px 26px; background:linear-gradient(180deg, rgba(27,77,56,0) 35%, rgba(20,40,30,0.78) 100%);
}
.inspiration-hero-eyebrow{
  color:#fff; font-size:12.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  opacity:.95; margin-bottom:4px;
}
.inspiration-hero-overlay h2{
  color:#fff; font-size:26px; font-weight:700; text-shadow:0 2px 10px rgba(0,0,0,0.25);
}
@media (max-width:560px){
  .inspiration-hero{height:200px;}
  .inspiration-hero-overlay h2{font-size:20px;}
}

.inspiration-card{
  border-radius:22px; padding:32px 28px; margin-bottom:22px; box-shadow:var(--shadow);
  position:relative; overflow:hidden;
}
.quote-card{
  background:linear-gradient(135deg, var(--green-deep), var(--green-mid)); color:#fff; text-align:center;
}
.quote-mark{
  font-family:'Lora',serif; font-size:64px; line-height:1; color:rgba(255,255,255,0.35);
  position:absolute; top:6px; left:20px;
}
.quote-text{
  font-family:'Lora',serif; font-style:italic; font-size:21px; line-height:1.55; font-weight:500;
  max-width:560px; margin:18px auto 14px; position:relative; z-index:1;
}
@media (max-width:560px){ .quote-text{font-size:17px;} }
.quote-author{
  font-size:13px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; opacity:.85;
}

.prayer-card{
  background:linear-gradient(135deg, var(--gold-soft), var(--cream)); border:1px solid var(--gold);
}
.prayer-head{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.prayer-head .prayer-icon{font-size:24px;}
.prayer-head h3{font-size:18px; color:var(--green-deep);}
.prayer-text{
  font-family:'Lora',serif; font-size:17px; line-height:1.65; color:var(--text); font-style:italic;
  margin-bottom:10px;
}
.prayer-reference{
  font-size:12.5px; font-weight:700; color:var(--green-mid); text-transform:uppercase; letter-spacing:0.04em;
}

.psalm-card{
  background:linear-gradient(135deg, var(--sage-light), #fff); border:1px solid var(--sage);
}
.psalm-text{
  font-family:'Lora',serif; font-size:16px; line-height:1.7; color:var(--text);
  margin-bottom:12px;
}
.psalm-text:first-of-type::first-letter{
  font-size:28px; font-weight:700; color:var(--green-deep); font-family:'Lora',serif;
}

.inspiration-footnote{
  text-align:center; color:var(--text-light); font-size:13px; font-style:italic; margin-top:4px;
}
