﻿.arancel-section {
    padding: 55px 0 70px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.arancel-header {
    text-align: center;
    margin-bottom: 24px;
}

    .arancel-header h2 {
        margin: 0 0 8px 0;
        font-size: 34px;
        font-weight: 800;
        color: #1d2d8f;
    }

    .arancel-header p {
        margin: 0;
        font-size: 15px;
        color: #5f6c7c;
    }

.flipbook-shell {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10), 0 6px 14px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.flipbook-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #f6f8fc;
    border-bottom: 1px solid #e7edf7;
}

.flipbook-status {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.flipbook-btn {
    border: none;
    background: #1d2d8f;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(29, 45, 143, 0.20);
}

    .flipbook-btn:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .flipbook-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
        box-shadow: none;
    }

.flipbook-stage {
    position: relative;
    min-height: 760px;
    background: #ffffff !important;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.flipbook-page {
    position: relative;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    transform-origin: center center;
    transition: transform 0.45s ease, opacity 0.45s ease;
    overflow: hidden;
}

.flipbook-stage.flip-next .flipbook-page {
    animation: pageFlipNext 0.45s ease;
}

.flipbook-stage.flip-prev .flipbook-page {
    animation: pageFlipPrev 0.45s ease;
}

#pdfCanvas {
    display: block;
    background: #fff;
    max-width: 100%;
    height: auto;
}

@keyframes pageFlipNext {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotateY(-18deg) scale(0.98);
        opacity: 0.78;
    }

    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes pageFlipPrev {
    0% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotateY(18deg) scale(0.98);
        opacity: 0.78;
    }

    100% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
}

.mensaje-info {
    max-width: 1180px;
    margin: 16px auto 0 auto;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    background: #eef6ff;
    color: #174a7a;
    border: 1px solid #c8def5;
}

@media (max-width: 768px) {
    .arancel-header h2 {
        font-size: 28px;
    }

    .flipbook-toolbar {
        flex-direction: column;
    }

    .flipbook-stage {
        min-height: 540px;
        padding: 18px 10px;
    }

    .flipbook-btn {
        width: 100%;
    }
}
