/* ADN: Estilo Diario Juvenil Skyland Prestige */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --oro: #c5a059;
    --azul-hotel: #001b3a;
    --paper: #fdfdfd;
    --desk: #e0d5c1;
}

body { 
    background-color: var(--desk); 
    font-family: 'Georgia', serif; 
    display: flex; justify-content: center; align-items: center; min-height: 100vh;
    padding: 20px;
}

.hidden { display: none !important; }

/* SETUP SCREEN */
.setup-container {
    background: #fff; padding: 40px; border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    width: 100%; max-width: 1000px; text-align: center;
}
.logo-setup { height: 80px; margin-bottom: 20px; }
.btn-bulk, .btn-launch { padding: 15px 30px; border-radius: 30px; cursor: pointer; font-weight: bold; border: none; }
.btn-bulk { background: var(--oro); color: white; display: inline-block; margin-bottom: 10px; }
.btn-launch { background: var(--azul-hotel); color: white; animation: pulse 2s infinite; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; margin-top: 20px; }
.slot { background: #f9f9f9; border: 2px dashed var(--oro); border-radius: 10px; padding: 10px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.slot img { width: 100%; height: 70%; object-fit: cover; border-radius: 5px; }
.slot span { font-size: 0.65rem; color: var(--azul-hotel); font-weight: bold; margin-top: 5px; }

/* APP LAYOUT */
.audio-control-fixed { position: fixed; top: 15px; right: 15px; z-index: 5000; background: white; border: 1px solid var(--oro); color: var(--oro); padding: 5px 12px; cursor: pointer; border-radius: 20px; font-size: 0.65rem; font-weight: bold;}
.notebook-desk { width: 100%; max-width: 1100px; }
.hotel-branding { text-align: center; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; gap: 20px; }
.logo-vip-header { height: 60px; }
.hotel-title { font-size: 1.5rem; letter-spacing: 5px; color: var(--azul-hotel); }
.notebook-container { background: var(--paper); display: flex; min-height: 650px; box-shadow: 20px 20px 60px rgba(0,0,0,0.2); border-radius: 10px; position: relative; }
.notebook-container::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,0.1); transform: translateX(-50%); z-index: 5; }
.notebook-page { flex: 1; padding: 40px; display: flex; flex-direction: column; position: relative; }
.left-page { border-right: 1px solid #eee; }
.elegant-frame-gold { width: 100%; aspect-ratio: 1; border: 10px solid var(--oro); background: #fff; padding: 10px; cursor: zoom-in; overflow: hidden; box-shadow: 5px 5px 15px rgba(0,0,0,0.1); }
.elegant-frame-gold img, #photo-canvas { width: 100%; height: 100%; object-fit: cover; }
.btn-magic { margin: 15px auto; background: white; border: 2px solid var(--oro); color: var(--oro); padding: 8px 15px; border-radius: 20px; cursor: pointer; font-size: 0.75rem; font-weight: bold; display: block; }
.message-box { margin-top: 20px; text-align: center; font-style: italic; color: #666; font-size: 1rem; }

/* CALENDAR */
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
#month-name { color: var(--oro); font-size: 1.2rem; }
.btn-nav { background: none; border: 1px solid var(--oro); color: var(--oro); padding: 5px 10px; border-radius: 50%; cursor: pointer; }
.calendar-wrapper { cursor: zoom-in; }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 0.65rem; font-weight: bold; color: var(--azul-hotel); margin-bottom: 10px; }
.days-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #eee; font-size: 0.8rem; cursor: pointer; border-radius: 4px; }
.day.has-note { background: var(--oro) !important; color: white; font-weight: bold; transform: rotate(-2deg); }

.side-actions-adn { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; }
.btn-download { background: var(--azul-hotel); color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; font-size: 0.75rem; }
.qr-box-calendar { text-align: center; cursor: pointer; }
#qr-code-img { width: 55px; height: 55px; border: 1px solid #ddd; }
.qr-box-calendar p { font-size: 0.55rem; margin-top: 3px; color: var(--azul-hotel); font-weight: bold; }

/* MODALES Y ZOOM */
.zoom-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 10000; display: flex; justify-content: center; align-items: center; padding: 20px; }
.zoom-container-relative { position: relative; max-width: 90%; max-height: 90%; display: flex; flex-direction: column; align-items: center; }
.close-zoom { position: absolute; top: -50px; right: 0; font-size: 45px; color: white; cursor: pointer; font-weight: bold; }
.zoom-photo-wrapper { border: 8px solid var(--oro); background: white; padding: 10px; position: relative; }
.zoom-photo-wrapper img { max-width: 80vw; max-height: 70vh; display: block; }
.zoom-logo-overlay { position: absolute; bottom: 15px; right: 15px; height: 40px; opacity: 0.8; }

.note-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 20000; display: flex; justify-content: center; align-items: center; }
.note-box { background: white; padding: 25px; border-radius: 10px; border-top: 8px solid var(--oro); width: 90%; max-width: 380px; text-align: center; position: relative;}
.close-zoom-small { position: absolute; top: 10px; right: 15px; font-size: 25px; cursor: pointer; color: #333; }
#note-input { width: 100%; height: 90px; margin: 15px 0; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.btn-save { background: var(--azul-hotel); color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; margin-right: 10px; }
.btn-cancel { background: #eee; border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; }

/* RECORTE Y TAMAÑO DE LOGO INFERIOR */
.logo-bottom { 
    height: 45px; 
    width: auto; 
    opacity: 0.8; 
    margin: 10px auto; 
    display: block; 
}

/* TEXTO INSTRUCCIONES ABAJO DEL LOGO */
.instrucciones-footer {
    text-align: center;
    margin-top: 5px;
    padding: 10px;
}
.instrucciones-footer p {
    font-size: 0.7rem;
    color: var(--azul-hotel);
    font-weight: bold;
    line-height: 1.2;
}
.instrucciones-footer .en-text {
    font-size: 0.6rem;
    color: var(--oro);
    font-style: italic;
    margin-top: 2px;
}

@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (max-width: 800px) { .notebook-container { flex-direction: column; } .notebook-container::before { display: none; } }

/* ===================================================
    CUPÓN SORTEO: HOTEL SKYLAND PRESTIGE (MINI)
   =================================================== */
.cupon-externo-sorteo {
    position: fixed;
    left: 20px; 
    top: 50%;
    transform: translateY(-50%);
    width: 180px; /* Tamaño reducido de 310px a 180px */
    background: #1a1a1a;
    padding: 8px;
    border: 1px solid var(--oro);
    box-shadow: 0px 0px 30px rgba(0,0,0,0.5);
    z-index: 999;
    cursor: pointer;
    overflow: hidden;
}

.cupon-externo-sorteo::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(197, 160, 89, 0.3), transparent);
    transform: rotate(30deg);
    animation: anim-brillo-cupon 7s infinite;
}

