
/* CDA-D8 · D7 maestro visual · SOLO PRESENTACIÓN
   Fuentes: assets/IMG_* webp originales del paquete D7, 6 recursos first-party.
   Conservar JS/DOM dinámico, 26+9 fechas, intenciones locales, A−/A+, cache offline.
*/
:root {
  --d7-paper:#fffbf3;
  --d7-cream:#fbf3e7;
  --d7-plum:#551839;
  --d7-wine:#77314f;
  --d7-gold:#b98c43;
  --d7-green:#1f5a48;
  --d7-line:#e8d7c4;
  --d7-muted:#715e62;
  --d7-shadow:0 10px 25px rgba(74,34,44,.085);
}
html[data-theme] {background:var(--d7-cream);scroll-padding-bottom:95px;}
html[data-theme] body {background:radial-gradient(circle at 50% 4%,#fffcf5, var(--d7-cream) 60%,#f9eddf);color:#392632;}
html[data-theme] .app-shell {width:min(100%,900px);max-width:900px;min-width:0;padding:0 clamp(16px,3vw,34px) 108px;overflow:visible;}
html[data-theme] .topbar {
  position:relative;display:flex;align-items:center;justify-content:center;
  min-height:115px;margin:0;border:0;border-radius:0;box-shadow:none;
  background:transparent;padding:12px 56px 15px;
}
html[data-theme] .topbar .brand {display:flex;flex-direction:column;gap:2px;align-items:center;text-align:center;color:var(--d7-plum);}
html[data-theme] .topbar .brand-mark{display:block;height:29px;width:36px;background:transparent;box-shadow:none;color:var(--d7-gold);font-size:28px;line-height:1;}
html[data-theme] .topbar .brand-text {
  color:var(--d7-plum);font:600 clamp(20px,3.5vw,28px)/1.16 Georgia,"Times New Roman",serif;letter-spacing:-.035em;
}
html[data-theme] .topbar .brand-text small{display:block;margin-top:8px;color:#8c633b;font:700 9px/1.3 system-ui,sans-serif;letter-spacing:1.5px;}
html[data-theme] .topbar-actions{position:absolute;right:0;top:26px;height:46px;display:flex;align-items:center}
html[data-theme] .topbar .edition{display:none}
html[data-theme] .appearance-trigger{
  width:46px;height:46px;min-height:46px;min-width:46px;padding:9px;
  border-radius:50%;background:var(--d7-paper);color:var(--d7-plum);
  border:1px solid var(--d7-line);box-shadow:var(--d7-shadow);
}
html[data-theme] .appearance-trigger span{display:none}
html[data-theme] #view-inicio .hero.hero-d6{
  display:flex;flex-direction:column;min-height:0;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:visible;background:transparent;
}
html[data-theme] .hero.hero-d6::before,html[data-theme] .hero.hero-d6::after{display:none}
html[data-theme] #view-inicio .hero.hero-d6 .hero-copy{
  order:0;max-width:580px;margin:auto;z-index:1;text-align:center;padding:7px 2px 18px;
}
html[data-theme] #view-inicio .hero.hero-d6 .eyebrow{margin:0 0 8px;font:700 10px/1.4 system-ui,sans-serif;letter-spacing:2px;color:#967043;}
html[data-theme] #view-inicio .hero.hero-d6 h1{
  font:600 clamp(28px,5vw,37px)/1.19 Georgia,"Times New Roman",serif;color:var(--d7-plum);letter-spacing:-.038em;margin:0 0 11px;
}
html[data-theme] #view-inicio .hero.hero-d6 h1 em{color:var(--d7-plum);}
html[data-theme] #view-inicio .hero.hero-d6 .hero-sub{font:400 15px/1.55 system-ui,sans-serif;margin:0 auto;color:#604953;max-width:430px;}
html[data-theme] #view-inicio .hero.hero-d6 .hero-actions{display:none}
html[data-theme] #view-inicio .hero.hero-d6 .hero-art{
  order:1;position:relative;height:auto;min-height:0;aspect-ratio:16/9;
  margin:6px 0 0;width:100%;border:0;border-radius:22px;box-shadow:var(--d7-shadow);
  overflow:hidden;background:linear-gradient(135deg,#733450,#35152e);
}
html[data-theme] #view-inicio .hero.hero-d6 .hero-art::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(0deg,#2a0b27a6,transparent 45%),
    url("./assets/IMG_HOME_HERO_CANDLES.webp") center 43%/cover no-repeat;
}
html[data-theme] #view-inicio .hero.hero-d6 .hero-art::after{
  content:"";position:absolute;bottom:13px;left:15px;z-index:3;
  color:white;font:700 10px/1.3 system-ui,sans-serif;letter-spacing:.16em;
  text-shadow:0 2px 9px #2b102c;content:"ADVIENTO · ORACIÓN · ESPERANZA";
}
html[data-theme] #view-inicio .hero.hero-d6 .hero-illustration{display:none;}
html[data-theme] #view-inicio .hero.hero-d6 .hero-art-glow{display:none;}
html[data-theme] #view-inicio .status-strip{
  margin:12px 0 20px;background:var(--d7-paper);border:1px solid var(--d7-line);
  box-shadow:0 3px 14px #4b26310e;border-radius:16px;padding:11px 8px;
}
html[data-theme] #view-inicio .status-strip strong{font:600 13px/1.25 Georgia,serif;color:var(--d7-plum);}
html[data-theme] #view-inicio .content-block:first-of-type{margin-top:0;}
html[data-theme] #view-inicio .content-block .section-title-row{margin:0 0 9px;}
html[data-theme] #view-inicio .content-block .section-title-row .eyebrow{font-size:9px;color:var(--d7-gold);letter-spacing:1.5px;}
html[data-theme] #view-inicio .content-block .section-title-row h2{font:600 clamp(21px,4vw,28px)/1.16 Georgia,serif;color:var(--d7-plum);}
html[data-theme] #view-inicio .featured-card{
  display:flex;flex-direction:column;min-height:0;align-items:stretch;gap:12px;
  padding:25px 20px 17px;border:1.5px solid #ddc19b;border-radius:22px;
  background:var(--d7-paper);box-shadow:var(--d7-shadow);color:#3b2832;text-align:center;
}
html[data-theme] #view-inicio .featured-card::before{display:none}
html[data-theme] #view-inicio .featured-card .featured-tag{
  display:inline-block;padding:5px 11px;background:#f3e2e6;border-radius:20px;color:var(--d7-plum);
  font:700 10px/1.35 system-ui,sans-serif;letter-spacing:.05em;
}
html[data-theme] #view-inicio .featured-card h3{margin:11px 0;font:600 clamp(24px,4.8vw,32px)/1.14 Georgia,serif;color:var(--d7-plum);}
html[data-theme] #view-inicio .featured-card p{margin:0 0 10px;font:400 14px/1.58 system-ui,sans-serif;color:#635359;max-width:640px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
html[data-theme] #view-inicio .featured-card button{min-height:47px;width:min(100%,480px);margin:auto;background:var(--d7-plum);border-radius:999px;color:#fff;font-weight:700;}
html[data-theme] #view-inicio .featured-card button:disabled{background:#80667a;color:white;}
html[data-theme] #view-inicio .journey-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
html[data-theme] #view-inicio .journey-card{
  position:relative;min-width:0;min-height:100px;
  display:grid;grid-template-columns:80px minmax(0,1fr);grid-template-rows:auto auto auto;
  align-items:center;text-align:left;gap:3px 12px;padding:10px;
  background:linear-gradient(145deg,var(--d7-paper),#fff2e6);
  border:1px solid var(--d7-line);border-radius:19px;box-shadow:var(--d7-shadow);
}
html[data-theme] #view-inicio .journey-card .journey-illustration-art{
  grid-column:1;grid-row:1/4;display:block;width:80px;height:80px;
  margin:0;border-radius:12px;background-color:#eeded0;background-size:cover;background-position:center;
}
html[data-theme] #view-inicio .journey-card .journey-illustration-art img{display:none}
html[data-theme] #view-inicio .journey-card[data-nav="adviento"] .journey-illustration-art{background-image:url("./assets/IMG_CARD_ADVIENTO.webp");}
html[data-theme] #view-inicio .journey-card[data-nav="guadalupe"] .journey-illustration-art{background-image:url("./assets/IMG_CARD_GUADALUPE.webp");}
html[data-theme] #view-inicio .journey-card .journey-tag{display:none;}
html[data-theme] #view-inicio .journey-card strong{grid-column:2;grid-row:1;min-width:0;margin:0;font:600 clamp(15px,2.8vw,20px)/1.19 Georgia,serif;color:var(--d7-plum);overflow-wrap:anywhere;}
html[data-theme] #view-inicio .journey-card>span:nth-last-child(2){grid-column:2;grid-row:2;font:400 11px/1.4 system-ui,sans-serif;color:#70565b;}
html[data-theme] #view-inicio .journey-card .journey-link{grid-column:2;grid-row:3;margin:0;padding:0;font-size:10px;color:var(--d7-wine);}
html[data-theme] #view-inicio .journey-card-personal{grid-column:1/-1;grid-template-columns:96px minmax(0,1fr);min-height:96px;}
html[data-theme] #view-inicio .journey-card-personal .journey-personal-symbol{
  grid-column:1;grid-row:1/4;display:block;margin:0;width:96px;height:78px;border-radius:12px;
  background:url("./assets/IMG_MI_CAMINO_DECOR.webp") center /cover no-repeat;
}
html[data-theme] #view-inicio .journey-card-personal .journey-personal-symbol svg{display:none;}
html[data-theme] .page-intro{margin-top:10px;margin-bottom:14px;text-align:left;max-width:760px;}
html[data-theme] .page-intro h1{color:var(--d7-plum);font:600 clamp(30px,5vw,40px)/1.15 Georgia,serif;}
html[data-theme] .calendar-art,html[data-theme] .guadalupe-art{
  position:relative;width:100%;height:auto;aspect-ratio:16/7;min-height:115px;max-height:230px;
  border-radius:20px;overflow:hidden;background:#f1e5d8;
}
html[data-theme] .calendar-art img,html[data-theme] .guadalupe-art img{display:none;}
html[data-theme] .calendar-art::before,html[data-theme] .guadalupe-art::before{
  content:"";position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;
}
html[data-theme] .calendar-art::before{background-image:url("./assets/IMG_HOME_HERO_CANDLES.webp");}
html[data-theme] .guadalupe-art::before{background-image:url("./assets/IMG_HOME_GUADALUPE_SOFT.webp");background-position: right 40%;}
html[data-theme] .calendar-tabs{gap:8px;max-width:none;}
html[data-theme] .calendar-tab{border-radius:15px;font:700 14px/1.3 Georgia,serif;}
html[data-theme] .week-heading{background:#f1dfe4;border-radius:15px;color:var(--d7-plum);}
html[data-theme] .day-card{border:1px solid var(--d7-line);border-radius:17px;box-shadow:0 3px 10px #4425380c;min-height:78px;}
html[data-theme] .day-card .day-number{background:#f3e5d5;color:#7f5836;border:1px solid #ead8c2;}
html[data-theme] .day-card .day-number svg{width:26px;height:26px;display:block;}
html[data-theme] .day-card.completed .day-number{background:#5c8545;border-color:#5c8545;color:white;}
html[data-theme] .day-card[data-day-state="available"]{border-color:#c19670;box-shadow:0 0 0 1px #c1967020;}
html[data-theme] .day-card[data-day-state="upcoming"] .day-number{color:#8f694e;}
html[data-theme] .day-card strong{font-size:clamp(15px,2.6vw,19px);}
html[data-theme] .day-card .day-caption{font-size:14px;}
html[data-theme] .day-card .day-bottom{font-size:31px;}
html[data-theme] #detail-dialog{background:var(--d7-paper);border:1px solid var(--d7-line);}
html[data-theme] #detail-dialog .detail-art{position:relative;height:auto;aspect-ratio:16/6;max-height:270px;background:#60253e;overflow:hidden;}
html[data-theme] #detail-dialog .detail-art::after{
  content:"";position:absolute;inset:0;background:url("./assets/IMG_READER_HEADER.webp") center/cover no-repeat;
}
html[data-theme] #detail-dialog .detail-art img{display:none;}
html[data-theme] #detail-dialog .reader-toolbar{margin:12px 0;}
html[data-theme] #detail-dialog .detail-title{font:600 calc(clamp(26px,4vw,36px) * var(--reader-scale))/1.17 Georgia,serif;color:var(--d7-plum);}
html[data-theme] #detail-dialog .detail-section.prayer{background:#f7e9df;border-radius:18px;}
html[data-theme] #view-camino .camino-decorative{
  width:min(100%,680px);height:135px;max-height:135px;max-width:680px;margin:7px auto 15px;mask-image:none;-webkit-mask-image:none;
  border-radius:20px;background:#ede0d4 url("./assets/IMG_MI_CAMINO_DECOR.webp") center 50%/cover no-repeat;
}
html[data-theme] #view-camino .camino-decorative img{display:none;}
html[data-theme] #view-camino .intention-card{border-radius:22px;background:var(--d7-paper);}
html[data-theme] .intention-item{padding:16px 17px;background:#fffdf9;border:1px solid var(--d7-line);}
html[data-theme] .intention-item-actions{gap:8px;display:flex;flex-wrap:wrap;}
html[data-theme] .intention-item-actions .text-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;
  border:1px solid #d8c4c5;border-radius:12px;padding:8px 12px;
  background:#fff9f3;color:var(--d7-plum);font-size:12px;font-weight:650;text-decoration:none;
}
html[data-theme] .intention-item-actions .text-button:hover{background:#f4e4e6;}
html[data-theme] .intention-item-actions .danger-link{color:#953e4f;border-color:#d9c2c4;}
html[data-theme] .theme-feature-card{padding:13px;border-radius:18px;}
html[data-theme] .theme-feature-illustration{background:#f4e5d7 url("./assets/IMG_HOME_GUADALUPE_SOFT.webp") right center/cover no-repeat;}
html[data-theme] .theme-feature-illustration img{display:none;}
html[data-theme] .theme-option-art{position:relative;background:#f1e0cc;overflow:hidden;}
html[data-theme] .theme-option-art::after{content:"";position:absolute;inset:0;background-size:cover;background-position:center;}
html[data-theme] .theme-option[data-preview="clasica"] .theme-option-art::after{background-image:url("./assets/IMG_HOME_HERO_CANDLES.webp");}
html[data-theme] .theme-option[data-preview="mexicana"] .theme-option-art::after{background-image:url("./assets/IMG_HOME_GUADALUPE_SOFT.webp");background-position:right center;}
html[data-theme] .theme-option[data-preview="serena"] .theme-option-art::after{background-image:url("./assets/IMG_CARD_ADVIENTO.webp");}
html[data-theme] .theme-option[data-preview="hibrida"] .theme-option-art::after{background-image:url("./assets/IMG_READER_HEADER.webp");}
html[data-theme] .theme-option-art img{visibility:hidden;}
/* P0: Four complete items, no horizontal clipping or overlap with Samsung safe area. */
html[data-theme] .bottom-nav{
  box-sizing:border-box;position:fixed;left:50%;right:auto;bottom:0;z-index:15;
  width:min(100%,900px);max-width:100%;transform:translateX(-50%);
  margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;
  padding:7px max(5px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-right));
  min-height:71px;overflow:visible;
  border:1px solid var(--d7-line);border-bottom:0;border-radius:22px 22px 0 0;
  background:#fffaf2;box-shadow:0 -5px 24px #47213819;
}
html[data-theme] .bottom-nav .nav-button{
  display:flex;box-sizing:border-box;min-width:0;width:100%;max-width:100%;
  flex-direction:column;align-items:center;justify-content:center;
  gap:4px;padding:6px 2px;border-radius:15px;font-size:11px;line-height:1.16;
  overflow:visible;white-space:normal;text-align:center;
}
html[data-theme] .bottom-nav .nav-button .nav-icon{display:flex;align-items:center;justify-content:center;width:25px;height:25px;}
html[data-theme] .bottom-nav .nav-button svg{width:24px;height:24px;flex:none;}
html[data-theme] .bottom-nav .nav-button.active{background:#f1dfe4;color:var(--d7-plum);}
html[data-theme] .site-footer{padding-bottom:16px;}
html[data-theme] button:focus-visible,html[data-theme] a:focus-visible{outline:3px solid #a97028;outline-offset:3px;}
@media(max-width:650px){
  html[data-theme] .app-shell{padding:0 17px 100px;}
  html[data-theme] .topbar{padding:10px 42px 15px;margin:0;min-height:100px;}
  html[data-theme] .topbar .brand-text{font-size:23px;}
  html[data-theme] .topbar-actions{right:0;top:22px;}
  html[data-theme] .hero.hero-d6 .hero-copy{padding:2px 2px 15px;}
  html[data-theme] .hero.hero-d6 h1{font-size:29px;}
  html[data-theme] .hero.hero-d6 .hero-art{height:auto;min-height:0;aspect-ratio:16/9;}
  html[data-theme] #view-inicio .featured-card{padding:19px 17px 16px;}
  html[data-theme] #view-inicio .journey-grid{gap:10px;}
  html[data-theme] #view-inicio .journey-card{grid-template-columns:65px minmax(0,1fr);padding:8px;gap:2px 8px;}
  html[data-theme] #view-inicio .journey-card .journey-illustration-art{width:65px;height:74px;}
  html[data-theme] #view-inicio .journey-card-personal{grid-template-columns:74px minmax(0,1fr);}
  html[data-theme] #view-inicio .journey-card-personal .journey-personal-symbol{width:74px;height:75px;}
  html[data-theme] #view-inicio .journey-card strong{font-size:16px;}
  html[data-theme] #view-inicio .journey-card>span:nth-last-child(2){font-size:10px;}
  html[data-theme] .day-card{grid-template-columns:54px minmax(0,1fr) 26px;padding:12px 11px;gap:1px 8px;}
  html[data-theme] .day-card .day-number{width:45px;height:45px;}
  html[data-theme] .day-card .day-number svg{width:23px;height:23px;}
  html[data-theme] .bottom-nav{width:100%;min-height:72px;}
}
@media(max-width:370px){
  html[data-theme] .app-shell{padding-inline:12px;}
  html[data-theme] .topbar .brand-text{font-size:20px;}
  html[data-theme] #view-inicio .journey-card strong{font-size:14px;}
  html[data-theme] #view-inicio .journey-card .journey-illustration-art{width:55px;height:68px;}
  html[data-theme] #view-inicio .journey-card{grid-template-columns:55px minmax(0,1fr);}
  html[data-theme] .bottom-nav .nav-button{font-size:10px;padding-inline:0;}
}
@media(min-width:800px){
  html[data-theme] .topbar{min-height:130px;}
  html[data-theme] #view-inicio .hero.hero-d6 .hero-copy{padding-block:11px 22px;}
  html[data-theme] #view-inicio .hero.hero-d6 .hero-art{max-height:365px;}
  html[data-theme] #view-inicio .journey-card{min-height:130px;}
}
@media(prefers-reduced-motion:reduce){html[data-theme] .journey-card{transition:none;transform:none;}}

html[data-theme="hibrida"]{--d7-paper:#fffbf3;--d7-cream:#fbf3e7;--d7-plum:#551839;--d7-wine:#77314f;--d7-gold:#b98c43;--d7-line:#e8d7c4;}
html[data-theme="clasica"]{--d7-paper:#fffaf0;--d7-cream:#f5ede0;--d7-plum:#422944;--d7-wine:#603b62;--d7-gold:#a27b3a;--d7-line:#dbc9af;}
html[data-theme="mexicana"]{--d7-paper:#fffaf2;--d7-cream:#fff3e6;--d7-plum:#165345;--d7-wine:#96394e;--d7-gold:#a07a3e;--d7-line:#e5d0c0;}
html[data-theme="serena"]{--d7-paper:#fff;--d7-cream:#f3f7fb;--d7-plum:#183a56;--d7-wine:#35536b;--d7-gold:#71619c;--d7-line:#d7e0e9;}
