:root { --school-ink: #9f0004; --school-accent: #d4af37; --wood: #f4f4f4; --lines: #e0e6ed; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--wood); font-family: 'Kalam', cursive; overflow-x: hidden; width: 100%; min-height: 100vh; }

/* --- CENTRADO ROBUSTO DEL ÁLBUM --- */
#journal-layout { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    padding: 20px; 
    align-items: center; 
    width: 100%;
}

.content-wrapper { 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 40px; 
    width: 100%; 
    max-width: 1350px; 
    margin: 0 auto; /* Esto garantiza el centrado horizontal */
}

/* --- RESTO DEL DISEÑO MANTENIDO --- */
.setup-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.98); z-index: 99999; display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; }
.setup-modal { width: 90%; max-width: 500px; padding: 50px; background: #fff; border: 1px solid #eee; box-shadow: 0 10px 40px rgba(0,0,0,0.1); border-radius: 12px; text-align: center; }
.setup-modal h2 { color: #222; font-size: 1.5rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.setup-description { color: #777; margin-bottom: 30px; font-size: 0.95rem; }
.checkbox-container { display: block; padding: 15px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 25px; cursor: pointer; transition: 0.3s; color: #444; font-size: 0.9rem; }
.checkbox-container:hover { background: #f9f9f9; }
.upload-zone { display: none; }
.file-input-wrapper { margin-bottom: 25px; }
#file-input-multiple { padding: 10px; border: 2px dashed #ccc; width: 100%; border-radius: 8px; cursor: pointer; }
.preview-grid-interactive { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 25px; }
.preview-slot { aspect-ratio: 1; border-radius: 6px; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fcfcfc; }
.preview-slot img { width: 100%; height: 100%; object-fit: cover; }
.btn-setup-action { background: var(--school-ink); color: #fff; border: none; padding: 15px 40px; font-size: 1rem; font-weight: 700; cursor: pointer; border-radius: 6px; transition: 0.3s; text-transform: uppercase; width: 100%; }
.btn-setup-action:hover { background: #000; }

.poster-container { width: 80%; height: 80%; display: flex; align-items: center; justify-content: center; padding: 5px; border: 5px solid var(--school-accent); background: #fff; box-shadow: 5px 5px 15px rgba(0,0,0,0.2); overflow: hidden; margin: auto; }
.clickable-poster { cursor: pointer; transition: 0.3s; }
.clickable-poster:hover { transform: scale(1.02); border-color: var(--school-ink); }
.poster-container img { width: 100%; height: 100%; object-fit: contain; }

.btn-regresar-portada { position: relative !important; display: inline-block !important; margin: 20px auto 0 auto !important; background: var(--school-ink) !important; color: #fff !important; padding: 12px 25px !important; border-radius: 30px !important; border: 2px solid var(--school-accent) !important; cursor: pointer !important; font-family: 'Montserrat', sans-serif !important; font-weight: 700 !important; font-size: 0.9rem !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important; transition: 0.3s !important; z-index: 1000 !important; }
.btn-regresar-portada:hover { background: var(--school-accent) !important; color: var(--school-ink) !important; transform: scale(1.05); }
.audio-control-fixed { position: fixed; top: 15px; right: 15px; z-index: 5000; background: white; border: 2px solid var(--school-ink); color: var(--school-ink); padding: 8px 18px; cursor: pointer; font-size: 0.8rem; border-radius: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); font-weight: bold; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.audio-control-fixed:hover { transform: scale(1.05); background: var(--school-ink); color: white; }
.school-main-title { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; color: var(--school-ink); text-transform: uppercase; letter-spacing: 2px; text-align: center; margin-bottom: 20px; }
.branding-side-left { width: 100px; display: flex; justify-content: flex-end; padding-top: 20px; position: sticky; top: 20px; }
.main-school-logo { width: 85px; height: auto; }
.notebook-container { position: relative; display: flex; width: 1000px; min-height: 750px; background: #fff; box-shadow: 15px 15px 40px rgba(0,0,0,0.3); border-radius: 5px; flex-wrap: wrap; }
.notebook-page { width: 50%; padding: 40px; background-image: linear-gradient(var(--lines) 1px, transparent 1px); background-size: 100% 28px; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 20px; align-content: start; }
.left-page { border-right: 2px solid #ccc; border-left: 35px solid var(--school-ink); }
.right-page { border-left: 1px solid #eee; display: flex; align-items: center; justify-content: center; padding: 0 !important; background-image: none !important; }
.photo-note { position: relative; background: #fff; padding: 8px; box-shadow: 3px 3px 10px rgba(0,0,0,0.15); cursor: pointer; height: 240px; transition: 0.3s; }
.photo-note img { width: 100%; height: 100%; object-fit: cover; }
.photo-note:hover { transform: scale(1.05); z-index: 10; border: 2px solid var(--school-accent); }
.journal-footer-branding { width: 100%; text-align: center; padding: 35px 0 55px 0; margin-top: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.decor-slogan { font-size: 2.2rem; color: #333; font-style: italic; font-weight: bold; margin-top: 5px; }
.marketing-side { width: 180px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 20px; }
.video-memorial-box { background: white; border: 3px solid var(--school-ink); border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.video-header { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--school-ink); font-size: 0.9rem; margin-bottom: 5px; }
.video-subtitle { font-size: 0.8rem; color: var(--school-accent); font-weight: bold; margin-bottom: 15px; }
.btn-play-video { background: #9f0004; color: white; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; border-radius: 6px; font-weight: bold; font-size: 0.85rem; transition: 0.3s; }
.btn-play-video:hover { background: var(--school-accent); transform: scale(1.03); }
.qr-sticker { background: #fff; padding: 15px; border: 2px dashed var(--school-ink); text-align: center; cursor: pointer; }
#qr-code-img { width: 100px; margin-bottom: 10px; }
.qr-caption strong { font-size: 0.8rem; color: var(--school-ink); display: block; }
.qr-caption p { font-size: 0.7rem; color: #666; }
.btn-share-journal { background: var(--school-ink); color: white; border: none; padding: 12px; border-radius: 8px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s; }
.btn-share-journal:hover { background: var(--school-accent); }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 6000; display: flex; justify-content: center; align-items: center; }
.btn-close-global { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 3rem; cursor: pointer; z-index: 7000; }
.zoom-polaroid { background: white; padding: 25px; width: 90%; max-width: 450px; text-align: center; border-radius: 5px; }
.zoom-logo-fixed { width: 65px !important; height: auto; margin: 0 auto 15px auto; display: block; }
.img-frame { width: 100%; height: 380px; overflow: hidden; border: 1px solid #eee; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.handwritten { font-family: 'Indie Flower', cursive; font-size: 1.8rem; margin-top: 15px; color: #333; font-weight: bold; }
.modal-card.flyer-journal { background: white; padding: 25px; border-radius: 15px; width: 90%; max-width: 420px; max-height: 85vh; overflow-y: auto; text-align: center; font-family: 'Montserrat', sans-serif; }
.flyer-logo-fixed { width: 60px !important; margin-bottom: 10px; }
.flyer-school-name { color: var(--school-ink); font-weight: 700; font-size: 1.3rem; margin-bottom: 5px; }
.journal-divider { width: 40px; height: 3px; background: var(--school-accent); margin: 10px auto; }
.feature-item { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; background-color: var(--school-ink); padding: 12px 15px; border-radius: 8px; border: 2px solid var(--school-accent); box-shadow: 0 4px 8px rgba(0,0,0,0.1); text-align: left; }
.feature-item i { color: var(--school-accent); font-size: 1.3rem; }
.feature-item strong { display: block; color: #ffffff; font-size: 0.95rem; text-transform: uppercase; }
.feature-item p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); margin: 0; }
.flyer-contact { font-size: 1.1rem; color: var(--school-ink); margin: 20px 0; font-weight: 800; background: #f8f9fa; padding: 10px; border-radius: 5px; }
.btn-action-journal { background: var(--school-ink); color: white; border: none; padding: 12px; width: 100%; cursor: pointer; border-radius: 8px; font-weight: 700; text-transform: uppercase; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; } 100% { opacity: 0.5; } }
@media (max-width: 1000px) { .content-wrapper { flex-direction: column; align-items: center; } .branding-side-left { position: static; width: 100%; justify-content: center; margin-bottom: 10px; } .notebook-container { width: 95vw; flex-direction: column; height: auto; } .notebook-page { width: 100%; padding: 20px; border-left: none; border-top: 25px solid var(--school-ink); } .marketing-side { width: 100%; position: static; margin-top: 30px; align-items: center; } .decor-slogan { font-size: 1.4rem; } }
.cover-page { position: fixed; inset: 0; background: #fff; z-index: 9999; padding: 20px; }
.main-layout { display: grid; grid-template-columns: 30% 70%; grid-template-rows: 80% 20%; height: 95vh; gap: 10px; }
.panel-1 { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f4f4f4; padding: 20px; }
.main-hero-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--school-ink); margin-bottom: 20px; text-align: center; }
.profile-pic { width: 70%; border-radius: 10px; border: 5px solid var(--school-accent); margin-bottom: 20px; }
.panel-2 { position: relative; background: #000; display: flex; align-items: center; justify-content: center; }
.polaroid-container { background: #fff; padding: 20px; box-shadow: 10px 10px 20px rgba(0,0,0,0.5); transform: rotate(-3deg); display: flex; flex-direction: column; align-items: center; }
.polaroid-photo { width: 300px; height: 300px; overflow: hidden; border: 1px solid #ddd; }
.polaroid-photo img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav-wrapper { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.polaroid-caption { font-family: 'Kalam', cursive; font-size: 1.2rem; color: #333; text-align: center; margin-top: 10px; font-weight: bold; }
.carousel-btn { background: var(--school-ink); color: white; border: none; padding: 10px 15px; cursor: pointer; border-radius: 5px; transition: 0.3s; }
.carousel-btn:hover { background: var(--school-accent); }
.credits-container { position: absolute; bottom: 0; width: 100%; height: 25%; padding: 20px; color: white; background: rgba(0,0,0,0.7); text-align: center; overflow: hidden; }
.scrolling-text { animation: scrollUp 15s linear infinite; font-family: 'Montserrat'; transform: translateY(100%); }
@keyframes scrollUp { 0% { transform: translateY(100%); } 100% { transform: translateY(-100%); } }
.panel-3 { grid-column: span 2; display: flex; align-items: center; justify-content: space-between; padding: 0 220px; background: var(--school-ink); color: white; position: relative; }
.footer-left { display: flex; align-items: center; gap: 30px; }
.footer-right-side { text-align: right; }
.footer-school-name { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.footer-slogan { font-size: 1.4rem; font-style: italic; color: var(--school-accent); margin: 0; }
.btn-enter { padding: 18px 35px; background: var(--school-accent); border: none; cursor: pointer; font-weight: bold; font-size: 1rem; }
.footer-logo { width: 80px; height: auto; }
.btn-share-portada { background-color: var(--school-accent); color: var(--school-ink); border: 2px solid var(--school-ink); padding: 15px 25px; margin-top: 15px; cursor: pointer; font-weight: 800; font-family: 'Montserrat', sans-serif; font-size: 0.9rem; border-radius: 8px; transition: 0.3s; text-transform: uppercase; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.btn-share-portada:hover { background-color: var(--school-ink); color: white; transform: scale(1.03); border-color: var(--school-accent); }