@keyframes anim-brillo-cupon {
    0% { left: -150%; }
    15% { left: 150%; }
    100% { left: 150%; }
}

.marco-interior-oro-sorteo {
    border: 1px solid var(--oro);
    padding: 10px;
    text-align: center;
}

.cupon-titulo-vip {
    font-family: 'Kalam', cursive;
    color: var(--oro);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 6px;
}

.cupon-texto-sorteo {
    color: #ffffff;
    font-size: 0.7rem;
    line-height: 1.3;
}

.highlight-sorteo {
    color: var(--oro);
    font-weight: bold;
}

.cupon-linea-oro {
    border: 0;
    border-top: 1px solid var(--oro);
    margin: 8px auto;
    width: 60%;
    opacity: 0.5;
}

.cupon-texto-promo {
    color: #ffffff;
    font-size: 0.65rem;
    line-height: 1.3;
}

.cupon-nota-formulario {
    display: block;
    color: var(--oro);
    font-size: 0.55rem;
    margin-top: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 1350px) {
    .cupon-externo-sorteo { display: none; }
}

/* --- BLINDAJE LEGAL CONECTA --- */
.modal-legal-full { position: fixed; inset: 0; background: var(--azul-hotel); z-index: 99999; display: flex; justify-content: center; align-items: center; padding: 20px; transition: opacity 0.5s ease; }
.legal-box { background: white; padding: 30px; border-radius: 15px; max-width: 450px; width: 100%; text-align: center; border: 4px solid var(--oro); }
.legal-logo { height: 60px; margin-bottom: 15px; }
.legal-content { background: #f4f4f4; padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: justify; border: 1px solid #ddd; }
.legal-content p { font-size: 0.8rem; line-height: 1.4; color: #333; margin-bottom: 10px; }
.btn-firma-vip { background: var(--azul-hotel); color: white; border: 2px solid var(--oro); padding: 12px 25px; border-radius: 25px; font-weight: bold; cursor: pointer; width: 100%; }