/* ── NAVBAR (barra superior fija) ── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #6750A4;
    padding: 10px 1%;
    box-shadow: 0 2px 8px rgba(103, 80, 164, 0.35);
    z-index: 100;
}

.plan-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.plan-selector label {
    font-weight: 500;
    color: #EDE7F6;
}

.plan-selector select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1.5px solid #D0BCFF;
    font-size: 15px;
    min-width: 250px;
    text-align: left;
    flex-grow: 1;
    background-color: #fff;
    color: #21005D;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-selector select:focus {
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    padding: 7px 12px;
    font-size: 14px;
    color: #EDE7F6;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.pdf-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.pdf-icon {
    color: #F9CECE;
}

/* ── FOOTER (barra de acciones fija) ── */
.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #6750A4;
    padding: 14px 16px;
    box-shadow: 0 -2px 8px rgba(103, 80, 164, 0.35);
    z-index: 100;
}

/* ── BOTONES ── */
.button {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
    letter-spacing: 0.02em;
}

.button-primary {
    background-color: #EADDFF;
    color: #21005D;
}

.button-primary:hover {
    background-color: #D0BCFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.button-secondary {
    background-color: transparent;
    color: #EDE7F6;
    border: 1.5px solid #D0BCFF;
}

.button-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.export-button {
    background-color: #C8E6C9;
    color: #1B5E20;
}

.export-button:hover {
    background-color: #A5D6A7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 1%;
    }

    .plan-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-selector select {
        width: 100%;
    }

    .pdf-link span:not(.pdf-icon) {
        display: none;
    }

    .pdf-icon {
        font-size: 18px;
    }

    .actions {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px;
    }

    .button {
        width: auto;
        margin-bottom: 0;
        padding: 10px 14px;
        font-size: 13px;
        min-width: 120px;
    }
}
