
.stories-page{min-height:70vh}.stories-hero{padding:110px clamp(24px,8vw,120px) 80px;background:linear-gradient(135deg,#f8fbfd 0%,#e8f4fb 65%,#c4e1f2 100%);text-align:center}.stories-hero h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(46px,7vw,78px);line-height:1;margin:0 0 20px;letter-spacing:-.04em}.stories-hero>p:last-child{max-width:680px;margin:auto;color:var(--muted);font-size:18px}.stories-archive-section{padding:80px clamp(20px,7vw,100px) 110px}.archive-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.archive-card{background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s}.archive-card:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(35,75,98,.15)}.archive-cover{display:block;background:#e8f4fb;aspect-ratio:4/3;overflow:hidden}.archive-cover img{width:100%;height:100%;object-fit:contain;display:block;background:#edf6fa}.archive-placeholder{height:100%;display:grid;place-items:center;font-family:"Playfair Display",Georgia,serif;font-size:42px;color:#4b91ba}.archive-body{padding:24px}.archive-date,.story-detail-date{margin:0 0 8px;color:var(--muted);font-size:13px}.archive-body h2{font-family:"Playfair Display",Georgia,serif;font-size:28px;line-height:1.1;margin:0 0 10px}.archive-body p:not(.archive-date){color:var(--muted);margin:0 0 20px}.text-link{font-weight:800;color:#3b7fa6}.text-link span{margin-left:7px}.story-page{padding:70px 20px 110px;min-height:70vh}.story-detail{max-width:900px;margin:auto}.story-detail-card{background:white;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:var(--shadow)}.back-link{display:inline-block;margin:28px 32px 0;color:#3b7fa6;font-weight:800}.story-detail-header{padding:24px 46px 38px}.story-detail-header h1{font-family:"Playfair Display",Georgia,serif;font-size:clamp(42px,6vw,70px);line-height:1.02;margin:0 0 14px;letter-spacing:-.035em}.story-detail-image{margin:0;background:#edf6fa;text-align:center}.story-detail-image img{display:block;width:100%;height:auto;max-height:760px;object-fit:contain;margin:auto}.story-detail-content{padding:44px 46px 60px;font-size:18px;line-height:1.9;color:#33424d}.story-not-found{background:white;border:1px solid var(--line);border-radius:24px;padding:60px;text-align:center;box-shadow:var(--shadow)}.story-not-found h1{font-family:"Playfair Display",Georgia,serif;font-size:42px;margin-top:0}.story-not-found p{color:var(--muted)}
@media(max-width:900px){.archive-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.stories-hero{padding:80px 20px 60px}.stories-hero h1{font-size:48px}.stories-archive-section{padding:55px 18px 80px}.archive-grid{grid-template-columns:1fr}.story-page{padding:35px 12px 70px}.story-detail-header{padding:20px 24px 30px}.story-detail-header h1{font-size:42px}.story-detail-content{padding:30px 24px 45px;font-size:17px}.back-link{margin:22px 24px 0}.story-detail-image img{max-height:none}}

/* Galería de hasta 4 fotos por historia */
.story-viewer { margin: 2rem 0 2.5rem; }
.story-viewer-main { position: relative; display:flex; align-items:center; justify-content:center; min-height:320px; border-radius:24px; overflow:hidden; background: rgba(0,0,0,.04); }
.story-viewer-main > img { display:block; width:100%; max-height:720px; object-fit:contain; }
.viewer-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:48px; height:48px; border:0; border-radius:50%; cursor:pointer; font-size:2rem; line-height:1; background:rgba(255,255,255,.9); box-shadow:0 8px 25px rgba(0,0,0,.15); }
.viewer-prev { left:18px; }
.viewer-next { right:18px; }
.viewer-counter { position:absolute; right:18px; bottom:18px; padding:.45rem .75rem; border-radius:999px; background:rgba(0,0,0,.65); color:#fff; font-size:.85rem; }
.story-viewer-thumbs { display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding:3px; }
.viewer-thumb { flex:0 0 82px; height:64px; padding:0; border:2px solid transparent; border-radius:12px; overflow:hidden; background:transparent; cursor:pointer; opacity:.65; }
.viewer-thumb.active { border-color:currentColor; opacity:1; }
.viewer-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.archive-cover { position:relative; }
.archive-photo-count { position:absolute; top:12px; right:12px; padding:.35rem .6rem; border-radius:999px; background:rgba(0,0,0,.68); color:#fff; font-size:.78rem; }

/* META 8.1 — animaciones adicionales */
@keyframes gdm-page-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.entrepreneur-card,.artist-card,.archive-card{animation:gdm-page-in .6s cubic-bezier(.22,.8,.24,1) both}
.entrepreneur-card:nth-child(2),.artist-card:nth-child(2),.archive-card:nth-child(2){animation-delay:.05s}
.entrepreneur-card:nth-child(3),.artist-card:nth-child(3),.archive-card:nth-child(3){animation-delay:.1s}
.entrepreneur-card:nth-child(4),.artist-card:nth-child(4),.archive-card:nth-child(4){animation-delay:.15s}
.archive-cover img,.entrepreneur-logo img,.artist-logo img{transition:transform .5s cubic-bezier(.22,.8,.24,1),filter .35s ease}
.archive-card:hover .archive-cover img,.entrepreneur-card:hover .entrepreneur-logo img,.artist-card:hover .artist-logo img{transform:scale(1.045)}
@media(prefers-reduced-motion:reduce){
 .entrepreneur-card,.artist-card,.archive-card{animation:none!important}
 .archive-cover img,.entrepreneur-logo img,.artist-logo img{transition:none!important}
}


/* META 9.2 — Footer GDM unificado: prevalece sobre estilos antiguos de cada sección */
.site-footer.professional-footer{
  display:block;
  width:100%;
  box-sizing:border-box;
  padding:42px clamp(20px,5vw,70px) 18px;
  margin:0;
  border-top:1px solid rgba(80,184,232,.16);
  background:rgba(3,25,36,.96);
  color:#dceefa;
  text-align:left;
}
.site-footer.professional-footer .footer-main{
  display:grid;
  grid-template-columns:minmax(220px,1.6fr) repeat(3,minmax(140px,1fr));
  gap:34px;
  max-width:1180px;
  margin:0 auto;
  align-items:start;
}
.site-footer.professional-footer .footer-brand-wrap{display:flex;flex-direction:column;gap:4px}
.site-footer.professional-footer .footer-brand{font-family:"Permanent Marker",cursive;font-size:21px;color:#dceefa}
.site-footer.professional-footer .footer-brand-wrap p{max-width:280px;margin:6px 0 0;color:#89a8b8;font-size:12px;line-height:1.6}
.site-footer.professional-footer .footer-column{display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.site-footer.professional-footer .footer-column strong{color:#79cfff;font-size:12px;text-transform:uppercase;letter-spacing:.14em;margin-bottom:5px}
.site-footer.professional-footer .footer-column a{color:#b8cbd4;font-size:12px;text-decoration:none;font-weight:500;transform:none}
.site-footer.professional-footer .footer-column a:hover{color:#fff;transform:none}
.site-footer.professional-footer .feedback-footer-button{width:max-content;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid rgba(114,201,244,.42);background:rgba(255,255,255,.06);color:#e9f7ff!important;border-radius:999px;padding:9px 13px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.site-footer.professional-footer .footer-bottom{max-width:1180px;margin:30px auto 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;gap:15px;color:#809ba9;font-size:10px}
@media(max-width:900px){.site-footer.professional-footer .footer-main{grid-template-columns:repeat(2,minmax(150px,1fr))}}
@media(max-width:560px){.site-footer.professional-footer{padding:32px 18px 16px}.site-footer.professional-footer .footer-main{grid-template-columns:1fr;gap:24px}.site-footer.professional-footer .footer-bottom{flex-direction:column;margin-top:24px}}

/* META 9.2.5 — PORTADA PANORÁMICA GDM (AUTORITATIVA) */
.stories-hero {
  background-image: url('../assets/gdm-portada-maule.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #092331 !important;
  position: relative;
  isolation: isolate;
}
.stories-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(3,22,33,.94) 0%, rgba(3,22,33,.78) 38%, rgba(3,22,33,.40) 72%, rgba(3,22,33,.18) 100%) !important;
}
.stories-hero > * { position: relative; z-index: 2; }

/* META 9.2.7 — HERO INTERNO UNIFICADO */
.stories-hero{
  min-height:360px !important;
  height:360px !important;
  box-sizing:border-box !important;
  padding:72px clamp(24px,8vw,110px) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  text-align:left !important;
  background-image:url('../assets/gdm-portada-maule.webp') !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  position:relative !important;
  isolation:isolate !important;
}
.stories-hero::before{
  content:'' !important;
  position:absolute !important;
  inset:0 !important;
  z-index:0 !important;
  pointer-events:none !important;
  background:linear-gradient(90deg,rgba(3,22,33,.94) 0%,rgba(3,22,33,.78) 38%,rgba(3,22,33,.40) 72%,rgba(3,22,33,.18) 100%) !important;
}
.stories-hero > *{position:relative !important;z-index:2 !important;margin-left:0 !important;margin-right:0 !important;}
.stories-hero > p:last-child{margin-left:0 !important;margin-right:0 !important;}


/* META9.4.6 — comentarios */
.story-comments{margin-top:38px;padding-top:30px;border-top:1px solid rgba(20,80,100,.25)}
.comment-auth-note{margin:10px 0 16px;opacity:.8}.comment-auth-note a{font-weight:700}
.comment-form{display:grid;gap:12px;margin-bottom:24px}.comment-form textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:110px;padding:14px;border-radius:14px;border:1px solid rgba(20,80,100,.4);background:rgba(255,255,255,.04);color:inherit;font:inherit}.comment-form .button{justify-self:start}
.story-comments-list{display:grid;gap:12px}.story-comment{padding:16px 18px;border:1px solid rgba(20,80,100,.25);border-radius:15px;background:rgba(255,255,255,.025)}.story-comment-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.story-comment-head small{opacity:.65}.story-comment p{margin:0;line-height:1.55}

/* META9.4.8 — Comentarios: contraste y modo oscuro */
.story-comments{margin-top:38px;padding:30px 46px 46px;border-top:1px solid var(--line)}
.story-comments .compact-heading{margin-bottom:12px}
.comment-auth-note{margin:10px 0 16px;color:var(--muted);line-height:1.6}
.comment-auth-note a{font-weight:800;color:#3b7fa6}
.comment-form{display:grid;gap:12px;margin-bottom:24px}
.comment-form textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:110px;padding:14px;border-radius:14px;border:1px solid var(--line);background:var(--surface,#fff);color:var(--text,#172631);font:inherit}
.story-comments-list{display:grid;gap:12px}
.story-comment{padding:16px 18px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.55);color:var(--text,#172631)}
.story-comment-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}
.story-comment-head strong{color:inherit}
.story-comment-head small{color:var(--muted)}
.story-comment p{margin:0;line-height:1.55;color:inherit}
.error-state{color:#d56b6b!important}

html.gdm-dark-mode .story-comments{border-top-color:#24485e}
html.gdm-dark-mode .story-comments .section-heading h2{color:#f1f8fb!important}
html.gdm-dark-mode .story-comments .section-heading>p:last-child{color:#9fb9c8!important}
html.gdm-dark-mode .comment-auth-note{color:#a9c0cd}
html.gdm-dark-mode .comment-auth-note a{color:#62bdf0}
html.gdm-dark-mode .comment-form textarea{background:#0d202d!important;color:#e7f4fa!important;border-color:#2a5268!important}
html.gdm-dark-mode .story-comment{background:#102431!important;border-color:#24485e!important;color:#dceef6!important}
html.gdm-dark-mode .story-comment-head strong{color:#f1f8fb!important}
html.gdm-dark-mode .story-comment-head small{color:#8fa9b8!important}
html.gdm-dark-mode .story-comment p{color:#c4d7e1!important}
html.gdm-dark-mode .error-state{color:#ff9a9a!important}

@media(max-width:650px){
  .story-comments{padding:26px 24px 36px}
  .story-comment-head{flex-direction:column;gap:4px}
}
