/* ===== RESET BÁSICO ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f4f1ec;
    font-family: 'Segoe UI', sans-serif;
    
}

/* ===== CONTENEDOR PDF ===== */
#pdf-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px 160px 15px; /* espacio abajo para que no tape botones */
}

/* Canvas del PDF */
#pdf-container canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* ===== PANEL DE BOTONES ===== */
#botones {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 95%;
    max-width: 1000px;

    padding: 20px;
    background: linear-gradient(145deg, #b79b82, #a88c73);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    touch-action: none; 
    /* Asegura que el menú siempre esté por encima */
    z-index: 9999;
}

/* ===== TITULO ===== */
#botones h1 {
    margin: 0;
    font-size: 18px;
    color: #2d2d2d;
    letter-spacing: 1px;
    text-align: center;
}

/* ===== GRUPO BOTONES ===== */
.grupo-botones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== BOTONES ===== */
.grupo-botones a {
    font-size: 13px;
    padding: 10px 16px;
    background-color: #ece3d9;
    border-radius: 12px;
    text-decoration: none;
    color: black;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
}

/* Hover */
.grupo-botones a:hover {
    background-color: #5a2ea6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Click */
.grupo-botones a:active {
    transform: scale(0.95);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    #botones {
        padding: 15px;
    }

    .grupo-botones {
        flex-direction: column;
        width: 100%;
    }

    .grupo-botones a {
        width: 100%;
        font-size: 14px;
    }

    #botones h1 {
        font-size: 16px;
    }
}