.camus-flipbook-wrapper {
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    margin: 2rem auto; 
    width: 100%; 
    max-width: 1600px; /* Aumentado drásticamente para pantallas panorámicas */
    font-family: system-ui, -apple-system, sans-serif;
}

.camus-flipbook-outer {
    width: 100%; 
    height: 85vh; /* Aumentado: Ocupará el 85% de la altura visible de la pantalla del lector */
    min-height: 600px; /* Garantiza que no se vea aplastado en portátiles pequeños */
    max-height: none; /* Quitamos el límite de altura */
    position: relative; overflow: hidden; border-radius: 4px; touch-action: none;
    display: flex; justify-content: center; align-items: center; background: #f4f4f4; border: 1px solid #ddd;
}

#camus-panzoom-wrapper {
    width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;
}

.camus-grabbing-mode { cursor: grab; }
.camus-grabbing-mode:active { cursor: grabbing; }

.camus-flipbook-container {
    width: 95%; height: 95%; 
    max-width: 2500px; /* Quitamos la restricción interna de contenedor */
    position: relative;
}

.camus-zoom-active .camus-page { pointer-events: none !important; }

.camus-flipbook-container .camus-page {
    background-color: #ffffff; overflow: hidden; display: flex; justify-content: center; align-items: center; border: 1px solid #e0e0e0;
}

.camus-flipbook-container .camus-page canvas {
    width: 100%; height: 100%; object-fit: fill; 
}

.camus-flipbook-container .camus-page.--left { box-shadow: inset -15px 0 30px -10px rgba(0,0,0,0.1); }
.camus-flipbook-container .camus-page.--right { box-shadow: inset 15px 0 30px -10px rgba(0,0,0,0.1); }

.camus-zoom-toolbar {
    background: #1a1a1a; padding: 10px 20px; border-radius: 50px; display: flex; gap: 10px; align-items: center; margin-bottom: 20px; color: white; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: opacity 0.3s ease, transform 0.3s ease; z-index: 10;
}
.camus-zoom-toolbar.camus-hidden { display: none; opacity: 0; transform: translateY(-10px); }

.camus-flipbook-controls {
    margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 650px; background: #1a1a1a; padding: 12px 20px; border-radius: 50px; color: #ffffff; box-shadow: 0 4px 10px rgba(0,0,0,0.2); box-sizing: border-box; transition: opacity 0.3s ease;
}

.camus-btn, .camus-icon-btn {
    background: #404040; color: white; border: none; border-radius: 20px; cursor: pointer; transition: background 0.2s ease, transform 0.1s ease; display: flex; align-items: center; justify-content: center;
}
.camus-btn { padding: 8px 16px; font-size: 14px; font-weight: 500; }
.camus-icon-btn { padding: 8px; font-size: 18px; width: 38px; height: 38px; flex-shrink: 0;}

.camus-btn:hover, .camus-icon-btn:hover { background: #5c5c5c; }
.camus-btn:active, .camus-icon-btn:active { transform: scale(0.95); }

.camus-page-info { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.camus-divider { color: #5c5c5c; font-weight: normal; }

@media (max-width: 600px) {
    .camus-page-info { font-size: 12px; gap: 5px; }
    .camus-btn { padding: 6px 10px; font-size: 12px; }
    .camus-icon-btn { width: 32px; height: 32px; font-size: 15px; }
    .camus-flipbook-controls { padding: 10px; }
    .camus-zoom-toolbar { flex-wrap: wrap; justify-content: center; width: 90%; }
}